Repository navigation
feat(studio): a collapsible left menu of six groups replaces the top pillar nav - #36985
Conversation
…r nav Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
The eight surface tests that read the top pillar nav now read the left menu: its groups, its type entries (links to the area's lists), the entry each page marks current, and the leave guard on its links. The narrow-header pin reads the header's one two-column row; the back-to-app pins follow decision 5 (the current package's app, never a remembered one). A model test pins the menu's groups, entries, links and current-entry rule. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…page The menu's render pins (its own cookie, the drawer, the current entry, the search, focus order), the console's cross-package leg on the builder route and the entry gate before the menu's targets, a Chromium page for the menu's geometry, and the changeset. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
The default-sharing entry re-enters the Access pillar on another query. The pillar reads its deep link once, at mount, and the router may apply the navigation in a later render than the click's own state updates, so the remount now waits for the new query to be the router's. The package-less scope's pins read the left menu. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
The surface under test reaches a dynamic import of @objectstack/lint, so the edited test file imports it at module top, as its held-data sibling does: the first load is paid during collection, never inside a case's clocked window (check:test-source-alias). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…es; three pins read the menu The left menu's SidebarGroupLabel carries HIDDEN_ICON_LABEL_NOT_FOCUSABLE, as every call site of the primitive does (the call-site pin enumerates them). Three surface pins that still read the retired pillar links now read the menu: the package-list failure keeps the menu and its toggle, and the header's first way out is Back to app right after the menu toggle. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — REWORK · repo:objectstack#3 · head 1f7534d · 2026-11-24T14:39ZL1: REWORK Read
Checklist
FindingsNo must-fix.
Delta read owed: L1 on the new head plus a |
…ctionary keeps System and Security The shared domain dictionary has readers outside the menu (Setup's datasource pages draw its badge), so its labels are back to System / 系统 and Security / 安全. The left menu names the system and security groups Platform / 平台 and Access / 访问 through its own studioMenuGroupLabel. A pin holds both. The changeset declares the published SidebarProvider's new optional cookieName prop as a widening. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 0af200c · 2026-11-24T15:55Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract reviewServed-tier: This is the declaration face. The review is owed by the Inputs read:
Nothing was built, run or re-run. ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — ACCEPT · repo:objectstack#3 · head 0af200c · 2026-11-24T16:00ZL1: ACCEPT Read
Findings
Still owedOnce #36973 lands, this branch merges |
Brings in the one-builder Studio address module. The header pillar nav stays removed (the menu replaced it); metadataArea keeps its ~org redirect beside main's studioAddress vocabulary import. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…builder Every menu link and the open-page prefix are composed by studioAddress.ts builders instead of by hand; each address is byte-identical to before, scope segment encoding included. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 7617f52 · 2026-11-24T16:42Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract reviewServed-tier: This is the declaration face. The review is owed by the Inputs read:
Nothing was built, run or re-run. ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — ACCEPT · repo:objectstack#3 · head 7617f52 · 2026-11-24T17:02ZL1: ACCEPT Read
FindingsNo must-fix, no should-fix. S1 and S2 stay closed (7136982449). N1–N4 are unchanged. Landable on full green. |
|
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR Landing · 2026-11-24T17:04Z · ACCEPT 7138622131 at head 7617f52
Open findings are nits only:
State: ready + auto-merge (Tier S). On MERGED, #36899 closes by |
Requested by Yibo Wang · project thread
Fixes #36899
Part of #36890
Clause-②: yes (widening)
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR
维护者速读
What changes
Studio's one navigation is now a left menu of six groups (amended ADR-0084: Data, UI, Automation, Platform, Access, AI; zh 数据、界面、自动化、平台、访问、AI). The top pillar switcher is gone from every Studio page.
scopeDirectoryEntries(newdirectoryScope.ts) is now read by bothDirectoryPageand the menu, so the two never disagree. A group carries its type count, an entry its item count (the diagnostics sweep the directory already reads), and a search box narrows entries by label or machine name. Object, Flow and Permission Set are always listed, so an empty package can create its first one./studio/PKG/metadata/TYPE?package=PKG); an item of an object, flow or permission set still opens its designer throughareaItemPillarPath, so the pillar routes stay and are reached as before. Four entries are not a type: Organization flows (/studio/~org/automations) under Automation, Default sharing (the Access pillar on?surface=owd:overview; the page itself is Studio 重构(3-3):权限集矩阵在元数据地址上右侧全屏打开,组织级默认共享总览有自己的路由,权限集类型切到新地址 #36905's) under Access, Diagnostics (metadata/_diagnostics) under Platform, and Positions and permissions (the environment catalog on~all) under Access. Datasource still goes to Setup (ADR-0146 D1).aria-current="page"and the sidebar's active state: an area page marks its type, a pillar marks the type it designs (Data marks Object, Automations marks Flow, Access marks Permission Set, Access on the OWD overview marks Default sharing).SidebarProvider/Sidebar collapsible="offcanvas"from@object-ui/components), docked below the top bar. The top bar's leading toggle hides and shows it; the state survives a reload under Studio's own cookiestudio_menu_state, never the app sidebar'ssidebar_state. Below 768 px it is a drawer that closes when an entry is chosen.SidebarProvidergains an optionalcookieNameprop for this (default unchanged), declared as a new shadcn local-patch family inui/scripts/shadcn-local-patches.mjswith its pin.studioMenuGroupLabel(newstudioMenuGroupLabel.ts) names thesystemgroup Platform / 平台 and thesecuritygroup Access / 访问 (new keysengine.studio.menu.groupSystem/groupSecurity); the other four groups readtranslateMetadataDomain. Only the left menu's group headings use it. The shared dictionary is unchanged (System / 系统, Security / 安全): Setup's datasource pages read it forPageShell's domain badge, and no other Studio heading or chip is renamed.@object-ui/componentsSidebarProvidergains an optionalcookieNameprop (claim amendment on Studio 重构(1-3):去掉顶部分区,换成可折叠的左侧分组菜单(数据、界面、自动化、平台、访问、AI),右侧是列表和全屏详情 #36899, 7134770955).~allframe: merged into one shell./studio/~all/metadata/*is now served by the same route as a package's area (:packageId/metadata/*already outranked~all/*), andStudioDesignSurfacedraws it with no package, no package actions and no right slot, beside the same menu. The landing's frame (StudioConsoleFrame) now frames only the landing.areaLocationRedirectnow sends a~orgarea URL, or?package=~org, to the package-less flows instead of reading~orgas a package.engine.studio.pillar.*removed,engine.studio.menu.*added.Choices the card asked to state
studioMenuGroupLabel): system = Platform/平台, security = Access/访问; the shared dictionary keeps System/Security~allframestudio_menu_state(own key;sidebar_stateuntouched)studioMenuModel.tslink and its open-page detection now come from thestudioAddress.tsbuilders, byte-identical (the menu tests pin the hrefs). NoSTUDIO_ITEM_PILLARrow and no scope-segment encoding is changed here.Where the work landed outside the stated file surface
ui/packages/components/src/ui/sidebar.tsxandui/scripts/shadcn-local-patches.mjs(the surface said "read; a new cookie key"): the provider hard-codedsidebar_stateon every write, ⌘B included, so a second key needed thecookieNameprop. It is a declared local patch with its pin.ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsxand newdirectoryScope.ts: the directory's listing rule moved into one helper the menu shares (item 1 says the menu reuses the directory's grouping data)./appsindex route, so "back to the apps home" goes touseHomePath()(the/homelauncher in Studio), which is what the console calls the apps home.HIDDEN_ICON_LABEL_NOT_FOCUSABLE, as everySidebarGroupLabelcall site does (objectui#12795 call-site pin); the menu is offcanvas, so the classes never take effect there.Known regression (temporary, accepted by the seat 2026-11-24 13:41Z)
~all:~allnow renders inside Studio's builder shell, so the consoleAppHeaderand its ⌘K command palette are no longer drawn on the~allleg. Studio's own ⌘K arrives with Studio 重构(⌘K):Studio 设计界面里挂命令面板,范围是当前包的全部元数据类型,结果打开新地址 #36900, which is queued next on the list side once this PR and Studio 重构(1-4a):所有产生 Studio 地址的地方改成调用同一个函数(行为不变,为逐类型切换新地址做准备) #36895 land.Tests
studioMenuModel.test.ts(groups, entries, links, counts, current-entry rule, search),StudioMenu.test.tsx(own cookie and remount, app sidebar collapse does not collapse the menu, drawer below 768 px closing on choose, aria-current, counts, search with no-match status, focus order toggle then search then entries), a sidebarcookieNamecase insidebar-cookie-restore.test.tsx, the patch-family pin inshadcn-local-patches.test.ts, a~orgcase inmetadataArea.test.ts, console route cases (~allon the builder route, the entry gate before~org/automations, the OWD overview and Diagnostics, no recent-package record for~all).studio-pillar-navnow assert the menu:notFound-26708,accessSegment-12452,heldDataLeave-26705,heldFlowLeave-26705,interfacesRetired-36502,metadataArea-28561,pillarNavGuard,narrowHeader-12509;backToApp-36501andpackageLessFlows-11553follow decision 5. Also converted:packageListErrorPosture(the menu and its toggle survive a package-list failure),homeLoop-12513(the menu toggle is the bar's first button, Back to app the first way out after it) andheldFlowLeave-26705(module-top@objectstack/lintimport, as its held-data sibling has).studioMenuModel.test.tsalso pins the menu's own group names (en and zh) and the shared dictionary keeping System/系统 and Security/安全;PageShell.narrowHeader-12306is back to main's 'Security'.ui/e2e/studio-left-menu-36899.spec.ts, a Chromium page bundling the real menu: docked at the left with the content beside it, off the canvas when collapsed with the content at full width, still collapsed after a reload (cookie on a real http origin), a drawer inside the viewport at 390 px.Local readings at 214400b, patch rounds to 7617f52
vitest runon the 50 touched and related files (touched tests, every test namingtranslateMetadataDomainor asecurity/systemdomain, DirectoryPage, StudioRoute, StudioBackToApp, packageLess, sidebar):Test Files 50 passed (50),Tests 450 passed (450), lockVERDICT command-exit 0.pnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped (174),Tests 5130 passed | 2 skipped,VERDICT command-exit 0(at b901832; the last commit touched only the e2e spec).type-checkof@object-ui/components,@object-ui/i18n,@object-ui/app-shell,@object-ui/consoleandtype-check:e2e:VERDICT command-exit 0(at b901832;type-check:e2ere-run at 214400b).playwright test e2e/studio-left-menu-36899.spec.ts --project chromium:3 passed.dispatch-gates.mjs --commands): all 18 exit 0 locally;check:i18n-keys,check:i18n-drift,check:i18n-dead-keys,check:new-line-citations,check-nul-bytes,check-platform-checklist --changed-from origin/mainexit 0.heldFlowLeave-26705now imports@objectstack/lintat module top, as its held-data sibling does.node scripts/check-test-source-alias.mjsexit 1 before, exit 0 after (123 packages with tests scanned);--self-testexit 0.Test Files 3 failed (3),Tests 3 failed | 10 passed (13),VERDICT command-exit 1; on the fixTest Files 3 passed (3),Tests 13 passed (13),VERDICT command-exit 0.studioMenuModel.test.tsTests 11 passed (11)plus the other 5 touched files green;check-test-source-aliasexit 0;@object-ui/app-shelltype-check exit 0;check:i18n-keys/check:i18n-dead-keys/check:i18n-driftexit 0; card 2,362 changed lines.metadataArea.ts(main'sstudioAddressimports kept, this branch's~orgimport added) andStudioDesignSurface.tsx(header pillar nav stays removed; main's otherstudioAddressedits kept).studioAddress.guard.test.tsred at c840fdd (Tests 1 failed | 1 passed (2), offenderstudioMenuModel.ts:173), green after the repoint; 20 touched/related filesTests 166 passed (166); card 2,364 changed lines (+1774/−590, 37 files).Acceptance notes
ui/apps/consoledev server, this branch) against a running server: a self-built app (created through the Studio landing's New app,com.default.field-service) on the showcase example server, and HotCRM (its own repo at main,app.objectstack.hotcrm) on its published 18.6.0 server. On HotCRM the Data pillar's rail shows "Couldn't read customizations": that is this branch's console against an older published server, not the menu.studio-pillar-navon the page; six groups in order; the Object entry current on the Data pillar; after collapsedata-state=collapsed, the cookiestudio_menu_state=falseand nosidebar_state, still collapsed after a reload; at 390 px no docked menu until the toggle, then a 288 px drawer at the left edge.overlap-check.mjs, final head): merges cleanly with main; textual conflicts with refactor(studio): every Studio address comes from one builder; no address changes #36973, fix(studio): pin the object extension, hook, action and flow Saves' publish (#36726) #36958 and feat(studio): design an object's public forms in Studio's Form tab #36784 inStudioDesignSurface.tsx(andmetadataArea.tswith refactor(studio): every Studio address comes from one builder; no address changes #36973), all in the header region this card replaces. Their code is not reshaped here.Wide (self-built app)
Collapsed (self-built app)
Narrow, 390 px drawer (self-built app)
Wide (HotCRM)
Collapsed (HotCRM)
Narrow, 390 px drawer (HotCRM)
Verification
Read first, by risk:
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx: the header and body row (menu mounted inside the provider), the~allbranch, and the re-entry remount (reenterPillarplus its layout effect).ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts: what each scope lists and where each entry goes;studioMenuCurrentKey.ui/packages/components/src/ui/sidebar.tsxwithui/scripts/shadcn-local-patches.mjs: thecookieNameprop and its declared patch.Two-minute check: open
/studio/PKG/datafor any package, click the toggle at the top-left, reload. Expected: the left menu stays hidden after the reload, and the app sidebar elsewhere in the console keeps its own state.🤖 Generated with Claude Code