fix(rectification): rewrite D9/D10 style options and stem spacing
Choice cards were showing type-table tokens as options, dating long-term style questions, and stacking the stem on the first option because legend is outside the fieldset grid. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6783,3 +6783,19 @@
|
||||
- 复发自:BUG-440(覆盖未齐时的收口分支存在,但 occupation 记账域错误导致永远走不到;无年份卡仍被同一覆盖门锁死)
|
||||
- 修复版本:待发布
|
||||
|
||||
## BUG-443 | D9/D10 风格卡用了类型表原文、题干贴了年份、题干贴着选项
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-08-30
|
||||
- 最近更新:2026-08-30
|
||||
- 影响面:`varga-type-tables` 的 `d9StyleLabel` / `d10StyleLabel`、`completeStyleOptions` 风格题固定项、`choice-card` 题干、`birth-time-choice.css` legend、`.rectification-choice-why`
|
||||
- 用户现象:D9/D10 风格点选卡选项是「和谐、美感、合作」「照顾、情感」这类类型表词条,三个抽象名词并列、维度不统一,无法对号入座。题干出现「2024–2026 年这段里,做事风格更接近其中一种?」;风格题没有「这段」可指。题干与第一个选项几乎没有间隔。
|
||||
- 触发条件:候选在 D9 或 D10 上升上分开,出 `choice_kind=varga_style` 点选卡。
|
||||
- 根因:三段同时成立。(1) `d9StyleLabel` / `d10StyleLabel` 直接输出 `D9_TYPE_TABLE[sign].trait` / `D10_TYPE_TABLE[sign].style`,解读用的占星类型表字段被当成用户选项。(2) `choice-card.ts` 的 `periodFor` 对 `varga_style` 走 `lifePeriodLabel(evidence, domain)`,`eventQuestionPrompt` 再把时间段贴到长期风格题干上;风格描述的是平时怎么做 / 怎么相处,不随年份变化。(3) `.birth-time-choice-question` 用 grid `gap` 分隔子项,但题干是 `<legend>`,legend 不参与 fieldset 的 grid 布局,gap 对题干与选项不生效。
|
||||
- 修复:类型表为 D9/D10 每行新增面向用户的 `userChoice`,不改 `trait` / `occupation` / `style` / `spouse` / `marriage`。标签函数改输出 `userChoice`;`answer_class` 与 sign 的映射不变。风格题 `no` 改为「都不太像我」,unsure 单独为「一时说不好」;existence / event_quality 固定选项文案不变。`varga_style` 不再返回时间段,题干写成长期表述。legend 与 `.rectification-choice-why` 用 `--space-3` 下外边距,不把 legend 改成 `p`、不新增视觉容器。Skill 保持 10.0.13。未改计分、探针身份或 hash。
|
||||
- 验证:`frontend/tests/rectification-varga-style-copy.test.ts` 锁:12×2 `userChoice` 非空且不等于 `trait`/`style`;sign → `answer_class` 仍按组序;风格卡题干无年份/「这段」;existence / event_quality 仍锁年份且固定选项不变;四选项 `isRenderableStyleOptions`;legend / why 源码具有非零下边距。修复前:标签等于类型表原文、题干带 `lifePeriodLabel` 年份、「这段记不清楚」用在风格题、legend 仅 `margin-bottom: var(--space-1)`。合同金标 `contracts/probe-question-v1.json` 同步。
|
||||
- 防复发:面向用户的选项文案不得直接复用占星类型表字段。长期风格题不得锁定时间段。卡片内题干与选项必须有独立于 grid gap 的间距。existence / event_quality 的年份月份锁定(BUG-408、BUG-412)不得被风格题改动带回。
|
||||
- 相关记录:BUG-408、BUG-412
|
||||
- 复发自:无
|
||||
- 修复版本:待发布
|
||||
|
||||
|
||||
Reference in New Issue
Block a user