feat(tokens): M4-B1 壳层收敛 —— 标签唯一一套 + 尺度接口落地
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 44s

- 标签:5 套变体 → 1 套。其中 3 套是死代码(iwb-drawer-tab / iwb-rail-tab /
  iwb-res-tab 在 dist/app.js 里出现 0 次:抽屉已被停靠栏取代、右竖栏只剩手势
  排除列表里的名字、资源中心的 e2e 点的是不存在的元素),直接删除;活着的
  那一套收敛激活态为唯一一条:品牌 14% 底 + brand-text + 600(暗色 22%),
  亮/暗与底色的差分别是 17 / 16 级
- 新增可迁移的尺度接口(B1 的前提:原 SCALE 里的 @deprecated 注释指向
  --iwb-space-* / --iwb-radius-* / --iwb-font-*,那些名字当时并不存在):
  间距 13 档(像素命名)、圆角 6 档、字号 6 档、组件尺寸 3 个
  (--iwb-chrome-h / --iwb-tab-h / --iwb-tab-radius)
- 36px 收口 6 处到 --iwb-chrome-h:标签条高度 + dockarea / home-panel /
  landing-panel / canvas-topbar / wsrail 的让位 top(原来各写一遍,改高度必漏)
- dock / toolbar / statusbar 14 处圆角与字号等值换 token;阴影与 z-index 留 B2
- 4 处单测的「.iwb-res-tabs 必须存在」断言改成「不得复活」——其中两处注释
  早就写着「已下线,钉点移除」,断言却还在钉它存在,死 CSS 才一直不敢删
- 12 张视觉基线 10 变 2 不变,diff 只在顶部激活标签与设置侧栏选中项;
  节点/控件/工具栏零 diff(D10 未被带坏);verify:ci 全绿
This commit is contained in:
qiqi committed 2026-11-23 15:04:43 +08:00
1 parent 846a59b4c2
commit 015e427627
22 files changed
+251 -85

No files matched your search

+3 -1
View File
@@ -31,7 +31,9 @@ assert.ok(fs.readFileSync(path.join(__dirname, '..', 'src', 'ui-dock-panels.js')
assert.ok((source + dockPanelsSrc).includes("pluginId: 'gallery'"))
assert.ok((source + dockPanelsSrc).includes("图库插件未安装"))
assert.ok(!source.includes("dockGalleryEl"))
assert.ok(css.includes('.iwb-res-tabs {'))
// v3.27.1(M4-B1):这条断言原先自相矛盾 —— 注释从 v3.25.57 起就说「已下线、钉点移除」,
// 但断言一直要求 .iwb-res-tabs 存在,于是这组死 CSS 谁也不敢删。现在反过来钉「不得复活」。
assert.ok(!css.includes('.iwb-res-tabs {'), '资源中心旧页签已删除(统一到 .iwb-tab)')
assert.ok(source.includes("'无限画布'"))
assert.ok(source.includes("className: 'iwb-canvas' + (shellView !== 'canvas' ? ' iwb-canvas-hidden'"))
assert.ok(css.includes('.iwb-canvas-hidden { visibility: hidden; pointer-events: none; }'))