fix(reports): switching editions replaces the reader instead of stacking it (BUG-1126)
Independent Staging Quality Gate / validate (push) Successful in 14m44s
Independent Staging Quality Gate / publish (push) Successful in 3m32s

The reader and the fact tables were siblings keyed by the same language, so
React left the first edition's reader on screen and appended the new one.
Distinct keys per sibling; whole-page switch test with real engine fact tables.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
Jesse_Chen
2026-09-30 17:13:28 +08:00
co-authored by Claude Opus 5.5
parent 5604c11bb4
commit d87ec44aab
7 changed files with 160 additions and 9 deletions
@@ -13,3 +13,5 @@
| 7 | 打开一份**这次更新之前**生成的旧报告 | 没有「中文 / English」切换;点导出,弹窗里一行小字「这份报告生成于英文版上线前,重新生成即可获得中英两版。」 | |
| 8 | 在旧报告地址后面手动加 `?lang=en` 打开 | 仍然显示中文,不报错 | |
| 9 | 把第 6 步下载的英文文件发给 ChatGPT 或 Claude,让它概括 | 能正常读懂(这一步只是体感,不强求) | |
| 10 | (BUG-1126 补充,2026-09-30)不带 `?lang=en` 打开一份新报告 → 点「English」→ 再点「中文」→ 再点「English」 | 每点一次,正文和目录都跟着换(目录标题在「目录」和「Contents」之间变);页面往下拉,正文只有一份,不会出现两份不同语言的正文 | |
| 11 | (BUG-1126 补充)直接带 `?lang=en` 打开同一份报告 → 点「中文」 | 正文和目录变成中文 | |