Skip to content

App Studio 改版(1-4):顶栏按钮搬家——保存/取消进详情页头,AI 助手和右侧栏开关进每页标题行右端;石墨色挂到整个 Studio #37455

Done
0 of 1 issue completed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Filing gate: ③ · Source: topic #37424 — parent decisions 3–4 and the maintainer's pick 「按推荐启动」 of phase 1 with the top-bar tenants' homes (2026-11-26 05:57Z, quoted on #37451). Sub-issue of #37424 (phase 1, P1-4).
Grade: area:ux · Feature · p2 (takes the parent's grade) · evidence: the parent's decisions, mockups (#37424 comment 7181963746) and the current shell read on origin/main 7d50dc8.
Reader: area ux-37424 (seat repo:objectstack#5), an os-dev subagent or card thread after the blockers land.

Sequencing (2026-11-26T06:55Z): no longer waits for #37451 to merge — the homes this card implements are the maintainer's own pick on the area's decision card (quoted on #37451), and he set phase-1 UI as the priority (「优先还是第一阶段的界面美观度优化」, 2026-11-26T06:46Z). The graphite root mount consumes #37452's tokens: if #37452 has not merged when the rest is ready, merge main once after it lands.

维护者速读

  • 用户能看到什么变化:编辑一个对象、页面时,保存和取消在详情页头右侧;AI 助手按钮和右侧栏开关在每页标题行的最右边,和前端应用的页头一样。整个 Studio 用石墨色,不跟应用的主题色。
  • 为什么:顶栏要去掉,这几样要先搬好家。
  • 需要你做的:无。

What

Acceptance

  • Save / Cancel, AI and the slot toggle work exactly as today from their new places (existing tests re-pointed, not weakened: e.g. the saveBar-36511, copilotDoors, rightSlot suites).
  • A non-default app theme does not tint Studio (one test).

Governing text: docs/adr/0084-application-builder-information-architecture.md as amended by #37451.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    enhancement
    priority:p2
    pm:blocked
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · priority:p2 · pm:blocked · size M; rationale: phase 1-4 of topic #37424, moving the top-bar buttons. Grade follows the parent; blocked by #37451 and PR #37383 (named on the card).

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

    Claim: PM loop round 1
    Session: session_01Utp6CbL6Nn3scsU8yvLyU4
    Account: os-bill
    Branch: claude/issue-37455-studio-top-bar-tenants-rehome
    Worktree: objectstack-issue-37455
    Domain: domain:ui
    Seat: repo:objectstack#5
    Area: ux-37424
    File surface: ui/packages/app-shell/src/views/studio-design/** (StudioDesignSurface.tsx, StudioItemHeader.tsx, the save controls, the list title row, the Studio root), their tests, one .changeset/*.md; ⛔ not StudioMenu.tsx / studio-tokens.ts (#37452's, read only) and not the top bar's removal (#37456) (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7184485694
    Premise: holds — read at origin/main 2026-11-26T06:56Z: StudioSaveControls, the AI button and the right-slot toggle still live in the top bar of StudioDesignSurface.tsx; PR #37383 merged 2026-11-26T06:08Z.
    Serial constraints cleared: no open PR touches StudioDesignSurface.tsx, StudioItemHeader.tsx or the save controls (all open PRs' file lists scanned, 0 hits); #37452 (in flight, this area) owns StudioMenu.tsx / studio-tokens.ts only; #37440 and #36660 (unclaimed, pm:queue) change the same save controls — this card moves them without changing their behaviour, so whichever lands second rebases.
    Pre-claim lane: domain:ui — every path is under ui/packages/app-shell.
    Pre-claim deps: the card's former Blocked-by: #37451, #37383 — #37383 merged; #37451 dropped by the Sequencing line in the body (the homes are a maintainer ruling, not the ADR text).
    Prior rulings read: epic #36510 (human Save goes live at once; draft + whole-package publish for AI only), #36511 save bar, the front end's page-header button group (#36107 / #36111), the maintainer's 「按推荐启动」 homes; docs/adr/0084 governs the shell (amendment in flight on #37451).

  4. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 26, 2026
  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
    os-dev-report

    {
     "issue": 37455,
     "status": "blocked",
     "branch": "claude/issue-37455-studio-top-bar-tenants-rehome",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37474",
     "session": "session_01Utp6CbL6Nn3scsU8yvLyU4",
     "premise_still_valid": true,
     "summary": "Rehoming done (draft PR #37474, head 7c9bb160). A new studioTitleRow.tsx module gives StudioDesignSurface a provider that passes its built controls to the page's title rows. Only the first title row in document order draws them, so a page never has two Saves. Cancel/Save now end StudioItemHeader's action slot. The AI button, or the slot toggle when no copilot is served, ends every title row behind a hairline: item headers, PageShell list/compact rows when not embedded, and the directory and diagnostics headers. The PM increment is applied: a page that saves with no item header ends its own title row with Save (StudioTitleRowEnd), and create-app/app-pending stay in the top bar untouched. studioSaveBar logic is unchanged (doc lines only). BLOCKED (accent half only): STUDIO_ACCENT is not on main. #37452's PR #37478 is open as a draft, so the graphite root mount and the 'non-default app theme does not tint Studio' pin wait for it to merge. Then I merge main once and mount the class on the StudioMenuProvider frame. Nothing else waits. The PR stays draft until then.",
     "tests": "At 6be30eed: 242 app-shell suites that name the moved controls, headers, PageShell, directory, diagnostics or list pages, or the save harness -> 'Test Files 242 passed (242) / Tests 2052 passed (2052)', lock VERDICT command-exit 0. At 7c9bb160 (head, registry keyed by token): saveBar-36511, rightSlot-12725, studioTitleRow, pillarsClaimSlot-12725, PackageOwdOverviewPanel.partialSave-36511, AutomationsPillar.saveCancel-36511 -> 'Test Files 6 passed (6) / Tests 39 passed (39)'. @object-ui/app-shell type-check (src + tsconfig.test.json) at 7c9bb160: VERDICT command-exit 0. Reverse verification at 02bfaa1e: StudioDesignSurface.tsx, StudioItemHeader.tsx and PageShell.tsx restored from base a46efa8c -> 9 of 13 new/re-pointed cases red (4 green: outside-surface control + unchanged slot cases); restored with git checkout HEAD, git diff HEAD empty. eslint on the changed ui files: 0 errors; one new warning (react-refresh/only-export-components on studioTitleRow.tsx, same class StudioItemHeader already carries).",
     "gates": "Local: dispatch-gates --commands derived 39 families at 57a12e44; all 39 exit 0 (each exit captured before any pipe); --ran reconciliation: '39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3)'. Ratchets re-run at head 7c9bb160 after the last push: check:type-check-coverage, check:type-check-debt, check:test-source-alias, check:cross-package-test-inputs, check:nul-bytes, check:undeclared-dep-imports -> exit 0 each. CI on 7c9bb160 at report time: Type Check UI success, TypeScript Type Check success, Test Core success, Dogfood Regression Gate success, Live E2E UI success, Build UI Deps success; Test UI (1..16/16), Lint UI, Build & E2E UI in_progress.",
     "line_budget": "n/a — no skills/** or ratcheted ledger touched; diff 11 files, +493/-70 (dispatch-gates count) at 7c9bb160",
     "files_changed": [
      ".changeset/37455-studio-top-bar-tenants-rehome.md",
      "ui/packages/app-shell/src/views/metadata-admin/DiagnosticsPage.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/PageShell.tsx",
      "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.rightSlot-12725.test.tsx",
      "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.saveBar-36511.test.tsx",
      "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx",
      "ui/packages/app-shell/src/views/studio-design/StudioItemHeader.tsx",
      "ui/packages/app-shell/src/views/studio-design/studioSaveBar.tsx",
      "ui/packages/app-shell/src/views/studio-design/studioTitleRow.test.tsx",
      "ui/packages/app-shell/src/views/studio-design/studioTitleRow.tsx"
     ],
     "deviations": [
      "File surface: three files outside studio-design/** (metadata-admin/PageShell.tsx, DirectoryPage.tsx, DiagnosticsPage.tsx), read as the claim's 'the list title row' — in Studio the list, directory and diagnostics title rows live there; one import + one element each, no logic change. StudioMenu.tsx and studio-tokens.ts untouched.",
      "Test run narrowed: 242 affected app-shell suites locally, not the full Test UI battery (CI shards it 16-way).",
      "The 242-suite run predates the head commit 7c9bb160 (registry keyed by a token); after it the 6 directly affected suites and the app-shell type-check were re-run at head.",
      "Dogfood: n/a (no '!' in title, Clause-②: no)."
     ],
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0 — no MCP GitHub calls",
     "api_writes": "2 — relay strokes via scripts/pm/fleet-write: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/37474/assignees os-bill), os-dev-report comment on #37455 via post-stamped.mjs (POST issues/37455/comments). git pushes are not REST writes.",
     "open_questions": [
      {
       "question": "Portalled Studio surfaces (dialogs, dropdown menus, the pending-changes sheet, tooltips, toasts) render under document.body, outside the Studio root, so a root mount of STUDIO_ACCENT will not reach them and they keep the app's theme colour. Is a root-only mount enough for the accent?",
       "options": [
        "A Mount on the Studio root only, as ruled; record the portals as a known limit in the PR",
        "B Also rebind the tokens on document.body while Studio is mounted (an effect that adds and removes the class) so portals follow",
        "C Give the Radix portals a container inside the Studio root"
       ],
       "recommendation": "A now, because the ruling names the Studio root. File B as its own card if the maintainer wants dialogs to be graphite too: B is a global side effect, and it races with the app-branding hook writing root styles."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed — pages with no title row in a package scope (loading, not-found) draw no assistant; ⌘. still toggles the slot there (PR Acceptance notes)"
     ]
    }
  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
    os-dev-report

    {
      "issue": 37455,
      "status": "done",
      "branch": "claude/issue-37455-studio-top-bar-tenants-rehome",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37474",
      "session": "session_01Utp6CbL6Nn3scsU8yvLyU4",
      "premise_still_valid": true,
      "summary": "Save/Cancel now end the item header's action slot (or the page's own title row when it has no item header), and the AI assistant / right-slot toggle ends every title row behind a hairline, through a one-owner registry (studioTitleRow.tsx); the top bar keeps its other tenants untouched. After merging main once (99c3443c, #37452 landed), STUDIO_ACCENT is mounted on the Studio root, and studioAccent.ts puts the same classes plus a data-studio-accent marker on body while a Studio surface is mounted (counted, removed on the last unmount), because the @object-ui/components portal primitives take no container and editing them is outside the claim. Real Chromium (dsf 2, light and dark) under the showcase app's own branding (#7C3AED) shows the app violet, then Studio's menu, Save, and the portalled command palette graphite; the AI button and slot toggle were not drawable there (no copilot served, no slot claim) and stay pinned by jsdom tests. Contract conflict: the coordinator asked me to update the PR body, but the standing os-dev contract says a subagent writes the PR body only at pr_create and the seat PATCHes it; I did not PATCH and saved the ready body at /mnt/project-files/objectstack-seat5/topic-37424/cards/pr-body-37474.md for the seat. The PR stays draft (the dev does not flip ready).",
      "tests": "At final head 884c4bd3: `pnpm --dir ui exec vitest run --maxWorkers=2` graphite-37455, saveBar-36511, rightSlot-12725, studioTitleRow, StudioMenu: `Test Files 5 passed (5)`, `Tests 54 passed (54)`; `pnpm --dir ui --filter @object-ui/app-shell type-check` under the lock: `VERDICT command-exit 0`. Ablations of the graphite pins at e9b4ad79 (scripts/ablation-replace.mjs, restore verified, git diff HEAD empty): root class removed -> 2 red (root, portal); body hook removed -> 2 red (portal, unmount); cleanup remove line deleted -> 1 red (unmount). Earlier: 242 suites / 2052 tests at 6be30eed; 6 suites / 39 tests at 7c9bb160; reverse verification 9 of 13 new/re-pointed cases red with the base files restored. Real browser: 14 screenshots (7 views x light/dark) in /mnt/project-files/objectstack-seat5/topic-37424/cards/shots-37474/; readings: app html/body --primary 262 83% 58% (dark 262 73% 65%); Studio body --primary 220 9% 23% (dark 220 9% 83%) while html falls back to 211 100% 50% (the app shell clears its branding when the app unmounts); Save bg rgb(53,57,64) / rgb(208,210,216); palette dialog under the body accent with --primary 220 9% 23% / 220 9% 83%; Save in data-object-header true, in top bar false. NOT MEASURED in browser: AI button and slot toggle (not drawn: no copilot served, no page claimed the slot).",
      "gates": "Local: 39 derived families (dispatch-gates.mjs --commands, tree objectstack-ai/objectstack at 884c4bd386) each exit 0 (exit captured before any pipe); `--ran` reconciliation exit 0: '39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero ...)'. CI at 884c4bd3: 38 check-runs success, 13 skipped, 0 failed (Test UI, TypeScript Type Check, Lint & Repo Gates, Type Check UI, Build & E2E UI, Lint UI, Test Core, Check Changeset, Check PR Size, PR-body guards, Dogfood Regression Gate). The red on 99c3443c (TypeScript Type Check 139824196193, Lint & Repo Gates 139824255979, Test UI 139824266896) was not a failing test: every failing lane 'concluded `cancelled`' (e.g. 'type-check lane `typecheck-consumers` concluded `cancelled`') because my next push e9b4ad79 cancelled the run; e9b4ad79's UI lanes were likewise cancelled by 884c4bd3.",
      "line_budget": "n/a — no skills/** or ratcheted ledger touched; diff 11 files, +493/-70 (dispatch-gates count) at 7c9bb160",
      "files_changed": [
        ".changeset/37455-studio-top-bar-tenants-rehome.md",
        "ui/packages/app-shell/src/views/metadata-admin/DiagnosticsPage.tsx",
        "ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx",
        "ui/packages/app-shell/src/views/metadata-admin/PageShell.tsx",
        "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.rightSlot-12725.test.tsx",
        "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.saveBar-36511.test.tsx",
        "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx",
        "ui/packages/app-shell/src/views/studio-design/StudioItemHeader.tsx",
        "ui/packages/app-shell/src/views/studio-design/studioSaveBar.tsx",
        "ui/packages/app-shell/src/views/studio-design/studioTitleRow.test.tsx",
        "ui/packages/app-shell/src/views/studio-design/studioTitleRow.tsx"
      ],
      "deviations": [
        "File surface: three files outside studio-design/** (metadata-admin/PageShell.tsx, DirectoryPage.tsx, DiagnosticsPage.tsx), read as the claim's 'the list title row' — in Studio the list, directory and diagnostics title rows live there; one import + one element each, no logic change. StudioMenu.tsx and studio-tokens.ts untouched.",
        "Test run narrowed: 242 affected app-shell suites locally, not the full Test UI battery (CI shards it 16-way).",
        "The 242-suite run predates the head commit 7c9bb160 (registry keyed by a token); after it the 6 directly affected suites and the app-shell type-check were re-run at head.",
        "Dogfood: n/a (no '!' in title, Clause-②: no).",
        "Round 2: PR body not PATCHed by the dev (standing contract), ready body handed to the seat.",
        "Round 2 browser check used the showcase app's own branding (#7C3AED) and a demo package com.acme.studio-demo created through the API in a throwaway local db; AI/slot controls were not drawable in the browser.",
        "Round 2 local test run narrowed to the 5 directly affected suites plus the app-shell type-check; CI ran the full Test UI battery green at 884c4bd3."
      ],
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls",
      "api_writes": "3 — relay strokes via scripts/pm/fleet-write: pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft, + POST issues/37474/assignees os-bill); two os-dev-report comments on #37455 via post-stamped.mjs (POST issues/37455/comments: 7185774932 earlier, and this round's). No PR body PATCH. git pushes are not REST writes. Read-only `gh api` check-runs GETs only.",
      "open_questions": [
        {
          "question": "The coordinator's resume order asked the dev to update the PR #37474 body, but the standing os-dev contract says a subagent writes the PR body only at pr_create and the seat writes later changes. Who PATCHes it?",
          "options": [
            "A The seat PATCHes it from /mnt/project-files/objectstack-seat5/topic-37424/cards/pr-body-37474.md (ready, sanitizer-clean, only the harness attribution comment)",
            "B Rule an exception so the dev PATCHes it next time"
          ],
          "recommendation": "A, because the standing contract wins over dispatch words and the body is ready to paste."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — pages with no title row in a package scope (loading, not-found) draw no assistant; ⌘. still toggles the slot there (PR Acceptance notes)",
        "carrier: none · noted, not filed — portalled Studio surfaces get graphite through a body class because the @object-ui/components portal primitives take no container; a portal container inside the Studio root would make the body class unnecessary (PR Acceptance notes)",
        "carrier: none · noted, not filed — in the real console the app shell clears its branding tokens from html when the app unmounts, so Studio sits on the default blue, not the app colour; Studio draws graphite over either (PR Acceptance notes)"
      ],
      "head_sha": "884c4bd3868b18e95d2da885a99bd8b433125280"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions