fix(chart): 上升的状态格改成「/」

上升不是行星,本命、月亮盘和分盘的状态格不再写「不适用」。悬停或点一下说明原因。报告同一格写「/」,并在表下加中英文说明。

Co-Authored-By: Grok (agent loop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jesse-ux
2026-10-22 00:03:19 +08:00
co-authored by Grok (agent loop) Cursor
parent 9812f31737
commit d2edf8b7a8
12 changed files with 154 additions and 20 deletions
@@ -0,0 +1,27 @@
# 进度:上升状态格改成「/」(issue #87,2026-10-21)
## 做了什么
- 星盘页本命表、月亮盘、分盘表里,上升的状态格写「/」,带 class `chart-page-asc-status`。悬停、键盘聚焦、手机点一下都走现有 `ChartSymbolHelp`。说明句是「上升点是命盘的起点,不是行星,不判断入旺或落陷」。读屏读到的是这一句。
- 报告「行星主星与状态」表的上升行,中文和英文都写「/」。表下面紧跟一行说明:中文用上面那句,英文是 “The ascendant is the starting point of the chart, not a planet, so it has no dignity.”
- `frontend/DESIGN.md` 两处口径、`frontend/docs/VOICE.md` 上升那半句、`CHANGELOG.md` 已改。旧报告要重新生成才会变成「/」。
## 命令与结果
| 检查 | 命令 | 结果 |
| --- | --- | --- |
| 类型 | `frontend` 下 `tsc --noEmit -p .` | 通过,退出码 0 |
| 代码检查 | `frontend` 下 `npm run lint` | 0 个错误,122 条原有警告 |
| 星盘页相关测试 | `tsx --test`:`chart-varga-table.test.tsx`、`chart-moon-transit.test.tsx`、`chart-page-hook.test.ts` | 40 通过,0 失败,0 取消 |
| 报告上升行 | `.venv` 的 `pytest tests/test_report_chart_blank_columns.py -q` | 16 通过,退出码 0 |
全量 `npm test` 和 `next build` 没有跑,交给验收。
## 偏离
1. 任务书要求 #86 合入 `origin/staging` 后再开工。开工时 #86 仍是待验收,`885bd566` 不在 `origin/staging`。核对这份提交:不改 `chart-vedic-tab.tsx`;`pl9_reader_export.py` 只把另一张表的速度改成 4 位小数;`DESIGN.md` 改的是顶栏人名按钮。本轮按产品要求直接做,基线是当时的 `origin/staging` `9812f3173`。#86 若先合入,本分支需要 rebase。预期重叠只在 `DESIGN.md` 的不同段落。
2. `VOICE.md` 仍写上升「不适用」。改了这一处,避免和本单相反。任务书点名的是 `DESIGN.md`。
## 环境
本机没有登录后点过页面。Python 用的是 agent-loop 工作树里的 `.venv`。
+1 -1
View File
@@ -512,6 +512,6 @@
| `TASK-synastry-staging-fix-20261021.md` | `PROGRESS-synastry-staging-fix-20261021.md` | #85 婚恋合盘 staging:P0 `.gte` 已在 staging(BUG-1399)。本分支补时间线起止、英文分析逻辑、删模型后旧对话改用默认模型、选人页开关文案,以及合盘创建真库测试(BUG-1400~1403) | 待验收 | `codex/synastry-staging-fix-20261021` |
| `TASK-synastry-report-chat-fix-20261020.md` | `PROGRESS-synastry-report-chat-20261018.md` | 大运核对要认报告里的「小运」和英文 mahadasha / antardasha;预填文案只留一句 | 已验收 | `549e37b99` |
| `TASK-other-subject-birth-time-edit-20261021.md` | — | 其他人的出生时间可以修改(去掉 `chart_profiles_guard_birth` 的填报时间不可改;推翻 people-archive P1 §验收 2 该条;active 锁不变) | 排队(等 #86 合入) | `codex/other-subject-birth-time-edit-20261021`;动表;不进循环 |
| `TASK-chart-ascendant-slash-20261021.md` | — | #87 上升状态格「不适用」改「/」+ 悬停 / 点按说明;报告上升行同改并在表下加说明(推翻 10-15 口径) | 待领取(等 #86 合入) | `codex/chart-ascendant-slash-20261021` |
| `TASK-chart-ascendant-slash-20261021.md` | `PROGRESS-chart-ascendant-slash-20261021.md` | #87 上升状态格「不适用」改「/」+ 悬停 / 点按说明;报告上升行同改并在表下加说明(推翻 10-15 口径) | 待验收 | `codex/chart-ascendant-slash-20261021` |
| `TASK-report-export-dialog-polish-20261021.md` | — | #90 导出弹窗:英文不可用说明改顶部浮层(每次打开一次);选中态描边 / 圆点 / 勾选框用主题色、底色中性(推翻 DESIGN「Selected states use canvas-muted + ink」,BUG-1078 主语保留) | 待领取(可与 #89 并行) | `codex/report-export-dialog-polish-20261021` |
| `TASK-report-english-han-leak-20261021.md` | `PROGRESS-report-english-han-leak-20261021.md` | #89 个人报告英文版约 4 成整份丢弃:漏译汉字源头补英文孪生字段、修吃空格;200 张固定种子回归 + 快速门 smoke(复发自 BUG-1272);中文逐字节不变 | 待领取(最先做;#91/#92 在后) | `codex/report-english-han-leak-20261021` |