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 全绿
No files matched your search
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
@@ -30,7 +30,9 @@ assert.ok(source.includes("inst[id].version"), '应比较 inst[id].version')
|
||||
// v3.25.57:宿主提示词界面下线(改由 promptlib 插件提供),资源中心浮层的 resourceTab 钉点随组件删除
|
||||
assert.ok(!source.includes("resourceTab === 'prompts'"), '宿主不应再保留资源中心提示词 tab 实现')
|
||||
assert.ok(!css.includes('.iwb-leftrail'))
|
||||
assert.ok(css.includes('.iwb-res-tabs {'))
|
||||
assert.ok(css.includes('.iwb-res-tab-active {'))
|
||||
// v3.27.1(M4-B1):这两条与上一行注释矛盾 —— 注释说「随组件删除」,断言却还要求存在。
|
||||
// 现在反过来钉「不得复活」:标签统一到 .iwb-tab / .iwb-tab-active 一套。
|
||||
assert.ok(!css.includes('.iwb-res-tabs {'))
|
||||
assert.ok(!css.includes('.iwb-res-tab-active {'))
|
||||
assert.ok(css.includes('.iwb-overlay.drawer-open .iwb-canvas { left: 0 !important;'))
|
||||
console.log('left resource layout checks passed')
|
||||
@@ -42,7 +42,11 @@ assert.ok(source.includes('if (!homeManage) openCanvasEditor(w.id)'))
|
||||
assert.ok(source.includes("iwb-rename-input"))
|
||||
assert.ok(source.includes("'确定彻底删除画布「' + (w.name || '未命名画布') + '」?此操作不可恢复。'"))
|
||||
assert.ok(!source.includes('Codex 未连接'))
|
||||
assert.ok(css.includes('.iwb-res-tabs'))
|
||||
// v3.27.1(M4-B1):标签收敛为唯一一套。资源中心的三段式页签已随新 UI 下线(dist 里
|
||||
// iwb-res-tab 出现 0 次,只剩 e2e 里的过时 locator),这里反过来断言它不得复活。
|
||||
assert.ok(!css.includes('.iwb-res-tabs'), 'v3.27.1:资源中心旧页签已删除,统一到 .iwb-tab')
|
||||
assert.ok(!css.includes('.iwb-drawer-tab'), 'v3.27.1:抽屉页签已删除(已被停靠栏取代)')
|
||||
assert.ok(!css.includes('.iwb-rail-tab'), 'v3.27.1:右竖栏页签已删除(无生产者)')
|
||||
assert.ok(css.includes('.iwb-home-card-title strong { font-size: 15px;'))
|
||||
// v3.1.0 首页灰色系:蓝 accent 清零(激活项/胶囊/chip/星标全走墨色或灰阶)
|
||||
assert.ok(/\.iwb-tab-home\.iwb-tab-active \{[^}]*background: transparent/.test(css)) // 首页按钮无选中底色
|
||||
@@ -65,7 +69,10 @@ assert.ok(css.includes('--iwb-brand: #6b7280'), 'v3.26.44:品牌色恢复为
|
||||
assert.ok(css.includes('--iwb-brand-text:'), '品牌色的文字版必须独立存在(暗色下填充色当文字只有 3.9:1)')
|
||||
// v3.26.42:半透明底色的基色由 --iwb-text 换成 --iwb-tint(tint 默认 = 派生文字色,视觉不变;
|
||||
// 分离的目的:外观面板调字体颜色时,悬停/标签/分隔底色不被连带改掉)
|
||||
assert.ok(/\.iwb-tab-active \{ background: color-mix\(in srgb, var\(--iwb-tint\) 9%, transparent\)/.test(css))
|
||||
// v3.27.1(M4-B1):激活态收敛为唯一一条 —— 品牌淡底 + 品牌字 + 600。
|
||||
// 此前是 tint 9% 中性底,与「选中=品牌高亮」的设计语言不一致;5 套变体各写一份也已删除。
|
||||
assert.ok(/\.iwb-tab-active \{ background: color-mix\(in srgb, var\(--iwb-brand\) 14%, transparent\); color: var\(--iwb-brand-text/.test(css), 'v3.27.1:标签激活态应为品牌淡底')
|
||||
assert.ok(/\.iwb-tab \{[^}]*height: var\(--iwb-tab-h\)[^}]*border-radius: var\(--iwb-tab-radius\)/.test(css), 'v3.27.1:标签高度/圆角必须走 token')
|
||||
assert.ok(!/(#4f6ef7|#6366f1|#3b82f6|#0ea5e9|#8b5cf6)/i.test(css))
|
||||
assert.ok(!/(#4f6ef7|#6366f1|#3b82f6|#0ea5e9|#8b5cf6|#f59e0b|#10b981)/i.test(source))
|
||||
// v3.1.0 资源中心面板灰阶化:选中分类胶囊=浅白灰、标签/星标/页签/高亮全去蓝;首页改名按钮去底色
|
||||
|
||||
@@ -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; }'))
|
||||
|
||||
@@ -19,6 +19,6 @@ assert.ok(!source.includes("railBtn('groups'"))
|
||||
assert.ok(!source.includes("railBtn('history'"))
|
||||
assert.ok(css.includes('.iwb-product-nav'))
|
||||
assert.ok(css.includes('.iwb-landing-panel'))
|
||||
assert.ok(css.includes('.iwb-res-tabs'))
|
||||
assert.ok(!css.includes('.iwb-res-tabs'), 'v3.27.1:资源中心旧页签已删除(统一到 .iwb-tab)')
|
||||
assert.ok(!css.includes('.iwb-left-drawer'))
|
||||
console.log('three page layout checks passed')
|
||||