Skip to content

The avatar menu has a 系统设置 entry for members who can open Setup; first sign-in landing is unchanged (#39050) #39062

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 评审」. Ruling on the admin first sign-in question (2026-12-02): 「不改落地,只加头像入口」 — an administrator's first sign-in does not land in Setup; only an avatar-menu entry is added.

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

What

Give members who can open Setup a direct door to it from the avatar menu (epic row 8).

  • ui/packages/app-shell/src/layout/AccountMenu.tsx has no Setup entry today; the only way in is the app switcher. Add a 「系统设置」 item linking to /apps/setup, shown only when the member holds setup.access (reuse holdsSetupAccess from views/setup/accessDirectoryRef.js).
  • The landing rule is not changed: ui/apps/console/src/components/RootLandingRedirect.tsx (objectui#4048, Setup-only members land on /home) stays as it is.

Acceptance

  • A member holding setup.access sees 「系统设置」 in the avatar menu; selecting it opens Setup.
  • A member without setup.access does not see the entry.
  • RootLandingRedirect behaviour and its existing tests are unchanged.
  • The label is translated (zh-CN 「系统设置」, en "Setup").

Reader: the dev who takes this card.


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:11Z

    定级:area:ux · Feature · p2 · 头像菜单为能进 Setup 的成员加「系统设置」入口(#39050)· 读码

    • 补 domain:ui、类型 Feature,进 pm:queue;无阻塞者。
  2. added
    domain:ui
    pm:queue
    on Dec 2, 2026
  3. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop (epic:#39050 pick; the maintainer's 「Setup 导航专题 现在就可以派发」 and 「Setup 专题 不限制 p1」, recorded 7352489138 on #34830)
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-39062-avatar-menu-setup-entry
    Worktree: objectstack-issue-39062
    Domain: domain:ui
    Seat: repo:objectstack@os-justin
    File surface:

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

    @objectstack-fleet
    ContributorAuthor

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

    Dispatched 2026-12-02T20:31Z · os-dev subagent of session session_01QSeKYnrQ7UMtHofKQVjcH2 (mode:subagent, model: opus, effort: medium), branch claude/issue-39062-avatar-menu-setup-entry, on claim 7357851197.

  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 39062,
      "status": "done",
      "branch": "claude/issue-39062-avatar-menu-setup-entry",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39175",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "AccountMenu now draws a 'Setup' / 系统设置 item (after Profile, the assistant entry and host entries) that navigates to /apps/setup through the menu's unsaved-edits guard, gated on holdsSetupAccess(usePermissions().systemPermissions) - the same helper and source AppContent's Setup gates use (StudioMetadataArea's useStudioEntryPermissions is a Studio-only provider and would read undefined in the global menu, so it was not used). New key user.setup in every locale pack (key-parity test requires all; en 'Setup', zh-Hans 系统设置, others reuse each pack's existing systemSettings wording; zh-Hant generated by gen:zh-hant). RootLandingRedirect untouched. Card assignee not written; PR assignee os-justin from the claim's Account line.",
      "tests": "At ed5aa0604a: new AccountMenu.setupEntry-39062.test.tsx 7 tests (holder avatar+sidebar sees entry and click routes to /apps/setup; studio.access-only / none / undefined see none, with control; en catalogue user.setup === 'Setup'; zh-Hans menu reads 系统设置). vitest packages/app-shell/src/layout/ + personInitialsFamily-36346: Test Files 182 passed, Tests 1638 passed, VERDICT command-exit 0. pnpm --filter @object-ui/i18n test: 110 files passed, 1874 passed | 13 skipped, VERDICT 0. apps/console FirstRunChecklist.test.tsx (renders AccountMenu with host entry): 95 passed. Ablation: gate replaced on disk by (true || setupAccess) -> 'Tests 3 failed | 4 passed (7)' (the three non-holder cases); restored, grep count 0, git diff clean of it. Source-run test (vitest aliases src), so no rebuild needed for the ablation.",
      "gates": "Local: pnpm --filter '@object-ui/app-shell^...' build exit 0; type-check @object-ui/i18n + @object-ui/app-shell VERDICT command-exit 0. dispatch-gates --commands derived 30; 29 run exit 0 (exit captured per command before any pipe); check:type-check-debt NOT-MEASURED (exceeded 200s foreground timeout, exit 124, shared box) -> CI; check:query-options-erasure first hit the 200s timeout then rerun to exit 0. --ran: 30 accounted, 29 run, 1 NOT-MEASURED, 0 UNRUN. CI check-runs on PR #39175: not yet read at report time (convergence is the seat's).",
      "mcp_calls": "0",
      "api_writes": "2 - fleet-write relay pr_create (POST pulls + POST issues/39175/assignees, run 46973676709) and post-stamped os-dev-report comment on issues/39062; plus git push (not REST)",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 39062,
      "status": "done",
      "branch": "claude/issue-39062-avatar-menu-setup-entry",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39175",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "Fix round 1. I moved the changeset with git mv from ui/.changeset/39062-account-menu-setup-entry.md to .changeset/39062-account-menu-setup-entry.md. Its content is unchanged: @object-ui/app-shell patch, @object-ui/i18n patch, and the Clause-② and Metadata-protocol lines. The commit carries the model-free trailer pair. New head a9ccfd38ed. Check Changeset on a9ccfd38ed: completed success. The red at ed5aa0604a is confirmed: the gate (pr-automation.yml) reads only root '.changeset/*.md'. One correction to the fix order: origin/main 7f72b4945f still holds 69 files under ui/.changeset/, not only a README. The cause was the gate's path, not a stale checkout. The PR body is not updated: the os-dev rules let a subagent write the body only in pr_create, and a later edit is the seat's. This is a conflict with the fix order, which the agent file wins. The one line to change is under 'What changes': 'ui/.changeset/39062-account-menu-setup-entry.md' becomes '.changeset/39062-account-menu-setup-entry.md'. The PR stays draft.",
      "tests": "No code changed this round; the round 0 readings at ed5aa0604a still cover the code (AccountMenu.setupEntry-39062 7 tests, layout dir 1638 passed, i18n 1874 passed, ablation red then restored).",
      "gates": "Local at a9ccfd38ed: dispatch-gates --commands now derives 41 families. The 11 that are new since round 0 all exited 0: check-adr-0087-registration --base origin/main and --self-test; check-changeset-no-major --base origin/main; check-empty-changeset --base origin/main and --self-test; snapshot-next --self-test; check-governed-queue-guard --self-test; release-rehearsal-clone --self-test; release-pending-publish --self-test; check:changeset-gate-self-tests; check:closed-ceremony-text. The other 30 families were read in round 0, and this round's diff only moves the changeset file. CI on a9ccfd38ed: Check Changeset success. No other check-runs were read.",
      "mcp_calls": "0",
      "api_writes": "this round 1 — post-stamped os-dev-report comment on issues/39062 (relay); plus git push (not REST). Round 0: pr_create + one report comment.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions