Repository navigation
Description
repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ
立卡依据:③ 维护者直接要求(专题父卡)。Source: maintainer。维护者原话(2026-12-02,项目会话「系统设置模块测试」线程):
- 05:53Z 「我觉得还是维持目前的两层方案,让 fable 重新评估分组和菜单以及顺序」
- 05:58Z 「分派与审批需要放在那么前面的位置吗?公司设置我建议提前并展开,关于分组是否折叠,是否建议在浏览器中记住每个用户当前的选项。」
- 05:59Z 「公司信息是否可以转到用户与组织的第一个菜单。其他公司设置放后面没问题」
- 06:00Z 「同意」(回答「公司信息移入后组名保持『用户与组织』」);06:01Z 「还是用户与组织」
- 06:03Z 「不要 沿用旧分组 id ,改掉,然后立专题卡」
分级:area:ux · 专题父卡 · p2(席位暂定,维护者可改)· 影响面:所有 ObjectOS 环境的系统设置(Setup)左侧导航,管理员、部门管理员、审计员三种身份 · 依据:浏览器实测(main @ 2f9a68c,examples/app-starter,全新库,zh-CN,模拟首次使用的管理员)+ 读代码 + Fable 只读评估(2026-12-02)。
维护者速读
- 问题:现在系统设置是 9 组 44 项(装齐能力 51 项),「配置 / 诊断 / 高级」按系统模块分组,管理员找不到「邮件」「时区」这类日常要改的东西;⌘K 也搜不到设置页(Console command palette finds no Setup page: searching 邮件, 时区 or 审计 returns only nonsensical quick-create rows #39038)。
- 已裁定:
- 保持「分组 › 页面」两层,不合并标签页,不做三级菜单;
- 10 个分组,上半区 5 组日常管理默认展开,下半区 5 组一次性设置默认折叠;
- 「公司信息」是「用户与组织」第一项,组名保持「用户与组织」;其余公司设置放折叠区;
- 分派与审批不放前面;
- 每个用户对分组的展开/折叠选择记在浏览器里;
- 分组 id 全部换新,不沿用旧 id,旧 id 只作别名兼容。
- 效果:装齐能力时默认可见 28 项(现在 51 项全部平铺),48 个页面全部保留为独立菜单项,没有删功能。
- 工作量:约 20–22 人日(一人约 4–4.5 周,两人并行约 3 周),明细见下方各行。
定稿信息架构
| # | 分组(新 id) | 默认 | 菜单项(按顺序) | 承接的旧分组 id |
|---|---|---|---|---|
| 0 | (置顶,无分组) | – | 概览 | group_overview 退役 |
| 1 | 用户与组织 group_users_org |
展开 | 公司信息、用户、邀请、团队、业务单元、所有组织* | group_people_org |
| 2 | 权限与共享 group_access_sharing |
展开 | 岗位与权限、岗位成员、权限集、权限集授权、共享规则、共享明细 | group_access_control |
| 3 | 应用与 AI group_apps_ai |
展开 | 已安装应用、应用市场、AI 员工*、AI 用量*、AI 模型服务、连接 AI 助手 | group_apps |
| 4 | 分派与审批 group_routing_approvals |
展开 | 审批申请*、审批历史*、审批委派*、分配规则、工作队列 | group_approvals |
| 5 | 审计与数据 group_audit_data |
展开 | 审计日志、回收站、数据保留、文件存储 | group_diagnostics |
| 6 | 公司设置 group_company |
折叠 | 品牌外观、语言与区域、工作日历、节假日与调休 | group_configuration |
| 7 | 货币与单位 group_currency_units |
折叠 | 汇率、计量单位、标准单位小数位 | 新 |
| 8 | 消息通知 group_notifications |
折叠 | 通知模板、邮件通道、短信通道、通知偏好、发送记录 | 新 |
| 9 | 登录与安全 group_login_security |
折叠 | 登录方式、访问策略、在线会话 | 新 |
| 10 | 集成与开发 group_integrations_dev |
折叠 | API 密钥、OAuth 应用、数据源、云连接、对外表单 | group_integrations、group_advanced |
* = 只在安装对应能力时出现。新 id 为席位提议,行 1 落地前可改,但要一次定好:第三方包按 id 往里贡献菜单。
改名 6 处(旧名全部保留为搜索别名):岗位持有人 → 岗位成员;权限集分配 → 权限集授权;记录共享 → 共享明细;队列 → 工作队列;邮件投递 / 短信投递 → 邮件通道 / 短信通道;标准单位设置 → 标准单位小数位(sys_standard_unit_setting 实际是标准计量单位的显示小数位)。另有上一轮已定的:软件包 → 已安装应用、本地化 → 语言与区域、AI 与向量化 → AI 模型服务、数据生命周期 → 数据保留、诊断›通知 → 发送记录、日历例外 → 节假日与调休、认证 → 登录方式、会话 → 在线会话。
移出:「全部设置」(由 ⌘K 替代,旧地址保留跳转);「审批中心」(个人待办,回个人收件箱「待我审批」,见决定 D2)。
Rulings (verbatim above, English summary)
- Setup navigation stays two levels (group › page): no tab-merged entries, no nested topic nodes.
- Ten groups in the order above. The first five (users & org, access & sharing, apps & AI, routing & approvals, audit & data) are expanded; the last five (company, currency & units, notifications, login & security, integrations & dev) are collapsed by default.
- Company info is the first item of 「用户与组织」; the group keeps that name.
- A user's expand/collapse choice per group is remembered in the browser.
- Group ids are all replaced; old ids are kept only as aliases so third-party contributions still land in the right group.
Code facts the rows rely on
- Group anchors live in
packages/platform-objects/src/apps/setup.app.ts(9 ids today); 12 packages contribute items by group id throughnavigationContributions(14 sites). A contribution to a missing group id is moved to the top level with only a warning (packages/objectql/src/nav-contribution-diagnostics.ts,registry-apps.ts#applyNavContributions). expanded: falseon a group is already supported (today's 「高级」).- The sidebar's open state is computed once on mount (
ui/packages/layout/src/NavigationRenderer.tsx,useState(initialOpen)); it is not persisted and does not follow route changes, so jumping from ⌘K into a collapsed group leaves it closed. - Nav items have no alias/keyword field;
CommandPalette.tsxmatches label and machine name only, and flattens groups (appReportIndex.ts#flattenNavigation) so results carry no group path. - Group and item labels are translated in 11 locales under
packages/platform-objects/src/apps/translations(keys are the ids, so new ids mean new keys).
Rows
| # | Repo | Row | 人日 | After |
|---|---|---|---|---|
| 0a | objectstack | ⌘K finds url / component nav items; drop meaningless quick-create rows |
1 | #39038 |
| 0b | objectstack | First-run checklist: no top card, bottom-left entry only | 1.5 | #39042 |
| 0c | objectstack | 「岗位与权限」page title matches nav, hide machine id | 0.5 | #39046 |
| 0d | objectstack | Admin's first sign-in lands in Setup; avatar menu gets a Setup entry | 1 | – |
| 1 | objectstack | New group anchors: 10 new ids, order, expanded:false on 5, overview as a pinned item; retire the 9 old ids with an old→new alias map in the nav merge plus a deprecation warning naming the package; remove 「全部设置」「高级」 |
2 | – |
| 2 | objectstack | Platform-owned items (setup-nav.contributions.ts) and all 14 contribution sites in 12 packages move to the new ids, reorder, rename (6 + earlier renames) |
2.5 | 1 |
| 3 | objectstack | 11 locales: 10 group labels + renamed items under the new keys; source hashes; os i18n check |
1.5 | 1, 2 |
| 4 | objectstack | Tests referencing old group ids / item labels (≈32 files) | 2.5–3 | 1, 2 |
| 5 | objectstack | Docs: 「系统设置 → …」 paths (≈25 pages), HotCRM doc-check test, changeset | 1–1.5 | 2 |
| 6 | objectstack | Sidebar remembers each user's per-group open state in the browser (keyed by user + app + group); explicit choice beats the authored default | 0.5 | – |
| 7 | objectstack | Sidebar opens the group holding the current route on every route change, without overwriting the remembered choice | 0.5 | – |
| 8 | objectstack | Nav item search aliases: spec field, ⌘K matches and shows "原名 X"; aliases for every renamed item and old group name. New protocol key ⇒ Feature card |
1.5 | ship with 2 |
| 9 | objectstack | ⌘K results show 「分组 › 页面」 | 0.5 | – |
| 10 | objectstack | Role landing: an auditor (only view_all_audit_log) lands on 审计日志 |
0.5 | 1 |
| 11 | objectstack | 「审批中心」 leaves Setup | 0.5 | D2 |
| 12 | objectstack | Unit tests for 6–9; end-to-end: admin / dept admin / auditor × desktop and phone; platform checklist items | 2.5–3 | all |
Optional, not counted: open state synced across devices via a server-side user preference (1–1.5); ⌘K finds settings fields (「时区」 → 语言与区域 › 默认时区, 2–3).
Release note: row 8 should ship with row 2, otherwise existing admins searching old names find nothing.
Decisions
| # | Decision | Recommendation | Blocks |
|---|---|---|---|
| D1 | Final new group ids | [the ids in the table above] | Row 1 |
| D2 | 「审批中心」 leaves Setup (the personal app already has 「待我审批」) | [move it out] | Row 11 |
| D3 | 「分派与审批」 collapsed when the approvals plugin is not installed (only 2 items left) | [keep expanded; one rule for all installs] | Nothing |
| D4 | 「业务单元」 renamed to 「部门」 for customers | [no; add 「部门」 as a search alias] | Row 2 |
Links
- Mockup (two levels, final): https://claude.ai/artifact/5WWnxwXYkebfufYUJ5VZ1T
- Estimate: https://claude.ai/artifact/K1WPfMWKMy4o1w6ftC9WPZ
- Related findings from the same test pass: Console command palette finds no Setup page: searching 邮件, 时区 or 审计 returns only nonsensical quick-create rows #39038, Setup first-run checklist: drop the card at the top of 系统概览, keep the sidebar 「开始使用」 entry until every row is done, then keep a way back #39042, Setup nav entry 「岗位与权限」 opens a page titled 「元数据」 listing capability / permission / position type cards #39046.
Generated by Claude Code
Activity
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ
Rulings on D1–D4 (maintainer, 2026-12-02, decision cards in the project thread)
Analysed by Fable against the code before the maintainer chose; each choice below is the card option the maintainer tapped.
group_users_org,group_access_sharing,group_apps_ai,group_routing_approvals,group_audit_data,group_company,group_currency_units,group_notifications,group_login_security,group_integrations_dev;group_overviewretired (概览 becomes a pinned item). Row 1 adds the old→new alias map in the nav merge (findNavGroupmatches ids exactly today,packages/objectql/src/nav-contribution-diagnostics.ts:139) and a deprecation diagnostic; each old id maps to one new group. Contributions undergroup_configuration(5) andgroup_diagnostics(2) split across several new groups, so their contributors change ids explicitly in row 2, not through the alias. Row 5 also updates the public slot list incontent/docs/ui/apps.mdx:902-910and the spec description/example (packages/spec/src/ui/app.zod.ts:1200,1217, json-schema regenerated).nav_approvals_inbox(packages/plugins/plugin-approvals/src/approvals-plugin.ts:199) opensapprovals:inbox, the same component as the personal app's 「待我审批」 (packages/platform-objects/src/apps/account.app.ts:145-148): a caller-scoped inbox, not an org-wide view. Row 11 removes the Setup entry; Setup keeps 审批申请 / 审批历史 / 审批委派. Row 11 should check that an approval-request record links to the inbox drawer (?request=<id>) so an admin with override rights is one click from acting.expanded, no protocol change. Count-based auto-collapse was removed as a defect and is pinned byui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.groupDefaultOpen-13336.test.tsx.kindbeside 公司 / 事业部 / 办公地点. Row 8 gives the nav item the aliases 部门, 组织架构, 事业部.No decision remains open on this epic.
Generated by Claude Code
objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS
2026-12-02T15:22Z · Seat change for this epic. At the maintainer's word (「你能不能把设置导航的后续任务转给 Justin 座位继续处理」), the remaining cards go to seat repo:objectstack@os-justin. The hand-over, with the dependency order, is in os-justin's mailbox (#38811, comment 7350199169). Seat os-support-ai finishes and lands #39055 and #39057, which are already in development, and takes no other card under this epic.
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
Maintainer ruling · 2026-12-03T01:05Z · on decision analysis 7362174445 (the 权限集 row of the #39050 plan).
The maintainer, verbatim, in seat repo:objectstack@os-justin's session: 「A 维持现状(推荐)」.
Ruled A, keep retired:
nav_access_directory), whose directory opens the permission-set list.nav_permission_setsstays pinned dead.packages/platform-objects/src/apps/setup-nav.contributions.ts.group_access_sharing.