feat(chart): Yogini 切换条留在栏内,并补上口径
两个选项分掉右栏宽度,点选区域至少 44px。同一提交写上设计、文案、更新日志和真人步骤。 Co-Authored-By: Grok (agent loop) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Grok (agent loop)
Cursor
parent
7b1070f86d
commit
a06598c8a6
@@ -0,0 +1,38 @@
|
||||
# 进度:星盘大运右栏加上 Yogini(2026-10-22)
|
||||
|
||||
分支 `codex/chart-dasha-yogini-20261021`。起点 `28dd8df333370dd7f6c2ed56656f9e83f978382f`(已含 #86、#87)。没有 push。
|
||||
|
||||
## 提交
|
||||
|
||||
| 步 | SHA | 说明 |
|
||||
| --- | --- | --- |
|
||||
| T1 | `6eeb98c7745f134d0609e0cacd1bb27bbc9c7502` | 小运按比例单列,大运函数输出不变 |
|
||||
| T2 | `3490e89403f3fcfe99a1d91260e8b4320cb0193e` | 只在接口返回的副本上挂小运 |
|
||||
| T3 | `85567071c74f6460ec917aebc1011f429b346269` | 三张公开名人盘对照 PyJHora,小运做内部核对 |
|
||||
| T4 | `7a296c7348abb73295b186ac0ed80ee376f15a01` | 按需取 Yogini,缓存按体系分开 |
|
||||
| T5 | `5ebbd57b041b65c8a6e28ba8be168d57c57b8497` | 按轨道合并,刷新保留已到的轨 |
|
||||
| T6 | `7b1070f86d1911f7b693724ce580c944dd751e61` | 右栏 Chara / Yogini 切换 |
|
||||
| T7 | 本文件所在提交 | 切换条样式、DESIGN、VOICE、CHANGELOG、真人清单 |
|
||||
|
||||
## 对照
|
||||
|
||||
PyJHora `4.8.7`。Presley、Spears、Einstein 三张公开盘走 `compute_chart` 再 `_compute_dasha_system`。大运主星顺序一致,起止日误差都在 1 天以内。没有改算法,没有放宽误差,没有换样本。
|
||||
|
||||
小运不跟 PyJHora 比。时长 = 大运 `full_years` × 子运年数 ÷ 36,从该大运自己的 Yogini 起轮转 8 位。页面写「小运未经外部软件核对。」
|
||||
|
||||
完整解读仍直接调用 `calculate_yogini_dasha`。接口行去掉 `antardasha` 之后与完整解读的大运行逐字段相同;完整解读的行没有 `antardasha`。Ashtottari 与 `scripts/jyotish_api_server.py` 没有改。
|
||||
|
||||
## 测试
|
||||
|
||||
- `tests/test_yogini_seed_profile.py` + `tests/test_dasha_api_engine_parity.py`:15 passed,0 failed,0 skipped(`-rs` 没有 skip)。其中种子 5,接口对照 10。
|
||||
- `frontend/tests/chart-dasha-yogini.test.ts`:4 passed,0 failed。
|
||||
- `frontend/tests/chart-page-hook.test.ts`:28 passed,0 failed。
|
||||
- `frontend/tests/chart-page-view.test.tsx`:28 passed,0 failed。
|
||||
- `frontend/tests/chart-view-route.test.ts`:12 passed,0 failed。
|
||||
- `frontend/tests/chart-view-zero-year.test.ts`:4 passed,0 failed。
|
||||
- `frontend/tests/chart-planet-glyphs.test.tsx`:13 passed,0 failed。
|
||||
- `frontend/tests/chart-dasha-switch-layout.test.ts`:1 passed,0 failed。
|
||||
- `tsc --noEmit`:0 错。
|
||||
- `npm run lint`:0 error,122 条既有 warning。
|
||||
|
||||
没有跑 Python 快速门、全量 `npm test`、`next build`。这三件留给验收。没有新增 BUG。真人清单只写步骤。
|
||||
@@ -0,0 +1,9 @@
|
||||
# 星盘大运切换(真人)
|
||||
|
||||
桌面和手机各做一遍。不要在这份清单上写「已通过」。
|
||||
|
||||
1. 打开星盘页,点「大运」。左栏是 Vimshottari。右栏默认是 Chara,能看到「现在」卡。
|
||||
2. 右栏切到 Yogini。等这一栏出来后,点开当前大运,能看到小运。列表下面有一句「小运未经外部软件核对。」
|
||||
3. 再切回 Chara。Chara 仍在,左栏 Vimshottari 没有被换掉。Chara 下面没有那句小运核对说明。
|
||||
4. 看「现在」卡:大运、小运、小运剩余都在。
|
||||
5. 把窗口收到手机宽度(约 375px)。两栏改成上下排。右栏的 Chara / Yogini 切换不把页面撑出横向滚动,两个选项都能点到。
|
||||
Reference in New Issue
Block a user