Repository navigation
feat(account-menu): draw the Account app's declared grp_account_menu; built-in org rows yield when cloud-managed - #39923
objectstack-fleet[bot] wants to merge 5 commits into
Conversation
…nt_menu Claude-Session: https://claude.ai/code/session_01Q4EjjMg6r6nVfcAADVPeFv Co-authored-by: Claude <noreply@anthropic.com>
… Account app fixture Claude-Session: https://claude.ai/code/session_01Q4EjjMg6r6nVfcAADVPeFv Co-authored-by: Claude <noreply@anthropic.com>
…ts harness Claude-Session: https://claude.ai/code/session_01Q4EjjMg6r6nVfcAADVPeFv Co-authored-by: Claude <noreply@anthropic.com>
…grid's load at collection Claude-Session: https://claude.ai/code/session_01Q4EjjMg6r6nVfcAADVPeFv Co-authored-by: Claude <noreply@anthropic.com>
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT at head
|
📓 Docs Drift CheckThis PR changes 1 package(s): 11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 3d5b6172423c2b6778062da8c6ce2df98d9c3a00 && git checkout 3d5b6172423c2b6778062da8c6ce2df98d9c3a00
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 70836da70450e4e311173636848e1ba0719b94a5 21f24cbd2b2fe61276869336ce980797570aaf9c && git checkout -B drift-repro 70836da70450e4e311173636848e1ba0719b94a5 && git merge --no-ff 21f24cbd2b2fe61276869336ce980797570aaf9c
node scripts/docs-audit/affected-docs.mjs --json 70836da70450e4e311173636848e1ba0719b94a5
|
The #17647 wire pin counts every served Account nav id. grp_account_menu adds five for a permissionless principal (the Setup row and the admin sub-group it empties are pruned by requiredPermissions), so 15 becomes 20; pin the pruning too. Claude-Session: https://claude.ai/code/session_01Q4EjjMg6r6nVfcAADVPeFv Co-authored-by: Claude <noreply@anthropic.com>
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT (delta) at head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47665983877 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT (re-arm) at head
|
|
repo:objectstack@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV Re-land: the merge queue dropped this at 15:41Z because of the |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47671357473 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Jack · project thread
Fixes #39901
What changes
Phase 1 of #39900: the account menu stops hard-coding its rows and draws the Account app's declared group.
packages/platform-objects/src/apps/account.app.tsdeclares a last top-level groupgrp_account_menu(last, so the app landing never elects it):grp_account_menu_organization(reserved sub-group): My Organizations/organizations?manage=1and Create Organization/organizations?create=1, bothvisible: 'features.multiOrgEnabled != false && features.cloudManaged != true'. These are the built-in rows that yield whenfeatures.cloudManaged.account:profile_card, ungated).grp_account_menu_admin(reserved sub-group): Setup/apps/setupwithrequiredPermissions: ['setup.access'].ui/packages/app-shell/src/layout/AccountMenu.tsxwraps the menu in anExpressionProviderbound to the servedfeatures, the current user and the Account app, filters the group with the shared member gates (useNavMemberGates+navEntriesShownToMember: visible, requiredPermissions, requiresObject/Service, dataSource), and lays it out as:identity · organization section (walled org name as a section label, org rows, then the switcher) · account rows + Connect an AI Assistant + host entries + hidden apps · Preferences (theme, language, notifications) · admin section · Log out.
accountMenuNav.ts(new) splits the group into{organization, account, assistant, admin}andwithoutAccountMenuGroupkeeps the group out of the Account app's sidebar (UnifiedSidebar).useOrgMenuPosture.ts:orgMenuEntriesis replaced byoffersOrganizationSwitcher(multi-org, not cloud-managed, more than one membership); newuseServedFeatures().Resulting menus (browser-verified, see below):
setup.accessholders] · 退出登录.No new menu extension point (ruling 6937513776 holds): cloud#5494 contributes 我的组织 ↗ through the existing
navigationContributions. It should targetgrp_account_menu_organizationso the row lands in the organization section; targetinggrp_account_menustill renders, but in the account section. An absolutehttps:href renders with an ↗ and leaves through the unsaved-edits guard.Deviations from the card / order
requiredPermissions: ['setup.access'](the shared gate the sidebar uses) rather than ahasCapabilityvisible predicate.connectAssistantPathis kept: Home'sConnectAssistantCardstill uses it. The menu no longer does.featureskey faults; the server always servesmultiOrgEnabledandcloudManagedas booleans.Why
#39900 phase 1: the menu's rows become metadata the Account app owns, so the cloud host can yield and contribute rows without a new extension point.
Verification
packages/platform-objects: newaccount-menu-group.test.ts(7 tests) — group top-level and last, child order, org rows' url/visible, Settings ungated, Setup permission, zh-CN labels,AppSchemaparses.accountMenuNav-39901.test.ts(8 tests); updated AccountMenu / AppHeader / UnifiedSidebar / ConsoleLayout tests (cloud-managed yields every built-in org row; a cloud contribution renders first and leaves vialocation.assign; empty features withholds org rows; served zh labels; host entry after Connect AI; unsaved-edits departure for Connect AI). The expression mount-sites ratchet now listsAccountMenu.tsx.layout/+hooks/299 files pass. The full app-shell + console suite exceeded the 40-min container limit, so it was not run whole.check-plugin-teardown-shape --self-testexit 3 (shallow clone),check:dual-build-cjs-loadsexit 3 (no dist for studio/client-react),pnpm --dir ui exec vitest run scripts/OOM-killed in the container.check:test-source-aliaswas re-run after the fix: exit 0.objectstack devapp-showcase + console Vite, Playwright, desktop 1440×900 and iPhone 13, en and zh-CN):OS_TENANCY_POSTURE=isolated(multi-org): org section with org name, 我的组织 / 创建组织, then 账户设置 · 连接 AI 助手 · 偏好设置 · 系统设置 · 退出登录.OS_TENANCY_POSTURE=single: no org section; 账户设置 · 连接 AI 助手 · 偏好设置 · 系统设置 · 退出登录.Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (packages/specuntouched)pnpm lintpasses.main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4EjjMg6r6nVfcAADVPeFv