docs(ui): Claude acceptance for BUG-1079
Independent Staging Quality Gate / validate (push) Successful in 12m42s
Independent Staging Quality Gate / publish (push) Successful in 3m28s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
Jesse_Chen
2026-09-28 17:46:24 +08:00
co-authored by Claude Opus 5.5
parent fa58df16eb
commit dc640931b1
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -14516,7 +14516,7 @@
## BUG-1079 | 全站实心按钮:层外 `button { color: inherit }` 压掉组件文字色,`.button-primary` 浅色 3.14:1,禁用态整体淡化 ## BUG-1079 | 全站实心按钮:层外 `button { color: inherit }` 压掉组件文字色,`.button-primary` 浅色 3.14:1,禁用态整体淡化
- 状态:待验收(分支 `codex/site-button-contrast-20260928` 本地提交,未推 staging、未部署;真机未走) - 状态:待部署核对(Claude 独立验收通过:新 build harness 全表达标、npm test 失败名单与基线 diff 为空;真机未走)
- 首次发现 / 最近更新:2026-09-28 / 2026-09-28 - 首次发现 / 最近更新:2026-09-28 / 2026-09-28
- 影响面:用户页面全部渲染为 `<button>` 的实心 `<Button>`(点数 / 订阅面板、星历、生时校正对话、输入框发送 / 停止键;报告页已由 BUG-1078 局部修过)、全部 `.button-primary`(登录、首次引导、人物档案、首页、生时校正各卡、兑换码付费墙、星盘资料表单、首页错误屏,共 30 个)、日期选择器选中日;全部实心按钮的禁用态。后台管理路由不加载 `globals.css`(只有字体、`antd/dist/reset.css` 与 `admin.css`),其中 52 个 shadcn `<Button>` 本来就没有任何 Tailwind 样式,不在本条影响面内(见下「另发现」)。 - 影响面:用户页面全部渲染为 `<button>` 的实心 `<Button>`(点数 / 订阅面板、星历、生时校正对话、输入框发送 / 停止键;报告页已由 BUG-1078 局部修过)、全部 `.button-primary`(登录、首次引导、人物档案、首页、生时校正各卡、兑换码付费墙、星盘资料表单、首页错误屏,共 30 个)、日期选择器选中日;全部实心按钮的禁用态。后台管理路由不加载 `globals.css`(只有字体、`antd/dist/reset.css` 与 `admin.css`),其中 52 个 shadcn `<Button>` 本来就没有任何 Tailwind 样式,不在本条影响面内(见下「另发现」)。
- 现象:产品在 BUG-1078 验收后要求全站扫一遍。Claude 用 AST 列出 213 个按钮,并用 staging 线上 CSS 在无头 Chrome 实测:实心 `<Button>` 浅色 #1d1d1f 在 #a9583e 上 3.33:1、深色 #f2f0ea 在 #d78064 上 2.57:1;`.button-primary` 与发送键浅色 #fbfaf7 在 #cc785c 上 3.14:1;禁用态 45% 透明,1.49–2.30:1。 - 现象:产品在 BUG-1078 验收后要求全站扫一遍。Claude 用 AST 列出 213 个按钮,并用 staging 线上 CSS 在无头 Chrome 实测:实心 `<Button>` 浅色 #1d1d1f 在 #a9583e 上 3.33:1、深色 #f2f0ea 在 #d78064 上 2.57:1;`.button-primary` 与发送键浅色 #fbfaf7 在 #cc785c 上 3.14:1;禁用态 45% 透明,1.49–2.30:1。
@@ -14528,5 +14528,5 @@
- 另发现(不在本条修复内):① 后台管理路由不加载 Tailwind,52 个 shadcn `<Button>` 渲染为 antd reset 下的无样式按钮;② 层外 `button, input, textarea, select { font: inherit; }` 同理压掉 `<Button>` 的 `text-sm`,用户页 `<Button>` 实际是 16px。两条都写进 `BLOCKED.md` 待产品决定是否立单。 - 另发现(不在本条修复内):① 后台管理路由不加载 Tailwind,52 个 shadcn `<Button>` 渲染为 antd reset 下的无样式按钮;② 层外 `button, input, textarea, select { font: inherit; }` 同理压掉 `<Button>` 的 `text-sm`,用户页 `<Button>` 实际是 16px。两条都写进 `BLOCKED.md` 待产品决定是否立单。
- 相关记录:BUG-1078(报告页局部修复,本条取代其覆盖)、BUG-738(action 两档对比度);`TASK-site-button-contrast-20260928`。 - 相关记录:BUG-1078(报告页局部修复,本条取代其覆盖)、BUG-738(action 两档对比度);`TASK-site-button-contrast-20260928`。
- 复发自:BUG-1078(同一根因,1078 只修了报告作用域) - 复发自:BUG-1078(同一根因,1078 只修了报告作用域)
- 修复版本:待推送 - 修复版本:`12aac87b` + 文档 `fa58df16`(推 staging 后回填部署 SHA)
@@ -121,3 +121,12 @@
- 无 Docker:24 条 DB / 部署套件同基线。 - 无 Docker:24 条 DB / 部署套件同基线。
- 无登录态真机:页面级走查按 `docs/testing/site-button-contrast-20260928.md`。 - 无登录态真机:页面级走查按 `docs/testing/site-button-contrast-20260928.md`。
- 未推送、未部署。 - 未推送、未部署。
## Claude 独立验收(2026-09-28)
- 删 `.next` 后重新 `next build`(Node 22.14):`/` ○ Static;首屏 gzip 130,915 B(与基线同,0.00%)。
- `tsc --noEmit` 0;`npm run lint` 0 error / 127 warning(同基线)。
- `npm test`:4248 / pass 4193 / fail 24 / skip 31 / cancelled 0;失败名单与上一轮合并验收(同代码基线)`diff` 为空。
- harness 读新 build 的 4 个用户页 CSS:D1 实心(`<Button>`、`.button-primary`、发送 / 停止、日历选中日、报告页)浅 4.85 / 深 5.77,悬停 6.52 / 5.10;实心禁用 opacity 1 灰底 4.10 / 3.95;`.danger-primary` 7.13 / 6.04(悬停 8.02 / 6.72);描边 / 幽灵 / 次要及其禁用与改前逐项相同(2.81 / 3.88 @0.45)。
- 核实执行方发现:后台 `/admin` 只加载 `antd/dist/reset.css` 与 `admin.css`,不加载 `globals.css`(`site-styles.ts` 仅被 `(app)` / login / 报告错误页引用),故扫描时计入的 52 个后台按钮不在本病范围,Claude 扫描口径有误,已更正。