Skip to content

refactor(app-shell): move the Data, Automations and Access pillars out of StudioDesignSurface.tsx (move-only) - #36956

Merged
os-zhuang merged 6 commits into
mainfrom
claude/issue-36893-sds-pillar-split
Nov 24, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/issue-36893-sds-pillar-split

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36893
Part of #36890

repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感,Studio 设计界面的行为与外观不变,只是代码换了文件存放。
  • 为什么做:属于「Studio 重构」专题;把八千行的设计界面大文件按数据、自动化、访问三个分区拆开,让后面左侧菜单和三个设计器的改动可以并行,不再排队改同一个文件。
  • 出错会怎样:最坏是 Studio 某个分区打不开或报错,所有在 Studio 里设计应用的管理员都会立刻看到;改动是纯搬移,可以整体直接撤回。
  • 要你做什么:审阅并亲手合并这个草稿(改动行数超过三千,按规则需要你本人合并)。

What changes

Move-only split of ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx (SDS), the whole card in one PR: all three pillars. SDS goes from 8,010 lines (at base 62692b7f8) to 1,715.

New module Moved from SDS at 62692b7f8 What it holds
DataPillar.tsx lines 1973-4899 (2,927 lines) renderStudioGridList (the records-grid slot), ObjDraftSend, DataPillar
AutomationsPillar.tsx lines 4904-6978 (2,075 lines) readPublishedFlowNames, AutomationsPillar
AccessPillar.tsx lines 1947-1971 (25) and 6980-8008 (1,029) StudioNameLabel, NewSimilarStrip, NEW_SIMILAR_ARRIVAL_STATE, readNewSimilarArrival, AccessPillar
  • Move only. Each moved block is byte-identical to its text at the base; the check is below. Each new file is a header comment, its imports, and the moved blocks, nothing else. No export was added or removed: the three pillars and renderStudioGridList were already exported, and the other helpers stay private to their module.
  • Helpers. Every helper that moved is used only by the pillar it moved with: StudioNameLabel only by AccessPillar, ObjDraftSend and renderStudioGridList only by DataPillar, readPublishedFlowNames only by AutomationsPillar. No helper used by two pillars or by the shell existed in this text, so nothing went to a shared module.
  • No cycle. The new modules import nothing from SDS. SDS imports the three pillars and re-exports them, plus renderStudioGridList for StudioDesignSurface.gridRefresh.test.tsx, so every import path stays the same. The test files that import the pillars are not edited.
  • SDS diff = deletions + re-exports. It removes the blocks and the import names only they used, trims five single-line imports, and adds three import lines for the new modules and three re-export lines with comments. The FlowStatusDot re-export pair shows as moved only because the text around it was deleted. The import names in each file come from the TypeScript checker's own noUnusedLocals result: 0 unused at base, 0 in each of the four files at head.
  • By-path readers (ruling 6597555122 item 3), all three updated in this PR:
    • homeRecoveryRedirectsFollowDeclaration-7373.test.ts: the Studio site's alsoReads gains the three modules.
    • ui/scripts/__tests__/spec-symbol-ledger-app-shell-7265.test.ts: SITES gains the three modules.
    • clickableNonControlCensus-13461.test.ts: six rows are re-keyed from SDS to the module their site moved into. Data has the two canvas backgrounds, the rail scrim and the form-preview click; Automations and Access each have their rail scrim. The keys and reasons are unchanged.
  • One root changeset, .changeset/36893-sds-pillar-split.md (@object-ui/app-shell patch), carrying both declaration lines.
  • History on the branch: slice 1 (Automations, Access) was committed first. Then origin/main was merged in after PR 36888 landed. The single conflicting line was in the StudioCustomizeControls import: withoutReplacedPlacements from main was kept, and type CustomizeBlock was dropped, because its only reader moved out with AutomationsPillar. The Data pillar move came after that merge, measured against the merged text.

Read first (by risk):

  1. SDS, the import block and the three re-export lines at the end of the file. This is where a missing re-export would break an importer.
  2. clickableNonControlCensus-13461.test.ts, the six re-keyed rows.
  3. DataPillar.tsx, its import block. It is the largest pruned import list.

Tests

Verbatim check: all four blocks against base 62692b7
B=62692b7f8; D=ui/packages/app-shell/src/views/studio-design
for spec in 'AccessPillar 1947 1971' 'DataPillar 1973 4899' 'AutomationsPillar 4904 6978' 'AccessPillar 6980 8008'; do
  set -- $spec
  git show $B:$D/StudioDesignSurface.tsx | sed -n "$2,$3p" > /tmp/blk
  node -e 'const fs=require("fs"),c=require("crypto");const b=fs.readFileSync("/tmp/blk","utf8");const f=fs.readFileSync(process.argv[1],"utf8");const i=f.indexOf(b);console.log(process.argv[1].split("/").pop()+": base lines "+process.argv[2]+" ("+(b.split("\n").length-1)+" lines, sha256 "+c.createHash("sha256").update(b).digest("hex").slice(0,16)+"): "+(i===-1?"MISSING":(f.indexOf(b,i+1)===-1?"verbatim, once, from line "+f.slice(0,i).split("\n").length:"DUPLICATE")))' $D/$1.tsx $2-$3
done

Output at head c77091a61:

AccessPillar.tsx: base lines 1947-1971 (25 lines, sha256 6992ca733d12063a): verbatim, once, from line 61
DataPillar.tsx: base lines 1973-4899 (2927 lines, sha256 310655239c9c9faf): verbatim, once, from line 202
AutomationsPillar.tsx: base lines 4904-6978 (2075 lines, sha256 b917d07fef64e35a): verbatim, once, from line 162
AccessPillar.tsx: base lines 6980-8008 (1029 lines, sha256 aa6b436a3bcacc05): verbatim, once, from line 87

The complementary check: with the moved blocks removed, each new file has 0 lines left that are not header or import lines (Access 0, Automations 0, Data 0). The Automations and Access blocks are also byte-identical to their text at 3f568c1a4, where slice 1 was first cut (same sha256 values), so the field-layout PR changed none of that text.

Local verification at head c77091a, under os-verify-lock (one chain joined with &&, VERDICT command-exit 0)
  • pnpm --filter '@object-ui/app-shell^...' build (dependency closure, rebuilt after the merge): exit 0
  • pnpm --filter @object-ui/app-shell type-check (both tsc --noEmit and tsc -p tsconfig.test.json): exit 0
  • ui: pnpm run type-check:scripts: exit 0
  • eslint on the four studio-design files and the three readers: 0 errors, 47 warnings. The react-hooks warnings are 46 at base on SDS and 46 at head across the four files (8 + 16 + 14 + 8), rule for rule. The one extra is react-refresh/only-export-components on SDS's re-export of renderStudioGridList; see Acceptance notes.
  • vitest, the whole views/studio-design/ directory plus every test outside it that names a pillar or reads SDS by path (7373, 7265, census 13461, the two PermissionMatrixEditor pins, ResourceEditPage.celGate, ObjectFieldInspector.celGate, builtinDesigners.lateArrival-11939): Test Files 300 passed (300), Tests 2153 passed (2153)
  • Narrowed, as declared: the full UI suite runs in CI (Test UI).
Derived gate families (dispatch-gates --commands)

The 38 derived commands ran on slice 1's head 7a19c2b90, all exit 0, and --ran reconciled 38 derived, 38 run, 0 NOT-MEASURED. The re-run at c77091a61 is recorded in the os-dev report on the card. check-platform-checklist --changed-from origin/main: no anchored file in the change set, nothing judged.

Acceptance notes

  • Tier H by size: 6,516 additions + 6,316 deletions = 12,832 changed lines. Draft, waiting for the maintainer. No AI seat readies, queues or arms it.
  • renderStudioGridList moved with its own eslint-disable-next-line react-refresh/only-export-components line, which still applies in DataPillar.tsx. SDS's re-export of it now draws that rule's warning once (warn, not error, so no gate fails). Adding a matching directive to SDS would be a new line rather than a move, so this PR leaves it out. It is a one-line follow-up if wanted.
  • Open PR 36784 (paused) conflicts in SDS. It already conflicts with origin/main without this branch (merge-tree exit 1), so this PR does not cause that conflict.
  • Prose that still names SDS for text that has moved, outside this card's file surface, noted and not filed: source citations in docs/qa/platform-checklist/areas/{automation,studio-authoring,access-security}.json that name SDS for pillar behaviour; the producer prose in packages/spec/liveness/permission.json (the Access pillar mounts the permission page); and the StudioDesignSurface.tsx:2575 line citation in ui/packages/plugin-view/src/ObjectView.tsx. None is read by a gate (the checklist gate found no anchored file).

Verification

Two-minute check: run the verbatim-check script above from the repo root on this branch. Expect four lines, each ending verbatim, once, from line N. A MISSING or DUPLICATE line means the move is not verbatim.

Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR

🤖 Generated with Claude Code

…tudioDesignSurface.tsx

Move-only slice of the StudioDesignSurface.tsx split: AutomationsPillar
with readPublishedFlowNames goes to AutomationsPillar.tsx; AccessPillar
with its New-similar arrival reader and StudioNameLabel goes to
AccessPillar.tsx. The moved text is byte-identical apart from imports.
The surface imports both back and re-exports them, so every import path
is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
The 7373 recovery-redirect scan and the 7265 spec-symbol ledger gain
AutomationsPillar.tsx and AccessPillar.tsx in their reading lists, and
the clickable census re-keys the two rail scrims that moved with the
pillars to their new files. A moved body stays in its reader's list.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
Resolves the one known import line in StudioDesignSurface.tsx: keep
withoutReplacedPlacements (added on main), drop type CustomizeBlock
(its only reader, AutomationsPillar, moved out).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
Move-only: DataPillar, the records-grid slot renderStudioGridList and
the ObjDraftSend shape (both used only by DataPillar) go to
DataPillar.tsx, byte-identical apart from imports. The surface imports
DataPillar back and re-exports it with renderStudioGridList, so every
import path is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
The 7373 scan and the 7265 ledger gain DataPillar.tsx in their reading
lists, and the clickable census re-keys the Data pillar's four sites
(two canvas backgrounds, the rail scrim, the form-preview click) to it.
The changeset now names all three pillars.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

席位核对 — ACCEPT · repo:objectstack#3 · head c77091a · 2026-11-24T11:35Z

L1: ACCEPT
Head-sha: c77091a618590d63b15ba6fe0576c1ee01c8b5c8
Reviewer: L1-b (seat 3, area ux-E). Contract review: none owed. Clause-②: no, Metadata-protocol: none, no packages/spec/src/**, no governed rule text.
Tier H, by size: +6516/−6316 = 12,832 changed lines, over the 3,000-line line. This is card #36893's only PR. This verdict goes to the seat, which hands the PR to the maintainer. The draft stays a draft.

Read

Move-only, checked independently

I did not rely on the PR's own script. I compared, as line multisets, the lines removed from StudioDesignSurface.tsx with the full text of the three new files.

  • New-file lines not removed from SDS: 206. Every one is an import line, an import-list member, the copyright line, a blank line, or the three new module headers. That leaves 0 code lines that did not come out of SDS.
  • Lines removed from SDS but not in the new files: 37. All are import members or import lines that SDS no longer needs, plus the #29988 re-export comment and line, which moved below the new imports.
  • Lines added to SDS: 15. Four import lines for the pillars and renderStudioGridList, five narrowed import lines, and three re-export comments with their export { … }.
  • There is no copied helper, because duplication would show as extra new-file lines. There is no circular import: none of the three files imports StudioDesignSurface.
  • SDS goes from 8,010 to 1,715 lines, under the card's "about 5,600".

Checklist

  • Shape. Draft, base main, Fixes #36893. The PR delivers the whole card.
  • Scope. The three new pillar modules, SDS, and the three by-path readers.
    • 7373: alsoReads gains the three files.
    • 7265: SITES gains the three files.
    • 13461: the census re-points its six rows to the module each one now lives in. The count is the same, six before and six after, so nothing is dropped.
  • Changeset. @object-ui/app-shell patch, internal move-only, Clause-②: no, Metadata-protocol: none. The package's public exports are unchanged, because SDS re-exports all four names.
  • Card acceptance.
    • Full UI tests and type check pass: met. Test UI, TypeScript Type Check, and Lint & Repo Gates are green on the head.
    • The SDS diff is only removals and re-exports, with import narrowing as needed: met.
    • The moved function bodies match the original line for line, and the PR carries the comparison method: met. The PR's script and sha256 values are in the body, and my own multiset check agrees.
    • SDS is under about 5,600 lines: met, at 1,715.

Findings

No must-fix, no should-fix.

  • N1 (nit), declared. There is a new react-refresh/only-export-components warning on SDS's re-export of renderStudioGridList. It only affects HMR granularity during development. It can go away when the re-export's callers import from DataPillar.tsx directly.
  • N2 (nit). l1-face flags @object-ui/components as touched with no changeset. The one file is src/__tests__/clickableNonControlCensus-13461.test.ts, a test that does not ship, so no changeset entry is owed.

Note to the seat

  • This is Tier H on size alone. Hand it to the maintainer as it is: one PR for the whole card, with the move-only evidence above and in the PR body.
  • After it merges, SDS is 1,715 lines. Any open ux-E or ux-E2 branch that edits a pillar inside SDS must re-base its hunks onto the new modules.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

Contract-review-claim: session_01WGufzgv4KRPATgwPAzKKMU · head c77091a · 2026-11-24T11:39Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c77091a618590d63b15ba6fe0576c1ee01c8b5c8
Local-runs: probe — move-only multiset check
Scope: none + ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx, ui/packages/app-shell/src/views/studio-design/DataPillar.tsx, ui/packages/app-shell/src/views/studio-design/AutomationsPillar.tsx, ui/packages/app-shell/src/views/studio-design/AccessPillar.tsx
Security-touching: no
Rule-change-verified: none

PR #36956, card #36893. Size-only Tier H (6,516 + 6,316 = 12,832 changed lines, 8 files), no reviewFace hit; the review is scoped to move-only verification, as the seat asked. Read: the net diff 62692b7f..c77091a6, the PR body, card #36893 with all four comments (claim 7127355037, blocked report 7127606539, amendment 7128762472, dev report 7130229692), the two PR comments, and the 58 check-runs on the head (45 success, 13 skipped, 0 failed, 0 pending). The probe was a read-only script over git show output of the four files at base and head; nothing was built, tested or re-run.

① Derived judgments

  • Moved text is verbatim — right. The four base ranges of StudioDesignSurface.tsx (SDS) appear contiguously, in order and unaltered in the new files: AccessPillar.tsx 1947-1971 (25 lines) and 6980-8008 (1,029), DataPillar.tsx 1973-4899 (2,927), AutomationsPillar.tsx 4904-6978 (2,075). My sha256 of each block matches the PR body's 16-hex prefixes (6992ca733d12063a, aa6b436a3bcacc05, 310655239c9c9faf, b917d07fef64e35a).
  • Nothing else is in the new files — right. Outside the moved blocks each file holds only the copyright line, one header comment, its import block and blank lines (Data 200 lines, Automations 160, Access 59). No helper is rewritten or duplicated: none of StudioNameLabel, ObjDraftSend, readPublishedFlowNames, NewSimilarStrip, NEW_SIMILAR_ARRIVAL_STATE, readNewSimilarArrival remains in SDS at head.
  • SDS remainder is unchanged — right. Base SDS minus the four ranges, diffed against head SDS, differs only in the import block (specifiers and whole import lines dropped, five lines narrowed, three pillar imports added), two blank lines, and two added re-export statements with their comments. No statement outside imports and re-exports changed. The #29988 re-export pair shows as added in the raw diff only because the text around it was deleted.
  • No published export is lost — right. SDS's export set at base and head differs only in form: AccessPillar, AutomationsPillar, DataPillar and renderStudioGridList go from declarations to export { … } re-exports of the same bindings. ui/packages/app-shell/src/index.ts is not in the diff and names only StudioDesignSurface from this file; the package exports map has . and ./styles.css alone, so no deep path was ever published. The new modules export exactly those four names and nothing new.
  • No cycle, no split state — right. None of the three modules imports SDS or each other. The only non-test importers of SDS are index.ts, StudioMetadataArea.tsx and StudioBundleItemEditor.tsx, and no pillar imports any of them, so no new path leads back to SDS. The moved text has no module-level let/var, collection or context; its only top-level value is the string constant NEW_SIMILAR_ARRIVAL_STATE, private to AccessPillar.tsx.
  • By-path readers re-pointed, not weakened — right. 7373: alsoReads +3 paths, 0 removed; the site still reads SDS first. 7265: SITES +3 paths, 0 removed. 13461: 42 rows at base and 42 at head; six rows re-keyed (5 NOT_CONTROLS, 1 BACKLOG) with the same keys and reasons (2 clearFieldSelOnEmpty CANVAS, 3 setRailOpen SCRIM, 1 backlog key), now on the file each site lives in. The two other tests that name SDS (noRetiredSetupLink-28578, noSetupMetadataLink-28578) walk the directory, so they read the new files without an edit. Test UI (16/16 shards) is green on the head.

② Semver level

.changeset/36893-sds-pillar-split.md reads '@object-ui/app-shell': patch, Clause-②: no, Metadata-protocol: none; the PR body carries the same two lines. That is right: the package's public surface and runtime behaviour are unchanged, and no spec schema, metadata type or protocol file is in the diff. @object-ui/components is touched by one test file only, which does not ship, so it owes no entry. Check Changeset is green.

③ Boundary flags

  • Dev report 7130229692 has open_questions: []. The one earlier question (7127606539, the one-line conflict with PR feat(studio): the Form tab becomes Field layout, edits field groups only, and arranges an installed object into its .custom pair #36888) is closed by the merge of origin/main: withoutReplacedPlacements is kept in SDS and type CustomizeBlock left with its only reader, AutomationsPillar.tsx. Confirmed in the head tree.
  • Declared deviation: one new react-refresh/only-export-components warning on SDS's re-export of renderStudioGridList. It is a warning, Lint UI is green, and a suppression line in SDS would be a non-move line. Accepted.
  • Out-of-scope prose that still cites SDS for moved text (three checklist area files, packages/spec/liveness/permission.json, a line citation in plugin-view/src/ObjectView.tsx): read by no gate, outside this card's surface, carried by the seat.
  • SQL push-down: not applicable. No query, id materialisation or join is added; the diff moves UI code.

④ Design judgment

No hits file. For the four implementing files, the contract is the card's: move only, SDS keeps re-exports, by-path readers updated in the same PR (ruling 6597555122 item 3), SDS under about 5,600 lines. Each holds against the tree, per ①; SDS is 1,715 lines. I tried to break it three ways — a moved block edited in place, a helper left behind or copied, and a name dropped from SDS's exports — and found none.

No must-fix, no should-fix.

  • N1 (nit) — the declared react-refresh warning on SDS's renderStudioGridList re-export; development HMR granularity only. Leave as an accepted deviation.
  • N2 (nit) — the Security-touching reading: AccessPillar.tsx is permission UI, but its text is moved unchanged, so no hunk teaches or alters security behaviour.

Implemented-by: claude/issue-36893-sds-pillar-split
Reviewed-by: session_01WGufzgv4KRPATgwPAzKKMU

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

Contract review

Served-tier: TIER_DEFAULT
Head-sha: c77091a618590d63b15ba6fe0576c1ee01c8b5c8
Local-runs: probe — move-only multiset check

PR #36956, card #36893. Size-only Tier H (6,516 + 6,316 = 12,832 changed lines, 8 files), no reviewFace hit; the review is scoped to move-only verification, as the seat asked. Read: the net diff 62692b7f..c77091a6, the PR body, card #36893 with all four comments (claim 7127355037, blocked report 7127606539, amendment 7128762472, dev report 7130229692), the two PR comments, and the 58 check-runs on the head (45 success, 13 skipped, 0 failed, 0 pending). The probe was a read-only script over git show output of the four files at base and head; nothing was built, tested or re-run.

① Derived judgments

  • Moved text is verbatim — right. The four base ranges of StudioDesignSurface.tsx (SDS) appear contiguously, in order and unaltered in the new files: AccessPillar.tsx 1947-1971 (25 lines) and 6980-8008 (1,029), DataPillar.tsx 1973-4899 (2,927), AutomationsPillar.tsx 4904-6978 (2,075). My sha256 of each block matches the PR body's 16-hex prefixes (6992ca733d12063a, aa6b436a3bcacc05, 310655239c9c9faf, b917d07fef64e35a).
  • Nothing else is in the new files — right. Outside the moved blocks each file holds only the copyright line, one header comment, its import block and blank lines (Data 200 lines, Automations 160, Access 59). No helper is rewritten or duplicated: none of StudioNameLabel, ObjDraftSend, readPublishedFlowNames, NewSimilarStrip, NEW_SIMILAR_ARRIVAL_STATE, readNewSimilarArrival remains in SDS at head.
  • SDS remainder is unchanged — right. Base SDS minus the four ranges, diffed against head SDS, differs only in the import block (specifiers and whole import lines dropped, five lines narrowed, three pillar imports added), two blank lines, and two added re-export statements with their comments. No statement outside imports and re-exports changed. The #29988 re-export pair shows as added in the raw diff only because the text around it was deleted.
  • No published export is lost — right. SDS's export set at base and head differs only in form: AccessPillar, AutomationsPillar, DataPillar and renderStudioGridList go from declarations to export { … } re-exports of the same bindings. ui/packages/app-shell/src/index.ts is not in the diff and names only StudioDesignSurface from this file; the package exports map has . and ./styles.css alone, so no deep path was ever published. The new modules export exactly those four names and nothing new.
  • No cycle, no split state — right. None of the three modules imports SDS or each other. The only non-test importers of SDS are index.ts, StudioMetadataArea.tsx and StudioBundleItemEditor.tsx, and no pillar imports any of them, so no new path leads back to SDS. The moved text has no module-level let/var, collection or context; its only top-level value is the string constant NEW_SIMILAR_ARRIVAL_STATE, private to AccessPillar.tsx.
  • By-path readers re-pointed, not weakened — right. 7373: alsoReads +3 paths, 0 removed; the site still reads SDS first. 7265: SITES +3 paths, 0 removed. 13461: 42 rows at base and 42 at head; six rows re-keyed (5 NOT_CONTROLS, 1 BACKLOG) with the same keys and reasons (2 clearFieldSelOnEmpty CANVAS, 3 setRailOpen SCRIM, 1 backlog key), now on the file each site lives in. The two other tests that name SDS (noRetiredSetupLink-28578, noSetupMetadataLink-28578) walk the directory, so they read the new files without an edit. Test UI (16/16 shards) is green on the head.

② Semver level

.changeset/36893-sds-pillar-split.md reads '@object-ui/app-shell': patch, Clause-②: no, Metadata-protocol: none; the PR body carries the same two lines. That is right: the package's public surface and runtime behaviour are unchanged, and no spec schema, metadata type or protocol file is in the diff. @object-ui/components is touched by one test file only, which does not ship, so it owes no entry. Check Changeset is green.

③ Boundary flags

  • Dev report 7130229692 has open_questions: []. The one earlier question (7127606539, the one-line conflict with PR feat(studio): the Form tab becomes Field layout, edits field groups only, and arranges an installed object into its .custom pair #36888) is closed by the merge of origin/main: withoutReplacedPlacements is kept in SDS and type CustomizeBlock left with its only reader, AutomationsPillar.tsx. Confirmed in the head tree.
  • Declared deviation: one new react-refresh/only-export-components warning on SDS's re-export of renderStudioGridList. It is a warning, Lint UI is green, and a suppression line in SDS would be a non-move line. Accepted.
  • Out-of-scope prose that still cites SDS for moved text (three checklist area files, packages/spec/liveness/permission.json, a line citation in plugin-view/src/ObjectView.tsx): read by no gate, outside this card's surface, carried by the seat.
  • SQL push-down: not applicable. No query, id materialisation or join is added; the diff moves UI code.

Move-only verification (the declaration face; this record restates 7130460846 at the face's tier, same content):

No hits file. For the four implementing files, the contract is the card's: move only, SDS keeps re-exports, by-path readers updated in the same PR (ruling 6597555122 item 3), SDS under about 5,600 lines. Each holds against the tree, per ①; SDS is 1,715 lines. I tried to break it three ways — a moved block edited in place, a helper left behind or copied, and a name dropped from SDS's exports — and found none.

No must-fix, no should-fix.

  • N1 (nit) — the declared react-refresh warning on SDS's renderStudioGridList re-export; development HMR granularity only. Leave as an accepted deviation.
  • N2 (nit) — the Security-touching reading: AccessPillar.tsx is permission UI, but its text is moved unchanged, so no hunk teaches or alters security behaviour.

Implemented-by: claude/issue-36893-sds-pillar-split
Reviewed-by: session_01WGufzgv4KRPATgwPAzKKMU

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

维护者速读

  • Studio 专题 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 主线上的拆文件卡:把 StudioDesignSurface.tsx 里的「数据、自动化、权限」三个分区原样搬到各自的文件,界面和行为都不变。这个文件从 8,010 行降到 1,715 行,之后的专题卡可以同时开工,不再挤同一个文件。
  • 一张卡一个 PR(没有拆分)。共 12,832 行,几乎全是搬动(+6,516 / −6,316),所以需要您批准。
  • 怎么快速确认是纯搬移:PR 正文里有逐段的 sha256 比对;评审也独立核对了搬动前后文本一致、导出的名字不变、没有新增循环引用。
  • 检查全绿。批准后由维护者入队;合并后,还在改这几个分区的分支要把改动挪到新文件。

Request: approval · Tier H by size (12,832 changed lines, not governed) · 2026-11-24T11:45Z

席位意见: land. A move-only split that unblocks the epic's critical path (#36899 and the designer cards).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 11:47
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 6902acb Nov 24, 2026
64 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36893-sds-pillar-split branch November 24, 2026 12:21
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
os-support-ai pushed a commit that referenced this pull request Nov 24, 2026
…udio-path-helper

StudioDesignSurface.tsx import block: main (#36956) dropped the draftVerdict
import and this branch dropped the nav-selection import; both deletions kept.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ress changes (objectstack-ai#36973)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9qsP28anD5tWRUHq8j1xSU)_
Fixes objectstack-ai#36895

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

- 用户无感:Studio 里所有链接、跳转、AI 给出的审阅链接,地址一个字节都没变。
- 属于「Studio 重构」专题:先把所有生成 Studio
地址的地方收到一个函数,之后每张设计器卡只改一处就能切到新地址,不会出现两条跳转规则互相跳的死循环。
- 出错的表现是某个 Studio 链接打开到错的页面或打不开;本改动只换写法不换地址,可以直接撤回。
- 无。

## What changes

One builder for every Studio address, and every producer the card lists
now calls it. Every address is byte-for-byte what it was before. Nothing
redirects and no route changes.

- **Console builder (new file):**
`ui/packages/app-shell/src/views/studio-design/studioAddress.ts`. It
holds `studioPath`, the one path builder, and on top of it
`studioLandingPath`, `studioPackagePath`, `studioPillarPath`,
`studioHomePath`, `studioItemPath`, `studioPillarItemAddress`,
`studioSurfaceQuery`, the "All metadata" builders,
`studioChangesReviewPath` and `studioItemReviewPath`.
- The vocabulary also lives here: root, home pillar, `~org`, `~all`,
`metadata`, `interfaces`, and the `changes` and `review` params. The
modules that exported these before re-export them under the same names.
- `STUDIO_ITEM_PILLAR` is the per-type switch. `AREA_PILLAR_FOR_TYPE`,
which the area's pillar redirect reads, is now this same object. When a
designer card deletes a type's row, every `studioItemPath` caller and
the area redirect move together, so the two cannot loop.
- **Mapping table (new file):** `studioAddressTable.ts`. It has three
tables:
  - `STUDIO_ADDRESS_FAMILIES`: 13 address shapes.
- `STUDIO_ITEM_TYPES`: `object` (with its `view`, `action` and `nav`
qualifiers), `flow`, `permission`, and `owd:overview`. Each row gives
today's pillar and the metadata address the type moves to.
- `STUDIO_QUERY_PARAMS`: `surface`, `view`, `action`, `nav`,
`changes=review`, `review=1`, `package`, `scope=environment` and `new`.
Each row says whether the param is carried verbatim, rides as a
qualifier, or is replaced.
- **Card item 3:** the retired `/interfaces` redirect
(`retiredInterfacesTarget`, landed by objectstack-ai#36884) now reads which params it
keeps from this table (`STUDIO_RETIRED_INTERFACES_KEPT_PARAMS`). Its
output is unchanged.
- **Three `?surface=` spellings, all kept.** Producers did not agree on
how to write the value, and each spelling is kept as a named option
(`StudioSurfaceSpelling`):
- `'component'` (`surface=object%3Aaccount`) is used by most producers.
- `'name'` (`surface=object:account`) is used by `appStudioObjectPath`.
- `'form'` (`URLSearchParams`, `surface=object%3Aa&action=x`) is used by
`switchedOffActionPath`.
- StudioDesignSurface writes the scope segment unencoded, and that is
kept too, as `segmentEncoding: 'verbatim'`.
- **Server shared function, located in `@objectstack/types`:**
`packages/types/src/studio-review-links.ts` exports
`studioChangesReviewLink` and `studioItemReviewLink`. Both server
producers already depend on `@objectstack/types`, and neither may depend
on the Console. `packages/cli/src/commands/meta/register.ts` and
`packages/runtime/src/domains/mcp-authoring.ts` (`reviewRoutes`) now
call them. The review-link text served to the AI is unchanged (pinned
below).
- I did not choose `@objectstack/spec`: that would add a
contract-package export, and spec holds no runtime logic.
- The module is named `-links`, not `-routes`, because
`check:route-envelope` reads any `*-routes.ts` as a REST module.
- **Producers repointed (re-measured on 3f568c1 and later):**
- Card items 1–9: `appRoute.ts` ×3, `metadataArea.ts`,
`setupMetadataRedirect.ts` ×3, `CommandPalette.tsx`, `studioScope.ts`,
`artifactStudioPath.ts`, `AiChatPage.tsx`, `AppNoAccessEmptyState.tsx`,
`RecordTabsConfig.tsx`, `DashboardInPageEditor.tsx`,
`BuilderLanding.tsx`, `studioChangesLink.ts` and
`switchedOffActionTargets.ts`.
- Card item 10, `StudioDesignSurface.tsx`: only its four hand-built call
sites are swapped (pair-base redirect, Access pillar open,
`requestSurface`, pillar nav links). The edit merges cleanly with
objectstack-ai#36893's split branch (`git merge-tree`, exit 0).
- Card item 11: `StudioRoute.tsx` and `AppContent.tsx`. Route patterns
use `STUDIO_ROOT_PATH`, and the `:packageId` landing redirect uses
`STUDIO_HOME_PILLAR`, the same relative `data`.
  - Card item 12: the two server producers.
  - Card item 13: `InterfacesNavRail.tsx` is gone, as stated.
- A producer that landed on main meanwhile (objectstack-ai#36933) is repointed too:
`PackagesPage.tsx`'s local `studioPackagePath` now returns
`studioHomePath`.
  - Producers the card missed, now repointed:
    - `studioInterfacesRetired.ts`
- `metadataArea.ts`: `studioMetadataAreaPath`, `studioMetadataItemPath`,
`areaLocationRedirect`
    - `setupMetadataStudioPath` itself
- `switchedOffActionTargets.ts`: the action item path and
`switchedOffActionListPath`
- `studioNewPackage.ts` (`STUDIO_NEW_PACKAGE_PATH`) and
`PackageSwitcher.tsx` (`STUDIO_LANDING_PATH`)
    - `HomePage.tsx` and `useAddAppEntries.ts` (bare `/studio`)
- Line numbers moved from the card's (AiChatPage and
DashboardInPageEditor). Three of the card's sites already called a
helper (CommandPalette's `~org` flow, BuilderLanding's `~org` card, and
RecordTabsConfig, which now calls `studioItemPath`).
- **New exports from `@object-ui/app-shell`:** `STUDIO_ROOT_PATH`,
`STUDIO_HOME_PILLAR`, `studioLandingPath` and `studioPackagePath`.

## Why

The Studio redesign moves objects, flows and permission sets from pillar
addresses to metadata addresses (`/studio/PKG/metadata/TYPE/NAME`). The
area already redirects a pillar type back to its pillar. Redirecting the
pillar address first would loop, so every producer has to share one
builder before any designer card flips its type.

## Tests

- `studioAddress.test.ts` (new) pins each builder to literal addresses:
every family, all three spellings, verbatim segments, search and hash,
the area, the review links, and the repointed module builders. It also
checks that the table agrees with the code (`AREA_PILLAR_FOR_TYPE` is
`STUDIO_ITEM_PILLAR`, item rows, param keys, family builders, and the
params kept on the `/interfaces` redirect).
- `studioAddress.guard.test.ts` (new) is the guard. It parses every
non-test source under `ui/packages/PKG/src` and `ui/apps/APP/src` and
refuses two things:
  - a string or template literal starting with `/studio`;
  - a path composed onto `STUDIO_ROOT_PATH`.
- Only `studioAddress.ts` (and the table's placeholder shapes) are
allowed.
- It has positive controls: the walk must reach StudioDesignSurface and
the console's StudioRoute, and the matcher must fire on the builder
file.
- `packages/types/src/studio-review-links.test.ts` (new) pins the
server's two links to literals.
- `packages/types/src/studio-review-links.callers.test.ts` (new, `repo`
project) has two parts:
- It refuses a `/studio` literal in any `packages/**` `.ts` source
outside the shared module, with controls: both server producers are
walked, and the matcher fires twice on the allowed file.
- It holds every review link quoted in
`skills/objectstack-mcp-build/evals/draft-door-procedure.json` equal to
`studioChangesReviewLink` / `studioItemReviewLink` for the package, type
and name that link names. The file has 7 quoted links: 5 Changes links
and 2 item reviews, 3 distinct values. The skill file is not edited.
- Its radius is declared: `vitest.repo-tests.json`,
`CROSS_PACKAGE_TEST_INPUTS`, and the `@objectstack/types#test:repo`
turbo inputs. Ci.yml's `crosspkg:` filter already covers the skills
root.
- Existing pins of every repointed producer stay green unchanged. That
is the byte-identity proof: none of their expected literals was touched.

<details><summary>Local runs (head fa0deb8, after merging origin/main
4f9a3f8)</summary>

- `pnpm --dir ui exec vitest run` on the 171 test files that name a
repointed producer, the package list, or the builder: `Test Files 171
passed (171)`, `Tests 1777 passed (1777)`. The full app-shell + console
suite (2736 files) is CI's Test UI; it was started locally and stopped,
since at two workers it did not finish in an hour.
- `@objectstack/types`:
  - `local`, studio-review-links.test.ts: 2 passed;
  - `repo`, studio-review-links.callers.test.ts: 3 passed.
- `@objectstack/runtime` `src/domains/mcp-authoring.test.ts`: 50 passed.
- `@objectstack/cli` `--project integration
src/commands/meta/register-draft.test.ts`: 10 passed. Run locally
because it is the one test that pins the CLI's printed review link.
- `pnpm --filter @objectstack/types typecheck` and `pnpm --filter
@object-ui/app-shell type-check`: exit 0 on fa0deb8.
`@objectstack/runtime` and `@objectstack/cli` `typecheck`: exit 0 on
947b96e, the pre-merge head. `@object-ui/console` `type-check` was
NOT MEASURED: it needs every ui plugin's dist built, so it is left to
CI's Type Check UI.
- `pnpm --dir ui exec vitest run scripts/`: 172 passed, 2 skipped. `pnpm
--dir ui check:new-line-citations`: 0 new.

</details>

## Acceptance notes

- **Two type to pillar maps exist, not one.** StudioDesignSurface keeps
its own `PILLAR_FOR_SURFACE_TYPE` (identical to `STUDIO_ITEM_PILLAR`
today). The Automations and Access pillars call
`studioPillarItemPath(..., 'automations' | 'access', ...)` explicitly.
Neither is hand-built, so the guard passes. I left them alone to keep
this diff to call-site swaps that merge cleanly with objectstack-ai#36893's move-only
split. The flow and permission designer cards switch those call sites,
or fold the map into `STUDIO_ITEM_PILLAR`, in the same PR that flips the
type.
- **Unencoded scope segment.** StudioDesignSurface writes its scope
segment (the decoded route param) unencoded in three places, where every
other producer encodes it. This is kept byte for byte. It is not
reachable with today's package-id alphabet.
- **One incidental difference, outside any real address:**
`studioItemPillar` looks up the type map with `hasOwnProperty`. The old
`AREA_PILLAR_FOR_TYPE[type]` lookup matched `Object.prototype` members,
so `/studio/PKG/metadata/constructor/x` redirected to a garbage pillar
URL. It now opens the generic item page. This is pinned in
`studioAddress.test.ts`. No metadata type has such a name.
- **Overlap:** `overlap-check` exits 1 on two PRs.
- objectstack-ai#36956 (ux-E's move-only split of StudioDesignSurface, card objectstack-ai#36893):
one conflict hunk, in the import block. That PR deletes the
`draftVerdict` import lines directly above the `nav-selection` import,
and this PR deletes that import (its last user was the `requestSurface`
call site). The resolution is to keep both deletions. All four of this
PR's call sites stay in StudioDesignSurface after the split, and none is
in a moved region.
- objectstack-ai#36784, a draft based on an older main, conflicts with `origin/main`
itself at the same single hunk (the react-router import, a line this PR
does not touch): conflict count 1 with this branch and 1 with main
alone.
  - objectstack-ai#36888 and objectstack-ai#36791 merge cleanly.

## Verification

- Read first, ranked by risk:
1. the `StudioDesignSurface.tsx` hunks (four call sites, verbatim
segment);
2. `metadataArea.ts` (the area's redirect now reads
`STUDIO_ITEM_PILLAR`);
  3. `studioAddress.ts` `studioSurfaceQuery` (the three spellings).
- Two-minute check: `pnpm --dir ui exec vitest run
packages/app-shell/src/views/studio-design/studioAddress.test.ts
packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts`.
Expect 2 files and all tests passing. Then add any literal beginning
with `/studio` to a ui source and watch the guard name the file and
line.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(spec untouched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (CI)
- [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_01WGufzhpykmQZe1yMupC2CU

<!-- signed: repo:objectstack#3 · os-support-ai ·
session_01WGufzhpykmQZe1yMupC2CU -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Studio 重构(P0):StudioDesignSurface.tsx 纯搬移拆文件——数据、自动化、访问三个分区各成一个模块,保留再导出

3 participants