Repository navigation
refactor(app-shell): move the Data, Automations and Access pillars out of StudioDesignSurface.tsx (move-only) - #36956
Conversation
…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
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
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU 席位核对 — ACCEPT · repo:objectstack#3 · head c77091a · 2026-11-24T11:35ZL1: ACCEPT Read
Move-only, checked independentlyI did not rely on the PR's own script. I compared, as line multisets, the lines removed from
Checklist
FindingsNo must-fix, no should-fix.
Note to the seat
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU Contract-review-claim: session_01WGufzgv4KRPATgwPAzKKMU · head c77091a · 2026-11-24T11:39Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU Contract reviewServed-tier: PR #36956, card #36893. Size-only Tier H (6,516 + 6,316 = 12,832 changed lines, 8 files), no ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU Contract reviewServed-tier: PR #36956, card #36893. Size-only Tier H (6,516 + 6,316 = 12,832 changed lines, 8 files), no ① Derived judgments
② Semver level
③ Boundary flags
Move-only verification (the declaration face; this record restates 7130460846 at the face's tier, same content): No No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W 维护者速读
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).
|
…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
…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>
Requested by Yibo Wang · project thread
Fixes #36893
Part of #36890
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR
Clause-②: no
Metadata-protocol: none
维护者速读
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 base62692b7f8) to 1,715.62692b7f8DataPillar.tsxrenderStudioGridList(the records-grid slot),ObjDraftSend,DataPillarAutomationsPillar.tsxreadPublishedFlowNames,AutomationsPillarAccessPillar.tsxStudioNameLabel,NewSimilarStrip,NEW_SIMILAR_ARRIVAL_STATE,readNewSimilarArrival,AccessPillarexportwas added or removed: the three pillars andrenderStudioGridListwere already exported, and the other helpers stay private to their module.StudioNameLabelonly byAccessPillar,ObjDraftSendandrenderStudioGridListonly byDataPillar,readPublishedFlowNamesonly byAutomationsPillar. No helper used by two pillars or by the shell existed in this text, so nothing went to a shared module.renderStudioGridListforStudioDesignSurface.gridRefresh.test.tsx, so every import path stays the same. The test files that import the pillars are not edited.FlowStatusDotre-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.homeRecoveryRedirectsFollowDeclaration-7373.test.ts: the Studio site'salsoReadsgains the three modules.ui/scripts/__tests__/spec-symbol-ledger-app-shell-7265.test.ts:SITESgains 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..changeset/36893-sds-pillar-split.md(@object-ui/app-shellpatch), carrying both declaration lines.origin/mainwas merged in after PR 36888 landed. The single conflicting line was in theStudioCustomizeControlsimport:withoutReplacedPlacementsfrom main was kept, andtype CustomizeBlockwas dropped, because its only reader moved out withAutomationsPillar. The Data pillar move came after that merge, measured against the merged text.Read first (by risk):
clickableNonControlCensus-13461.test.ts, the six re-keyed rows.DataPillar.tsx, its import block. It is the largest pruned import list.Tests
Verbatim check: all four blocks against base 62692b7
Output at head
c77091a61: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 0pnpm --filter @object-ui/app-shell type-check(bothtsc --noEmitandtsc -p tsconfig.test.json): exit 0ui:pnpm run type-check:scripts: exit 0react-refresh/only-export-componentson SDS's re-export ofrenderStudioGridList; see Acceptance notes.views/studio-design/directory plus every test outside it that names a pillar or reads SDS by path (7373, 7265, census 13461, the twoPermissionMatrixEditorpins,ResourceEditPage.celGate,ObjectFieldInspector.celGate,builtinDesigners.lateArrival-11939): Test Files 300 passed (300), Tests 2153 passed (2153)Test UI).Derived gate families (dispatch-gates --commands)
The 38 derived commands ran on slice 1's head
7a19c2b90, all exit 0, and--ranreconciled 38 derived, 38 run, 0 NOT-MEASURED. The re-run atc77091a61is 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
renderStudioGridListmoved with its owneslint-disable-next-line react-refresh/only-export-componentsline, which still applies inDataPillar.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.origin/mainwithout this branch (merge-tree exit 1), so this PR does not cause that conflict.docs/qa/platform-checklist/areas/{automation,studio-authoring,access-security}.jsonthat name SDS for pillar behaviour; the producer prose inpackages/spec/liveness/permission.json(the Access pillar mounts the permission page); and theStudioDesignSurface.tsx:2575line citation inui/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. AMISSINGorDUPLICATEline means the move is not verbatim.Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
🤖 Generated with Claude Code