Repository navigation
feat(app-shell): the account menu opens Setup for a member holding setup.access - #39175
Merged
objectstack-fleet[bot] merged 2 commits intoDec 2, 2026
Merged
Conversation
…access Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
…changeset directory Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
Contributor
Author
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39175 (#39062, epic #39050) · head 席位核对ACCEPT · repo:objectstack@os-justin · head
|
Contributor
Author
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Landing · PR #39175 · 2026-12-02T22:19Z · ACCEPT above, at head |
objectstack-fleet
Bot
deleted the
claude/issue-39062-avatar-menu-setup-entry
branch
December 2, 2026 22:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #39062
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/packages/app-shell/src/layout/AccountMenu.tsx: a "Setup" item (after Profile, the assistant entry and the host's entries) that navigates to/apps/setupthrough the menu's existing unsaved-edits guard. It is drawn only whenholdsSetupAccess(usePermissions().systemPermissions)is true: the same helper and the same permission source the shell's other Setup gates use (console/AppContent.tsx). No new permission read; no answer reported holds nothing.ui/packages/i18n/src/locales/*.ts: new keyuser.setupbeside the otheruser.*rows. en "Setup", zh-Hans 「系统设置」; the other packs use each pack's existing "System settings" wording (the key-parity test requires every pack); zh-Hant is the generator's output (gen:zh-hant), not a hand edit..changeset/39062-account-menu-setup-entry.md(moved fromui/.changeset/in fix round 1: the Check Changeset gate reads the root directory only): patch for@object-ui/app-shelland@object-ui/i18n.ui/apps/console/src/components/RootLandingRedirect.tsxand its tests (ruling 「不改落地,只加头像入口」).Read first, by risk:
AccountMenu.tsx, thesetupAccess &&hunk: the gate itself.AccountMenu.setupEntry-39062.test.tsx: the holder / non-holder / no-answer cases.zh-Hant.ts: generated row, check it matches the generator.Tests
New
ui/packages/app-shell/src/layout/__tests__/AccountMenu.setupEntry-39062.test.tsx(7 tests):setup.access, avatar and sidebar triggers: the entry is a menuitem labelled "Setup", and selecting it routes to/apps/setup;studio.access, holding nothing, or with no answer reported: no entry (with a control that the menu itself drew);en.user.setupis "Setup" in the catalogue (not the call-site default), and the zh-Hans menu reads 「系统设置」.Ablation: the gate replaced on disk by
(true || setupAccess), the three non-holder tests went red (3 failed | 4 passed (7)); restored,git diffclean of it.Acceptance notes
hidden, so it never appeared there and is not drawn twice.Verification
Two-minute check: sign in to the console as an administrator, open the avatar menu; expect a 「系统设置」 / "Setup" row under Profile that opens Setup. Sign in as a member without
setup.access; expect no such row.Local readings at ed5aa06
vitest run packages/app-shell/src/layout/ packages/app-shell/src/__tests__/personInitialsFamily-36346:Test Files 182 passed (182),Tests 1638 passed (1638), VERDICT command-exit 0.pnpm --filter @object-ui/i18n test:Test Files 110 passed (110),Tests 1874 passed | 13 skipped, VERDICT command-exit 0.vitest run apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx(host entry beside the new one):Tests 95 passed (95).type-checkfor@object-ui/i18nand@object-ui/app-shell: VERDICT command-exit 0.dispatch-gates --commands: 30 derived; 29 run, all exit 0;check:type-check-debtNOT MEASURED (over a 200 s foreground limit on the shared box), left to CI.--ran: 30 accounted, 0 unrun.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2