From 873fac8a5b8571fb413cc77c43ba910a9fe25f8b Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Mon, 28 Sep 2026 15:27:54 +0800 Subject: [PATCH] feat(settings,reports): six ayanamsa options; report-scope solid button colours (T6/T7, BUG-1078) T6: offer True Citra and Fagan-Bradley beside Raman/Lahiri/KP/True Pushya, engine-supported values only; widen profiles_ayanamsa_check by an additive migration; ephemeris note names; path tests so no new value falls back to Raman. T7: the unlayered `button { color: inherit; }` beats Tailwind's text-primary-foreground, so solid report buttons showed page ink (light (light 4.85:1, dark 5.77:1), grey disabled without fade, neutral selected preset. button.tsx and theme tokens unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8 --- BLOCKED.md | 5 + CHANGELOG.md | 7 ++ docs/BUG_HISTORY.md | 14 +++ ...OGRESS-ayanamsa-report-buttons-20260928.md | 75 ++++++++++++++ .../ayanamsa-report-buttons-20260928.md | 22 +++++ frontend/DESIGN.md | 7 +- frontend/docs/VOICE.md | 2 +- frontend/src/app/globals.css | 58 ++++++++++- frontend/src/lib/ayanamsa.ts | 20 +++- frontend/src/lib/ephemeris-view.ts | 2 + .../20260928010000_profile_ayanamsa_six.sql | 20 ++++ .../tests/ayanamsa-six-paths-20260928.test.ts | 97 +++++++++++++++++++ frontend/tests/ayanamsa.test.ts | 31 +++++- .../database-profile-ayanamsa-six.test.ts | 48 +++++++++ .../report-buttons-scope-20260928.test.ts | 83 ++++++++++++++++ 15 files changed, 483 insertions(+), 8 deletions(-) create mode 100644 docs/tasks/PROGRESS-ayanamsa-report-buttons-20260928.md create mode 100644 docs/testing/ayanamsa-report-buttons-20260928.md create mode 100644 frontend/supabase/migrations/20260928010000_profile_ayanamsa_six.sql create mode 100644 frontend/tests/ayanamsa-six-paths-20260928.test.ts create mode 100644 frontend/tests/database-profile-ayanamsa-six.test.ts create mode 100644 frontend/tests/report-buttons-scope-20260928.test.ts diff --git a/BLOCKED.md b/BLOCKED.md index 6c7eb569..1e41c36f 100644 --- a/BLOCKED.md +++ b/BLOCKED.md @@ -7,6 +7,11 @@ - 本工作树无 `.venv`(主检出的 `.venv` 软链指向不存在的路径):Python 测试用系统 `python3`(pyswisseph 2.10.03)。基线即红的 10 条(`test_varga_vedastro_mode` 9 条、`test_ayanamsa_mode_ownership` 1 条)同名不变。 - Bhava / 行运真实引擎耗时与 429 频率未测;部署后看 `/api/bhava_chalit` 与带日期的 `/api/chart` 的 `chart_view_engine_failed` 日志。 - 未推送、未部署。 +## TASK-chart-types-and-report-buttons T6/T7:真实 PostgreSQL 迁移测试、登录态真机待验(2026-09-28) + +- 本机无 Docker:`npm run test:db` 未跑。T6 新增迁移 `20260928010000_profile_ayanamsa_six.sql`(只放宽 `profiles_ayanamsa_check`)与 `frontend/tests/database-profile-ayanamsa-six.test.ts`(本机 docker unavailable 跳过),结果以门禁 DB job 为准。替代证据:`ayanamsa-six-paths-20260928.test.ts` 的迁移源文本合同;24 条既有 DB / 部署套件失败名单与基线逐条一致。 +- 无受控登录账号:设置里选 True Citra / Fagan-Bradley 后保存、星盘参数表显示、报告页深色按钮只在单元测试与本地无头 Chrome 的静态样张上验证;真机清单 `docs/testing/ayanamsa-report-buttons-20260928.md`。 +- 未推送、未部署;BUG-1078 保持 investigating。 ## TASK-consult-first-frame-and-pacing:真实 PostgreSQL 寒暄结算测试、真机与真实耗时待验(2026-09-28) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03168e6c..7e4655e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ - 七政四余 Tab 先不展示;计算接口保留,以后放进对话里用。 - Skill 版本不 bump(Skill 文本未改)。不改数据库。 +## 2026-09-28 — 岁差可选 6 种;「我的报告」按钮在深色下改成白字(待验收) + +- 设置 → 星盘资料的岁差从 4 种扩到 6 种:Raman(默认)、Lahiri、KP、True Citra、True Pushya、Fagan-Bradley。新增的两种都是引擎原本就支持的;Djwhal Khul、Sassanian 引擎也支持但不放出。默认仍是 Raman,生时校正仍固定按 Raman。咨询、报告、星盘、星历、星盘档案都按所选岁差算,不会悄悄回到 Raman。 +- 数据库放宽 `profiles` 岁差取值的检查(新迁移只改 CHECK,不动数据);部署前需先跑迁移,否则保存新岁差会失败。 +- 「我的报告」列表、阅读页、分块导出和报告出错页里的实心按钮改成白字:浅色主题原来是近黑字压在深陶土红底上(产品反馈的「黑字配深红底」),深色主题原来是浅字压在浅珊瑚底上,两种都看不清;现在浅色是白字陶土底,深色是白字深陶土底。不可点的按钮改成灰色,不再半透明(「导出选中」在还没勾选时就是这样,BUG-1078);导出套餐选中项不再是深红褐底。其它页面的按钮不变(同样的问题另立单)。 +- Skill 版本不 bump(Skill 文本未改)。 + ## 2026-09-28 — 普通对话发出即有反馈,回答按打字节奏写出(待验收) - 按下发送的那一帧,回答行就带着步骤栏,第一行是「收到,正在看你的问题…」;服务端也先开流、首字节就是这句,读会话、预留点数、判断是不是寒暄这些步骤都在流里做。以前这一两秒整行空白(BUG-1074)。发「你好」这类寒暄会先闪一下这一行,服务端判定是寒暄后收掉,只留一句回复。 diff --git a/docs/BUG_HISTORY.md b/docs/BUG_HISTORY.md index 30b9e8bb..4e0384d9 100644 --- a/docs/BUG_HISTORY.md +++ b/docs/BUG_HISTORY.md @@ -14497,3 +14497,17 @@ - 相关记录:BUG-320(Bhava 进换升表);`TASK-chart-types-and-report-buttons-20260928` T5。 - 复发自:无 - 修复版本:本地 `c35e0195`(未推送)。 +## BUG-1078 | 我的报告:实心按钮标签继承正文色(浅色黑字深红底、深色浅字浅珊瑚底),禁用态半透明 + +- 状态:investigating(修复已在本地分支 `codex/ayanamsa-report-buttons-20260928` 提交,未推送、未部署;真机未走) +- 首次发现 / 最近更新:2026-09-28 / 2026-09-28 +- 影响面:「我的报告」列表(`.report-center-*`)、阅读页与分块导出对话框(`.personal-report-reader`、`.report-export-*`)、报告 loading / 状态 / error / not-found(`.personal-report-state`)上渲染为 `