Files
Jyotisha/docs/tasks/PROGRESS-chart-ascendant-row-20261015.md
T
jesse-uxGrok (agent loop)Cursor
454951de27 fix(chart): keep the ascendant nakshatra the page already renders
The chart API rebuilt the ascendant without nakshatra, lord, and pada, so those cells stayed blank. Cache schema is now 7. Centered column headers line up with their cells, and the current dasha card keeps its tint without the left accent.

pytest 34 passed. tsc 0 errors. lint 0 errors and 123 existing warnings.

Co-Authored-By: Grok (agent loop)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-15 09:46:37 +08:00

2.5 KiB
Raw Blame History

PROGRESS · 星盘页上升行(issue #53 第二轮)

  • 分支:codex/chart-ascendant-row-20261015
  • 基线:origin/staging 2b7112a6010acbcc0fec809b6b27e2375293dd5c
  • 编号:本文件最大号是 BUG-1350。任务书说 BUG-1351 已被 #65 的分支占用,本单用 BUG-1352(上升星宿被接口丢掉,复发自 BUG-1201)和 BUG-1353(表头错位与大运左边线)。

做了什么

  • /api/chart 重组上升时带上 nakshatra、nakshatra_pada、nakshatra_lord。引擎已经有就原样带上;没有才按同一套星宿算法补。cache_schema_version 6 → 7。
  • 上升行状态从「—」改为「不适用」。本命、月亮盘共用这一行。
  • 八列表的标记没改。速度、宿主、pada 的表头用列选择器居中,宫位仍靠左。分盘的庙旺 / 同位、行运的速度、Bhava 的换宫,表头加上与内容相同的居中标记。
  • 当前大运去掉 box-shadow,浅底和细边框还在。

样例

chart-view-golden.json 里上升的三项本来就是 Uttara Phalguni、1、Sun,和这次接口真实返回一致,数值没有手改。sourceCommand 不再写「用 _nakshatra_fields 事后补上」,改为写明来自 _compute_chart_sync。

断言改动

位置 原值 新值 原因
chart-varga-table.test.tsx 上升行状态格 <td>—</td> <td>不适用</td> 产品把横杠看成没数据
test_api_scratch_retention.py 缓存版本 6 7 旧缓存没有星宿三项,必须换键
基线 html 仍是改前的整张表 不改文件 测试用替换得到新表,原值留在基线里

自测

  • pytest tests/test_api_chart_ascendant_nakshatra.py tests/test_report_chart_blank_columns.py tests/test_api_server_growth_contract.py tests/test_api_scratch_retention.py -q:34 通过,退出码 0。没有新增 JyotishAPIHandler.__new__。
  • 前端:chart-varga-table、chart-moon-transit、chart-bhava、chart-page-mobile-width-20260929、runtime-sources-no-test-imports。月亮盘那条第一次用整页去配「上升」,配到了图上的标记;改成只看月亮盘表格后通过。
  • tsc --noEmit -p .:0 个错误,退出码 0。
  • npm run lint:0 个错误、123 条原有警告,退出码 0。
  • chart-page-view 与 chart-page-hook:46 通过,退出码 0。
  • 真机清单沿用任务书里已有的 docs/testing/chart-ascendant-row-20261015.md。