Skip to content

Setup navigation is covered end to end for admin, department admin and auditor on desktop and phone (#39050) #39060

Done

Description

@objectstack-fleet

repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ

Source: topic #39050 · category ③ (child of the maintainer's epic). The maintainer's words on #39050: 06:03Z 「不要 沿用旧分组 id ,改掉,然后立专题卡」; 06:12Z 「分拆子卡并用 fable 评审」 (the split below was reviewed by Fable against the code before filing). Rulings D1–D4 are in the epic's ruling comment.

Grade: p2 (the epic's grade) · area:ux · type Task · suggested domain devx (triage sets it) · size M · est. 2 person-days · evidence: read (objectstack main, 2026-12-02).

Blocked-by: #39058
Blocked-by: #39054
Blocked-by: #39055
Blocked-by: #39056

What

End-to-end coverage of the new Setup navigation for administrator, department administrator and auditor, on desktop and phone (epic row 12).

  • Playwright e2e under ui/playwright.config.ts.
  • docs/qa/platform-checklist/areas/{platform-core,access-security,approvals,automation}.json reference old group ids today; update them and add items for the new behaviour.

Acceptance

  • Three roles × two viewports are green.
  • No checklist item references a retired group id.
  • Coverage includes "a collapsed group stays collapsed after reload" and "search by an old name finds the renamed page".

Reader: the dev or QA seat that takes this card after the four cards above merge.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T07:10Z

    定级:area:ux · Task · p2 · 管理员、部门管理员、审计员在桌面和手机上的设置导航端到端覆盖(#39050)· 读码

  2. added
    domain:devx
    pm:blocked
    on Dec 2, 2026
  3. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · 2026-12-03T05:05Z

    Triage: Blocked-by #39054、#39055、#39056、#39058 已全部关闭,pm:blocked → pm:queue。Setup 专题 #39050 的端到端覆盖卡,p2。

  4. added
    pm:queue
    and removed
    pm:blocked
    on Dec 3, 2026
  5. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop (Setup epic #39050 child, which the maintainer asked to move fast on this seat's post #34830; card-pick --order epic:#39050 rank 1 once #39059 was claimed)
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-39060-setup-nav-e2e
    Worktree: objectstack-issue-39060
    Domain: domain:devx
    Seat: repo:objectstack@os-justin
    File surface:

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
     "issue": 39060,
     "status": "done",
     "branch": "claude/issue-39060-setup-nav-e2e",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39318",
     "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
     "premise_still_valid": true,
     "summary": "Draft PR #39318 (head f76475ca48, opened with Part of #39060, not Fixes). It adds live Playwright e2e for the Setup navigation: setup-nav-39060.spec.ts (desktop 1280x900), setup-nav-39060-phone.spec.ts (phone 390x844, touch) and helpers/setup-nav-39060.ts. Each covers the platform admin (seeded admin_full_access) and an auditor (setup.access + view_all_audit_log; the permission set is authored at runtime through PUT /api/v1/meta/permission, because no shipped set carries exactly that pair). Per role and viewport there are three tests. (1) Groups in order and exact entry lists, read from the requiredPermissions gates, with gated entries asserted absent by name. (2) Collapse persists: Audit & Data closed and Company Settings opened, then reload, and both hold. (3) Palette old-name search: Localization finds 'Company Settings › Language & Region' with its former-name note and opens /settings/localization; Mail Delivery finds Email Channel for the admin only. Checklist changes: access-security, approvals and automation now carry 0 retired group ids. access-security.sharing-rule-authoring-ui is re-pointed to group_access_sharing (rev 4). approvals.setup-nav-entry is rewritten for Routing & Approvals (rev 3: ruled D2, no inbox entry, zh-CN labels, automated by the spec). automation.setup-packaged-automation-board is re-pointed to group_apps_ai (rev 16). The new access-security.setup-nav-role-audience (rev 1) is automated by both specs. Remainders: (a) the department administrator is NOT driven, because no definition exists on main (see open_questions); (b) platform-core.json is untouched, because PR #39302 was still open (merged=false, state=open at 12:05Z). Its 7 retired-id lines at origin/main dc4a2cdbd6 are 670 (group_overview), 812 (group_configuration), and 2417, 2420, 2426, 2428 and 2504 (group_apps / group_integrations); a follow-up should re-point them after #39302 lands. Conflict with the dispatch: it asked for 'Fixes #39060'; the os-dev definition says to use 'Part of' when the merge should not close the card. With (a) and (b) open, I used Part of. The specs are in no test:e2e:live:* list, and adding them needs ui/package.json, outside the claim's file surface.",
     "tests": "Live e2e against a real backend (start-backend.sh, showcase, console built at dc4a2cdbd6; the spec files are unchanged at f76475ca48): 12 passed (39.6s). admin-desktop 3/3, auditor-desktop 3/3, admin-phone 3/3, auditor-phone 3/3. That was the final run after both restores, on a fresh backend. Ablation 1 (visibility): removed requiredPermissions manage_platform_settings from the Data Retention nav entry and added the marker ablation39060. Blob 015f8780b61e went to b014b1758605; the dist preflight found the marker in 4 files. Red: the auditor desktop Audit & Data exact list showed '+ Data Retention'. Restored blob-equal (015f8780b61e), rebuilt (marker in 0 of 66 files), tree clean, green. Disclosed: the first ablation run, with -g 'auditor, desktop › shows', matched no tests, so it was a no-op. The red reading comes from the rerun with 'auditor, desktop.*shows the groups'. Ablation 2 (collapse): readRememberedGroupOpen(storageKey) ?? firstView became an unset global ?? firstView. Blob 8bef662fe5a3 went to ecf5357c77da (marker in 1 dist file). All 4 collapse cases went red ('expected \"false\", received \"true\"'). Restored blob-equal (8bef662fe5a3), marker 0, tree clean, 12 passed.",
     "gates": "At head f76475ca48. ui: npx tsc -p tsconfig.e2e.json --noEmit exit 0 (--listFiles names all 3 new files); npx eslint on the 3 new files exit 0. dispatch-gates --commands derived 28 commands. All 28 ran with exit 0, each captured before any pipe: check-adr-links (+ --self-test), check-closing-keyword-parity (+ --self-test), check-comment-mask-corpus, plan-test-core-shards --self-test, ui vitest scripts/ (under os-verify-lock, VERDICT command-exit 0; 172 files and 5161 tests passed), lint check:doc-formula-expressions, check:adr-anchors, ci-filter-parity, cross-package-test-inputs, doc-authoring, driver-memory-census, engine-double-contract, gitlink-declared, nul-bytes, platform-checklist ('OK — 16 areas, 451 items (440 active, 5 planned)'), published-files, query-options-erasure, refd-timer-probe, registry-log-declared, rest-log-spy-declared, tier-file-adoption, type-check-coverage, type-check-debt, undeclared-dep-imports, watch-hint-literal, where-matcher. dispatch-gates --ran: '28 derived famil(ies) accounted for — 28 run, 0 NOT-MEASURED (a DERIVED zero — all 28 recorded an exit code and none of them is 3)'. NOT MEASURED locally, left to CI: the type-check lanes, the Plan Test Core shards job, and the roster, wide-population and pending-changeset families. PR check-runs were not yet read when this report went out. Deviation: the 27-command gate loop overran the 10-minute foreground cap, and the harness moved it to the background. It finished with all 27 at exit 0, and I read its record before reporting.",
     "mcp_calls": "0",
     "api_writes": "3 — git push x2 (branch, not REST); fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches (pr_create → POST pulls + POST issues/39318/assignees + POST issues/39318/labels, read back identical, assignee os-justin, label skip-changeset); post-stamped issue comment on #39060 (this report)",
     "classifier_refusals": [
      {
       "command": "curl -X PUT on the local throwaway backend's /api/v1/meta/permission/... to author the auditor permission set by hand",
       "reason": "refused by the classifier as an external write (exact quote not retained across context compaction)",
       "mode": "subagent",
       "human_turn_before": "no",
       "resend": "none — the spec helper authors the set itself as its own fixture inside the Playwright run"
      }
     ],
     "open_questions": [
      {
       "question": "Which role is the 'department administrator' the dispatch and #39050 name? No permission set, position or seeded user defines it on main, so it is not driven.",
       "options": [
        "A organization_admin (the shipped org-scoped admin set). Cost: small, a third ROLES row plus expectations read from its gates.",
        "B the D12 delegated admin (showcase_field_ops_delegate). It holds no setup.access, so it would assert Setup is unreachable, not a menu. Cost: small, but it tests denial only.",
        "C the maintainer defines a dedicated set (capabilities to be ruled). Cost: a spec-adjacent decision, then a small e2e row."
       ],
       "recommendation": "A, because it is the only shipped role that is both administrative and narrower than the platform admin. Confirm it before a follow-up adds the row."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: b · reach: named producer: com.objectstack.service-automation's connector-credentials-ui nav contribution declares group: 'group_integrations', a retired id (renamedFrom of group_integrations_dev). objectstack dev warns nav_contribution_group_renamed for it at boot (boot log of the live backend at dc4a2cdbd6). Seam: spec:app nav group renamedFrom → runtime:setup-nav contribution merge. Evidence: packages/services/service-automation/src/connector-credentials-ui.ts:62 (renamedFrom at packages/platform-objects/src/apps/setup.app.ts:181). Dedupe words: connector credentials, group_integrations, renamed group, nav_contribution_group_renamed",
      "carrier: #39060 follow-up / seat · platform-core.json still has 7 retired-id lines (serial behind #39302). Noted, not filed",
      "carrier: none · noted, not filed: Ctrl+K did not open the command palette in headless Chromium during the e2e, so the specs click the sidebar opener instead. Not investigated (only read, not filed)",
      "carrier: none · noted, not filed: translation keys for the removed nav_approvals_inbox entry remain (dead translation)",
      "carrier: seat · the two specs are in no test:e2e:live:* allowlist; wiring them into CI needs ui/package.json, outside the claim's file surface"
     ]
    }
  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim amendment: widens claim 7376194506 for the out-of-scope finding in dev report 7377667969 (carrier: seat). The two specs are in no test:e2e:live:* list, so CI never runs them.
    File surface: ui/package.json. The only change allowed is appending setup-nav-39060.spec.ts setup-nav-39060-phone.spec.ts to the test:e2e:live:nightly list. Stop on breach and explain it in the report.
    Serial constraints cleared: check-handover --inflight --paths=ui/package.json --card=39060 (2026-12-03T12:13Z) reads no overlap.

    Routing of the report's other items (the seat's call):

  9. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
     "issue": 39060,
     "status": "done",
     "branch": "claude/issue-39060-setup-nav-e2e",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39318",
     "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
     "premise_still_valid": true,
     "summary": "Patch round (claim amendment 7377847394). Pushed f76475ca48..c14f50548b. Commit 055c4e2af1 makes the one allowed ui/package.json change: it appends 'setup-nav-39060.spec.ts setup-nav-39060-phone.spec.ts' to the end of test:e2e:live:nightly; nothing else in that file moved. The nightly list is run by examples/app-showcase/test/console-live-specs.live.test.ts (live tier), which builds the console with VITE_BASE_PATH=/ and serves it with vite preview. That is the same stack the specs were proven on locally. Commit c14f50548b fixes three statements this edit made false; all three files are on the original claim surface, and the os-dev rule says statements a round makes false are fixed in that round. (1) The two spec docblocks said 'In no test:e2e:live:* list yet'; they now name the nightly list. (2) access-security.setup-nav-role-audience fixtures.knownGaps[1] said no CI lane runs the specs. It now names the nightly tier, the item goes to revision 2, and a history row is added. platform-core.json and a department-administrator row were not touched (follow-up card). PR body edits are returned in pr_body_edits and not PATCHed, because the os-dev rules leave PR-body edits after pr_create to the seat.",
     "tests": "No e2e rerun this round. The spec code is unchanged; only docblock comments changed. The 12/12 live reading from the first round stands, for the code at f76475ca48. ui: npx tsc -p tsconfig.e2e.json --noEmit exit 0, and npx eslint on the 3 spec/helper files exit 0, both at c14f50548b. No ablation: the diff changes no tested behaviour (a script list, comments, and checklist prose).",
     "gates": "At head c14f50548b. dispatch-gates --commands derived 44 commands; the ui/package.json path added 17 families over the first round's 28. All 44 ran on the new head with exit 0, captured before any pipe. That includes ui vitest scripts/ under os-verify-lock (VERDICT command-exit 0; 172 files and 5161 tests passed) and check:platform-checklist OK (451 items). check:doc-formula-expressions first exited 3 (PREREQUISITE NOT MET: @objectstack/formula not built in the fresh worktree). I built @objectstack/formula and @objectstack/lint, and the rerun was exit 0. dispatch-gates --ran: '44 derived famil(ies) accounted for — 44 run, 0 NOT-MEASURED (a DERIVED zero — all 44 recorded an exit code and none of them is 3)'. overlap-check: 'origin/main (23e859ae39) merges cleanly', 'VERDICT clean exit 0'. NOT MEASURED locally, left to CI: the type-check lanes, the path-scheduled CI job, and the roster, wide-population and pending-changeset families. PR check-runs on c14f50548b had not been read.",
     "mcp_calls": "0",
     "api_writes": "1 — git push (branch, not REST); post-stamped issue comment on #39060 (this report, via the fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches)",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "pr_body_edits": [
      {
       "replace": "- **Not in CI yet.** The two specs are in no `test:e2e:live:*` list. Adding them means editing `ui/package.json`, which is outside this claim's file surface.",
       "with": "- **Nightly live lane.** The two specs run in the nightly live lane: `test:e2e:live:nightly` in `ui/package.json`, driven by `examples/app-showcase/test/console-live-specs.live.test.ts`. They are not in the required `:ci` allowlist, so a pull request does not run them."
      },
      {
       "replace": "All at head `f76475ca48`:",
       "with": "All at head `c14f50548b`:"
      },
      {
       "replace": "- `dispatch-gates --commands` derived 28 commands. All 28 were run, every one exit 0. That includes `pnpm --dir ui exec vitest run scripts/` under the verify lock: 172 files and 5161 tests passed.",
       "with": "- `dispatch-gates --commands` derived 44 commands. All 44 were run, every one exit 0. That includes `pnpm --dir ui exec vitest run scripts/` under the verify lock: 172 files and 5161 tests passed. `check:doc-formula-expressions` first exited 3 (PREREQUISITE NOT MET: `@objectstack/formula` not built). It passed after building that package.\n- `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0`. It merges cleanly with origin/main `23e859ae39`."
      },
      {
       "replace": "- `dispatch-gates --ran`: \"28 derived famil(ies) accounted for — 28 run, 0 NOT-MEASURED (a DERIVED zero — all 28 recorded an exit code and none of them is 3)\".",
       "with": "- `dispatch-gates --ran`: \"44 derived famil(ies) accounted for — 44 run, 0 NOT-MEASURED (a DERIVED zero — all 44 recorded an exit code and none of them is 3)\"."
      }
     ]
    }
  10. removed
    pm:dispatched
    on Dec 3, 2026
  11. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Closed by hand 2026-12-03T13:34Z: PR #39318 (Part of #39060) merged at 2026-12-03T13:32Z.

    Delivered:

    • live e2e of the Setup navigation for the platform administrator and the auditor, on desktop and phone;
    • the case that a collapsed group stays collapsed after reload;
    • the case that searching by an old name finds the renamed page;
    • 0 retired group ids in access-security.json, approvals.json and automation.json;
    • the specs wired into test:e2e:live:nightly.

    Remainders are on #39319:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions