Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
217eb21
feat(console): add settings rail shell
Windsander Nov 9, 2026
f372bb2
feat(console): unify settings row template and status column
Windsander Nov 9, 2026
1e132e3
feat(console): express security card states
Windsander Nov 9, 2026
c5a3dbc
feat(console): move model source into memory tab
Windsander Nov 9, 2026
e0a7dee
style(console): tighten settings danger and motion tokens
Windsander Nov 9, 2026
cea6b86
docs(console): refresh settings redesign baselines
Windsander Nov 9, 2026
ba9de51
refactor(console): compact common settings rows
Windsander Nov 10, 2026
4642007
fix(console): fix settings modal height
Windsander Nov 10, 2026
d13cd18
feat(console): align settings internals with design draft
Windsander Nov 10, 2026
05d18d8
style(console): keep cloud group on CRT surface
Windsander Nov 10, 2026
22ad449
fix(console): keep Chinese settings typography and stabilize UI smoke
Windsander Nov 10, 2026
5edce8c
docs(console): refresh Chinese settings baselines
Windsander Nov 10, 2026
219a0e2
style(console): match about tab to design draft
Windsander Nov 10, 2026
e1295b0
style(console): slim the about entry without divider
Windsander Nov 10, 2026
cf7ad54
style(console): tuck about icon next to label
Windsander Nov 10, 2026
c1d3e9e
feat(console): settings v2 shell, security cards and about groups
Windsander Nov 11, 2026
0a9b79c
style(console): tighten settings group rhythm for 720 with banner
Windsander Nov 11, 2026
db35a20
fix(console): keep 40px rows at 900; refresh v2 screenshot baselines
Windsander Nov 11, 2026
5073a17
style(console): one help line per settings group; tighten header note
Windsander Nov 11, 2026
762f8ee
fix(console): always show exception triple below the field row
Windsander Nov 11, 2026
36d9e93
test(console): align UI assertions with v2; drop details-based more menu
Windsander Nov 11, 2026
06328f9
feat(console): v2.1 design-review alignment (settings only)
Windsander Nov 11, 2026
3bf9669
style(console): move restart guide to the resident group head
Windsander Nov 11, 2026
5b49db8
style(console): ghost styling for the group-head wizard action
Windsander Nov 11, 2026
185ccdb
style(console): v2.2 settings grid calibration (160 rail, inline head…
Windsander Nov 11, 2026
7a88132
style(console): v2.3 shared control tokens for settings
Windsander Nov 12, 2026
e1d19e4
style(console): v2.4 typography and spacing calibration for settings
Windsander Nov 12, 2026
cff2ebf
style(console): align settings with measured design metrics
Windsander Nov 12, 2026
0fca7a2
fix(console): flatten settings actions and hide routine hints
Windsander Nov 12, 2026
487b37e
test(console): align C8f assertion with hidden hints
Windsander Nov 13, 2026
ed26489
fix(console): unify settings row and control geometry
Windsander Nov 13, 2026
913579b
fix(console): align settings labels and action controls
Windsander Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions docs/console/page-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

**设备名归一化(F-ONB-1)**:设备名先 sanitize,再去掉**所有重复的 `device-` 前缀**,最后拼一次前缀 —— 输入 `TestB` / `device-TestB` / `device-device-TestB` 都得到 `device-TestB`;空名 → `device-local`。两个输入框带「将使用 deviceId: …」实时预览。

设置弹层分五个 Tab:**常用**(默认开,只读状态 + 重启向导 + 忆云卡)· **安全**(三张状态卡:安全等级 / 动态码种子 / 恢复码,待批准一行)· **AI 助手** · **MCP 接入**(连接 / TLS 两组 + 危险与自救)· **高级**(常驻服务 / 网络 / 自动化三组 + 底部「诊断与恢复」折叠);只读信息统一在**「关于本机」**面板(点顶栏状态徽章 `本机 · <deviceId>` 打开)。
设置弹层分六个 Tab:**常用**(默认开,只读状态 + 重启向导 + 忆云卡)· **安全**(三张状态卡:安全等级 / 动态码种子 / 恢复码,待批准一行)· **记忆**(记忆模式 / 模型来源 / 模型状态 / 运行状态)· **集成**(AI 助手)· **MCP 接入**(连接 / TLS 两组 + 危险与自救)· **高级**(常驻服务 / 网络 / 自动化三组 + 底部「诊断与恢复」折叠);只读信息统一在**「关于本机」**面板(点顶栏状态徽章 `本机 · <deviceId>` 打开)。

**U-1 折叠预算(≤5,当前 3)**:设置内只允许 `MCP 接入 · 危险与自救`、`诊断与恢复`(含 raw config / 手动连接 / 恢复指引);关于本机只保留一个 `运行状态(只读)`。邀请面板**不再有详情折叠**。字段帮助/风险改内联一行,不再有逐字段/逐卡「详情」「这是什么」或页级「改动如何生效」「高级项说明」。白名单单一真源:`IA_SETTINGS_FOLDS`。

Expand All @@ -24,7 +24,7 @@ IA 单一真源在 [`packages/console/settings-ia.js`](../../packages/console/se

**术语**:用户可见文案中表示本机所处共享网络的「网络 / Mebular」统一为「**忆云**」;产品名「Mebular 控制台」不变,「记忆域 / 记忆」不变。

E1 前后对比截图:[`screens/e1/`](screens/e1/)。U-1 设置/共享页收口前后对比:[`screens/u1/`](screens/u1/)。U-3 设置页设计收口(安全 / MCP / 高级)前后对比:[`screens/u3/`](screens/u3/)。
E1 前后对比截图:[`screens/e1/`](screens/e1/)。U-1 设置/共享页收口前后对比:[`screens/u1/`](screens/u1/)。U-3 设置页设计收口(安全 / MCP / 高级)前后对比:[`screens/u3/`](screens/u3/)。U-4 设置弹层 v2 基线(760×720 / 关于 760×680 / 160 竖轨 / 34-40-58 行 / 安全卡 114+19px):[`screens/u4-settings-redesign/`](screens/u4-settings-redesign/)。900 档顶部横排,允许竖向滚动;390 行堆叠、无横向溢出。

**顶栏(E1/E2-A2)**:品牌后是当前**忆云**徽章(名字只取 `overview.cloud.name`;旧守护没有该字段时隐藏,绝不按端口/目录猜)。操作为对称的「加入忆云」(次要)与「邀请设备」(主),窄屏折叠为图标;「连接已有地址」已撤下——它实际是**网内传输修复**,入口移到「高级 → 诊断与恢复 → 手动连接已知设备…」与设备卡「连不上?手动连接…」(不改变入网信任、不签发授权)。

Expand Down Expand Up @@ -60,7 +60,7 @@ E1 三卡迁出后,常用不再承载可编辑字段,也不再重复全局
- 只读状态:P2P、邀请服务、安全等级。
- 忆云卡(切换 / 改名;只能在设置内完成)。
- 邀请设备只在顶栏 `#invite-device`;共享页空态只保留「+ 新建记忆域」。
- 其余可编辑配置在「高级」与「MCP 接入」;安全动作在「安全」。
- 其余可编辑配置在「记忆」(模型来源)、「高级」与「MCP 接入」;安全动作在「安全」。

## 安全(S3 · 独立 Tab)

Expand All @@ -87,6 +87,17 @@ E1 三卡迁出后,常用不再承载可编辑字段,也不再重复全局
- 顶栏只读徽章 `🛡 安全:低/中/高`(点击 = 打开「安全」Tab);桌面托盘同样有一行只读「安全等级」,点击只打开控制台,不做壳内写操作。
- 前后对比截图(活体 / mock / 窄屏 / 审计):[`screens/security-tiers/`](screens/security-tiers/);U-3 收口:[`screens/u3/`](screens/u3/)。

## 记忆(记忆模式 / 模型来源 / 状态)

顺序固定:**记忆模式** → **模型来源** → **模型状态** → **运行状态** → 说明。

- **记忆模式**:轻量 MCP / 沉浸式两档;轻量不启动记忆运行时,也不显示模型状态。
- **模型来源**:sidecar `config.json` 的 `model.source`(`heuristic / local / host / api / auto`,默认 `heuristic`);只影响记忆抽取与摘要,不改对话模型。选择 `local` 时在同一设置项内展开本地模型的下载 / 启用 / 删除列表;轻量模式禁用并提示「切换到沉浸式后可调整模型来源」。
- **模型状态**:仅沉浸式显示当前生效模型与降级原因;模型来源可在上方调整,失败只降级。
- **运行状态**:只读 `mode / state / degraded / error / version`,不显示 token / PID / 配置路径。

> 模型下载/启用轮询只在「记忆」页且正在浏览本地模型、页面可见时进行;离开该页即停。

## MCP 接入(独立 Tab,危险项)

U-3 收成两组:**连接**(`mcp.http.port` · `mcp.http.auth` · `mcp.http.host`)与 **TLS**(`mcp.http.tls` · `mcp.http.tlsCert` · `mcp.http.tlsKey`)。改端口/认证/监听/TLS 会立即影响控制台自身访问方式;字段帮助内联一行,唯一的 `MCP 接入 · 危险与自救` 折叠保留后果与两条恢复路径(bearer 粘贴 token 自救;oauth/端口失联改回 `config.json` 并重启)。bearer 模式首次 401 时用 App 内「输入访问令牌」弹层(Electron 不支持 `window.prompt`)。命中自锁项时关键警告会进入二次确认弹层。
Expand All @@ -95,6 +106,8 @@ U-3 收成两组:**连接**(`mcp.http.port` · `mcp.http.auth` · `mcp.http.

## 高级(常驻服务 / 网络 / 自动化 + 诊断)

模型来源已迁到「记忆」;高级只保留下面三组可编辑字段与底部「诊断与恢复」折叠。

| 分组 | 字段 |
|---|---|
| 常驻服务 | `joinService.enabled` · `joinService.bind` · `joinService.port` |
Expand Down Expand Up @@ -133,7 +146,7 @@ U-3 顺序:**版本与服务状态** · **完整配置** · **最近一次应

## 改动即生效(无「保存 / 撤销」按钮)

「高级」与「MCP 接入」的字段**改动即写入**(勾选/选择立即、文本/数字失焦即写;写入前仍会做 host/auth/tls 组合校验);保存按钮已从用户路径消失。
「高级」「MCP 接入」与「记忆(模型来源)」的字段**改动即写入**(勾选/选择立即、文本/数字失焦即写;写入前仍会做 host/auth/tls 组合校验);保存按钮已从用户路径消失。

**生效(G)**:

Expand Down
8 changes: 6 additions & 2 deletions docs/console/screens/u1/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
> **v2 刷新(2026-11-11)**:设置外框 640 → **760**、左轨 **160**(v2.2 校准),设置高 **720**、关于 **680**;行 **34/40/58**、分组标签 10px/1.5、安全卡 114 + 19px。本目录 `u1-after-settings-common.jpg` / `u1-after-settings-common-390.jpg` 已按 v2 重新生成(常用页:同行 header + 160 轨 + 语言 + 常驻 58 + 修复 40 + 只读 3×40 + 忆云 2×58)。900 档顶部横排、允许竖向滚动;390 只读行两行、无横向溢出。全量基线见 `../u4-settings-redesign/`。

# U-1 · 设置/共享页 UI 收口(前后对比)

基线:main `f1a1219`。截图由 `verify-console-ui.mjs`(真实 serve + headless Chrome)与同一临时 home 的 Playwright 截图生成。

> **U-4 刷新(2026-11-10)**:设置弹层改为「左侧竖轨 + 固定外壳 + 统一行模板」,常用页基线已刷新为 `u1-after-settings-common.jpg`、`u1-after-settings-common-390.jpg`(脚本原始输出名 `u1-after-settings-common*`)。旧 `after-settings-common*.jpg` 已移除。安全 / MCP / 高级的后续基线以 `../u3/` 为准,U-4 全量基线见 `../u4-settings-redesign/`。同日按 Kimi 设置稿对齐:分组标题 10px / 1.5 字距,状态/常驻/忆云组内只加一层 CRT 内嵌面板(设计稿的 card),不引入第二层卡片或蓝底。

## 折叠预算

| 范围 | before | after |
Expand All @@ -15,15 +19,15 @@

| 文件 | 说明 |
|---|---|
| `before-settings-common.jpg` / `after-settings-common.jpg` | 设置·常用:删除重复「邀请设备」入口;统一 section 标题/间距;无卡片套卡片 |
| `before-settings-common.jpg` / `u1-after-settings-common.jpg` | 设置·常用(U-4 竖轨版已刷新):删除重复「邀请设备」入口;统一 section 标题/间距;外框单卡,状态/常驻/忆云组内仅一层 CRT 内嵌面板;语言行 + 常驻/修复行 |
| `before-settings-advanced.jpg` / `after-settings-advanced.jpg` | 高级:页级说明改为一行;字段帮助内联;底部诊断折叠 |
| `before-settings-mcp.jpg` / `after-settings-mcp.jpg` | MCP 接入:六字段 + 一个「危险与自救」折叠 |
| `before-settings-security.jpg` / `after-settings-security.jpg` | 安全:有资格设备一行计数;档位边界内联 |
| `after-about-runtime.jpg` | 关于本机:身份/存储/收敛 + 单一「运行状态(只读)」折叠 |
| `before-shared-empty.jpg` / `after-shared-empty.jpg` | 共享页空态:只留「+ 新建记忆域」 |
| `before-shared-list.jpg` / `after-shared-list.jpg` | 共享页有域:域目录/订阅状态/参与设备;无邀请 CTA |
| `before-invite.jpg` / `after-invite.jpg` | 历史截图:邀请单屏(当时含「邀请设备 · 详情」;该折叠已移除,现为 TTL + 重新生成) |
| `after-settings-common-390.jpg` | 390px 设置·常用:无横向溢出 |
| `u1-after-settings-common-390.jpg` | 390px 设置·常用(U-4 刷新):页签换行、常驻/修复行不挤压按钮、无横向溢出 |

## 文案/动作断言

Expand Down
Binary file modified docs/console/screens/u1/after-settings-advanced.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed docs/console/screens/u1/after-settings-common.jpg
Binary file not shown.
Binary file modified docs/console/screens/u1/after-settings-mcp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u1/after-settings-security.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/console/screens/u3/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
> **v2 刷新(2026-11-11)**:设置壳改为 760×720(关于 760×680)、左轨 160(v2.2 校准);安全三卡恢复 22px 序号 01–03 + 114 高 + 19px 状态值,卡下 11px 审计一行流(无事件隐藏);MCP 端口不一致在行下给出默认可见的 11px 三元组;高级保留真实 checkbox/输入,开关 38×20。本目录 `u3-after-settings-security*.jpg`、`u3-after-settings-mcp*.jpg`、`u3-after-settings-advanced*.jpg`(含 900/390 与展开态)已按 v2 重新生成;全量基线见 `../u4-settings-redesign/`。

# U-3 · 设置页设计收口(安全 / MCP / 高级)

基线:`openchamber/ui-consistency` `6475131`(#145,含 `f08091f` 新建域弹窗与 `6475131` 小弹窗居中)。本分支只改 `packages/console/**`、`tests/console/**`、`docs/console/**`;不改配置能力、行为或协议。

> **U-4 刷新(2026-11-10)**:设置弹层改为「左侧 160px 竖轨(≤900 折顶部横排)+ 固定外壳 + 统一行模板」后,本目录 `u3-after-settings-advanced*.jpg`、`u3-after-settings-mcp*.jpg`、`u3-after-settings-security*.jpg` 已按同一脚本重新生成;同日按 Kimi 设置稿对齐分组标题(10px / 1.5 字距)与安全卡动作位置(移入标题行右侧,正文整行宽)。下方「主 section 数 / 文本量」等 U-3 结论不变,仅视觉外壳变化。U-4 全量基线见 `../u4-settings-redesign/`。

## 1. 现状 sections → 目标 sections

| Tab | 现状(before) | 目标(after) | 主 section 数 |
Expand Down Expand Up @@ -77,6 +81,6 @@
- 统一外壳:所有 `.modal-box` 都带 `crt-surface crt-corners`;没有裸 `modal-box`。
- 小弹窗(`modal-center`,520px):邀请、新建记忆域、切换忆云、安全操作/批准、手动连接、handoff、通用确认、bearer 令牌输入。
- 大面板(顶部对齐 + 内部滚动):设置、关于本机、加入忆云(640px)、首启引导(640px)。
- 设置面板:标题下常驻一行「改动即生效」;页签固定;只有页签下的内容滚动;滚动条 6px 贴设置框右边缘;关闭收进右上角 X,底部关闭移除。
- 设置面板:标题下常驻一行「改动即生效;重启项自动重启。」;页签固定;只有页签下的内容滚动;滚动条 6px 贴设置框右边缘;关闭收进右上角 X,底部关闭移除。
- 标题/说明/字段/动作:标题(可带 `crt-tag`)+ 一句 `.modal-note` + `.field` 整行输入 + 右对齐 `.modal-actions`。
- 落地位置:`packages/console/index.html` 的 `.modal` 标记 + `packages/console/console.css` 的 `.modal.modal-center` / `.modal-box-wide` / `.modal-settings` / `.settings-scroll` / `.field`;`verify-console-ui.mjs` 断言对齐、宽度与滚动区不漂移。
Binary file modified docs/console/screens/u3/u3-after-settings-advanced-390.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-advanced.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-mcp-390.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-mcp-danger.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-mcp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-security-390.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-security-dialog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/console/screens/u3/u3-after-settings-security.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading