Repository navigation
feat(studio): Studio's top-left rows, the package switcher and the rail - #37579
Draft
objectstack-fleet[bot] wants to merge 7 commits into
Draft
objectstack-fleet[bot] wants to merge 7 commits into
objectstack-fleet[bot] wants to merge 7 commits into
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
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bill · project thread
Fixes #37456
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Half 1 of 2 (this push). Studio's left column gets 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. The top bar is still drawn; it is deleted in half 2, after #37454 lands.StudioTopLeft.tsx(new). Row 1 (StudioBrandRow): Studio's graphite mark, its name (engine.studio.mark, the existing key; App Studio 改版(3-3):显示名改为「应用搭建 / App Studio」——应用标签与多语言文案(只改界面显示) #37566 retranslates it), 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
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.git diff HEADempty): the lock condition forced false, the lock case red; the fallback'sdrawnforced false, the fallback case red.Readings
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
mainonce; delete the top bar (header, its way back, ⋯ menu, create app / app-pending label, Changes, Publish) fromStudioDesignSurface.tsxandStudioRoute.tsx; a strip below 768 px holding the drawer control; re-point the tests that pin the bar; an acceptance test that walks every former top-bar tenant at its new home; final screenshots. Until then this stays a draft.ResourceListPage.tsx, outside this card's claimed surface; the claim amendment could not be posted, so the file is untouched and the change goes to a follow-up card under App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456. Observed: on the showcase package (read-only, with a.custompair) New is drawn because it creates into the pair.engine.studio.markkey; the rename to 应用搭建 / App Studio is App Studio 改版(3-3):显示名改为「应用搭建 / App Studio」——应用标签与多语言文案(只改界面显示) #37566's.Verification
Read first, by risk:
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