Repository navigation
feat(studio): ⌘K on every Studio design page lists the package's menu and items - #37108
Conversation
…ith the menu's groups Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…artures Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…ne pick per mount in the pins Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
… types read without a memo Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…age pages Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Finalized head for L1 · 2026-11-24T20:41Z ·
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
…ved-edits seam; share the menu's data Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…t in product terms Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…arrive after the query; share the menu vocabulary from studioMenuData.ts; Escape a dialog took leaves fullscreen alone Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…selects a row that arrives late (measured live) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
…scope Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Live walk-through — #36900 ⌘K (L1 D2), REWORK round 1Head under test: Stack. Run in this container. Result: every step passed. Reading it:
Not measured: HotCRM. No HotCRM checkout or stack exists in this container; the walk covers the showcase app only. Two observations from the walk (no defect filed):
Screenshots of every step were taken locally; they are not attachable through the relay. |
… live (studioMenuData.ts) Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Finalized head for delta L1 · 2026-11-24T23:00Z ·
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-24T23:09Z · head
|
…ss and the overview's route (#36905) With the merge of origin/main, three palette pins from #37108 still read the Access pillar: the ⌘K pick of Default sharing waited for the pillar's rail and expected `/access?surface=owd:overview`, and the palette's item and menu pins expected the pillar addresses. They now start on the set's full-screen page and expect `/studio/PKG/metadata/permission/NAME?package=PKG` and `/studio/PKG/owd`. The pure departure pins take the same shapes, and the console's gate pin lists the overview's own route. Claude-Session: https://claude.ai/code/session_01QSeKYocL4fDtJqdSgFrR6h Co-authored-by: Claude <noreply@anthropic.com>
…ection (#36905) Since #37108 the surface mounts the command palette, whose record preview reaches a dynamic `import('@object-ui/plugin-detail')`. The fifteen surface tests this PR edits now pay that load at module top, as #37108's own pins do (`check:test-source-alias`). Claude-Session: https://claude.ai/code/session_01QSeKYocL4fDtJqdSgFrR6h Co-authored-by: Claude <noreply@anthropic.com>
Fixes #36900
Part of #36890
Clause-②: no
Metadata-protocol: none
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H
维护者速读
What changes
Head
7bbe1c54b: 15 files, +1,679 / −92 againstmain, one PR for the card. REWORK round 1 (L1 7144125191) and its delta L1 ACCEPT (7147006586) are folded in below.mainwas merged in that round.The command palette is mounted on every Studio design page.
StudioDesignSurfacemounts it in its shell under its ownCommandPaletteProvider, on a package's pillars and "All metadata" area,~organd~all. After #36985 only the/studiolanding had one, so~allhad lost ⌘K (the hand-off's stated temporary regression); this restores it. A host that already mounts a palette above the surface keeps its own (useCommandPaletteProviderMounted()): the surface then mounts neither provider nor palette.buildStudioMenu, decision 11: Data, UI, Automation, Platform, Access, AI, under the menu's names). Each group holds the menu's own entries: each type's list, plus Organization flows, Default sharing, Diagnostics and Positions and permissions. Then come the items of every type the group lists, from the package and its.custompair (ADR-0146 D3).StudioMenuDataProviderin the surface feeds both the menu and the palette (newstudioMenuData.ts: the data hook, the context, the group icons and the entry names). The palette and the menu cannot disagree, and opening the palette re-reads neither types nor the diagnostics sweep.include: listInclude). The rows are kept by the list page's own rule (scopeListRows: the package, its pair, the type's list predicate) and named by the type's primary key.~organd~allkeep those lists and add their own menu entries.studioAddress.ts(Studio 重构(1-4a):所有产生 Studio 地址的地方改成调用同一个函数(行为不变,为逐类型切换新地址做准备) #36895). An object, flow or permission set goes throughstudioItemPath, so it opens its designer today and follows each designer card'sSTUDIO_ITEM_PILLARswitch with no edit here. Any other item opensstudioMetadataItemAddress(…, ?package=OWNER), the address its list row links to (ADR-0048). A menu entry goes to the menu entry's ownto.openStudioPaletteAddresshandles another page throughconfirmUnsavedLeave. That seam holds the surface's own work and every editor that registered its own, the "All metadata" item page (ResourceEditPage) among them; the surface's own bit never saw that page's edits. The page already open on another query (Default sharing from the Access pillar) goes throughreenterPillar. It asks, then remounts the pillar once the router shows the requested query (S5): the palette's own?palette=change comes first and no longer triggers it. The page already shown, palette keys aside, just closes the palette.confirmLeavePillarnow goes through the same seam, so its own header departures ask about the item page's edits too: Back to app, the retired-Interfaces notice, the other-pillarrequestSurfaceand the Access opener. They had the same blind spot; it is closed here, and no defect card is owed.CommandPalette'sstudioscope takes an optionalsurface(packageScope,renderGroups,open), documented in the app-shell README. The page draws its own groups (StudioPaletteGroups), so the Studio modules load with the Studio chunk, never with the console's eager closure.@object-ui/app-shellis private, so the new optional prop and exported types widen no published surface:Clause-②: no.ResourceEditPage's fullscreen Escape now ignores an Escape a dialog above it already took (defaultPrevented, which Radix sets), so closing the palette over a fullscreen editor no longer also leaves fullscreen.advertisedShortcuts.ts) needs no edit.CommandPaletteProvideralready advertises ⌘K (useAdvertiseShortcut(OPEN_COMMAND_PALETTE_SHORTCUT)), and it now runs on every design page.Files:
studio-design/studioPaletteModel.ts(pure: pair, items, addresses, groups, departure,openStudioPaletteAddress),studio-design/StudioPaletteGroups.tsx(reads and draws) andstudio-design/studioMenuData.ts(the menu's shared data and vocabulary).StudioMenu.tsx: it gainsStudioMenuDataProvider, draws the shared data when a provider above holds it, and otherwise reads its own.StudioDesignSurface.tsx: changes are in its shell region only: the providers, the palette mount,confirmLeavePillar,reenterPillarandopenFromPalette.StudioRoute.tsxis unchanged. No i18n key is added.e2e/studio-left-menu-36899.spec.tsstubs the menu's reads where they now live.Read first, by risk:
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx:confirmLeavePillar(now the seam), thereenterPillarlatch,openFromPalette/paletteSurface, and the provider wrap. It is the only edit to a shared file beyondStudioMenu.tsx.ui/packages/app-shell/src/views/studio-design/studioPaletteModel.ts:openStudioPaletteAddressandstudioPaletteItemsOfoverscopeListRows.ui/packages/app-shell/src/views/studio-design/studioMenuData.tswithStudioMenu.tsx: the shared data and the menu's own-read fallback.Tests
studioPaletteModel-36900.test.ts(15 cases). It pins:scopeListRows: unwrapped, scoped, deduped and named by the primary key, with the list predicate applied;studioItemPathfor everySTUDIO_ITEM_PILLARrow, and other types on their area page with?package=OWNER;StudioPaletteGroups.surfaceScope-36900.test.tsx(11 cases): the realCommandPalette+CommandPaletteProvider+StudioMenuDataProvider+StudioPaletteGroups, with the metadata reads doubled at the menu's own seam. It pins:includeand list predicate;.customtext shown;surface.open, and matching;~all.StudioDesignSurface.metadataArea-28561.test.tsx: 7 new cases on the real surface.~alland on a missing package.?surface=owd%3Aoverview.ResourceEditPage.leaveGuard-13231.test.tsx(2 new cases): M1 on the realResourceEditPagewith a dirty draft and the real palette leaving throughopenStudioPaletteAddress. Cancel keeps the page and the draft, OK leaves, and a CONTROL clean page leaves without asking.ResourceEditPage.detailTabs-36901.test.tsx(1 new case): N4, an Escape a dialog took leaves the fullscreen and the page alone, with its CONTROL.Local readings, head 5e181ef / 7bbe1c5
CommandPalette.*, every consoleStudioRoute*):Test Files 31 passed (31),Tests 249 passed (249), lockVERDICT command-exit 0. 7bbe1c5 changes the e2e spec only.StudioDesignSurface.*.test.tsx(at cf95fe5; later commits change no surface file):Test Files 43 passed (43),Tests 236 passed (236)andTest Files 40 passed (40),Tests 217 passed (217).@object-ui/app-shelltype-check(both programs) andtype-check:e2e: exit 0.e2e/studio-left-menu-36899.spec.ts, local:3 passed.pnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped (174).dispatch-gates.mjs --commands, 39): all exit 0 on the final tree;--ran:39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN.check:new-line-citations(ui):0 new citation(s). eslint on the changed ui files: 0 errors, none in the new modules.overlap-check.mjsbefore every push of the round:VERDICT clean exit 0.Ablations (scripts/ablation-replace.mjs, each restored to HEAD: blob == HEAD, git diff HEAD empty)
confirmUnsavedLeave(() => act.navigate(to))→act.navigate(to)):Tests 3 failed | 33 passed. The three M1 pins (realResourceEditPage, surface, unit) go red.confirmLeavePillar:Tests 1 failed | 13 passed(Back to app).14 passed). Under test the palette's close and the navigation land in one render, so no pin tells the latch from the old trigger. The latch guards the ordering the code's own comment warns about: the router applying a navigation in a later render.Tests 1 failed | 9 passed) and the surface's palette mount (Tests 3 failed | 7 passed).Acceptance notes
--fresh, and the Console dev server serving app-shell fromsrcat this head, driven by headless Chromium as a person would.MetadataQuickFindon ⌘⇧M (DirectoryPage) is a second item finder beside ⌘K; a follow-up retires or routes it.useStudioMenuTypesno longer memoizestypes, and the provider value is a new object each render. The palette's reads key on the type names, so this costs re-renders only.StudioDesignSurface.tsxagainstmainitself; this branch merges cleanly withmainand feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089.Verification
Two minutes: open any package in Studio (
/studio/PKG/data), press ⌘K (Ctrl+K), type part of a dashboard's or hook's name, and press Enter. The palette lists the six menu groups and the item; Enter opens/studio/PKG/metadata/TYPE/NAME?package=OWNER. Edit a field on that item page without saving, then pick another entry: the leave prompt appears first, and Cancel keeps the edit.Where to look in code
openStudioPaletteAddress(model) andconfirmLeavePillar/reenterPillar/openFromPalette(surface).StudioPaletteGroups(reads) overuseStudioMenuDataandbuildStudioPaletteGroups/studioPaletteItemAddress(pure).Generated by Claude Code