Repository navigation
fix(studio): a PageShell row with nothing of its own draws no lone hairline; pin the title-row tenants outside studio-design - #37542
Conversation
…unted accent and its dark scope; PageShell's row draws no lone hairline - S1: with no copilot served, the slot toggle ends the flow page's title row, not the top bar, and hides and shows the slot. - S2: PageShell's compact and list rows (and their embedded gate), the directory header and the diagnostics header end with Save and the assistant under Studio; controls outside Studio. - N1: two surfaces holding the accent on body, one unmounted, keep it. - N4: under the dark theme the surface root and body match the dark variant and carry the accent's dark declarations. - N3: PageShell passes `divider` from its own stats and actions. Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T12:45Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head b74f7ff · 2026-11-26T12:46Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37542, card #37520 (follow-up of the contract record 7189499173 on PR #37474). Read: the card's body and its three comments (triage 7190492158, claim 7190642371, os-dev report 7191993931), the final-head comment 7192432076 on the PR, the PR body, the net diff against Check-runs on the head: 51 in total, 38 success and 13 skipped, with none failed or pending. Test UI 1–16, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Check PR Size, PR-body guards and Governed Surface Queue Guard all passed. Findings, graded:
① Derived judgmentsThe card's items against the diff.
File surface. The diff stays within the claim's surface: tests under Public surface. None changes. Main drift. The branch was not re-merged after ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…udio-title-row-pins
A row with actions of its own and no stats (ResourceEditPage's embedded frame passes actions without `embedded`) draws the hairline before the assistant, on the compact and the list row. Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the delta round (2026-11-26T16:58Z), answering the seat's REWORK 7192537138: Delta since
The area is late with this knock: the head was green at 13:12Z. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: This is a delta review on PR #37542. The prior record is 7192526450, at head The delta is two commits:
The merge changed none of the PR's own lines. For each of the PR's 7 files, the diff from Check-runs on the head: 51 in total, 38 success and 13 skipped, with none failed or pending. Among the successes are Test UI, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI and Check Changeset. Prior findings, by id:
No new findings. ① Derived judgmentsNothing changes from 7192526450. The delta adds a test and no product line. ② Semver levelNothing changes from 7192526450. The changeset is unchanged: ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta)Head-sha:
|
…udio-title-row-pins
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing (area ux-37424). The seat's delta L1 is ACCEPT (7198393044) at
|
…il (objectstack-ai#37579) repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 <!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgPUWudpC44JvVj61ofRTo8S)_ Fixes objectstack-ai#37456 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:Studio 不再有顶栏。左栏顶部两行:第一行 Studio 标识和收起按钮;第二行「返回应用」和软件包切换器(应用图标、名称,只读带锁,末行「新建软件包」)。变更和发布在「概览 › 待发布」;组织流程(~org)没有概览,左栏保留一行「变更 N」。「新建应用」按钮去掉。手机宽度顶部一条细栏打开菜单。左栏收起后成窄栏。 - 为什么做:App Studio 改版去掉顶栏(ADR-0084 2026-11-26 修订)。 - 出错会怎样:最坏是某个入口找不到(发布、返回),不丢数据;撤回即恢复。 - 要你做什么:暂无(区域审完后合入)。 ## 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 objectstack-ai#37553's split of `StudioDesignSurface.tsx` is not disturbed. **Half 2** (after objectstack-ai#37454 / PR objectstack-ai#37546 merged; `main` merged 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's `studio-menu-overview-pending` badge; 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 passes `posture="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 its `doPublish`. `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's `StudioBackToApp` is removed; `studioBackTarget` and `StudioBackButton` stay. - **`studio-tokens.ts`.** `STUDIO_HEADER`, `STUDIO_HEADER_PACKAGE_COLUMN`, `STUDIO_HEADER_WIDE_WORD` removed. - `StudioRoute.tsx` draws no bar, so it is untouched. - **Copy repointed (S1).** `engine.studio.newApp.appFailed` now points to the 应用 row in the package's menu. `engine.studio.data.draftObjectHint` now points to 概览 › Pending. The stale "Save in the top bar" strings (the two permission-set notes, `customize.saveFooter` and `inspector.draftFooter`) now say "page header" / 「页头」, in both en and zh. - **Missing-package way back (S2).** `StudioMissingPackageStrip` in `StudioTopLeft.tsx` is mounted when the package is missing, at every width. It holds `StudioBackButton` plus 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 objectstack-ai#37566 renamed through objectstack-ai#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 via `AppMark`, label via `navItemLabelText`, else the package name), with a lock when read-only. The list holds the openable packages: kernel packages out, `.custom` pairs folded ("with PAIR"), ~org / ~all not listed; a search box; the current row checked. Picking a package passes `beforeNavigate` (the unsaved-changes guard) and opens it. The last row, **New package** (authors only), opens the existing `CreatePackageDialog` (objectstack-ai#37134) and opens the created package. The list reloads on `objectui:packages-changed`; a failed read toasts under the shared `PACKAGE_LIST_TOAST_ID`. - **`StudioBackToApp.tsx`.** Adds `StudioBackButton`, the chevron-only way back with the same target as `studioBackTarget`. Its own testid (`studio-package-back`) so it does not clash with the top bar's `studio-back-to-app` while 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`.** A `head` slot at the top of the menu header; `collapsible` moves from `offcanvas` to `icon` (the rail); search and the advanced toggle hide on the rail; each menu item gets a tooltip, shown only on the rail. - **`StudioDesignSurface.tsx`.** Mounts `StudioTopLeft` as the menu's head and `StudioTitleRowFallback` after the pillars. The top bar's own menu toggle is removed (the toggle now lives in row 1, so the page never draws two). - **i18n.** `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-26708` is 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-11553` gains the row → sheet path. - Re-pointed from the bar to the new homes (same claims): `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`. - Deleted, because what they pinned no longer exists: `narrowHeader-12509` (the bar's narrow layout), `createAppAccessibleName` and the app cases of `CreateItemDialog.labels-13128` / `createTaken-26917` (Create app is gone), `publishPosture-12517` and `publishReadOnlyReason-12303` (the bar's Publish; the Pending tab's read-only posture is pinned in `noTopBar-37456` and objectstack-ai#37454's suite), `changesCount-11787` (its claim, a saved draft counts before its own re-read, is held by `metadataArea-28561`). - Ablations (each restored, `git diff HEAD` empty): `scopePending` never passed → 2 red in `packageLessFlows-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. - Re-pointed, not weakened: `homeLoop-12513` now asserts the way back is the first button of the package row and the toggle sits in Studio's row; `rightSlot-12725` waits for the assistant inside the list's title row (the fallback holds it while the list loads); the `PackageFormDialog.newAppStep-36748` door 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. - Ablations (each restored, `git diff HEAD` empty): the lock condition forced false, the lock case red; the fallback's `drawn` forced false, the fallback case red. <details><summary>Readings</summary> - Half 2 at 748026a: studio-design, i18n, `__tests__`, StudioRoute, DraftChangesPanel and newAppStep suites, `Test Files 314 passed`, `Tests 2843 passed`; app-shell `tsconfig.test.json` 0 errors; eslint 0 errors; derived gates 39/39 exit 0 (`vitest run scripts/` at 2 workers). - Half 1: `StudioTopLeft-37456`, `homeLoop-12513`, `rightSlot-12725`, `PackageFormDialog.newAppStep-36748`, the studio-design and i18n suites: 16 test files, all passed. At the head: `StudioTopLeft-37456` `Tests 11 passed (11)`. - `@object-ui/app-shell` sources and `tsconfig.test.json`: 0 errors; full workspace build (docs excluded) 123/123 tasks green. - Derived gate families (`dispatch-gates.mjs --commands`, 39): 37 exit 0 in the batch run; `check:test-source-alias` was red on the new suite (a clocked first load of `@objectstack/lint` through 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)`. </details> ## Acceptance notes - **A gap in ADR-0084's homes table: ~org Changes / Publish.** The table sends Changes + Publish to 概览's Pending tab, but the package-less organization-flows scope (~org) has no 概览 (`studioMenuOverviewEntry` returns 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 the `StudioTopLeft` files) that opens the existing sheet and its existing `doPublish`; nothing new on the server. Pinned by `StudioTopLeft-37456` + `packageLessFlows-11553` with an ablation, and shot light/dark. S3: the table gains this row in docs/adr follow-up objectstack-ai#37685. - **N5:** the read-only reason for keyboard and assistive-tech users is follow-up objectstack-ai#37687. N1–N4 are accepted as they are. - **Leftover i18n keys** (`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. - **Follow-up objectstack-ai#37580:** the list page's New on a read-only package as disabled-with-tooltip (`ResourceListPage.tsx`, outside this card's surface). - **Studio's name** reads the existing `engine.studio.mark` key. objectstack-ai#37566 renamed it to App Studio / 应用搭建 through objectstack-ai#37581, and `StudioTopLeft-37456` pins the exact name (`/^App Studio$/`). - **The ~org scope's name in the switcher** is 「组织元数据」 / "Organization metadata" (a new key, `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 「组织级流程」. - **Main was merged three times**, each time because of a conflict that blocked CI or landing (objectstack-ai#37581, objectstack-ai#37542, objectstack-ai#37637, then objectstack-ai#37602). Main's incoming test assertions are kept wherever they still hold without the bar. Only the assertions that pinned the bar itself were dropped: the `studio-back` text and accessible name, `studio-back-app-name`, the bar's `studio-mark`, and the settle on the bar's Create app button. Two auto-merged objectstack-ai#37542 pins that anchored on `studio-shell-header` are re-pointed, not loosened (`graphite-37455` via `studio-top-left`, `pillarsClaimSlot-12725`). - `ui/e2e/studio-left-menu-36899.spec.ts` is **re-pointed, not loosened** (see Tests). - `ui/e2e/live/studio-customize-journey.spec.ts` is **re-pointed, not loosened**. Its `publishPair` clicked the deleted top bar's Publish. It now opens the menu's 概览 badge, publishes the pair in the embedded `draft-changes-panel`, and still asserts that the pair's `publish-drafts` POST answers 200 with `published`. The full live lane passed 23/23 locally. - Screenshots (Chromium, dsf 2, light and dark, showcase app): no top bar, switcher open, rail, 概览 Pending, ~org Changes, phone strip and drawer; with the area beside mockups 1 and 3 (`shots-37456/final/`). ## Verification Read first, by risk: 1. `StudioDesignSurface.tsx` hunks: what the header held and that each piece is either rehomed or deliberately gone (Create app); the sheet's explicit `posture="review"`; `packagePath={studioPackageOverviewPath}`. 2. `StudioScopePendingRow` and `StudioMobileStrip` in `StudioTopLeft.tsx` (the ~org gap; the phone's only door to the menu). 3. The deleted tests and the reason each claim is gone or held elsewhere (Tests, half 2). 4. `StudioPackageSwitcher.tsx`: the pick path (`beforeNavigate` before every navigation, including after create) and the list filter (kernel out, pairs folded). 5. `StudioMenu.tsx`: `collapsible="icon"` and the `RAIL_HIDDEN` classes (a missed class leaves a half-drawn control on the rail). 6. `StudioTitleRowFallback.tsx` and its mount point in `StudioDesignSurface.tsx` (it must stay after the page in document order). 7. `StudioBackButton` in `StudioBackToApp.tsx` (same target as the top bar's way back). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Utp6CYYe7UScDrgUJxx5iP --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #37520
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Pins for the Studio title-row tenants that PR #37474 placed outside
studio-design/**, plus one product change (N3), as the contract record on #37474 asked (findings S1, S2, N1, N3, N4).PageShell.tsxonly): both PageShell rows (compact and list) now passdividertoStudioTitleRowEnd, computed from the row's own stats and actions. A row with neither draws the assistant with no hairline before it; Save still brings the hairline, asStudioTitleRowEndalready counts it as an action. This matches what the item header and the directory header already do. Outside Studio nothing changes (the row end draws nothing there).studio-slot-toggle) ends the flow page's title row behind a hairline, is absent from the top bar, is the only one on the page, and hides and shows the slot (aria-pressed and accessible name follow). Control: with a copilot served the same row ends with the AI assistant and no toggle.!embeddedgate on both rows (an embedded row draws neither Save nor the assistant); the directory header (assistant with no hairline; Save then hairline then assistant; control outside Studio); the diagnostics header (assistant last, after Refresh, behind a hairline; control outside Studio).body, one unmounted:bodykeeps the classes and the marker; the last unmount removes both. Control: one mount and unmount leavesbodyas found.dark:variant is read from the app shell's stylesheet; under thedarkclass on the page root, the surface root andbodyboth match the variant and carry the accent's dark declarations (graphite--primaryand--ringfromSTUDIO_ACCENT_HSL.dark). Control: under the light theme neither matches.Each new pin went into the existing harness file for its component as a top-level
describe(ruling record 6583487846), so no new test file is added.Read first (by risk):
ui/packages/app-shell/src/views/metadata-admin/PageShell.tsx, therowHasOwnControlshunk: the only product line.StudioDesignSurface.graphite-37455.test.tsx, the dark-variant block: it readsstyles.cssand matches the variant selector by selector (see Acceptance notes).StudioDesignSurface.pillarsClaimSlot-12725.test.tsx, the S1 block.Two-minute check:
cd ui && pnpm --filter @object-ui/app-shell exec vitest run --root ../.. packages/app-shell/src/views/metadata-admin/PageShell.narrowHeader-12306.test.tsxshows 13 passed, among them the twoN3cases.Tests
All on head
b74f7ff4c7. Nine ablations, each throughscripts/ablation-replace.mjs(mutation proven on disk, restore proven against HEAD), each turned its pin red:StudioDesignSurface.tsx, mutation only, restored)StudioTitleRowEndreplaced bynull!embedded &&dropped on the compact row!embedded &&dropped on the list rowrowHasOwnControls = trueStudioTitleRowEnddeletedStudioTitleRowEnddeletedmountedSurfaces > 0early return deleted (plain add/remove)dark:[--primary:220_9%_83%]removed fromSTUDIO_ACCENT(A2's first attempt was refused by the tool before any run, because its replacement was a suffix of its anchor; it was rerun with a distinct replacement, row above.)
Suite and typecheck readings
PageShellor reads the row end, divider or toggle (15 files):Test Files 15 passed (15),Tests 240 passed (240).pnpm --filter @object-ui/app-shell type-check(bothtsc --noEmitandtsc -p tsconfig.test.json, which compiles the tests):VERDICT command-exit 0.Acceptance notes
:where()(measured: withdarkon the page root,body.matches('.dark *')is true andbody.matches(':where(.dark, .dark *)')is false). The dark pin therefore splits the variant's selector list and matches each selector, which is what:where()means. The light-theme control rules out a pin that passes because nothing matches.StudioDesignSurface.tsxon disk for one run and restored it to HEAD (blob proven equal); the diff does not touch that file, norstudioMenuModel.tsorStudioPackageMenu.tsx.origin/mainmoved to1af67b26cdafter the branch point; the incoming app-shell change (ResourceListPage.tsxand a new record-section module) touches no PageShell prop and none of these files, so the branch was not re-merged.Verification
Derived gates (dispatch-gates --commands, head b74f7ff)
38 derived commands, every one exit 0, plus
pnpm check:changeset-fixed(its roster sits under.changeset) exit 0.dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED (a derived zero: all 38 recorded an exit code), 0 UNRUN. The uiscripts/family:Test Files 172 passed | 2 skipped (174). CI families (Test UI, Type Check UI, Lint UI and the rest) are read from this PR's check-runs, not re-run locally.Generated by Claude Code