Repository navigation
feat(studio): Studio's top-left rows, the package switcher and the rail - #37579
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
…u spec Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
…-vyx9gu # Conflicts: # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx
…umn and on 概览 Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
Second merge, forced by conflicts with the App Studio rename and the title-row pins. i18n keeps main's mark and the switcher keys. The three conflicted tests keep main's still-valid assertions at their new homes (the brand name, no Create app) and drop only the ones that pinned the deleted top bar. The two new tests from main that anchored on the top bar now anchor on the left column's top-left. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
Studio has no top bar, so the journey's publish goes through the menu's 概览 badge onto the Pending tab, publishes the pair there, and returns to the item, waiting for its header before reading the override chip. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
Third merge, forced by a conflict with the access-directory move: main's new ~all leg in StudioPackageMenu-37139 is kept whole, its name check reading the switcher instead of the deleted top bar. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
…n the switcher Its menu lists more than flows, so the switcher no longer names it after its one flow entry; the menu row keeps "Organization flows". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T19:56Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 3ce748c · 2026-11-26T20:00Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Inputs: card #37456 (body and its 3 comments: triage, the area's scope note 7189582815, the claim 7192639020), PR #37579 (body, 44-file list, net diff ① Derived judgments
Findings
② Semver level
③ Boundary flags
Security-touching: no Seat questions1. Deleted tests.
One case was dropped silently: "on a narrow bar the app name gives way" inside 2. Former top-bar tenants.
3. The 4. The rename. Present in both locales: 5. The changeset. The deletions are internal. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…kage keeps its way back The failed-app note now sends the author to Application in the package's menu, the draft-object hint to Overview › Pending, and the Save notes to the page header. A package id no package has draws no left column, so its way back gets a strip of its own, where the top bar drew it before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the delta round (2026-11-26T21:19Z), answering the seat's REWORK 7202377438: What changed since
Landing: the maintainer approved landing this PR once review passes (2026-11-26 19:59Z, in the #37456 card thread). On ACCEPT, the area lands it. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: This is a delta record. It builds on the full-round record 7202356468, which reviewed head Inputs:
① Derived judgmentsThe delta stays inside the three fixes. It touches:
No key is added, removed or renamed, and no export, prop, route or server code changes. The new strip is module-internal to the private
New findings: none. The delta brings no new behaviour beyond the three fixes. One detail, not graded: the strip receives ② Semver levelUnchanged: ③ Boundary flags
Security-touching: no Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta 1)Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing #37579 at 821111b · 2026-11-26T21:26Z
Ready and queued now. Generated by Claude Code |
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Requested by Bill · project thread
Fixes #37456
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Two halves on one branch. Half 1 gives Studio's left column the two top-left rows the ADR-0084 amendment (
#amendment-2026-11-26-frame,#amendment-2026-11-26-homes) gives it, built as their own files so #37553's split ofStudioDesignSurface.tsxis not disturbed. Half 2 (after #37454 / PR #37546 merged;mainmerged once) deletes the top bar.Half 2: the top bar is gone
StudioDesignSurface.tsx. The header is deleted with everything only it used: the create-app button, state and dialog; the Publish button, its disabled / read-only reasons and the posture state; the now-unused imports. Each tenant's home, per the amendment's table: way back → the package row; ⋯ → 概览's header; Changes + Publish → 概览's Pending tab, with the count as the menu'sstudio-menu-overview-pendingbadge; Save / Cancel → the item header; assistant / panel toggle → the title row's end; menu toggle → Studio's row; Create app → nowhere (the silent item 5). The changes sheet stays for the ~org scope and now passesposture="review"explicitly. The switcher's pick opens the package's 概览 (studioPackageOverviewPath).StudioTopLeft.tsx.StudioScopePendingRow: on the package-less ~org scope, which has no 概览, a "Changes · N" row (studio-scope-changes) under the package row (compact on the rail) opens the existing sheet and itsdoPublish.StudioMobileStrip: below 768 px a strip (studio-mobile-strip) holding the menu trigger and Studio's mark, since the drawer otherwise has no door.StudioBackToApp.tsx. The top bar'sStudioBackToAppis removed;studioBackTargetandStudioBackButtonstay.studio-tokens.ts.STUDIO_HEADER,STUDIO_HEADER_PACKAGE_COLUMN,STUDIO_HEADER_WIDE_WORDremoved.StudioRoute.tsxdraws no bar, so it is untouched.Copy repointed (S1).
engine.studio.newApp.appFailednow points to the 应用 row in the package's menu.engine.studio.data.draftObjectHintnow points to 概览 › Pending. The stale "Save in the top bar" strings (the two permission-set notes,customize.saveFooterandinspector.draftFooter) now say "page header" / 「页头」, in both en and zh.Missing-package way back (S2).
StudioMissingPackageStripinStudioTopLeft.tsxis mounted when the package is missing, at every width. It holdsStudioBackButtonplus Studio's mark and name, in the place where the bar's way back used to be.Half 1: the rows
StudioTopLeft.tsx(new). Row 1 (StudioBrandRow): Studio's graphite mark, its name (engine.studio.mark, the existing key, which App Studio 改版(3-3):显示名改为「应用搭建 / App Studio」——应用标签与多语言文案(只改界面显示) #37566 renamed through feat(studio): the Studio app reads 应用搭建 in Chinese and App Studio in English #37581 so it now reads App Studio / 应用搭建), the collapse control. Row 2 (StudioPackageRow): the way back, then the package switcher. Collapsed on desktop, the column is a rail (studio-rail-head): expand control, way back, app logo, stacked.StudioPackageSwitcher.tsx(new). A popover naming the open package by its app (logo viaAppMark, label vianavItemLabelText, else the package name), with a lock when read-only. The list holds the openable packages: kernel packages out,.custompairs folded ("with PAIR"), ~org / ~all not listed; a search box; the current row checked. Picking a package passesbeforeNavigate(the unsaved-changes guard) and opens it. The last row, New package (authors only), opens the existingCreatePackageDialog(「新建包」对话框加一个「同时创建应用」勾选项(默认勾上),勾上时建包的同时建好它的应用;取消勾选只建包 #37134) and opens the created package. The list reloads onobjectui:packages-changed; a failed read toasts under the sharedPACKAGE_LIST_TOAST_ID.StudioBackToApp.tsx. AddsStudioBackButton, the chevron-only way back with the same target asstudioBackTarget. Its own testid (studio-package-back) so it does not clash with the top bar'sstudio-back-to-appwhile both exist.StudioTitleRowFallback.tsx(new). The panel control (and save / assistant) for a page that draws no title row (loading, not found). It registers as a title row after the page in document order, so the page's own title row always wins and this draws only when there is none.StudioMenu.tsx. Aheadslot at the top of the menu header;collapsiblemoves fromoffcanvastoicon(the rail); search and the advanced toggle hide on the rail; each menu item gets a tooltip, shown only on the rail.StudioDesignSurface.tsx. MountsStudioTopLeftas the menu's head andStudioTitleRowFallbackafter the pillars. The top bar's own menu toggle is removed (the toggle now lives in row 1, so the page never draws two).engine.studio.pkg.switcher,.search,.noMatches,.newPackage(en, zh).Tests
Half 2
StudioDesignSurface.noTopBar-37456.test.tsx(new, 8 cases) walks every former tenant at its new home: no top bar (control: the rows are drawn); the way back first in the package row and the one menu toggle in Studio's row; the phone strip opens the drawer; a switcher pick lands on/studio/X/overview; ⋯ only in 概览's header; badge → Pending → Publish POSTs/api/v1/packages/<id>/publish-drafts; a read-only Pending has no Publish; no Create app anywhere.notFound-26708is re-pointed: in all 4 pillar cases it requires the way back on the missing-package strip (studio-package-back, target/home). The ablation (strip not mounted) turns 4 red.StudioTopLeft-37456.test.tsx: +2 cases, the ~org Changes row (expanded and on the rail) and its control (a package scope draws none).packageLessFlows-11553gains the row → sheet path.backToApp-36501,graphite-37455,rightSlot-12725,desktopHint-11795,accessSegment-12452,interfacesRetired-36502,copilotDoors,copilotDraftBadge,itemDraftLine,metadataArea,packageListErrorPosture,pillarNavGuard,StudioPackageMenu-37139,StudioPackageOverview-37454,entryReadsOnce-11797,publishBackfill-12929(badge → embedded panel → open the row),customizePublish-28562,saveBar-36511,PackageFormDialog.newAppStep-36748.narrowHeader-12509(the bar's narrow layout),createAppAccessibleNameand the app cases ofCreateItemDialog.labels-13128/createTaken-26917(Create app is gone),publishPosture-12517andpublishReadOnlyReason-12303(the bar's Publish; the Pending tab's read-only posture is pinned innoTopBar-37456and App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454's suite),changesCount-11787(its claim, a saved draft counts before its own re-read, is held bymetadataArea-28561).git diff HEADempty):scopePendingnever passed → 2 red inpackageLessFlows-11553; the strip returns null → 2 red (noTopBar,desktopHint); the pick goes to the bare package path → 1 red (noTopBar).Half 1
StudioTopLeft-37456.test.tsx(new, 11 cases): the two rows and their order; naming by the app; the lock on a read-only package and its control (writable: no lock); the list folds a pair and checks the open package; pick opens a package; re-picking the open one does nothing; a declined leave keeps the page; search and its empty state; New package (authors only) opens the create dialog and then the created package; the package-less scope; the rail; the fallback with and without a page title row.homeLoop-12513now asserts the way back is the first button of the package row and the toggle sits in Studio's row;rightSlot-12725waits for the assistant inside the list's title row (the fallback holds it while the list loads); thePackageFormDialog.newAppStep-36748door census adds the switcher's New package door.ui/e2e/studio-left-menu-36899.spec.ts: re-pointed, not loosened. The collapsed case pinned the column off the canvas; the amendment's rail replaces that, so it now asserts a 3rem rail at the left edge with the content beside it, and still asserts the collapse cookie and the reload.git diff HEADempty): the lock condition forced false, the lock case red; the fallback'sdrawnforced false, the fallback case red.Readings
__tests__, StudioRoute, DraftChangesPanel and newAppStep suites,Test Files 314 passed,Tests 2843 passed; app-shelltsconfig.test.json0 errors; eslint 0 errors; derived gates 39/39 exit 0 (vitest run scripts/at 2 workers).StudioTopLeft-37456,homeLoop-12513,rightSlot-12725,PackageFormDialog.newAppStep-36748, the studio-design and i18n suites: 16 test files, all passed. At the head:StudioTopLeft-37456Tests 11 passed (11).@object-ui/app-shellsources andtsconfig.test.json: 0 errors; full workspace build (docs excluded) 123/123 tasks green.dispatch-gates.mjs --commands, 39): 37 exit 0 in the batch run;check:test-source-aliaswas red on the new suite (a clocked first load of@objectstack/lintthrough the create dialog) and is fixed by a module-top import, now OK;vitest run scripts/was killed by the container's memory limit in the batch and passes alone at 2 workers:Test Files 172 passed | 2 skipped (174).Acceptance notes
studioMenuOverviewEntryreturns null there), so deleting the bar would have left its drafts with no way to publish. Per the area's call, ~org keeps a "Changes · N" row in the left column (StudioScopePendingRow, within theStudioTopLeftfiles) that opens the existing sheet and its existingdoPublish; nothing new on the server. Pinned byStudioTopLeft-37456+packageLessFlows-11553with an ablation, and shot light/dark. S3: the table gains this row in docs/adr follow-up ADR-0084:在「去处」表里补一行——组织级(~org)的变更与发布入口 #37685.engine.studio.app.*,backToApp,publish,publishTitle) are now unreferenced; some were already dead before this card. Left in place for a sweep, not removed here.ResourceListPage.tsx, outside this card's surface).engine.studio.markkey. App Studio 改版(3-3):显示名改为「应用搭建 / App Studio」——应用标签与多语言文案(只改界面显示) #37566 renamed it to App Studio / 应用搭建 through feat(studio): the Studio app reads 应用搭建 in Chinese and App Studio in English #37581, andStudioTopLeft-37456pins the exact name (/^App Studio$/).engine.studio.pkg.orgScope, en and zh), because that scope's menu lists more than flows. The maintainer asked for this in the card thread on 2026-11-26. The menu row keeps 「组织级流程」.studio-backtext and accessible name,studio-back-app-name, the bar'sstudio-mark, and the settle on the bar's Create app button. Two auto-merged fix(studio): a PageShell row with nothing of its own draws no lone hairline; pin the title-row tenants outside studio-design #37542 pins that anchored onstudio-shell-headerare re-pointed, not loosened (graphite-37455viastudio-top-left,pillarsClaimSlot-12725).ui/e2e/studio-left-menu-36899.spec.tsis re-pointed, not loosened (see Tests).ui/e2e/live/studio-customize-journey.spec.tsis re-pointed, not loosened. ItspublishPairclicked the deleted top bar's Publish. It now opens the menu's 概览 badge, publishes the pair in the embeddeddraft-changes-panel, and still asserts that the pair'spublish-draftsPOST answers 200 withpublished. The full live lane passed 23/23 locally.shots-37456/final/).Verification
Read first, by risk:
StudioDesignSurface.tsxhunks: what the header held and that each piece is either rehomed or deliberately gone (Create app); the sheet's explicitposture="review";packagePath={studioPackageOverviewPath}.StudioScopePendingRowandStudioMobileStripinStudioTopLeft.tsx(the ~org gap; the phone's only door to the menu).StudioPackageSwitcher.tsx: the pick path (beforeNavigatebefore every navigation, including after create) and the list filter (kernel out, pairs folded).StudioMenu.tsx:collapsible="icon"and theRAIL_HIDDENclasses (a missed class leaves a half-drawn control on the rail).StudioTitleRowFallback.tsxand its mount point inStudioDesignSurface.tsx(it must stay after the page in document order).StudioBackButtoninStudioBackToApp.tsx(same target as the top bar's way back).Human Minimum
packages/specholds no runtime logic. (not touched)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_01Utp6CYYe7UScDrgUJxx5iP