Repository navigation
feat(studio): Save and Cancel in the item header, the AI assistant at the end of every title row - #37474
Conversation
… the end of every title row The Studio top bar's page controls move to the open page's own title row: Cancel and Save end the item header's action slot, and the AI assistant (or the right slot's show / hide icon) ends every title row behind a hairline, as the front end's page header ends with the shell's group. The surface still owns and builds them; only their place changes. Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…d of the title row Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…e row with Save Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…e row Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
… not state set in an effect Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
…udio-top-bar-tenants-rehome
… a portal The surface's root carries STUDIO_ACCENT, and body carries it while a Studio surface is mounted, so dialogs, menus, sheets, tooltips, toasts and the command palette draw graphite too; it comes off with the last surface. Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4 Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T10:23Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 884c4bd · 2026-11-26T10:25Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37474, card #37455 (epic #37424). Read: the card's body and its four comments (triage 7184485694, claim 7184943508, the two os-dev reports 7185774932 and 7189264702; no amendment comment exists), the epic's body, ADR-0084's amendment of 2026-11-26 on Check-runs on the head: 55 runs, 40 success, 15 skipped, 0 failed, 0 pending. That is 38 distinct names green and 13 skipped; Findings, graded:
① Derived judgmentsThe top bar against the amendment's table of seven tenants. This card moves two rows of that table and must leave the other five alone (card: "do not restyle it").
Access and visibility. Nothing is shown to anyone who could not see it before. The controls are built by the surface under the old conditions and only placed by the rows. Outside the surface the context is null and the rows draw nothing (control case in The one-owner registry ( The accent scope. Right.
Public surface. None changes. ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing (2026-11-26T10:34Z): area ux-37424 marks PR #37474 ready and arms auto-merge on head |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45802787226 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Re-queue (2026-11-26T10:58Z) after queue build 45802787226 failed (triage 7190081189). The failing assertion is |
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Requested by Bill · project thread
Fixes #37455
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The Studio top bar's page controls move to the open page's own title row. The surface still owns and builds them (save coordinator, right slot, robot control); only their place changes, so their logic is untouched and the two cards that change the save controls next (#37440, #36660) rebase onto
studioSaveBar.tsxunchanged.studioTitleRow.tsx.StudioTitleRowProvider(mounted byStudioDesignSurface) hands the rendered controls to the page's title rows. Every title row registers its row element, and only the first in document order draws the controls, so a page never draws two Saves (a header nested in the page's own, or an embedded compact row, draws nothing). Outside the surface nothing is drawn, so Setup's metadata pages are unchanged.StudioItemHeader's right-aligned action slot, after the pillar's actions (the detail header's ‹ ›, primary button and ⋯). Per the area PM's increment (ADR-0084 amendment draft, PR docs(adr): ADR-0084 amended — App Studio is the entry for developing a package; two columns, no top bar #37470), a page that saves with no item header ends its own title row with them (StudioTitleRowEnd).PageHeaderends with the shell's button group (外壳(一)页面头部:报表和自定义页面补上统一头部;每页右上角固定一组按钮(评论、编辑应用、AI、帮助) #36111): the item header, the list page's title row (PageShell, list and compact rows, not when embedded), the directory and diagnostics headers.main(with App Studio 改版(1-1):左侧菜单照前端样式——分组标题可折叠、线条图标不带底色、选中用胶囊加竖条;定义 Studio 专用石墨色 #37452'sSTUDIO_ACCENT) is merged once (99c3443). The accent is mounted on the Studio root (theStudioMenuProviderframe inStudioDesignSurface), so every button, link, hover and focus ring inside Studio reads graphite under any app theme.body, outside the root, and the@object-ui/componentsprimitives take no portal container (giving them one is outside this card's surface). So the newstudioAccent.tsputs the same classes (and adata-studio-accentmarker) onbodywhile a Studio surface is mounted, counted per surface, and takes them off with the last unmount. The app's inline branding on the page root is never touched, so nothing needs repair when Studio leaves.Tests
StudioDesignSurface.saveBar-36511: re-pointed, not weakened. Cancel and Save are asserted inside the object page's item header (data-object-header), absent from the top bar, drawn exactly once, and Save is still the last action (only the assistant follows). The draft case still asserts Changes and Publish in the top bar and that Publish waits for Save.StudioDesignSurface.rightSlot-12725: a new top-level describe. On the sharing overview the AI assistant ends the item header behind the hairline, is absent from the top bar, and still hides and shows the slot. On a list page it ends the list's title row, inside the page.studioTitleRow.test.tsx(new): the order in an item header (pillar actions, Save, hairline, assistant); no hairline with nothing before it; nested and later rows draw nothing (one Save, one assistant); the outer header of a nested pair wins; the next row takes over when the first goes; a page with no item header ends its own row with Save; and the control: outside the surface nothing is drawn.StudioDesignSurface.graphite-37455(new): the app's theme is written by the app shell's ownuseAppShellBranding(rose primary, amber accent), not by hand. CONTROL: that theme is on the page root and is not graphite. The Studio root carries every accent class and contains the header, the page and the AI button. The command palette (portalled) is outside the root and sits under the accent onbody. Studio unmounted: every accent class and the marker leavebody, and the page root's--primaryis as the app wrote it.git diff HEADempty): root class removed, 2 red (root, portal); body hook removed, 2 red (portal, unmount); the cleanup's remove line deleted, 1 red (unmount).StudioDesignSurface.tsx,StudioItemHeader.tsxandPageShell.tsxrestored to the base commit, 9 of the 13 new or re-pointed cases go red (the 4 that stay green are the outside-the-surface control and the unchanged slot cases); restored,git diff HEADempty.Readings
PageShell, the directory, diagnostics or list pages, or the save harness:Test Files 242 passed (242),Tests 2052 passed (2052).pillarsClaimSlot-12725,PackageOwdOverviewPanel.partialSave-36511andAutomationsPillar.saveCancel-36511:Test Files 6 passed (6),Tests 39 passed (39).@object-ui/app-shelltype-check(sources and the test project): exit 0.graphite-37455,saveBar-36511,rightSlot-12725,studioTitleRow,StudioMenu:Test Files 5 passed (5),Tests 54 passed (54).@object-ui/app-shelltype-check:VERDICT command-exit 0.dispatch-gates.mjs --commands, 39 families at 884c4bd): every one exit 0;--ranreconciliation:39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero ...).cancelled", because the next push (e9b4ad7) cancelled that run. No test failed on it.Acceptance notes
⌘.still opens and switches the slot there.bodyclass, not a portal container: the primitives take none, and adding one is outside this card's surface. A portal container inside the Studio root would make thebodyclass unnecessary.htmlfalls back to the default blue on entering Studio. Studio still draws graphite over that default, as the readings below show; the jsdom pin covers the case where the app's branding stays on the page root.studio-design/; they are the "list title row" of their pages and get one line each.Verification
Read first, by risk:
studioAccent.ts: thebodyclass while Studio is mounted, and its counted cleanup (a leak would tint the app's own pages graphite).StudioDesignSurfacehunk that mountsSTUDIO_ACCENTon the root and buildstitleRowSave/titleRowAssistant.studioTitleRow.tsx(the one-owner registry) and theStudioItemHeaderaction-slot hunk.Real-browser readings (Chromium, deviceScaleFactor 2, light and dark)
Backend:
examples/app-showcase(objectstack dev), console from this branch. The showcase app is the branded app used (its branding is violet#7C3AED); no example app writes its theme any other way. A writable packagecom.acme.studio-demowith one objectsdemo_taskwas created through the API to show Save and Cancel. Shots:shots-37474/on the project's card folder.html --primarybody --primary262 83% 58%, dark262 73% 65%(inline)bodycarries no accent211 100% 50%, dark211 100% 60%220 9% 23%, dark220 9% 83%rgb(53, 57, 64), darkrgb(208, 210, 216)bodyaccent, its--primarylight220 9% 23%, dark220 9% 83%studio-title-row-end)NOT MEASURED in the browser: the AI assistant button and the right-slot toggle. The showcase backend serves no copilot, and none of the opened pages claims the right slot, so neither control is drawn there; their place is pinned by
rightSlot-12725andstudioTitleRow.Two-minute check: from a branded app, open an object in Studio (
/studio/PACKAGE/metadata/object/NAME) and change its label on Settings: Cancel and Save appear at the right of the object's header, the top bar shows neither, and Save, the active menu item and the ⌘K palette are graphite, not the app's colour; with a copilot served, the robot sits at the far right after a hairline.Generated by Claude Code