Add Tools/Help menus and preferences dialog

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-11-13 17:00:08 +08:00
parent 4efeadbee3
commit cbd2690993
7 changed files with 126 additions and 2 deletions

View File

@@ -48,7 +48,11 @@
- **非 Part 工具栏已接入**:`web/src/shell/workbench-toolbars.tsx` +
`toolbar.tsx` 渲染 manifest 工具栏并复用 TaskFrame 回调。
BIM 实测 8 组工具栏 / 73 个按钮,0 pageError、0 溢出;
截图 `BIM-toolbars.png`。命令标签部分仍是原始 ID(缺元数据),后续补。
截图 `BIM-toolbars.png`。命令标签已做人类化回退(`BIM_TogglePanels` → Toggle Panels)。
- **Tools/Help 菜单与偏好对话框**:`shell/utility-menus.tsx` +
`shell/preferences-dialog.tsx`。Preferences 支持单位制、导航风格、主题、网格,
写入 `localStorage`;截图 `preferences-dialog.png`;0 pageError。
- 说明:偏好尚未写入原生 `BaseApp/Preferences`;单位/主题还未影响内核与视口。
- 非 Part 菜单命令改为打开 **React TaskFrame 模态**(`web/src/shell/task-frame.tsx`),
iframe 复用 `/workbench.html?module=<id>&command=<id>` 的现有任务面板;
BIM_TogglePanels 实测弹出 "Bottom panels" 任务并可点按钮,0 pageError;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB