Skip to content

feat(studio): a collapsible left menu of six groups replaces the top pillar nav - #36985

Merged
objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-36899-studio-left-menu
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-36899-studio-left-menu

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

维护者速读

  • 建应用的人在 Studio 里,顶部那排“数据/自动化/访问/全部元数据”切换没了,换成左侧一列可折叠菜单:数据、界面、自动化、平台、访问、AI 六组,每组带数量和搜索,折叠后刷新还记得,手机上是抽屉。
  • 属于“Studio 重构”这条主线(左侧菜单是后面列表页、全屏详情和设计器改造的落脚点)。
  • 出问题时作者可能找不到某类元数据的入口,或折叠状态不记忆;不动任何数据,直接撤回这次改动就回到顶部切换。
  • 无。

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.

  • What it lists. Each group lists the metadata types the open package holds, by the type directory's own rule: scopeDirectoryEntries (new directoryScope.ts) is now read by both DirectoryPage and 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.
  • Where entries go. A type entry opens that type's list in the area (/studio/PKG/metadata/TYPE?package=PKG); an item of an object, flow or permission set still opens its designer through areaItemPillarPath, 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).
  • Current entry. The open page's entry carries 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).
  • Collapse. It is the app sidebar's own primitive (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 cookie studio_menu_state, never the app sidebar's sidebar_state. Below 768 px it is a drawer that closes when an entry is chosen. SidebarProvider gains an optional cookieName prop for this (default unchanged), declared as a new shadcn local-patch family in ui/scripts/shadcn-local-patches.mjs with its pin.
  • Group names (binding note 7127465963, first option). The menu maps the two names itself: studioMenuGroupLabel (new studioMenuGroupLabel.ts) names the system group Platform / 平台 and the security group Access / 访问 (new keys engine.studio.menu.groupSystem / groupSecurity); the other four groups read translateMetadataDomain. Only the left menu's group headings use it. The shared dictionary is unchanged (System / 系统, Security / 安全): Setup's datasource pages read it for PageShell's domain badge, and no other Studio heading or chip is renamed.
  • Clause-② yes (widening): the published @object-ui/components SidebarProvider gains an optional cookieName prop (claim amendment on Studio 重构(1-3):去掉顶部分区,换成可折叠的左侧分组菜单(数据、界面、自动化、平台、访问、AI),右侧是列表和全屏详情 #36899, 7134770955).
  • ~all frame: merged into one shell. /studio/~all/metadata/* is now served by the same route as a package's area (:packageId/metadata/* already outranked ~all/*), and StudioDesignSurface draws 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. areaLocationRedirect now sends a ~org area URL, or ?package=~org, to the package-less flows instead of reading ~org as a package.
  • 「‹ Back to app」 (decision 5 + maintainer ruling 7127681255). It names the current package's app, never a remembered app of another package; a recorded page of one of the package's own apps is still where it returns. A package with no app, and the org-level and cross-package entries, name the package (or the scope: Organization flows / Positions and permissions) and go to the apps home.
  • 变更 / 发布 stay where they are: at the right end of the top bar, beside Cancel and Save, drawn while drafts are pending (objectstack#36511).
  • Kept: the save coordinator, the unsaved-work guard (a menu link that leaves asks once through the shell's link guard; the Default sharing entry, which re-enters the open Access pillar on another query, asks through the surface's own confirm and then remounts the pillar once the router holds the new query), the right slot and copilot dock, the changes panel and Publish, the writable gate and paired package, and the package-missing empty state (no menu there).
  • en and zh strings: engine.studio.pillar.* removed, engine.studio.menu.* added.

Choices the card asked to state

Question Choice
Group names Mapped in the menu only (studioMenuGroupLabel): system = Platform/平台, security = Access/访问; the shared dictionary keeps System/Security
~all frame Merged into the builder's shell: one shell, one menu on every Studio page
Cookie key studio_menu_state (own key; sidebar_state untouched)
变更 / 发布 Stay at the top bar's right end beside Cancel / Save
Address builder (#36895, PR #36973) #36973 landed first (9c57bd2); main merged at c840fdd and the menu repointed at 7617f52: every studioMenuModel.ts link and its open-page detection now come from the studioAddress.ts builders, byte-identical (the menu tests pin the hrefs). No STUDIO_ITEM_PILLAR row and no scope-segment encoding is changed here.

Where the work landed outside the stated file surface

  • ui/packages/components/src/ui/sidebar.tsx and ui/scripts/shadcn-local-patches.mjs (the surface said "read; a new cookie key"): the provider hard-coded sidebar_state on every write, ⌘B included, so a second key needed the cookieName prop. It is a declared local patch with its pin.
  • ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx and new directoryScope.ts: the directory's listing rule moved into one helper the menu shares (item 1 says the menu reuses the directory's grouping data).
  • The apps home: the console has no /apps index route, so "back to the apps home" goes to useHomePath() (the /home launcher in Studio), which is what the console calls the apps home.
  • The menu's group labels carry HIDDEN_ICON_LABEL_NOT_FOCUSABLE, as every SidebarGroupLabel call 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)

Tests

  • New: 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 sidebar cookieName case in sidebar-cookie-restore.test.tsx, the patch-family pin in shadcn-local-patches.test.ts, a ~org case in metadataArea.test.ts, console route cases (~all on the builder route, the entry gate before ~org/automations, the OWD overview and Diagnostics, no recent-package record for ~all).
  • The eight surface tests that asserted studio-pillar-nav now assert the menu: notFound-26708, accessSegment-12452, heldDataLeave-26705, heldFlowLeave-26705, interfacesRetired-36502, metadataArea-28561, pillarNavGuard, narrowHeader-12509; backToApp-36501 and packageLessFlows-11553 follow 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) and heldFlowLeave-26705 (module-top @objectstack/lint import, as its held-data sibling has). studioMenuModel.test.ts also pins the menu's own group names (en and zh) and the shared dictionary keeping System/系统 and Security/安全; PageShell.narrowHeader-12306 is back to main's 'Security'.
  • E2E: 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 run on the 50 touched and related files (touched tests, every test naming translateMetadataDomain or a security/system domain, DirectoryPage, StudioRoute, StudioBackToApp, packageLess, sidebar): Test Files 50 passed (50), Tests 450 passed (450), lock VERDICT 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-check of @object-ui/components, @object-ui/i18n, @object-ui/app-shell, @object-ui/console and type-check:e2e: VERDICT command-exit 0 (at b901832; type-check:e2e re-run at 214400b).
  • playwright test e2e/studio-left-menu-36899.spec.ts --project chromium: 3 passed.
  • Derived gate families (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/main exit 0.
  • Patch round at df57661 (CI red at 214400b on "Test-source alias gate"): heldFlowLeave-26705 now imports @objectstack/lint at module top, as its held-data sibling does. node scripts/check-test-source-alias.mjs exit 1 before, exit 0 after (123 packages with tests scanned); --self-test exit 0.
  • Patch round at 1f7534d (CI red at df57661 on Test UI 3/16, 4/16, 14/16): the three files at the pre-fix versions Test Files 3 failed (3), Tests 3 failed | 10 passed (13), VERDICT command-exit 1; on the fix Test Files 3 passed (3), Tests 13 passed (13), VERDICT command-exit 0.
  • Patch round at 0af200c (L1 REWORK 7134737804, S1 + S2): studioMenuModel.test.ts Tests 11 passed (11) plus the other 5 touched files green; check-test-source-alias exit 0; @object-ui/app-shell type-check exit 0; check:i18n-keys / check:i18n-dead-keys / check:i18n-drift exit 0; card 2,362 changed lines.
  • Merge + repoint at 7617f52 (refactor(studio): every Studio address comes from one builder; no address changes #36973 merged): conflicts in metadataArea.ts (main's studioAddress imports kept, this branch's ~org import added) and StudioDesignSurface.tsx (header pillar nav stays removed; main's other studioAddress edits kept). studioAddress.guard.test.ts red at c840fdd (Tests 1 failed | 1 passed (2), offender studioMenuModel.ts:173), green after the repoint; 20 touched/related files Tests 166 passed (166); card 2,364 changed lines (+1774/−590, 37 files).

Acceptance notes

Wide (self-built app)

Studio left menu, wide, self-built app

Collapsed (self-built app)

Studio left menu, collapsed, self-built app

Narrow, 390 px drawer (self-built app)

Studio left menu, drawer at 390 px, self-built app

Wide (HotCRM)

Studio left menu, wide, HotCRM

Collapsed (HotCRM)

Studio left menu, collapsed, HotCRM

Narrow, 390 px drawer (HotCRM)

Studio left menu, drawer at 390 px, HotCRM

Verification

Read first, by risk:

  1. ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx: the header and body row (menu mounted inside the provider), the ~all branch, and the re-entry remount (reenterPillar plus its layout effect).
  2. ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts: what each scope lists and where each entry goes; studioMenuCurrentKey.
  3. ui/packages/components/src/ui/sidebar.tsx with ui/scripts/shadcn-local-patches.mjs: the cookieName prop and its declared patch.

Two-minute check: open /studio/PKG/data for 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

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
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

席位核对 — REWORK · repo:objectstack#3 · head 1f7534d · 2026-11-24T14:39Z

L1: REWORK
Head-sha: 1f7534d18f12f01cb997c69251fe5acd15052c32
Reviewer: L1-b (3) (seat 3, area ux-E).
Tier: not Tier H. This is card #36899's only PR: 38 files, +1730/−596 (2,326 lines, under the 3,000-line per-card line). Not governed.

Read

Checklist

  • Shape. Draft, base main, first line Fixes #36899. One PR delivers items 1–9, so Fixes is right.
  • Item 1, the top nav goes and six groups come in. PILLARS is now a plain segment list for the not-found check, and <nav data-testid="studio-pillar-nav"> is gone. StudioMenu / studioMenuModel group the entries by domain through scopeDirectoryEntries, which is shared with DirectoryPage through the new directoryScope.ts. The menu has counts and a search. Met.
  • Item 2, collapse. It reuses the app sidebar primitive under its own studio_menu_state cookie, through the new cookieName prop. The app's sidebar_state is untouched, and the menu is a drawer below 768 px. The shadcn-local-patches.mjs entries declare the vendored edit. Met. See S2 for the declaration.
  • Item 3, one shell. ~all is folded into StudioDesignSurface, which reads allScope as "no package", with no package actions and no right slot. StudioConsoleFrame now frames only the landing. Met.
  • Item 4, ~org and the non-type entries. The menu has entries for Organization flows (~org), Default sharing (?surface=owd:overview on Access, re-entry remounts the pillar after a confirm), Diagnostics, and Positions and permissions (~all). areaLocationRedirect no longer reads ~org as a package. Met.
  • Item 5, back to the app. It names the current package's app. With no app, it names the package (or the scope label), per ruling 7127681255. The deviation of going to /home instead of /apps (no /apps route exists) was accepted by the seat at 13:41Z.
  • Item 6. Changes and Publish stay at the bar's right end beside Cancel and Save, and are hidden on ~all. This is stated.
  • Item 7, the transition. The pillar routes are kept and draw the same menu, so there is one shell.
  • Item 8, copy. The engine.studio.pillar.* keys are gone, with no reader left, and 11 engine.studio.menu.* keys are added in en and zh. The key sets match and the zh reads naturally. The group names come from translateMetadataDomain (S1).
  • Item 9, accessibility and the entry gate. Entries carry aria-current="page". The gate test now also covers ~org/automations, access?surface=owd%3Aoverview and metadata/_diagnostics. Met.
  • Acceptance. Screenshots cover a self-built app and HotCRM, wide, collapsed and at a 390 px drawer. The e2e spec covers docking, collapse and a reload. The studio-pillar-nav tests are rewritten to the menu.
  • Esc (carried from feat(console): one Studio detail header composite (×, package, ‹ › with position, ⋯, primary) #36924 N2). StudioMenu adds no document-level key listener. The only window listener is the sidebar primitive's own ⌘/Ctrl+B. Studio mounts no second SidebarProvider (StudioRoute has none), so ⌘B toggles only the menu.

Findings

No must-fix.

Delta read owed: L1 on the new head plus a TIER_DEFAULT L2 (S2). Landing order with #36973, which is ACCEPTed: if #36973 lands first, this PR's merge must repoint studioMenuModel.ts's /studio/${…}/ prefix and the menu's area links onto studioAddress.ts, or #36973's guard goes red.

…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 0af200c · 2026-11-24T15:55Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 0af200c93aa71177870802ed93bb6b7fcb0b00b5
Local-runs: none

This is the declaration face. The review is owed by the Clause-②: yes (widening) line alone: the PR's 37 committed paths hold no published schema, no governed path and no narrowing. Claim 7136860196.

Inputs read:

Nothing was built, run or re-run.

① Derived judgments

  • J1, @object-ui/components public surface. The package is published (no private). Its exported SidebarProvider gains one optional prop, cookieName?: string, defaulting to SIDEBAR_COOKIE_NAME (sidebar_state). Both the initial read (readSidebarStateCookie(cookieName)) and the write in setOpen use it, and cookieName is in setOpen's dependency list. A caller that passes nothing reads and writes sidebar_state exactly as before; no prop is removed or made required. This is additive: a widening, declared that way.
  • J2, the shared domain dictionary. DOMAIN_LABELS_EN / DOMAIN_LABELS_ZH in @object-ui/app-shell are byte-identical to the merge base at this head, so translateMetadataDomain still answers System / 系统 and Security / 安全 to every reader (DirectoryPage, PageShell, the re-export in metadata-admin/index.ts). The menu's own names go through the new studioMenuGroupLabel (two engine.studio.menu.group* keys, else the dictionary). @object-ui/app-shell is private: true, so neither module is a published surface.
  • J3, @object-ui/i18n. Two new keys in the studio namespace (engine.studio.menu.groupSystem, groupSecurity), in en and zh, the namespace's only two locales. New studio-namespace keys alone do not move the declaration (precedent feat(console): one Studio detail header composite (×, package, ‹ › with position, ⋯, primary) #36924).
  • J4, @object-ui/console. Route and test changes only; no exported symbol moves.
  • J5, Metadata-protocol: none. Nothing an author writes, and no wire answer, moves.

② Semver level

  • Clause-②: yes (widening) now reads the same on all three carriers: the changeset body, PR body line 5, and claim amendment 7134770955. That matches J1 and this seat's rule (precedent .changeset/36011-restore-factory-view.md, fix(plugin-approvals): the no-approver decide refusal and a multi-slot submitter notice read in the reader's language #36846).
  • patch on @object-ui/app-shell, @object-ui/components, @object-ui/i18n and @object-ui/console is right: a non-protocol widening with Metadata-protocol: none ships patch (AGENTS.md, Post-Task Checklist step 3). Not breaking, so no ADR-0087 disposition is owed.
  • The changeset now says the shared dictionary is unchanged and names SidebarProvider's new optional cookieName prop. Both sentences agree with the tree.

③ Boundary flags

Implemented-by: claude/issue-36899-studio-left-menu
Reviewed-by: session_01WGufzhjqviExWpzQMm57Mt

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

席位核对 — ACCEPT · repo:objectstack#3 · head 0af200c · 2026-11-24T16:00Z

L1: ACCEPT
Head-sha: 0af200c93aa71177870802ed93bb6b7fcb0b00b5
Reviewer: L1-b (3) (seat 3, area ux-E). This is the delta read of REWORK 7134737804.
Tier: not Tier H. This is card #36899's only PR: 37 files, +1772/−590 (2,362 lines, under the 3,000-line per-card line). Not governed.
Contract review: TIER_DEFAULT PASS on this head, 7136898800 (claim 7136860196).

Read

Findings

  • S1: closed. DOMAIN_LABELS_EN / DOMAIN_LABELS_ZH in metadata-admin/i18n.ts have no diff against the merge base, so translateMetadataDomain answers System / 系统 and Security / 安全 again. That covers Setup's datasource item page (PageShell's badge) and DirectoryPage. PageShell.narrowHeader-12306.test.tsx is back to main. The menu's two renamed groups go through the new studio-design/studioMenuGroupLabel.ts, which reads engine.studio.menu.groupSystem and groupSecurity (Platform / 平台, Access / 访问, in en and zh, the studio namespace's only locales) and hands the other four groups to the dictionary. StudioMenu's group heading is its only reader. The new pins check the menu's six names in en and zh-CN and that the dictionary keeps System / Security. StudioDesignSurface.accessSegment-12452 now reads the menu's own key. The changeset sentence now says the dictionary is unchanged.
  • S2: closed. Clause-②: yes (widening) reads the same in the changeset, PR body line 5, and claim amendment 7134770955 (readClause2Line: declared · yes · widening). Metadata-protocol: none and patch are kept. The owed TIER_DEFAULT L2 is 7136898800.
  • N1–N3: unchanged from 7134737804.
  • N4 (nit). Inside Studio, the menu says Platform / Access while the directory's domain headings and chips (DirectoryPage) say System / Security. That is the seat's menu-only narrowing, and the changeset says so. If the amended ADR-0084 wants Studio's other headings to match, that is a later card scoped to Studio surfaces.

Still owed

Once #36973 lands, this branch merges main and repoints studioMenuModel.ts and the menu's area links onto studioAddress.ts. That moves the head, so it owes a delta L1 of the merge and a fresh TIER_DEFAULT L2 record on the new head (landing rule ①). #36973 is first in the queue, so this PR is the second lander and carries the repoint.

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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 7617f52 · 2026-11-24T16:42Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7617f5240e2cded60ad1bc279e18cda1a3b8967f
Local-runs: none

This is the declaration face. The review is owed by the Clause-②: yes (widening) line alone: the PR's 37 committed paths hold no published schema, no governed path and no narrowing. Claim 7138107103. This is the fresh record after the merge round (landing rule ①); the record on 0af200c9 was 7136898800.

Inputs read:

Nothing was built, run or re-run.

① Derived judgments

  • J1, @object-ui/components public surface. The package is published (no private). Its exported SidebarProvider gains one optional prop, cookieName?: string, defaulting to SIDEBAR_COOKIE_NAME (sidebar_state). Both the initial read (readSidebarStateCookie(cookieName)) and the write in setOpen use it, and cookieName is in setOpen's dependency list. A caller that passes nothing reads and writes sidebar_state exactly as before; no prop is removed or made required. This is additive: a widening, declared that way.
  • J2, the shared domain dictionary. DOMAIN_LABELS_EN / DOMAIN_LABELS_ZH in @object-ui/app-shell are byte-identical to the merge base at this head, so translateMetadataDomain still answers System / 系统 and Security / 安全 to every reader (DirectoryPage, PageShell, the re-export in metadata-admin/index.ts). The menu's own names go through the new studioMenuGroupLabel (two engine.studio.menu.group* keys, else the dictionary). @object-ui/app-shell is private: true, so neither module is a published surface.
  • J3, @object-ui/i18n. Two new keys in the studio namespace (engine.studio.menu.groupSystem, groupSecurity), in en and zh, the namespace's only two locales. New studio-namespace keys alone do not move the declaration (precedent feat(console): one Studio detail header composite (×, package, ‹ › with position, ⋯, primary) #36924).
  • J4, @object-ui/console. Route and test changes only; no exported symbol moves.
  • J5, Metadata-protocol: none. Nothing an author writes, and no wire answer, moves.

② Semver level

  • Clause-②: yes (widening) now reads the same on all three carriers: the changeset body, PR body line 5, and claim amendment 7134770955. That matches J1 and this seat's rule (precedent .changeset/36011-restore-factory-view.md, fix(plugin-approvals): the no-approver decide refusal and a multi-slot submitter notice read in the reader's language #36846).
  • patch on @object-ui/app-shell, @object-ui/components, @object-ui/i18n and @object-ui/console is right: a non-protocol widening with Metadata-protocol: none ships patch (AGENTS.md, Post-Task Checklist step 3). Not breaking, so no ADR-0087 disposition is owed.
  • The changeset now says the shared dictionary is unchanged and names SidebarProvider's new optional cookieName prop. Both sentences agree with the tree.

③ Boundary flags

  • open_questions: none.
  • Deviations: 「‹ Back to app」 going to /home (no /apps route) was accepted by the seat at 13:41Z; the ⌘K loss on ~all until Studio 重构(⌘K):Studio 设计界面里挂命令面板,范围是当前包的全部元数据类型,结果打开新地址 #36900 is stated and accepted. Neither touches the declaration.
  • Merge round: done at this head. The repoint imports only existing studioAddress.ts builders from @object-ui/app-shell (private) and adds no export. It does not move the declaration.
  • SQL push-down: no finding. The menu groups the directory's served entries in the client (scopeDirectoryEntries); it builds no join and materialises no ids a query could push down.

Implemented-by: claude/issue-36899-studio-left-menu
Reviewed-by: session_01WGufzhjqviExWpzQMm57Mt

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt

席位核对 — ACCEPT · repo:objectstack#3 · head 7617f52 · 2026-11-24T17:02Z

L1: ACCEPT
Head-sha: 7617f5240e2cded60ad1bc279e18cda1a3b8967f
Reviewer: L1-b (3) (seat 3, area ux-E). This is the merge-round read after #36973 landed. The last ACCEPT was 7136982449 on 0af200c9.
Tier: not Tier H. This is card #36899's only PR: 37 files, +1774/−590 (2,364 lines, under the 3,000-line per-card line). Not governed.
Contract review: a fresh TIER_DEFAULT PASS on this head, 7138138826 (claim 7138107103), per landing rule ①.

Read

  • The merge, c840fdd1. It merges origin/main at 9c57bd28 (refactor(studio): every Studio address comes from one builder; no address changes #36973). I sorted the changed lines of git diff 6902acbe 0af200c9 (the branch against its old base) and of git diff 9c57bd28 c840fdd1 (the merged branch against new main). Both are 2,362 lines and identical, except one removed line: the header pillar nav's Link. Main re-hrefed it through studioPillarPath, and the branch removes the nav. So the merge resolution carries the branch over unchanged, and main's studioAddress edits stay in metadataArea.ts and StudioDesignSurface.tsx.

  • The repoint, 7617f524. It touches studioMenuModel.ts only. Each address is now composed by a studioAddress.ts builder:

    • type entries: studioMetadataAreaAddress(segment, encodeURIComponent(type), { query }), where rest is already in URL form, as the builder's contract says;
    • Diagnostics: studioMetadataAreaAddress(pkg, '_diagnostics');
    • Default sharing: studioPillarItemAddress(pkg, 'access', { type: 'owd', name: 'overview' });
    • Positions and permissions: studioMetadataAreaRoot('~all');
    • the open-page detection: studioMetadataAreaRoot(segment) and studioPackagePath(segment) in place of the hand-built /studio/${…}/ prefix.

    No hand-built /studio literal is left in the file. refactor(studio): every Studio address comes from one builder; no address changes #36973's studioAddress.guard.test.ts (red on c840fdd1 at studioMenuModel.ts:173, as the dev measured) is green after it.

  • Check-runs on 7617f524: 47 success, 15 expected skip, 0 failed, 0 pending. Mergeable clean.

Findings

No must-fix, no should-fix. S1 and S2 stay closed (7136982449). N1–N4 are unchanged.

Landable on full green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR

Landing · 2026-11-24T17:04Z · ACCEPT 7138622131 at head 7617f52

reading value
check-governed-merges.mjs --pr 36985 NOT governed (0 of 37 paths hit the register) · +1774/−590 (2,364 ≤ 3000; card total 2,364, one PR)
landing-k.mjs --pr 36985 K read via merge-base: base 9c57bd2 (main with #36973), main ahead by 9. The file sets of those 9 commits and this PR do not intersect (comm of the two git diff --name-only lists is empty), so K = 9 < 15
contract review Clause-②: yes (widening) (claim amendment 7134770955) · TIER_DEFAULT L2 PASS on this head 7138138826 (claim 7138107103); earlier record 7136898800 at 0af200c
L1 REWORK 7134737804 → ACCEPT 7136982449 (0af200c) → merge-round ACCEPT 7138622131 (7617f52)
checks at 7617f52 47 success, 15 expected skip, 0 failed, 0 pending; mergeable clean

Open findings are nits only:

State: ready + auto-merge (Tier S). On MERGED, #36899 closes by Fixes; area ux-E removes pm:dispatched and deletes the orphan screenshots branch claude/issue-36899-screenshots.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 17:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit a68b475 Nov 24, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36899-studio-left-menu branch November 24, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants