diff --git a/frontend/DESIGN.md b/frontend/DESIGN.md index d2a74cc42..28ca2344b 100644 --- a/frontend/DESIGN.md +++ b/frontend/DESIGN.md @@ -623,7 +623,7 @@ Action results and errors never take page layout. They are toasts from `src/lib/ ### Personal report centre - **Layout (2026-11-03, product-approved option A):** inside the app shell; 「我的报告」 sits alone in the 46px header. The body is `min(900px, 100%)` centred: two **entry bars** on one row (`.report-center-entries`, `--space-6` below the header, `--space-3` gap), then 「过往的报告」 and a compact row list. Below 767px the bars stack (`--space-3` → 10px gap) and the list keeps its rows. -- **Entry bars** (`.report-center-entry`): half width each, 76px tall (72px on phones), `--color-canvas`, a 1px `--color-border`, radius 14px. In order: a 36px icon square (`--color-canvas-muted`, `--color-ink-secondary`, Lucide `FileText` / `Sun`), the title at 15px/600, one ellipsized line at 12px `--color-ink-tertiary`, and a button on the right. 「完整本命报告」 · 「星盘、力量、大运和瑜伽,中英两版」 · 「生成报告」. 「年运」 · 「每段时间偏顺还是偏紧,几个转折点」 · 「打开年运」 (opens `/reports/annual` directly; no entry page). Phones show the short labels 「生成」 / 「打开」; the accessible names stay 「生成报告」 / 「打开年运」. The old centred cards with a big icon and a two-line description (and 「生成后可离开,完成时下方自动出现」) are gone; the minute requirement still lives in the 生成 button's hover title. +- **Entry bars** (`.report-center-entry`): half width each, 76px tall (72px on phones), `--color-canvas`, a 1px `--color-border`, radius 14px. In order: a 36px icon square (`--color-canvas-muted`, `--color-ink-secondary`, Lucide `FileText` / `Sun`), the title at 15px/600, one ellipsized line at 12px `--color-ink-tertiary`, and a button on the right. 「完整本命报告」 · 「星盘、力量、大运和瑜伽,中英两版」 · 「生成报告」. 「年运」 · 「这一年每段怎么安排,几个要留意的时间点」 · 「打开年运」 (opens `/reports/annual` directly; no entry page). Phones show the short labels 「生成」 / 「打开」; the accessible names stay 「生成报告」 / 「打开年运」. The old centred cards with a big icon and a two-line description (and 「生成后可离开,完成时下方自动出现」) are gone; the minute requirement still lives in the 生成 button's hover title. - **Entry buttons** (`.report-center-entry-action`): 40px to the eye, a `::after` at `inset: -3px -1px` (against the 38px padding box inside the 1px border) makes the hit 44px. 「生成报告」 (`GeneratePersonalReportButton`, `.is-accent`) is the pale accent — `--color-action-soft` fill, `--color-action` text, 600 — not the solid clay fill; it is still the page's only generate entry and keeps its behaviour (guarded repeat clicks, toasts for every refusal, 「正在创建…」 while submitting, disabled = `--color-canvas-muted` + `--color-ink-tertiary` at full opacity). 「打开年运」 (`.is-secondary`) is a bordered link: transparent, `--color-border` edge, `--color-ink` text. Contrast: dark `#d78064` on `#3a2620` 4.85:1; light `#a9583e` on `#f7ece5` 4.36:1 (the same pair as the checked theme-menu item). - **List header:** 「过往的报告」 at 15px/600 on the left; 「共 N 份」 at 13px tertiary on the right only when N is known, i.e. when every page is on screen (no 「加载更多」 left). There is no 刷新 button (removed 2026-11-03): a generating report re-reads the first page every 3 seconds; a failed read has its own 重试. - **Rows** (`.report-center-row`): 64px, a hairline above each (`color-mix(in srgb, var(--color-border) 72%, transparent)`), no card around the list and no per-status background. The row is two cells: the link (`.report-center-row-link`, the whole row up to the menu) and a 44px ⋯ menu. The link holds a 32px type square (`FileText` personal, `Sun` annual, `Heart` synastry), the title (`reportRowTitle`, 14px, ellipsized), the meta line (12px tertiary, `tabular-nums`, ellipsized) and the status. A ready row opens the reader, a generating row opens its progress, a failed row opens the reader's failed state. There are no 查看报告 / 查看进度 buttons. Hover is a light `--color-canvas-muted` wash; `:focus-visible` is a 2px `--color-focus` ring inside the row. @@ -1374,7 +1374,7 @@ Yogini 还在取时,右栏用和 Chara 相同的轨道等待(`OrbitWaiting` ## 年运报告与开始遮罩(2026-11-01,issue #153 / #154) -- **入口**:「我的报告」最上面两个横条并排(手机上下排,2026-11-03 方案 A,见 Personal report centre):「年运」横条是 `Sun` 图标方块、标题、一行「每段时间偏顺还是偏紧,几个转折点」,右边描边按钮「打开年运」(手机「打开」),直接打开 `/reports/annual`。没有单独的入口页。个人报告横条上不写份数。 +- **入口**:「我的报告」最上面两个横条并排(手机上下排,2026-11-03 方案 A,见 Personal report centre):「年运」横条是 `Sun` 图标方块、标题、一行「这一年每段怎么安排,几个要留意的时间点」,右边描边按钮「打开年运」(手机「打开」),直接打开 `/reports/annual`。没有单独的入口页。个人报告横条上不写份数。 - **地址**:`/reports/annual`(`?report=` 打开某一份),放在 `/reports` 下,侧栏仍亮「我的报告」。沿用二级页外壳,标题「年运」,标题旁是人物切换。正文一栏 `min(720px, 100%)` 居中。 - **遮罩**:报告的章节骨架在后面虚着(灰标题 + 两条微光条),上面一层 `--color-canvas` 72% 半透明 + 6px 模糊,正中一张卡片(`min(520px, 100%)`、圆角 20px、细边、`--shadow-elevated`,超出时卡内滚动):范围小字「YYYY-MM-DD 到 YYYY-MM-DD」,衬线标题「某人的这一年」;三个胶囊切换「生日年度 / 公历年 / 未来十二个月」(`ToggleGroup`,选中描边 `--color-action-strong`、文字 `--color-action`);三条注意事项(主色勾);出生时间没确认时一行浅底提示,本人和别人都带「先做生时校正」链接(#160 起可以给档案里的其他人做校正);「补充现在的情况(可以不填)」折叠,展开后是关系状态、工作 / 学习、最关心的(最多三项)、已有的计划(一行输入)、不想看的;居中实心按钮「开始写年运」(最小 220×52,手机占满宽),下面一行「本次消耗 N 点,写到一半断掉不扣」。价格读不到时这一行写「计费配置不可用」,按钮不可点。没有别的提示小字。 - **写作中**:点了以后遮罩淡出(200ms),写好的那一节上浮淡入(320ms),下一节标题下一行主色小字「正在写这一节……」,其余仍是骨架。已经写过的这一年直接打开,不出遮罩。没写完时一行「这一次没写完,没有扣点。」和描边按钮「重新开始」。 diff --git a/frontend/docs/VOICE.md b/frontend/docs/VOICE.md index 56b25a6d6..406c232e0 100644 --- a/frontend/docs/VOICE.md +++ b/frontend/docs/VOICE.md @@ -70,9 +70,9 @@ Jyotisha 的可见文案是产品的一部分。正确性红线(真实性、 - 具体会发生什么事,星盘只能推测,报告里会写成「可能」,不当成定论。 - 第三条按范围:生日年度「一年从这次生日算到下次生日。生日前的几个月是回看,你可以对一对准不准。」;公历年「按公历算一整年,生日那天换成新的年盘。前几个月是回看,你可以对一对准不准。」;未来十二个月「从这个月起算十二个月,过了生日换成新的年盘。最近三个月是回看,你可以对一对准不准。」 -出生时间没确认:本人「你的出生时间还没确认,转折的时间点会写得宽一些。先做生时校正」(后四个字是链接);别人「{名字}的出生时间还没校正过,转折的时间点会写得宽一些。」。按钮「开始写年运」,下面「本次消耗 N 点,写到一半断掉不扣」。现状折叠的标题是「补充现在的情况(可以不填)」。出错:点数不够「点数不够。去补点数」;已有一份在写「已经有一份报告正在写,写完再开始这一份。」;资料不全「出生资料还不全,先去星盘档案补上。」;没写完「这一次没写完,没有扣点。」。「我的报告」上年运卡片:「每段时间偏顺还是偏紧,几个转折的时间点。」「直接打开年运」。 +出生时间没确认:本人「你的出生时间还没确认,转折的时间点会写得宽一些。先做生时校正」(后四个字是链接);别人「{名字}的出生时间还没校正过,转折的时间点会写得宽一些。」。按钮「开始写年运」,下面「本次消耗 N 点,写到一半断掉不扣」。现状折叠的标题是「补充现在的情况(可以不填)」。出错:点数不够「点数不够。去补点数」;已有一份在写「已经有一份报告正在写,写完再开始这一份。」;资料不全「出生资料还不全,先去星盘档案补上。」;没写完「这一次没写完,没有扣点。」。「我的报告」上年运卡片:「这一年每段怎么安排,几个要留意的时间点」「直接打开年运」。 -报告正文:每段时间只说偏顺 / 偏紧 / 平稳(不写「有顺有紧」,BUG-1635),再加转折的时间点;具体的事一律「可能」(「可能有工作上的调整」),不写「一定」「肯定」「注定」「保证」。回看写「这段时间是否出现了……」,不写「你已经经历了……」。不写死亡、灾祸、别人的私事和疾病诊断;身体只写作息和精力。恋爱、确定关系、法律婚分开说,看不出的情况(结没结婚、有没有孩子)不当成事实。日期只出现在程序给的时间行里,正文不写年月日。不想看的那一节写「这一节按你的选择没有写。」;盘上看不出信号的领域写短,说清楚看不出什么。 +报告正文(白话版,BUG-1640):先说生活里的事,不给时间段打顺 / 紧总评,可以写月份;再加转折的时间点;具体的事一律「可能」(「可能有工作上的调整」),不写「一定」「肯定」「注定」「保证」。回看写「这段时间是否出现了……」,不写「你已经经历了……」。不写死亡、灾祸、别人的私事和疾病诊断;身体只写作息和精力。恋爱、确定关系、法律婚分开说,看不出的情况(结没结婚、有没有孩子)不当成事实。日期只出现在程序给的时间行里,正文不写年月日。不想看的那一节写「这一节按你的选择没有写。」;盘上看不出信号的领域写短,说清楚看不出什么。 ## 生时校正对话:开场说来源、事件没起作用时直说(2026-10-28,issue #148)