refactor(grammar): OPEN-05a 批1+2 清零棘轮存量(54→15),上限同批下调

- 删 3 个零渲染点组件 service-value / solution-value / micro-interactions
  及其 3 个测试文件与 barrel 导出(dead-modules 被 barrel 再导出遮住,见 OPEN-16)
- 批1:section-header 等价类 / service-card 去 hover 抬升与装饰阴影 /
  standalone 详情 8 处圆角 + 2 处红面改中性底
- 批2:/about/brand font-black 11 → font-bold、rounded-full 5、hover:shadow 2
- MARKETING_HIT_CEILINGS R13 19→3 / R14 7→5 / R15 7→1 / R16 8→5 / R17 13→1;分母 80→77
- 基线 /about/brand 5 张(预测 5、实写 5);回滚重建实测 1 passed 证明失败全由本批引起
- 全量只读复跑 225 passed / 0 failed / EXIT=0(21.9 分钟)
- 门禁:type-check 0 · lint 0 error/88 warning · coverage 159 套件 1883 例 EXIT=0
This commit is contained in:
zhangxiang committed 2026-11-26 21:02:34 +08:00
1 parent d9d3b82f22
commit f41c57d638
21 files changed
+95 -961

No files matched your search

+6
View File
@@ -142,6 +142,12 @@ Closes #123
- 目录级:`components/content` 100×4 · `components/sections` 73.69 / 90.71 / 73.8 / 73.69 · `lib/cms` 91.93 / 92.77 / 92.68 / 91.93
- ⚠ 全局实测已高出门限 5.67–10.66 个点 ⇒ 棘轮当前**偏松**(未达本文件自订的「实测 −3~5pp」)。上调是独立动作,须单列提交,不夹带功能变更
- ⚠ `config/test/jest.config.js:28-29` 的注释把 **85.56 / 86.86 / 80.59 / 85.56** 与 `components/sections` 的 87.06 挂在「134 suites / 1697 tests」名下,属**跨轮错配**:85.56 那一组属于更早的 **132 suites / 1677 tests** 树(见 `docs/acceptance/2026-09-23-gates/final-verdict.md` §1),134/1697 轮次当时的全局值是 85.59 / 87.5 / 80.67 / 85.59(同文件 N-31④)。该文件不在本次修订范围内,故此处以注释纠偏说明代替改码;引用覆盖率时**以上述本树复跑值为准**,并同时给出复算命令:`npm run test:coverage 2>&1 | grep -E "All files|Test Suites:|^Tests:"`
- **实测(2026-11-26 本树复跑,ADR-0013 批 1+2 之后 `npm run test:coverage` ⇒ 159 suites / 1883 tests,`EXIT=0`、0 条 threshold 告警)**:
statements 89.86% / branches 88.46% / functions 89.55% / lines 89.86%
- 套件与用例数从 162/1904 降到 159/1883,**不是回归**:批 1 删掉三个**零渲染点**组件
(`detail/service-value.tsx` / `detail/solution-value.tsx` / `detail/micro-interactions.tsx`)
与其同名 3 个测试文件(21 例)。覆盖率反而上升(删除的组件自身覆盖低于全局均值)。
- ⚠ 全局实测高出全局门限 **4.5–14.9 个点** ⇒ 棘轮**偏松**,上调仍是独立动作。
### 4. 类型检查