Skip to content

Commit f193808

Browse files
committed
test(ui): resync ratchet baselines after split
1 parent 343b38f commit f193808

5 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎app/src/ui/primitives/nativeButtonBaseline.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,9 @@ export const SPLIT_MOVES: readonly string[] = [
176176
// `<button>` 随 `✨ 发起任务` 菜单整段搬进 `components/chat/ChatLaunchMenu.tsx`。
177177
// 守恒:新家 3 + 源文件今日 2 == 基线 `pages/ChatPage.tsx` 的 5(原 5 = 这 3 + 转笔记 + 前往设置)。
178178
"components/chat/ChatLaunchMenu.tsx|pages/ChatPage.tsx",
179+
// 批 5 T2(C9 拆件 A):面板的「原料视图 / 笔记预览」两个原生 `<button>` 随切换器行整段搬进
180+
// `components/session-detail/SessionViewHost.tsx`(DOM 顺序契约:与 `SessionRefineSection` 同行)。
181+
// 守恒:新家 2 + 源文件今日 0 == 基线 `components/SessionDetailPanel.tsx` 的 2
182+
// (原 3 = 这 2 + `SessionRefineSection` 迁走的 1;棘轮只数到源文件里剩的那 2)。
183+
"components/session-detail/SessionViewHost.tsx|components/SessionDetailPanel.tsx",
179184
];

‎app/src/ui/primitives/statusLineBaseline.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export const FROZEN_RED_BY_FILE: Readonly<Record<string, number>> = {
7676
"components/review/ReviewSessionPanel.tsx": 1,
7777
"components/SealToggle.tsx": 1,
7878
"components/session-detail/SessionDetailHeader.tsx": 1,
79-
"components/SessionDetailPanel.tsx": 1,
8079
"components/SessionSelectionToolbar.tsx": 1,
8180
"components/SpeakerSwitchCard.tsx": 1,
8281
"components/StructureImageSection.tsx": 1,
@@ -90,4 +89,4 @@ export const FROZEN_RED_BY_FILE: Readonly<Record<string, number>> = {
9089
};
9190

9291
/** 全仓三红十六进制字面量的**冻结总数**(= 上面逐文件之和的独立校验和,只许降) */
93-
export const FROZEN_RED_TOTAL = 114;
92+
export const FROZEN_RED_TOTAL = 113;

‎app/src/ui/primitives/surfaceBaseline.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
*/
7272

7373
/** 棘轮一 · 卡片边框 `1px solid #e5e7eb`(含复合写法)的冻结总数(只许降;T17-B 收紧:240 → 226) */
74-
export const FROZEN_BORDER_TOTAL = 226;
74+
export const FROZEN_BORDER_TOTAL = 223;
7575

7676
/** 相对 `app/src` 的路径 → 该文件允许的边框字面量**处数上限**(只许降;未登记文件命中即红) */
7777
export const FROZEN_BORDER_BY_FILE: Readonly<Record<string, number>> = {
@@ -110,7 +110,7 @@ export const FROZEN_BORDER_BY_FILE: Readonly<Record<string, number>> = {
110110
"components/RefineLaunchDialog.tsx": 2, "components/RefineStrategyPicker.tsx": 2,
111111
"components/RefineWorkbench.tsx": 6, "components/RichEditorView.tsx": 4,
112112
"components/RouteInfoPopover.tsx": 5, "components/ScreenSelectOverlay.tsx": 3,
113-
"components/SecondPassPanel.tsx": 2, "components/SessionDetailPanel.tsx": 3,
113+
"components/SecondPassPanel.tsx": 2,
114114
"components/SessionListBody.tsx": 1, "components/SessionListPanel.tsx": 4,
115115
"components/SessionRowContextMenu.tsx": 1, "components/SessionSearchBar.tsx": 1,
116116
"components/SessionSelectionToolbar.tsx": 1, "components/SopRunOverlay.tsx": 4,
@@ -127,7 +127,7 @@ export const FROZEN_BORDER_BY_FILE: Readonly<Record<string, number>> = {
127127
};
128128

129129
/** 棘轮二 · 越界圆角 `6|12|14|999|2` 的冻结总数(`3/4/5/8/10` 与 `0` 按映射表处理,不入棘轮;T17-B 收紧:270 → 261) */
130-
export const FROZEN_RADIUS_OUTLIER_TOTAL = 261;
130+
export const FROZEN_RADIUS_OUTLIER_TOTAL = 260;
131131

132132
/** 相对 `app/src` 的路径 → 越界圆角的**处数上限**(只许降;迁移时换成 `radius="…"` 档位) */
133133
export const FROZEN_RADIUS_OUTLIER_BY_FILE: Readonly<Record<string, number>> = {
@@ -168,7 +168,7 @@ export const FROZEN_RADIUS_OUTLIER_BY_FILE: Readonly<Record<string, number>> = {
168168
"components/RefineStrategyPicker.tsx": 3, "components/RefineWorkbench.tsx": 4,
169169
"components/RichEditorView.tsx": 1, "components/RouteInfoPopover.tsx": 3,
170170
"components/ScreenSelectOverlay.tsx": 5, "components/SecondPassPanel.tsx": 2,
171-
"components/SessionDetailPanel.tsx": 1, "components/SessionListPanel.tsx": 3,
171+
"components/SessionListPanel.tsx": 3,
172172
"components/SessionRowContextMenu.tsx": 1, "components/SessionSearchBar.tsx": 1,
173173
"components/SessionSearchHits.tsx": 1, "components/SessionSelectionToolbar.tsx": 2,
174174
"components/SopRunOverlay.tsx": 3, "components/SpeakerSwitchCard.tsx": 1,
@@ -217,8 +217,8 @@ export const FROZEN_SURFACE_TAG_TOTAL = 14;
217217
* `file/value` = 一个**具名文件**的冻结值(防"仪器静默失效后所有计数都变 0 而总数判据仍绿")。
218218
* T17-B 同步:边框条目 111 → 108 · 圆角条目 112 → 109 · 阴影条目 24(不变)。
219219
*/
220-
export const BORDER_ANCHOR = { entries: 108, file: "components/action-center/ActionCenterPanel.tsx", value: 11 } as const;
221-
export const RADIUS_OUTLIER_ANCHOR = { entries: 109, file: "components/KnowledgeSystemWizard.tsx", value: 9 } as const;
220+
export const BORDER_ANCHOR = { entries: 107, file: "components/action-center/ActionCenterPanel.tsx", value: 11 } as const;
221+
export const RADIUS_OUTLIER_ANCHOR = { entries: 108, file: "components/KnowledgeSystemWizard.tsx", value: 9 } as const;
222222
export const SHADOW_ANCHOR = { entries: 24, file: "components/NoteRowContextMenu.tsx", value: 1 } as const;
223223

224224
/** 阴影残留的分类:`exception` = 结构上表达不了 · `anchored-menu` = B1 锚定菜单(不迁原语)· `backlog` = 切片外余量 */

‎app/src/ui/primitives/surfaceResidual.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export const BORDER_RESIDUAL: readonly { file: string; kind: SurfaceResidualKind
5353
{ file: "components/RichEditorView.tsx", kind: "b1-non-migrated", count: 4 },
5454
{ file: "components/RouteInfoPopover.tsx", kind: "b1-non-migrated", count: 5 },
5555
{ file: "components/ScreenSelectOverlay.tsx", kind: "b1-non-migrated", count: 3 },
56-
{ file: "components/SessionDetailPanel.tsx", kind: "conditional-color", count: 1 },
5756
{ file: "components/SessionListPanel.tsx", kind: "conditional-color", count: 1 },
5857
{ file: "components/SessionRowContextMenu.tsx", kind: "b1-non-migrated", count: 1 },
5958
{ file: "components/SystemStatusBadge.tsx", kind: "anchored-menu", count: 1 },

‎app/src/ui/primitives/textBaseline.ts‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
* 副作用:无(纯数据,被 `textRatchet.test.ts` 读)。边界:**棘轮只许降** —— 真迁走一处要**手工收紧**
3030
* (`FROZEN_*_TOTAL` 必须恰等于逐文件之和;常数不许手工改成自洽)。
3131
*/
32-
export const FROZEN_MUTED_GRAY_TOTAL = 64;
32+
export const FROZEN_MUTED_GRAY_TOTAL = 63;
3333

3434
/** 弱化灰冻结**文件数**(条目数;迁移清零一个文件 ⇒ 必须删键,条目数随之降) */
35-
export const FROZEN_MUTED_GRAY_FILES = 44;
35+
export const FROZEN_MUTED_GRAY_FILES = 43;
3636

3737
/** 字号越界冻结**总处数**(= `FROZEN_FONT_OOB_BY_FILE` 逐文件之和;只许降) */
38-
export const FROZEN_FONT_OOB_TOTAL = 558;
38+
export const FROZEN_FONT_OOB_TOTAL = 551;
3939

4040
/** 字号越界冻结**文件数**(条目数;只许降) */
4141
export const FROZEN_FONT_OOB_FILES = 120;
@@ -45,7 +45,7 @@ export const FROZEN_FONT_OOB_FILES = 120;
4545
* ⚠️ **T16-B 换锚**:T16-A 的锚(`LiveActivityPanel` 9)正是本单元的迁移目标(9 → 2)⇒ 随迁移失效。
4646
* 新锚 = `NoteLinkToSystem.tsx`:5 处**全部**是登记例外(B1 硬守卫 + 品牌青三元)⇒ 无裁决不可能下降。
4747
*/
48-
export const ANCHOR_MUTED_GRAY = { file: "components/NoteLinkToSystem.tsx", count: 5, files: 44 } as const;
48+
export const ANCHOR_MUTED_GRAY = { file: "components/NoteLinkToSystem.tsx", count: 5, files: 43 } as const;
4949
export const ANCHOR_FONT_OOB = { file: "components/action-center/ActionCenterPanel.tsx", count: 19, files: 120 } as const;
5050

5151
/**
@@ -90,7 +90,6 @@ export const FROZEN_MUTED_GRAY_BY_FILE: Readonly<Record<string, number>> = {
9090
"components/RichEditorView.tsx": 1,
9191
"components/RouteInfoPopover.tsx": 3,
9292
"components/SecondPassPanel.tsx": 1,
93-
"components/SessionDetailPanel.tsx": 1,
9493
"components/SessionListPanel.tsx": 1,
9594
"components/TaskConversationView.tsx": 1,
9695
"components/VideoImportPanel.tsx": 1,
@@ -159,7 +158,6 @@ export const RESIDUAL: readonly { file: string; kind: TextResidualKind; reason:
159158
{ file: "components/RichEditorView.tsx", kind: "b1-non-migrated", reason: "B1/B2 硬守卫(同上,`buttonMigration.test.ts` 的 `EXCLUDED` 逐字点名):高亮气泡文件整体不迁 ⇒ 快捷键提示不迁" },
160159
{ file: "components/RouteInfoPopover.tsx", kind: "b1-non-migrated", reason: "B1/B2 硬守卫(同上):ⓘ 弹层文件整体不迁 ⇒ `:310`(重复合并对)/ `:351`(影响面提示)不迁;`:234` 是原生 `<button onClick>`(关闭)⇒ `Button` 域" },
161160
{ file: "components/SecondPassPanel.tsx", kind: "ternary-no-equivalent", reason: "A 类三支三元(adopted #047857 / rejected 灰 / 其余 #b45309):琥珀支语义是「待裁决」,`due` 是到期刻度 ⇒ 无反例安全的等价档" },
162-
{ file: "components/SessionDetailPanel.tsx", kind: "ternary-no-equivalent", reason: "A 类三元:`:221` 非灰支 #0d9488 品牌青(字幕来源标记)⇒ 无等价档" },
163161
{ file: "components/SessionListPanel.tsx", kind: "interactive", reason: "原生 `<button onClick title>`(折叠列表;`{...btn}` 样式常量)⇒ `Button` 域(批 5/7)" },
164162
{ file: "components/TaskConversationView.tsx", kind: "interactive-no-equivalent", reason: "原生 `<button disabled>`(重试)+ 非灰支 #b91c1c(三红 / StatusLine 领域)+ `background` 三元 ⇒ 交互 + 无等价档" },
165163
{ file: "components/VideoImportPanel.tsx", kind: "interactive-no-equivalent", reason: "原生 `<button disabled>` + 非灰支 #fff(品牌青实底白字)⇒ 交互 + 无等价档" },
@@ -264,7 +262,7 @@ export const FROZEN_FONT_OOB_BY_FILE: Readonly<Record<string, number>> = {
264262
"components/ScreenSelectOverlay.tsx": 1,
265263
"components/SealToggle.tsx": 2,
266264
"components/SecondPassPanel.tsx": 9,
267-
"components/SessionDetailPanel.tsx": 8,
265+
"components/SessionDetailPanel.tsx": 1,
268266
"components/SessionListBody.tsx": 1,
269267
"components/SessionListPanel.tsx": 2,
270268
"components/SessionListRow.tsx": 7,

0 commit comments

Comments
 (0)