You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb8895f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(setup): capability Setup entries name the new group ids (#39058) (#39202)
Part of #39058
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 用户能看到什么变化:管理员打开“设置”时,各功能包提供的入口直接落在新的十个分组里;“审批中心”入口离开设置;“连接 AI
助手”移到“应用与 AI”分组,仍只对有平台设置权限的管理员可见。
- 为什么做:属于“设置导航重组”专题,替每位打开设置的管理员消除入口靠旧分组名转接的告警和错位。
- 出错会怎样:最坏是某个入口排位或分组不对,或“连接 AI 助手”对管理员的可见范围变化;只改导航贡献,可直接撤回。
- 要你做什么:无。“权限集”已裁 A(不回到设置,由“岗位与权限”承接,搜索别名随 #39204
补上)。“分派规则、队列、队列成员”移入需平台设置权限的分组,可见范围不变(三项本就各自要求该权限)。
## What changes
Every Setup entry a capability package contributes from the claimed
files now names its new group id (epic #39050, ruling D1), so these
packages draw no `nav_contribution_group_renamed` notice on boot. Where
a retired group was split, each entry names its group explicitly:
| Package | Entry ids | Group | Priority |
|---|---|---|---|
| plugin-approvals | nav_approval_requests, nav_approval_actions,
nav_approval_delegations | group_routing_approvals | 100 |
| plugin-sharing | nav_assignment_rules, nav_queues, nav_queue_members |
group_routing_approvals | 200 |
| plugin-sharing | nav_sharing_rules, nav_record_shares |
group_access_sharing | 200 |
| plugin-security | nav_position_holders, nav_permission_set_assignment
| group_access_sharing | 150 |
| plugin-audit | audit log | group_audit_data | 100 |
| plugin-auth | SSO providers, SCIM credentials (when wired) |
group_login_security | 200 |
| plugin-webhooks | webhooks, HTTP deliveries | group_integrations_dev |
115 |
| service-datasource | datasources | group_integrations_dev | 105 |
| cloud-connection | cloud connection | group_integrations_dev | 110 |
| service-messaging | Slack | group_integrations_dev | 140 |
| service-messaging | notification templates / preferences |
group_notifications | 100 / 300 |
| service-settings | branding | group_company | 100 |
| cloud-connection | nav_marketplace_browse | group_apps_ai | 150 |
| service-knowledge | knowledge settings / sync states | group_apps_ai |
250 / 251 |
| mcp | nav_connect_agent | group_apps_ai | 400 |
- **mcp `nav_connect_agent` keeps its audience.** It used to sit in
`group_overview`, which was gated on `manage_platform_settings`;
`group_apps_ai` is ungated, so the item now carries
`requiredPermissions: ['manage_platform_settings']` itself (exported as
`CONNECT_AGENT_SETUP_CAPABILITY` from `connect-ui.ts`, not added to the
barrel). The Account app's entry stays ungated.
- **Ruling D2: `nav_approvals_inbox` leaves Setup** (removed from the
approvals plugin's contribution). The request link was checked: the
`sys_approval_request` record page carries the
`record:approval_decision` panel, so a request opened from Requests is
already the decision surface, and the inbox's own `?request=ID` address
is untouched. No link is missing, so nothing outside this surface was
needed.
- Placements not spelled out in the epic table, and my calls: SSO/SCIM
go to Login & Security, knowledge to Apps & AI (before AI Model
Service), queue members to Routing & Approvals with the queues.
## Tests
- New per-card files, `setup-nav-groups-39058.test.ts`, beside the
plugin-sharing, plugin-webhooks, service-messaging, service-datasource
and cloud-connection contributions. Each one runs the real
`SchemaRegistry` fold over `SETUP_APP` and `SETUP_NAV_CONTRIBUTIONS`. It
asserts that `checkNavContributionGroupRenames` returns nothing for the
package, and it pins where each entry lands in the merged group.
- The other packages already had a harness file for their nav
contribution. Per ruling 6583487846, the `#39058` pin went into that
file as a top-level describe, and the file's existing assertions were
retargeted to the new groups:
- plugin-approvals: includes a D2 describe saying the inbox is not a
Setup entry.
- plugin-audit
- plugin-auth (SCIM)
- plugin-security (people-org assignment)
- service-knowledge
- service-settings: the branding test now asserts exactly what
group_company holds; the old assertion was vacuous.
- mcp
- **mcp gate pin, with ablation.** `connect-agent-account-nav.test.ts`
serves the merged Setup app through RestServer `GET
/api/v1/meta/:type/:name` over a fixture shell.
- A caller holding only `setup.access` sees the control entry alone.
- A caller with `manage_platform_settings` also sees
`nav_connect_agent`.
- Ablation: I deleted the `requiredPermissions` line and 3 tests went
red: the entry shape, the "cannot widen" test, and the wire test where
the setup.access-only caller was served the entry. The positive case
stayed green. I restored the line with `git checkout HEAD --` and `git
diff HEAD` came back empty.
## Acceptance notes
This is `Part of`, not `Fixes`, because of what is left:
1. **Carve-out.** `service-automation/src/connector-credentials-ui.ts`
(PR #39144) still spells `group_integrations`. It is the only
retired-group-id notice left on a composed boot of every first-party
package (`nav_connector_credentials`, `nav_connector_connections` →
`group_integrations_dev`). Suggested priority: 120, between webhooks at
115 and Slack at 140.
2. **Pins and test configs, granted by claim amendment 7362031530 and
fixed in f4d7a5e.**
- The wire pin reads `nav_connect_agent` in `group_apps_ai` after
Installed Apps and AI Model Service, and pins it absent from the top
level.
- The order pin is keyed on `group_integrations_dev` plus the ids in its
`renamedFrom`, and pins the 7 ids in five tiers: datasources 105, cloud
connection 110, webhooks and HTTP deliveries 115, connector credentials
and connections 120, Slack 140.
- The mcp and service-datasource vitest configs declare `env: {
OS_REGISTRY_LOG: 'warn' }`. service-datasource gets the anchored
`@objectstack/platform-objects/apps` alias; mcp gets an anchored
`@objectstack/objectql` alias instead, because its tests never import
platform-objects.
3. **Labels that need the translation bundles** in
`packages/platform-objects/src/apps/translations` (outside the surface):
- 应用市场: today 浏览应用市场 / Browse Marketplace.
- 品牌外观: today Branding.
- 审批委派: today 审批委派(外出) / Delegations (OOO).
- The four English renames #39057 deferred here: Position Members,
Permission Set Grants, Sharing Details, Work Queues.
- The `nav_approvals_inbox` translation keys are now dead. Their
tombstone row also belongs to that change.
- These land on card #39204.
4. **Platform-owned, not plugin, so reported only:**
- 概览 is `nav_system_overview`, owned by the platform shell.
- 权限集: this PR keeps `nav_permission_sets` retired as on main. The
maintainer ruled A on analysis 7362174445 (ruling recorded on #39058):
it is carried by 岗位与权限, and its search alias rides #39204.
5. **Visible count.** With every capability installed and collapsed
groups closed, the count is 29: the top entry plus users_org 7,
access_sharing 5, apps_ai 6, routing_approvals 6 and audit_data 4. It is
28 when the org-scoping service is absent. Against the table:
- +`nav_organization`, which #39057 kept.
- +queue members.
- −权限集.
- The two knowledge entries sit where the cloud-only AI employee/usage
entries would.
6. Stale comments that still name retired groups, all outside the
claimed surface, listed and not fixed: `cloud-connection-plugin.ts:51`,
service-datasource `admin-routes.ts:281` and `README.md:73` name
`group_integrations`; `cli/scripts/check-app-nav-i18n.mjs:447` and
`:607` name `group_overview` (its lines 510–536 are self-test fixtures
and need no change).
7. **Routing entries keep their audience.** Assignment Rules, Queues and
Queue Members move from the ungated Access & Sharing group into Routing
& Approvals, which is gated on `manage_platform_settings`. Each entry
already carried that gate itself at the merge base, so a Setup user with
`setup.access` but without `manage_platform_settings` was not served
them before and is not now. Measured through the meta read gate's app
filter over the Setup fold at the merge base and at head, with an
ungated control that does serve them. The changeset says so
(94850f2). No gate was added or removed.
## Verification
Two-minute check: `pnpm --filter @objectstack/mcp exec vitest run
--maxWorkers=2 src/connect-agent-account-nav.test.ts`. Expect 10 tests,
all passing. Then delete the `requiredPermissions` line in
`connect-ui.ts` and rerun; three tests go red.
Read first:
1. `packages/mcp/src/connect-ui.ts`, the setup contribution hunk. This
is the gate.
2. `packages/plugins/plugin-approvals/src/approvals-plugin.ts`. This is
the D2 removal.
3. `packages/plugins/plugin-sharing/src/sharing-plugin.ts`. This is the
split across two groups.
The two blocks below are on head 17ff8c3; the last two are on the
patch-round heads f4d7a5e and 94850f2.
<details><summary>Package suites (full, under os-verify-lock)</summary>
- plugin-approvals: 148 files, 2366 tests passed
- plugin-audit: 118 files, 1966 tests passed
- plugin-sharing: 81 files, 1776 passed, 11 skipped
- plugin-webhooks: 28 files, 324 passed
- cloud-connection: 1376 passed
- mcp: 89 files, 1661 passed
- service-knowledge 55/55, service-settings 16, service-messaging 9,
service-datasource 1, plugin-auth scim 7/7, plugin-security nav 6/6.
plugin-auth and plugin-security were narrowed to their nav files; their
full suites are owed to CI.
- Typecheck passed for all 12 packages.
- Cross-package checks: platform-objects `src/apps` 955/955; objectql
protocol-meta and registry-nav-contributions 107; qa/dogfood
platform-app-object-entry-views 57; `check:app-nav-i18n` OK.
</details>
<details><summary>Derived gates on 17ff8c3 (dispatch-gates
--commands, 83 families)</summary>
- 78 exited 0.
- Red, outside the surface (see Acceptance notes 2):
`check:registry-log-declared` exit 1, `check:test-source-alias` exit 1.
- NOT MEASURED, owed to CI:
- `check:dual-build-cjs-loads` exit 3: PREREQUISITE NOT MET, because 42
workspace packages lack `dist`.
- `check:query-options-erasure` and `check:type-check-debt`: killed at
my 240s per-gate cap on the shared box (exit 124).
- `dispatch-gates --ran` reconciled: 83 derived, 80 run, 3 NOT-MEASURED.
- The real dev boot was refused by `check-dev-prereqs` because the
workspace is not built, so boot diagnostics were measured by a composed
registry fold instead (Acceptance notes 1 and 5).
</details>
<details><summary>Derived gates on 94850f2 (86 families)</summary>
- 85 exited 0, including `check:registry-log-declared`,
`check:test-source-alias`, `check:query-options-erasure`, the changeset
gates and `check:dual-build-cjs-loads`.
- `check:type-check-debt` exit 3, PREREQUISITE NOT MET (lock
contention); measured exit 0 on f4d7a5e, and CI `Type Check · debt
ledger` is green on 94850f2.
- `dispatch-gates --ran`: 86 derived, 85 run, 1 NOT-MEASURED, 0 UNRUN.
- PR check-runs on 94850f2: 39 success, 18 skipped, no red.
</details>
<details><summary>Patch rounds on f4d7a5e and 94850f2</summary>
- cli pins: 2 files, 3 tests passed.
- service-datasource full suite: 76 files, 1318 passed.
- cloud-connection nav pin 2 passed; plugin-auth scim nav 7 passed.
- The mcp full suite and the plugin-sharing nav pin were NOT MEASURED
locally after lock queue time-outs; CI Test Core 12/12 is green on both
heads.
- 94850f2 changes only the changeset (one audience sentence).
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
<!-- signed: repo:objectstack@os-justin · os-justin ·
session_01QSeKYnrQ7UMtHofKQVjcH2 -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
Setup entries contributed by capability packages name the new group ids; the Approvals Inbox leaves Setup
17
+
18
+
Clause-②: no
19
+
Metadata-protocol: none
20
+
21
+
Setup's navigation was regrouped into ten groups (#39050). The entries these packages contribute now name the new group ids directly, so a boot carrying them draws no `nav_contribution_group_renamed` notice. Where a retired group was split, each entry names the group the regrouping put it in:
22
+
23
+
-**Access & Sharing:** Position Holders and Permission Set Assignment (`@objectstack/plugin-security`, formerly in People & Organization) after Positions and Permissions, then Sharing Rules and Record Shares (`@objectstack/plugin-sharing`).
24
+
-**Apps & AI:** Browse Marketplace (`@objectstack/cloud-connection`) right after Installed Apps; Knowledge and Knowledge Sync Status (`@objectstack/service-knowledge`) before AI Model Service; Connect an AI Assistant (`@objectstack/mcp`) last.
25
+
-**Routing & Approvals:** Requests, Action History and Delegations (`@objectstack/plugin-approvals`), then Assignment Rules, Queues and Queue Members (`@objectstack/plugin-sharing`). Moving these three does not change who sees them. Each already carries the `manage_platform_settings` gate that Routing & Approvals requires, so a Setup user without that permission was not shown them before and is not shown them now.
26
+
-**Audit & Data:** the Audit Log (`@objectstack/plugin-audit`) first.
Connect an AI Assistant keeps its Setup audience: it sat in a group gated on `manage_platform_settings`, and Apps & AI carries no gate, so the entry now carries that gate itself. A Setup user without `manage_platform_settings` still does not see it; everyone keeps the Account app's entry.
33
+
34
+
The Approvals Inbox entry (`nav_approvals_inbox`) is no longer in Setup. It opened the caller's own approval inbox, the page the personal app's inbox opens; Setup keeps the administrator's entries (Requests, Action History, Delegations). A request opened from Requests is its record page, where the decision is taken. The inbox's own address is unchanged.
35
+
36
+
No action needed: nothing an app author writes changes.
0 commit comments