Repository navigation
fix(studio): every retired pillar address lands on its new page in one redirect; the pillar-era code with no reader goes - #37383
Conversation
Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
… one-hop redirect table Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
…address in its own bullet Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
… the builder, as the console does Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
| Retired address | Lands on (at head) | Kept | Before |
|---|---|---|---|
/studio/P (bare) |
/studio/P/metadata/object?package=P |
query (the old <Navigate to="data"> dropped it) |
3 hops |
/studio/P/data[?surface=object:N] |
the object list, or /metadata/object/N?package=P |
?action=, ?changes=review; ?view= and ?nav= dropped (as Studio 重构(3-2):对象设计器在元数据地址上右侧全屏打开,页签按 #36513 排序,去掉对象左侧列表,对象类型切到新地址 #36904) |
2 hops |
/studio/P/automations[?surface=flow:N] |
the flow list, or /metadata/flow/N?package=P |
other params; view and nav dropped (as Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903) |
2 hops |
/studio/P/access[?surface=…] |
AccessPillarLanding → the set list, the set (holder read), or /owd |
other params | through the surface |
/studio/P/interfaces[?…] |
the object list, plus the retired notice state | STUDIO_RETIRED_INTERFACES_KEPT_PARAMS only |
3 hops |
/studio/~org and /studio/~org/<x> |
/studio/~org/metadata/flow[/N]?source=runtime |
~org/automations keeps the flow; the rest drop the query, as the base surface's fallback did (base StudioDesignSurface.tsx:1640) |
2 hops |
- The
.custompair rules match base. Data and Automations ran before the base'spairBasecheck, so they land in the pair's own area. Interfaces and Access landed on the base. owd, unknown segments,~alland an empty segment returnnull, so the route draws the builder. The pair→base redirect for those is kept (StudioDesignSurface.tsx:238).- Router state rides along (
target.state ?? location.state), the same as base'slandingState. - The redirect sits inside
StudioRoute's gate (child of the/studioelement), so no ungated path opens. settledAreaAddressappliesareaLocationRedirectonce. The pinevery target in the table, and every Access target, is where the area would put itholds that each target settles to itself.
Item types. Every row of STUDIO_ITEM_TYPES now carries a required redirectsTo. studioAddress.test.ts holds each row equal to the table for every spelling, and ablations A1 and A2 turn it red.
studio.app.ts (card item 4). I read it; I did not run the dev's scratch walk. All 15 metadata:resource / metadata:directory entries pass params.package: '{active_package}'. setupMetadataStudioPath → areaLocationRedirect('~all', TYPE, '?package=P') → /studio/P/metadata/TYPE?package=P, which is settled because package === segment. None of them is a pillar address, so no change is owed.
Dead code, git grep at head. These have 0 readers anywhere outside *.md: AREA_PILLAR_FOR_TYPE, studioItemPillar, studioPillarItemAddress, studioSurfaceQuery, STUDIO_ORG_SCOPE_PILLAR, useSurfaceDeepLinkCapture, useSurfaceDeepLinkMirror, parseSurfaceTarget, resolveSurfaceDeepLink, PILLAR_FOR_SURFACE_TYPE, PILLAR_TYPE and pillarEntry.
- The remaining hits are prose or unrelated.
areaItemPillarPathandSTUDIO_ITEM_PILLARappear only in comments (N2) and in historicaldocs/qachange notes.useRequestedSurfaceappears only in two comments that record its removal.SurfaceRequest*is the keptSurfaceRequestHandlertype.PILLARSis a test-local const inreadOnlyPosture-12453. pillarEntrywas write-only at base (declared at base:1297and never read), as the body says.- The one export this PR orphans is S1.
i18n. The diff touches no file under ui/packages/i18n and removes no 'engine.…' call site.
check-i18n-dead-keys.mjsreports the same 536 candidates (123 confirmed) on the base and head trees. Its candidate lists are byte-identical; only the walked-file count differs, 2454 → 2456.released-keys-removed.mjs --tag @object-ui/i18n@18.6.0 --json(18.6.0 is the newest tag) gives the same 80-keygroupsat--refbase and head.engine.studio.pillar.*has 0 keys at base, so card item 3 was already done, as the claim's Premise says.
Tests.
- The removed cases cover only removed code:
studioSurfaceQuery,studioPillarItemAddress, theSTUDIO_ITEM_PILLARagreement checks,resolveSurfaceDeepLink,parseSurfaceTarget, the mount-time capture, and the channel's subscriber half (delivery, request stamping, veto publishing nothing). - The kept qualifier keys and
useSurfaceActionDeepLinkstill have readers. - In 38 surface tests the only change is the
StudioPillarRedirectwrapper (2–5 lines each). ui/e2eandpackages/qaname no retired address and mount no bare surface on:tab.docs/qastill names/data,/automations,/accessand/interfacesaddresses in 47 places. All of them predate this PR and still land through the redirect (N4).
Declarations. readClause2Line and readMetadataProtocolLine (scripts/pm/clause2-line.mjs at head) were run on three texts: the newest Claim: on Studio 重构(4-1):删掉分区路由和残留(:packageId/:tab 路由、AREA_PILLAR_FOR_TYPE、pillar 文案、旧 Studio 应用的菜单项) #36909 (7175606427), the PR body and the changeset. All three read declared · no · arm null and declared · none, so they match. Clause-②: no holds: app-shell is private and its removed exports were never published past 18.2.0. patch matches Metadata-protocol: none.
Pins at head. In the worktree, the dev's pins (studioPillarRedirectModel.test.ts and StudioRoute.metadataArea-28561.test.tsx) give Test Files 2 passed (2) · Tests 64 passed (64), the dev's count. All 50 touched test files give Test Files 50 passed (50) · Tests 438 passed (438).
Ablations. I wrote 11 of my own, separate from the dev's three, each through scripts/ablation-replace.mjs in wrap mode. Every anchor hit x1, every mutation landed (blob changed), and every restore read blob == HEAD with an empty git diff HEAD. git diff --stat HEAD was empty after the run.
| Ablation | Red |
|---|---|
A1: the automations row removed from the table |
9 of 148: every Automations row, pure and route-level, plus the redirectsTo agreement and the coverage pin |
| A2: the Data case drops its query | 9 of 148: every ?surface=, ?changes=review and ?package= row on /data |
| A3: the route element hands the table no query | 4 of 148: the route-level query rows, ~org included |
A4: bare :packageId back to the pre-PR <Navigate to={STUDIO_HOME_PILLAR}> (as "data") |
1 of 60: /studio/P … in one redirect |
A5: ~org back to the pre-PR <Navigate to={STUDIO_ORG_SCOPE_PILLAR}> (as "automations") |
1 of 60: /studio/~org … in one redirect |
| A6: the Interfaces target not settled | 10 of 148 |
| A7: a pair's Interfaces lands on the pair, not the base | 2 of 148: pure and route-level |
A8: the ~org catch-all dropped |
3 of 148: ~org/access, /interfaces, /owd |
| A9: the Interfaces notice state not written | 6 of 68: the whole interfacesRetired-36502 file |
| A10: the toast's "Open Access" target not settled | none (11 of 11 green): the pin reads the final location, which the area settles anyway (N3) |
| A11: the Changes sheet's permission request narrowed back to objects | none: 50 touched files / 438 tests green. Over studio-design and preview, 1 of 2,600 red, a load flake (heldFlowLeave-26705, 12/12 green alone under the mutation) (S3) |
Check-runs at head (REST). 51 runs: 38 success, 13 skipped, 0 failed, 0 pending, and no commit status.
- These are all
success: Lint & Repo Gates, TypeScript Type Check, Test Core, Lint UI, Type Check UI, Test UI and its 9 shards, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, PR-body guards, and Type Check · debt ledger. - The skips are matrix placeholders, opt-in jobs and queue-only jobs, and
l1-facereads all 13 as expected.
Merge-tree and K. git merge-tree --write-tree against origin/main ecbe854bda8559069fb228eed1a1564000d2f259 exits 0 (clean, tree ffa03271). K = 6, against the zone's 3 at finalize. None of the 6 touches any of the 68 files, and none adds a /studio/ literal or a bare surface mount.
Governed / tier. check-governed-merges.mjs --pr 37383 exits 0. It reports "0 of 68 path(s) hit the register", NOT governed, and 1,976 changed lines, at most 3,000. That is Tier S.
维护者速读. It is accurate against the diff: old addresses still open, in one hop; the cleanup is invisible to users; a missed address would land on not-found; it is front-end only and reverts cleanly; 「要你做什么:无」.
Notes
- N1 — Card item 1 says to delete the
:packageId/:tabroute. The PR keeps it but changes what it does: it now rendersStudioPillarRedirectaround the builder (StudioRoute.tsx:318-325), becauseowdand the not-found state still answer on it. No pillar page is reachable from it, and every retired segment redirects (A1–A9). I read this as meeting the item's intent, with the Done-when ("所有旧分区地址仍重定向到新地址") met in full. - N2 — Some comments still name deleted symbols.
studioMenuModel.ts:22-26, in a file this PR edits, says an item a pillar designs "still opens its pillar … (areaItemPillarPath)".studioAddress.guard.test.ts:6-10givesSTUDIO_ITEM_PILLARas the guard's rationale. Fold both into the S-round if convenient; neither blocks on its own. - N3 — The body's "Open Access … without the hop" one-hop half is unpinned (A10 is green). The destination is pinned, and an extra hop there would not be a retired address. This is optional.
- N4 —
docs/qa/platform-checkliststill steps through/studio/PKG/data,/automations,/accessand/interfaces(47 hits, the oldest from Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903 to Studio 重构(3-3):权限集矩阵在元数据地址上右侧全屏打开,组织级默认共享总览有自己的路由,权限集类型切到新地址 #36905). This PR changes none of them, and each still lands through the table. Steps that describe pillar UI ("screenshot the rail settled", "the pillar says…") were stale before this PR. That is a checklist-accuracy sweep, not this card's. - N5 —
STUDIO_RETIRED_PILLAR_SEGMENTSis a new export read only by its coverage pin. That is acceptable as the table's declared domain. - N6 — The body's Verification readings sit on
26ec30e1/2322b402. The addendum 7180856694 re-reads on377ca896: both type-checks are 0, and 286 files / 2,317 tests pass. Its only correction is the count, 37 → 38 wrapped surface tests. My own head readings are above. - N7 — Known and not re-litigated:
- Q1 A (switching the producers that still write retired addresses,
studioHomePathcallers andsetupMetadataRedirect's two-hop legacy bookmarks) is the next round's follow-up. engine.studio.notFound.pillar(en and zh) andStudioAiCopilot's:tab/?surface=context go to the close-out brief.
- Q1 A (switching the producers that still write retired addresses,
…anges sheet's permission-set link, correct the toast sentence Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
Claude-Session: https://claude.ai/code/session_01QSeKYngc1UxywCSQwtqdZz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-26T05:41Z · head
|
Fixes #36909
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
No Studio pillar draws a page any more. This PR makes the route, not the builder, answer every retired pillar address, and deletes what the redesign left with no reader.
1. One redirect table, mounted on the route (
studioPillarRedirectModel.ts,StudioPillarRedirect.tsx,StudioRoute.tsx)./studio/PACKAGEand/studio/PACKAGE/:tabnow renderStudioPillarRedirect. A retired pillar address redirects once; any other segment renders the builder (the sharing overviewowd, or the not-found state)./studio/PACKAGE,/studio/PACKAGE/data/studio/PACKAGE/metadata/object?package=PACKAGE/data?surface=object:NAME(all three spellings,?action=kept)/studio/PACKAGE/metadata/object/NAME?package=PACKAGE/data?changes=review(the server'sstudioChangesReviewLink)/studio/PACKAGE/metadata/object?changes=review&package=PACKAGE/automations[?surface=flow:NAME]/metadata/flow/NAME?package=PACKAGE/access[?surface=permission:NAME / owd:overview]/owd/interfaces[?…]/studio/~organd every/studio/~org/…/studio/~org/metadata/flow[/NAME]?source=runtimeA base's
.custompair keeps each pillar's old rule (Data and Automations in the pair's area; Access and Interfaces on the base).2. One hop (carry item from 7157423170). Every target in the area is put where the area would put it (
settledAreaAddress, built on a newstudioAddressPartsparser instudioAddress.ts), so the area never redirects a second time. Before:/datatook two redirects, bare/studio/PACKAGEthree,/studio/~orgtwo. The publish toast's "Open Access" now opens the package's permission sets, and the Changes sheet's link to a permission set opens that set's page, directly instead of through the old Access address.3. Removed, with every reader gone (all in
@object-ui/app-shell,private: true, last published 18.2.0 — nothing published narrows):AREA_PILLAR_FOR_TYPE,areaItemPillarPath,studioPillarItemPath(metadataArea.ts);StudioMetadataArea's pillar redirect branch.STUDIO_ITEM_PILLAR(empty since Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903),studioItemPillar,studioPillarItemAddress,studioSurfaceQuery,StudioItemOptions.spelling(studioAddress.ts).studioItemPathnow always returns the metadata address.STUDIO_ORG_SCOPE_PILLAR(studioAddress.ts, itsstudioScope.tsre-export and the package entry). Kept only as data where a redirect needs it: the literal'automations'inside the redirect table.STUDIO_HOME_PILLARfrom the package entry (the console no longer reads it). It stays inside app-shell:studioHomePath/studioChangesReviewPathmirror the server's/data?changes=reviewlink, which this card may not change.?surface=mirror half and the capture half with it (useSurfaceDeepLink,useSurfaceDeepLinkCapture,useSurfaceDeepLinkMirror,parseSurfaceTarget,resolveSurfaceDeepLink) and their test file.useSurfaceActionDeepLinkand the qualifier keys stay (the object designer and the redirects read them).useRequestedSurface,SurfaceRequestand therequestedstate (carry item: no reader since feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168).useSurfaceNavigator+SurfaceDeepLinkProviderstay: the Changes sheet's security block uses them.StudioDesignSurface: the in-surface Data / Automations / Interfaces redirects,PILLARS, the Access landing branch,PILLAR_FOR_SURFACE_TYPE, and the pillar re-entry counter whose value nothing read.studioMenuModel.tsneeded only the sharing overview's section, not a pillar map:PILLAR_TYPEwent; the menu marks nothing current on a retired address (it never draws one).4.
studio.app.ts: no change needed. All 15metadata:resource/metadata:directoryentries were walked through the console's real path (/apps/studio/metadata/TYPE?package=PACKAGE→setupMetadataStudioPath): each lands on/studio/PACKAGE/metadata/TYPE?package=PACKAGE(or~allwith no package), a settled area address, none on a pillar. Reading in Verification.5. Card item 3 (
engine.studio.pillar.*) was already gone on main (the claim's Premise). This diff removes no translation call site;ui/scripts/check-i18n-dead-keys.mjsexits 0.Tests
Pins (each ablated, below):
studioPillarRedirectModel.test.tswalks 22 old addresses (every package pillar, bare package, a.custompair, every~orgaddress, the three?surface=spellings) to their literal targets, plus the Access mapping;studioAddress.test.tsholds everySTUDIO_ITEM_TYPESrow'sredirectsToequal to what the table returns for each spelling. Route-level:StudioRoute.metadataArea-28561.test.tsxwalks 14 old addresses through the realstudioRoutesand the real redirect./datasingle hop —the old /data address reaches the object list in one redirect(the area'sareaLocationRedirectanswers null for the target); route-level, the location probe records exactly[old, new]./owd,/owd?object=…, area addresses and an unknown segment are not redirected (pure and route-level: the probe records[url]only).StudioDesignSurface.heldDataCreate-26845.test.tsx(last describe): the sheet's request for a permission set lands on/studio/PACKAGE/metadata/permission/NAMEon a writable base, and on the.custompair's address on a read-only base with a pair. NarrowingrequestSurfaceback to objects alone turns both red (Tests 2 failed | 3 passed).Updated: 38 app-shell surface tests now mount the console's route shape (
StudioPillarRedirectaround the builder on:tab); the console route tests expect the new landings; the publish toast test expects the permission set list.Acceptance notes
Not filed (dead code / drift, no defect class); carrier: none.
studioHomePathcallers (command palette, app no-access state, AI chat page,appRoute,PackagesPage,PackageCustomizationsPanel) andsetupMetadataRedirect'spackagedAutomationStudioPath/packagedActionsStudioPath(two hops for those legacy Setup bookmarks). Left alone: two of those files belong to an in-flight branch, and the address they write still works.StudioAiCopilot) still reads:taband?surface=as its pillar context (cloud#1610 contract); on current pages it reads the area path instead.~orgnon-area fallback and its pair→base redirect for owd/unknown segments; the route no longer reaches the first.Finding for the seat (class a, user-visible misleading text), not fixed here: the not-found state at
/studio/PACKAGE/bogus_pillarsays "pick Data, Automations, Interfaces, Access or All metadata above" (engine.studio.notFound.pillar, en and zh) — none of those exist any more.First read (by risk)
ui/packages/app-shell/src/views/studio-design/studioPillarRedirectModel.ts— the table; the.custompair rules and the~orgcatch-all.ui/apps/console/src/components/StudioRoute.tsx— the two routes that now render the redirect, and the lazy boundary it rides.ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx— the removed in-surface redirects and therequestSurfacepermission branch.Verification
Two-minute check: open
/studio/com.example.showcase/data?changes=reviewin the Console (OS_PORT=3000 pnpm dev, Console on :5180). Expected: the address bar shows/studio/com.example.showcase/metadata/object?changes=review&package=com.example.showcase, the Objects list is open, and the Changes drawer is open over it.All readings below are on tree
26ec30e1(the rebased head), byte-identical to the pushed head2322b402(git diff --quietbetween them exits 0; see Process notes).Type-check
pnpm --filter @object-ui/app-shell type-check(both programs,tsconfig.jsonandtsconfig.test.json):VERDICT command-exit 0, 0error TS.pnpm --filter @object-ui/console type-check:VERDICT command-exit 0, 0error TS(run on the pre-rebase head3a7bc226; the rebase brought no console change).Tests
3a7bc226+ the guard fix:Test Files 1 failed | 2429 passed | 1 skipped (2431),Tests 1 failed | 23308 passed. The one failure wasstudioAddress.guard.test.ts(my parse prefix spelled the Studio root outsidestudioAddress.ts); fixed bystudioAddressParts, then that guard passes.26ec30e1:vitest run packages/app-shell/src/views/studio-design packages/app-shell/src/views/metadata-admin packages/app-shell/src/console apps/console/src/components→Test Files 1442 passed (1442),Tests 14059 passed | 1 skipped.studioPillarRedirectModel.test.ts+StudioRoute.metadataArea-28561.test.tsx→ 64 tests pass.Ablations (one per pin; each via `scripts/ablation-replace.mjs`, anchor hit x1, mutation landed on disk, restored to HEAD blob `85ed9932ab4b`, `git diff HEAD` empty after)
dataPillarRedirectinstead: red, exactly the Automations rows — 4 instudioPillarRedirectModel.test.tsand 2 route-level ones./datasingle hop —settledAreaAddress(...)dropped from the Data case:Tests 14 failed | 50 passed (64), the one-hop pinthe old /data address reaches the object list in one redirectamong them, and every route-level/dataand bare-package row (the probe saw a second hop).default:arm redirects to the object list instead ofnull:Tests 8 failed | 56 passed (64): all pure and route-level CONTROL cases, plus the/access?surface=owd:overviewrow (its/owdtarget then redirects again).studio.app.ts→Test Files 3 passed,Tests 66 passed.`studio.app.ts` walk (scratch test, not committed)
Each
metadata:resource/metadata:directoryentry through/apps/studio/metadata/TYPE?package=PACKAGE→setupMetadataStudioPath, thenareaLocationRedirecton the result: 15 of 15 land on/studio/PACKAGE/metadata/TYPE?package=PACKAGE(directory:/studio/PACKAGE/metadata?package=PACKAGE), sectionmetadata, settled (no second redirect). With no package: 15 of 15 on/studio/~all/metadata/TYPE, settled. Types: object, app, view, page, dashboard, report, dataset, action, hook, flow, agent, tool, skill, email_template.Gates
pnpm check:test-source-aliasexit 0;uipnpm check:i18n-keysexit 0;node scripts/pm/overlap-check.mjsVERDICT clean exit 0against origin/main and open PRs feat(studio): 全部类型 All types ends the 高级 fold, and the type directory lists every type a package could hold #37380, feat(studio): a dashboard list's New opens the app's design mode on its dashboards #37368, feat(console): a 「⋯」 package menu in Studio's top bar; Import on Setup → Packages #37362 (and earlier fix(console): "customized" means overrides + extensions everywhere; Setup → Packages names arrangements apart #37351, fix(studio): a permission set's review link opens the draft review on its matrix page #37347, fix(studio): a customization pair's dashboard or report opens in its base app's edit state #37348).node ui/scripts/check-i18n-dead-keys.mjsexit 0; the diff removes no translation call site.node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 2 anchors judged, 0 lost.dispatch-gates --commands: 38 derived families. 37 exit 0 locally (list in the report).pnpm check:type-check-debtis NOT MEASURED locally: the first run hit my 500 s timeout while waiting on the verify lock my own test run held (exit 124, not a red); CI's run is the reading.pnpm check:nul-bytesexit 0.Process notes
3a7bc226) went out before I re-ran the three pre-push gates; I ran them on that head right after (all exit 0).--force-with-lease. I did not retry it. Instead the branch keeps its pushed history, mergesorigin/main(1691563a) and replays the two later commits; the resulting tree is byte-identical to the rebased, tested tree.Generated by Claude Code