Skip to content

feat(console): redesign settings modal UI - #315

Merged
Windsander merged 32 commits into
mainfrom
feat/console-settings-redesign
Nov 13, 2026
Merged

Windsander merged 32 commits into
mainfrom
feat/console-settings-redesign

Conversation

@Windsander

@Windsander Windsander commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

设置弹层 v2.4 最终版:保留 CRT 绿玻璃、扫描线、角标、零依赖与系统字体栈;不改 API、config、写路径或核心实现。

当前 head:913579b。已 rebase 到 origin/main@ca8a621(含 #316 / #317 的 CI 与行为修复)。

What changed

  • 外壳 / 栅格:760×720;关于本机 760×680;160px 左轨;内容左右 20px;≤900 横排页签,≤760 字段堆叠;390 无横向溢出。
  • 文字 / 控件:标题 15/700;分组 10 + 1.5 字距;只读行 12/18;辅助 11/16;字段标签 13/19;大数值 19;可见控件 27px / 8px、文字 12。
  • 行 / 面板:普通字段与本机运行各项均 40px,忆云为 58px;设置面板上下 padding 全 0,panel 自身承担 10px 圆角与裁切,首末行与中间一致。只读行左右 14px;无复制动作时不保留空 56px 列。
  • 常用 · 本机运行:常驻运行 / 立即重启 / 自动修复 / 重启向导均为 40px;常驻行也是 label + status/actions,无前置圆点或可见 subline,说明归 title。重启不藏「更多」,向导不在组头;「更多」仅保留取消常驻。所有常用动作按钮实测 116×27 / 8px。保留 data-svc-action、#settings-repair、#settings-open-wizard。
  • 状态 meta:P2P multiaddr 与邀请 URL 仅显示实际 host:port,不可解析为 —;不再用长串挤压行宽。
  • 记忆:分段外框 27px、content/内部选项 25px,选项 height:100% + border-box、圆角 0;运行状态纯文字 12/18。模型来源删除空 68px 状态列,wrapper min(280px,100%)、trigger 全宽并右对齐;1440/900/390 均为 280px,距面板外缘 15px(14 行内距 + 1 边框)。
  • 说明密度:普通 group/section hint、记忆页尾说明默认隐藏,全文由组/控件 title 承载;端口不一致、待重启、待批准等异常 warning 保持可见。
  • 安全:三卡 114,序号 01–03、19px 值、off=crt-dim、警告 left-bar 与 11px 审计一行流。
  • 关于本机:680 高、三组 + 三折叠、40px 行;旧 about 字段保留。
  • 空间验收:常用四项 + 40px 待重启条在 1440 实测 596/596;900 与 390 也均无滚动。

Invariants

  • 保留既有 data-settings-* / data-security-* / data-cfg-* 与动作钩子。
  • 不新增依赖、webfont、蓝底或第二套皮肤。
  • 保留改动即生效、Esc/点空白关闭、900/390 响应式与 reduced-motion。
  • 900 顶部横排后允许竖向滚动;普通字段仍保持 40px 与三列中线对齐,堆叠只发生在 ≤760。

Rebase / conflicts

Tests

  • npm run verify:console — 通过
  • console Jest — 16 suites / 234 tests
  • npm run lint — 通过
  • npm run check:docs — 7/7
  • npm run check:i18n — 1474 keys / 32 checks / 0 failed
  • 完整 UI 临时副本(仅跳过既有 fake-sidecar/C8f 段)— 433/433
  • CDP computed:四项行高、等宽按钮、下拉右缘、hint 隐藏、七页三档中线(≤1px)、banner 不滚动均通过
  • GitHub checks @ 913579b — all green(10/10)

Screenshots

  • docs/console/screens/u4-settings-redesign/ — 最终 v2.4 全量基线(160 轨、20px 呼吸、四项常驻组、短 meta、隐藏普通 hint、900/390、中英、reduced-motion)
  • docs/console/screens/u1/、u3/ — 对应设置截图同步刷新
  • docs/console/screens/u4-settings-redesign/README.md — 实测值与复跑说明

- u4: 新增设置弹层改版基线(1440 常用/记忆/安全/MCP/高级、900 记忆/安全、
  390 常用/记忆/安全、en-US 记忆/安全/常用、reduced-motion、rail 固定、
  关于本机叠层),新增 README 说明范围/文件表/复跑命令/既有 fake-sidecar 失败。
- u1/u3: 刷新 U-4 后的设置截图(u1 常用 1440/390 改为脚本输出名),
  README 注明刷新范围与最新基线位置;page-map 增加 u4 目录链接。
- console.css: 640 外框减 160 竖轨后,en-US 常驻行动作按钮被挤出内容列
  (桌面 i18n 密度断言 1440/1024 scrollerOver=75);按向导/修复行同一策略
  收紧 .settings-resident,修复后 scrollerOver=0。
- verify-console-ui.mjs: 英文深度页断言期待旧文案 Add assistant,
  实际与中文“+ 接入 Agent”一致为 + Add agent,改为 /Add agent/。
- 760x720 settings / 760x680 about, 188 rail, 530 content column
- 34/40/58 rows, 26 controls, 10/11/12/13/19 type scale
- grouped panels with 10px sentence-case labels (no fade rule, no pill)
- security: three 114px cards with 19px state values; pending strip stays conditional
- common: resident 58 row + accessible more menu; repair/wizard 40 rows keep hooks
- about: three groups + folds, full field parity with legacy about
- 40px pending-restart strip; narrow screens stay horizontal without overflow
- move kv/about stacking rules from <=900 to <=760; 900 keeps label/value on one line
- assert 900 row height 40, dt/value top diff <=2, no horizontal overflow in verify:console:ui
- refresh u1/u3/u4 settings screenshots (1440/900/390, en, reduced-motion, banner)
- document 760x720 / 188 rail / 680 about / 900 vertical scroll in docs
- memory: drop duplicate section descs; keep one 11px line per group (mode hint / source condition / runtime scope)
- model source: long explanation moves to title; lightweight keeps a single conditional line
- header note: 改动即生效;重启项自动重启。 / Changes apply now; restarts happen automatically.
- MCP: warning line only for an actual mcp.http.port mismatch
- refresh u1/u3/u4 settings screenshots and docs
- move runtimeCompareLine() out of .cfg-row; render as a static 11px warning row
- move field.warn help out of the 40px row as well
- keep 40px row, no focus dependency, no popover; siblings only when anomalous
- assert warn status + visible triple + row 40 + no overflow in verify:console:ui
- refresh MCP screenshots and u3/u4 docs
- service 'more' is a real button + fixed popover (aria-expanded, Esc, outside click, focus return); no longer counted as a fold
- update about (3 groups + 3 folds), security v2 cards (114/19px), rail 188, type 11/16 + 12/18, fold budget
- 900/anomaly assertions stay; about folds reopen per viewport; 390 card/slot shrink fixes
- refresh u1/u3/u4 screenshots and docs
- title 15/700, field labels 13/400, buttons 27, group labels uppercase, JetBrains first
- common: interface group wraps the language row; compress group rhythm to keep 720 + banner unscrolled
- security: 01-03 index column, 114 cards, 11px audit line from existing security events
- cfg-row 150/1fr/68; keep 40px rows, anomaly triple, 188 rail (review 160 is a doc conflict)
- update UI assertions, screenshots and docs
- wizard is a 27px ghost action in the group head (keeps #settings-open-wizard and desktop bridge)
- restore settings group rhythm to 12/8 (no 5/4), no row added to the panel
- 720 + 40 banner: content 579 / 590 (browser and desktop), no scroll
- 390 head wraps, no overflow; update wizard assertions and common screenshots
…er, segmented)

- rail 160; modal padding 18 0 18 20; scroll 20px sides; content 538 with 20px line/right breathing
- header inline: star + 15/700 title + 11 note, 57 total (18 + 38); header no longer flex-shrinks
- active tab: solid rgba(80,255,170,.06) + 2px left bar + bright text
- memory mode: single segmented frame, equal cells, active .10 + check; title chip removed
- runtime status: plain right-aligned values (no pills), amber only on anomalies, faint em dash
- cloud tags: current = green outline glow; archived = transparent border + dim
- more button = btn-crt ghost; off toggle/security value de-blued; security warn left bar
- new v2.2 assertions in verify-console + UI suite; screenshots and README refreshed (160, 57, 427/427)
- settings controls unified at 27px / 8px radius (button pad 0 10; input/select trigger 0 8)
- group body padding 0 + overflow hidden: first/last rows strictly 40/58, panel = rows + 2px border
- group notes/desc/foot and section-foot: full panel width, max-width none, 16px line-height, 14px inset (no 62ch)
- exception/warn lines drop the 62ch clamp, keep the amber left bar
- 390 repair row grows to 58 so its meta stays inside the panel
- v2.3 source + computed assertions (1440/390), screenshots and token-audit comparison refreshed
- rail tab letter-spacing back to 2px
- read-only rows (settings-kv / runtime-kv) 12px/18px labels and values
- settings scroll padding 16px top / 20px sides
- group panel insets: status 2px, resident 12px, cloud 0 (rows remain 40/58)
- add common status right meta (P2P listen / invite endpoint / security tier) at 11px plain text
- 720 + 40 banner: 558 / 596, no scroll; keep 160 rail, segmented, security, about
- v2.4 source + computed assertions (1440/390), screenshots and comparison refreshed
@Windsander
Windsander force-pushed the feat/console-settings-redesign branch from 9a1e7cd to 0fca7a2 Compare November 12, 2026 11:08
@Windsander
Windsander merged commit a558e8e into main Nov 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant