Skip to content

feat(studio): open Studio's dashboards and reports in the app's edit state; × returns to the list - #37226

Merged
objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-36906-dashboard-report-app-edit
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-36906-dashboard-report-app-edit

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #36906

Clause-②: no
Metadata-protocol: none

维护者速读

  • 管理员在 Studio 的仪表盘、报表列表里点一项会直接进入应用里的编辑状态(仪表盘进编辑态、报表打开构建器),页头的 × 回到刚才的 Studio 列表(刷新后也在),报表列表的「新建」进入应用的新建报表页。
  • 属于 Studio 重构专题:Studio 是某个应用的开发界面,这一步打通了 Studio 和应用之间的往返编辑。
  • 从 Studio 报表列表新建的报表改由应用的新建报表页保存,和以前一样存进该包(已安装的应用存进它的定制包),只有保存那一刻定制包恰好用不了时才存到包外并提示列表里看不到它;出错会影响打开到哪里和新报表存在哪里,可以直接撤回,已存的报表留在原处,只有草稿的仪表盘和报表、以及已安装应用定制包里的仪表盘和报表暂时仍打开 Studio 原来的详情页。
  • 无。

What changes

Epic #36890, decisions 3, 6, 13 and 15.

  • Studio opens a dashboard or a report in its app. A plain open of a dashboard or a report in Studio's list no longer shows the generic item page. It opens the item's page in an app, using the arrival state the design mode already uses: the dashboard opens in its edit state, the report opens its builder. The Studio address is replaced, not stacked, so browser Back from the app lands on the list.
  • Which app (decision 6). It is the app the author came from, when that app is one of the package's published apps, or when its menu opens the item. Otherwise it is the package's first published app. With no app, the item keeps the generic item page (decision 3). The same happens on the cross-package leg, and whenever the address asks the item page for one of its own tools (a tab, the draft review, a selection), so History and the draft door's review links still land there. The rule is shared with Studio's back link (studioBackTarget), so the two cannot disagree. It lives in a new pure module, studioAppEdit.ts, and the area's step is StudioAreaAppOpen.tsx.
  • × back to Studio (decision 15). The app address carries ?studio= with the Studio list it came from, filters and sort included. It is built and read only through studioAddress.ts (withStudioReturn, readStudioReturn) and registered as a reserved console param. The value is read as untrusted: only a Studio address on this origin is followed. While the param is present, the dashboard page and the report page draw a × that returns to that list, after a reload too. The report builder's own × does the same. Leaving unsaved edits asks first.
  • Report New (decision 13). Studio's report list New opens /apps/APP/reports/new in the app picked the same way. Its × goes back to the list, and the saved report's page keeps the way back. With no app, the area creates as before. Dashboard New is Studio 重构(3-4b):仪表盘列表的「新建」跳到应用的设计模式并直接打开「添加菜单项 → 仪表盘」(设计模式加一个到达入口) #36907's, untouched.
  • Where that new report is saved. Opened from Studio, the new-report page saves the report into the app's package, the way a new view made in an app is saved (resolveRuntimeCreatePackage): the package when it is writable, else its .custom pair through the ensure door; when neither can be had, naming no package, as views fall back, and then an info notice says the report was saved outside the app's package, so the Studio list does not show it (report.builder.savedOutsideApp, the counterpart of a view's onSavedOutsideApp notice). The draft, the publish and the discard of a refused publish all name that package (saveAndPublishInPackage), so on every other leg the report is in the list × returns to. The console warning resolveRuntimeCreatePackage prints on that fallback now names the type it saves (it said "the view" for a report too): the function takes the type as its second argument. On a read-only base whose pair door is closed (walled, or a kernel package), report New no longer opens the app page: it goes back to the list, as every create there does.
  • An item with no published version keeps the generic item page. Before handing over, StudioAreaAppOpen reads the item once, as the app reads it (published, no draft preview, ?package= the open package). No published version (a draft only: an AI draft, a create whose publish was refused), or a failed read, keeps Studio's generic item page, which is the page that opens the draft. Only then are the package's apps read.
  • A dashboard made in Studio lands in its app, and Back skips the create page. The area's own create publishes and lands on the item, which the gate forwards to the app. In a package's area, for a dashboard or a report, that landing now replaces the create page's history entry (studioCreateLandsInApp, read by ResourceEditPage), so Back from the app lands on the list. Every other type, and Setup, land as before.
  • The report builder's × and the new-report page's × ask over unsaved edits outside Studio too. Both handlers already received dirty for the Studio leg; the ask now runs before either leg.
  • No dashboard edit on a phone. useDashboardEditOffered now also requires a window at least sm (640 px) wide, the width from which the edit state's side panel is drawn. Before, only the button's CSS hid it. A landing that asks for the edit state on a narrower window is cleared and opens nothing, so neither Studio nor the design mode can put a phone into the edit state.
  • New studioReturn strings, and report.builder.savedOutsideApp, in every bundled locale (additive only; no released key removed). zh-Hant is regenerated from zh-Hans by its generator.

Why

The maintainer asked that dashboards and reports listed in Studio open straight into the front end's design page (epic #36890). The epic's decisions fix which app, the fallback, the report New target and the address-borne way back.

Tests

  • New studioAppEdit.test.ts: decision 6, rule by rule; the new-report variant; agreement with the back link; the app addresses.
  • studioAddress.test.ts, new top-level describe: the ?studio= builder and reader, the refusals both ways (another origin, protocol-relative, /studiox, a backslash, javascript:), and the reserved-param registry.
  • New StudioAreaAppOpen-36906.test.tsx, through the real StudioMetadataArea routes: the app picked, the arrival carried, the return address (list context kept, item-only params dropped), the replace, and every open that keeps the item page (a tab, the review, no app, the cross-package leg, other types). Also report New, and its fallback.
  • DashboardView.inPageEdit-36372.test.tsx, new describe: landing from Studio, × target, × after a reload, the dirty prompt, the phone landing (cleared, no edit, no Edit button), and an off-Studio value drawing no ×.
  • ReportView.designModeExclusion-36692.test.tsx, new describe: landing in the builder, the builder × to Studio, its dirty prompt, the page × beside Edit, and the card's check: reached with the design mode already on, no builder and no Edit, while × still goes back.
  • ReportNewPage-36692.test.tsx, new describe: × to Studio, and Save keeping ?studio=. This round: Save from Studio names packageId: P on the draft and the publish; on a read-only base it names the pair (P.custom, asked of the ensure door); CONTROL: a refusing ensure door falls back to the package-less save. × over an edit asks; declining stays with nothing sent; agreeing goes back to the Studio list (and the clean × asks nothing). Outside Studio: Save names no package and asks no package door, and × over an edit asks.
  • StudioAreaAppOpen-36906.test.tsx, previous round: a draft-only dashboard row keeps the item page and reads no app; so does a draft-only report and a failed read; studioCreateLandsInApp rule by rule. Its "dashboard create → Save lands on the app's dashboard and Back lands on the list" case drives the area's routes over a create STUB (CreateStub reimplements the landing), so it pins the gate's forward and Back over a replaced entry, not ResourceEditPage's call site; that is pinned in the new file below. A read-only base (readOnly, customization handed in): its dashboard row opens in the base's app; a pair-row address (/studio/BASE.custom/metadata/dashboard/X?package=BASE.custom) keeps the generic page (the starting point of Studio:以 .custom 配对包打开时,仪表盘和报表经基础包的应用打开(而不是留在通用条目页) #37237); report New opens the base app's new-report page; with the pair door walled, or no customization, report New goes back to the list.
  • ReportView.designModeExclusion-36692.test.tsx, previous round: outside Studio, a clean builder × closes without asking; over an edit it asks, declining keeps the builder, agreeing closes it.
  • New ResourceEditPage.createLandingReplace-36906.test.tsx (this round), the REAL MetadataResourceEditPage over a real MetadataClient and an in-memory server: under a MetadataAreaHost with a packageId, a dashboard create's Save lands on the item with a REPLACE (useNavigationType); CONTROLs: a view create in the same area, and a dashboard create with no area host (Setup), land with a PUSH. Each case also pins the save's ?package= (the area's package, or none).
  • ReportNewPage-36692.test.tsx, this round: the refusing-door CONTROL now also asserts the info notice (once, the report.builder.savedOutsideApp key) and that the console warning names the report; the package, pair and outside-Studio cases assert no notice. The clock is gone from the save cases: the Han romanizer handleSave awaits is paid once in a beforeAll (a cold dynamic import, paid at collection), and every save case waits on the address it asserts (waitFor) instead of two setTimeout(0) ticks, so a late save can no longer land in the next case.
  • Ablation (one, on the behaviour change the tests pin): with the phone gate removed from useDashboardEditOffered, the phone pin fails 1/1. Restored, its blob equals HEAD's and git diff HEAD is empty.
  • This round's ablations, each through scripts/ablation-replace.mjs (anchor 1 to 0, restore proven blob == HEAD and git diff HEAD empty), are listed under Verification.

Acceptance notes

  • Read first, by risk (rework 2): the notice line after the save in ReportNewPage.tsx (fires only when Studio opened the page, the app has a package, and none could be had), and the new real-page pin ResourceEditPage.createLandingReplace-36906.test.tsx.
  • Read first, by risk (rework 1): the save hunk of ReportNewPage.tsx (where a report made from Studio is written: the package, its pair, or none), the published-version read at the top of StudioAreaAppOpen.tsx's effect, and the replace on the create landing in ResourceEditPage.tsx (shared by every type; it reads studioCreateLandsInApp, true only for a dashboard or report in a package's area).
  • Read first, by risk (first round): StudioAreaAppOpen.tsx (async app pick and replace; the fallback), the useDashboardEditOffered and arrival hunks in DashboardInPageEditor.tsx and DashboardView.tsx (the phone gate now also governs the design mode's landing), and the ?studio= reader in studioAddress.ts (an address-bar value followed by a navigate).
  • StudioMetadataArea.tsx is kept narrow: one import, the item open wrapped in StudioAreaAppGate, and the create split. Open PRs feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 edit the same file in other hunks. overlap-check merges cleanly with all three at this head. Whichever lands later merges main.
  • Callers of the persistence path. runtime-metadata-persistence.ts changes in one place this round: resolveRuntimeCreatePackage(appPackageId, type, doors?) takes the type it resolves for, only so its fallback warning names it; its answer is unchanged, and its two internal callers pass the type they save (view). The new-report page now also calls two of its existing exports: resolveRuntimeCreatePackage (other callers: createRuntimeMetadata and saveAndPublishRuntimeMetadata themselves, for views only) and saveAndPublishInPackage (other callers: saveInPlace, the in-page dashboard and report Save, and setup/publicForms.ts). saveAndPublishRuntimeMetadata's other callers (objectViewViewSharing.ts, objectViewViewCrud.tsx, setup/publicForms.ts) and createRuntimeMetadata's (objectViewViewCrud.tsx, ObjectDataPage.tsx) are untouched.
  • Outside Studio, a new report is saved where it was before. The new-report page reached from the app's own reports index still saves naming no package, and asks no package door (pinned). Only the page opened from Studio's report list resolves a package.
  • Draft-only check (M2): one read, not the list row's mark. The read covers every way into the item address: a list click, a typed or shared address, and the area's create landing on the item. The list row's draft mark would cover the click only. The read is asked as the app asks it, so the two cannot disagree.
  • A pending Studio draft over a published version. The item has a published version, so it opens in the app, which shows the published version. A dashboard's edit state then refuses to open, with the existing toast 「This dashboard has unpublished changes in Studio. Publish or discard them there, then edit it here.」, so the page stays a viewer. A report's page shows the published version, and its builder opens on the pending draft's content (the report's Edit reads the stored draft layer first, authoredBuffer); the builder's Save is then refused with 「This report has unpublished changes. Publish or discard them above, then save.」, and nothing is written over the draft (the first-write pin). Either way the draft stays Studio's to publish or discard. Read from the code at this head, not walked.
  • Reload (seat ruling: keep as shipped): after a reload, × back to the Studio list survives, but the editor does not reopen. A reloaded or shared address never opens an editor by itself; that is the arrival modules' rule.
  • Card item 5 (a dashboard saved on an installed app lands in .custom) is pinned at unit level by the existing case "an installed package saves into its customization pair". It is NOT MEASURED live on HotCRM: no HotCRM checkout is in this session. That leg carries to Studio 重构(4-2):新形态的端到端测试、总走查,更新平台测试清单、文档和技能里的 Studio 地址与说法 #36910.
  • Follow-up card filed: Studio:以 .custom 配对包打开时,仪表盘和报表经基础包的应用打开(而不是留在通用条目页) #37237. In this PR, a .custom pair's dashboards and reports keep the generic item page (decision 6, rule 3); Studio:以 .custom 配对包打开时,仪表盘和报表经基础包的应用打开(而不是留在通用条目页) #37237 resolves them through the base package's apps.

Verification

Two-minute check: open Studio for a writable package with a published app, go to Reports, press New, pick a data source and a measure, name it, and Save. Expected: the report's page in the app, with a 「Back to Studio」 ×; click it, and the new report is in the Studio list.

Rework 2's readings are at head 298361bd (this branch with origin/main 057cedfa merged in) unless a line names another head. The previous rounds' readings below keep their own heads (08107d2f, 727300e5).

Live walk-through, this round (per-agent stack; CRM example plus one writable package)

The stack is a fresh examples/app-crm backend (pnpm dev:crm -- --fresh) with the Console served by Vite from this branch's ui/ source, driven by Playwright as the seeded admin, at 727300e5. In this stack the CRM package is a read-only code package, so it walks the read-only base leg. A second package, created writable through POST /api/v1/packages with one published app, walks the writable leg.

Writable package (11 PASS, 0 FAIL):

  • A dashboard staged as a draft only (PUT ?mode=draft), opened at its Studio row address, stays on Studio's generic item page.
  • Studio's dashboard New, then Save: lands on /apps/PKG/dashboard/NAME with the way back to the dashboard list. The app page shows the just-published dashboard in its edit state (no 「not found」). Browser Back from there lands on the dashboard list, not on the create page.
  • Studio's report New opens the app's new-report page. After picking a data source and a measure and saving, it lands on the report's page with the way back. GET /api/v1/meta/report/NAME?package=PKG answers 200 with packageId: PKG. × returns to the report list, and the new report is in it.
  • No page errors.

Read-only CRM package:

HotCRM: NOT MEASURED, carried to #36910.

Tests, rework 2 (head `298361bd` unless named)
  • The six pin files (ReportNewPage-36692, ReportView.designModeExclusion-36692, StudioAreaAppOpen-36906, studioAppEdit, studioAddress, DashboardView.inPageEdit-36372) plus the new ResourceEditPage.createLandingReplace-36906, default workers, 3 runs on this merged tree: each run lock VERDICT command-exit 0, Test Files 7 passed (7), Tests 95 passed (95). The six alone, 3 runs at 35c94a71 (merged with origin/main ede9b91f): each 6 passed (6), 92 passed (92).
  • The seat's S3 red (2 failed of 92 on the merged tree) did NOT reproduce on this box: the six at the merge commit ad67a645, before the fix, ran 92 of 92 green once. So the clock is shown another way: with loadHanRomanizer slowed by 100 ms (a mutation through scripts/ablation-replace.mjs, restored blob == HEAD), the previous round's test file fails its two clock-bound save cases (plus its refusing-door CONTROL, which also lacks the new toast.info mock), while this round's file passes 13 of 13.
  • At 35c94a71, the wider set: every ResourceEditPage*, runtime-metadata-persistence*, Report* and DashboardView* test, urlParams.test.ts, views/studio-design/, views/studio-detail/ and packages/i18n/. Lock VERDICT command-exit 0, Test Files 505 passed (505), Tests 4838 passed, 13 skipped.
  • pnpm --filter @object-ui/app-shell run type-check, both tsc programs, at 35c94a71: lock VERDICT command-exit 0, 0 error TS. (The final merge brings no app-shell or i18n file.)
  • eslint on this round's changed ui files: 0 errors; the 15 warnings are existing ones (no-explicit-any, only-export-components).
  • Ablations this round, each through scripts/ablation-replace.mjs under the lock (anchor 1 to 0, restore proven by blob == HEAD and git diff HEAD empty):
    8. The call site, replace: studioCreateLandsInApp(areaHost?.packageId, type), to replace: false, in ResourceEditPage.tsx: the new dashboard REPLACE case fails (1 failed, 2 passed of 3); both CONTROLs stay green.
    9. The notice line removed from ReportNewPage.tsx: the refusing-door CONTROL fails (1 failed, 12 passed of 13).
Tests, previous rounds
  • At 08107d2f, the seven touched test files (ReportNewPage-36692, ReportView.designModeExclusion-36692, StudioAreaAppOpen-36906, studioAppEdit, studioAddress, DashboardView.inPageEdit-36372, urlParams): lock VERDICT command-exit 0, 7 files, 99 tests passed.
  • At 727300e5, the wider set: every DashboardView* and Report* test, every ResourceEditPage* test, every runtime-metadata-persistence* test, views/studio-design/, views/studio-detail/, src/__tests__/, src/preview/, urlParams.test.ts and packages/i18n/. Lock VERDICT command-exit 0, 585 of 585 files, 5,662 passed, 13 skipped.
  • pnpm --filter @object-ui/app-shell run type-check, both programs, at 08107d2f: exit 0, 0 error TS.
  • eslint on the nine changed ui files: 0 errors. The warnings are existing ones.
  • Ablations, each through scripts/ablation-replace.mjs under the lock (anchor 1 to 0; restore proven by blob == HEAD and git diff HEAD empty). ui tests resolve src directly, so no dist leg applies:
    1. New-report page, the ask removed: the two "x over unsaved edits" pins fail (2 of 13).
    2. New-report page, dirty && dropped (asks on a clean x): the two clean-x pins fail (2 of 13).
    3. New-report page, the package resolve replaced by null: the package pin, the pair pin and the refusing-door CONTROL fail (3 of 13). The CONTROL fails because no door is asked at all.
    4. Report builder, the ask removed: the Studio dirty pin and the new outside-Studio pin fail (2 of 8).
    5. StudioAreaAppOpen, the no-published-version fallback disabled: the two draft-only pins fail (2 of 16).
    6. studioCreateLandsInApp forced to false: the create-then-Back pin and the rule pin fail (2 of 16). Corrected in rework 2: this reaches the pure rule and the create stub's own copy of the landing in StudioAreaAppOpen-36906, not ResourceEditPage's call site (the seat's call-site ablation left that file green, 16 of 16). Ablation 8 above reaches the call site.
    7. Report New on a read-only base, the pair-door condition removed: the closed-door pin fails (1 of 16).
Local gates, rework 2 (`dispatch-gates.mjs --commands`, 73 families)
Local gates, previous round (`dispatch-gates.mjs --commands`, 73 families at that head)

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint on the changed files locally; the repo-wide run is CI's.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…it state

A Studio list's dashboard or report opens its app's page with the edit
state (or the report builder) on arrival, in the app decision 6 picks;
the address carries ?studio= so the page's x returns to the list. The
report list's New opens /apps/APP/reports/new. No app: the generic
detail, as before. The dashboard edit is not offered below sm.

Claude-Session: https://claude.ai/code/session_01QSeKYmSqW1KzbiTWCnSN1K
Co-authored-by: Claude <noreply@anthropic.com>
…ne gate; changeset and docs

Claude-Session: https://claude.ai/code/session_01QSeKYmSqW1KzbiTWCnSN1K
Co-authored-by: Claude <noreply@anthropic.com>
…cross-package leg itself

Claude-Session: https://claude.ai/code/session_01QSeKYmSqW1KzbiTWCnSN1K
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 0a2eaf12387a3c42e1ffe5d06dfa0a002ec2c71a · 2026-11-25T05:54Z

L1 for card #36906 (Studio 3-4: dashboards and reports open in the app's edit state; report New goes to the app's new-report page). It reads the os-dev report 7153618697 and the zone note 7154065677.

  • Review method: read-only. Nothing was built or run at the seat.
  • Size: 33 files, +1,223/−42. Not governed and not Tier H, so this self-lands after ACCEPT.

What holds on reading:

  • Done-when 1: the item open is wrapped in StudioAreaAppGate (StudioMetadataArea.tsx:154). It replaces the Studio address and carries the arrival.
  • Done-when 2 (decision 6): studioAppEditSegment is now shared with studioBackTarget. Pins: studioAppEdit.test rule by rule, plus the area cases for the remembered package app, another app whose menu opens the item, and Setup with no such menu landing in the package's app.
  • Done-when 3 (decision 15): ?studio= is built and read only in studioAddress.ts, with the same-origin refusals pinned. × survives a reload on the dashboard page and the report page (both pinned).
  • Done-when 4 (decision 13): routing is pinned in StudioAreaAppOpen-36906. Where the report is saved is wrong: see M1.
  • Acceptance checks: the design-mode exclusion reached from Studio is pinned in ReportView.designModeExclusion-36692. The phone gate is pinned, with the dev's ablation.
  • Red on revert: judged by reading, every pin above goes red when its hunk is reverted.
  • Seat directions, both declared in the PR body (seat edit at 2026-11-25T05:48Z):
  • Dev's third question (where × sits): A, right-aligned, accepted. Decision 15 fixes no position, so no new header slot is needed.
  • Old addresses and bookmarks:
  • i18n: clean. The PR only adds studioReturn.{close,closeLabel,leaveConfirm} in all 11 locales, and removes nothing. No 18.6.0 key is touched, so rulings 7153171432 / 7153326968 do not apply.
  • Docs: plugin-dashboard.mdx: all five added sentences are true at this head.

Open

  • M1 (must-fix) — A report made from Studio's report list is no longer saved in the package.
    • Before this PR: the area's own create saved into the package (?package=P). On a read-only base it saved into the base's .custom pair (AreaPairedCreate). Where the pair door is closed, it did not create at all.
    • Now: New opens /apps/APP/reports/new, and ReportNewPage saves through saveAndPublishRuntimeMetadata. That function gives a package only to views (runtime-metadata-persistence.ts:574: const app = type === 'view' ? ctx.app : null), so the report is written with no package and becomes environment metadata (ADR-0146 D11).
    • The effect: Studio's list keeps only the package's and its pair's rows (scopeListRows, metadataListState.ts:273-280). The report the author just made is missing from the list × returns to, on writable packages and read-only bases alike.
    • Why the walk missed it: the live walk checked the landing and the × only. The dev's "installed app, unmeasured" note is this same defect, and it can be settled by reading.
    • Fix: give the new-report save the app's package, as views get it (resolveRuntimeCreatePackage: the package when writable, else its pair through the ensure door).
    • Pins:
      • a report saved from /apps/APP/reports/new?studio=… names packageId: P;
      • on a read-only base it names the pair;
      • CONTROL: a refusing ensure door falls back as views do.
    • Then: reword 速读 bullet 3 (S3).
  • M2 (must-fix) — A dashboard or report with no published version opens in the app on 「not found」.
    • The cause: the gate sends every plain open to the app. Outside draft preview, the app reads only published metadata (DashboardView.tsx:208-237, ReportView.tsx:143-146).
    • Who hits it: a row in Studio's list that exists only as a draft, such as an AI draft or a create whose publish was refused. It now lands on 「Dashboard not found」 or 「Report not found」 instead of the generic page that opened the draft.
    • Related path, not measured: Studio's dashboard New is still the area's own create. Its Save publishes, then navigates to the item (ResourceEditPage.tsx:2265), and the gate forwards that to the app.
      • Nothing shows that the app already serves the just-published dashboard.
      • History there is list → new → app, so Back from a miss lands on an empty create page.
    • Fix: keep the generic item page when the item has no published version (one read in StudioAreaAppOpen, or the list row's draft mark).
    • Pins: a draft-only dashboard row keeps the item page; Studio's dashboard New → Save lands on the app's dashboard. Cover the second in a unit test or the walk.
  • S1 (should-fix) — The new-report page's × over unsaved edits is not pinned. ReportNewPage.tsx:108-117 asks before leaving, but only the clean × and Save are tested. Add: × over an edit asks; declining stays with nothing sent; agreeing goes back to the Studio list. Check: removing the dirty && ask turns it red.
  • S2 (should-fix) — The changeset uses internal wording. ?studio=, STUDIO_RETURN_PARAM (a symbol of the private app-shell package), /apps/APP/reports/new, "Tailwind's sm" and "reserved console param" go into the CHANGELOG. This is the class of feat(studio): ⌘K on every Studio design page lists the package's menu and items #37108 S4, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 S6 and feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169 S6. Say it in user terms: "the app's New report page", "a phone-width window", "the page's address remembers the Studio list".
  • S3 (should-fix) — 维护者速读 bullet 3 is wrong at this head.
    • 「出错只影响打开到哪里,不改任何数据」 is false while M1 stands, and it stays a data-placement change after the fix.
    • It is also silent that an installed app's customizations keep the old Studio page until the follow-up.
    • Reword it in plain Chinese, with no bare card number.
  • S4 (should-fix) — The report builder's × outside Studio still drops unsaved edits without asking.
    • The PR now passes dirty into that close handler (ReportView.tsx:548-558) but asks only on the Studio leg. The non-Studio leg (handleCloseBuilder, :470) closes silently.
    • The dev noted this and did not file it. Because the handler is touched here, ask on both legs, with one pin.
  • S5 (should-fix) — No test drives a read-only base through the gate. This is the feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089 class. Add area cases with readOnly and customization:
  • N1 — HotCRM leg and card item 5 live: NOT MEASURED (no HotCRM checkout). They carry to Studio 重构(4-2):新形态的端到端测试、总走查,更新平台测试清单、文档和技能里的 Studio 地址与说法 #36910 under the 7147006586 precedent, and the seat posts the carried-leg note with the ACCEPT. On that basis Fixes #36906 stands.
  • N2 — Declare which version the app shows when an item has a pending Studio draft over a published one. By reading, it shows the published version, and the in-page Save then meets the pending draft.
  • N3 — Stray double blank line at StudioAreaAppOpen.tsx:131-132.
  • N4 — The zone note's 52/10 of 62 predates the 2026-11-25T05:48Z body edit. Its re-runs of "PR-body guards" and "Check Changeset" both pass.

Gates

Next: one patch round for M1–M2, S1–S5 and the nits. Then the seat reads the delta and self-lands (not Tier H).

…age; a draft-only item keeps Studio's page

The new-report page opened from Studio's report list saves into the app's
package (its pair on a read-only base), as a new view made in an app is.
A dashboard or report with no published version keeps the generic item
page; a create in a package's area replaces its own history entry. The
report builder's x and the new-report page's x ask over unsaved edits
outside Studio too.

Claude-Session: https://claude.ai/code/session_01QSeKYokyE3hgberJHmAFME
Co-authored-by: Claude <noreply@anthropic.com>
…e read-only base and the x asks

Claude-Session: https://claude.ai/code/session_01QSeKYokyE3hgberJHmAFME
Co-authored-by: Claude <noreply@anthropic.com>
…name the draft-only and save-placement rules

Claude-Session: https://claude.ai/code/session_01QSeKYokyE3hgberJHmAFME
Co-authored-by: Claude <noreply@anthropic.com>
…shboard-report-app-edit

Claude-Session: https://claude.ai/code/session_01QSeKYokyE3hgberJHmAFME
Co-authored-by: Claude <noreply@anthropic.com>
…shboard-report-app-edit

Claude-Session: https://claude.ai/code/session_01QSeKYokyE3hgberJHmAFME
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 08107d2fc4783d0cc9ca371bd77d3f3a07c53530 · 2026-11-25T09:34Z

Delta L1 for card #36906 (Studio epic #36890, zone a4-S), from the REWORK L1 7154262162 at 0a2eaf12387a3c42e1ffe5d06dfa0a002ec2c71a to this head. It reads the dev's final report 7157110199 and the zone's head note 7157161432.

  • Review method: read-only, in a throwaway worktree under the scratchpad (removed after). At this head the seat installed deps, built the six @objectstack/* packages the ui tests import, ran the touched test files, and re-ran each closed finding's pin with its fix ablated. There was no live walk at the seat.
  • Size: 34 files, +1,627/−52 (1,679 lines). Not governed, Tier S, so it self-lands after ACCEPT.
  • The delta: four commits of the PR's own (d80d7da2 fix, 2058c0d4 tests, 116911fb docs and changeset, 427168aa test import), plus two merges of origin/main (5ff1d381, 08107d2f).
    • Both merges are pure. git merge-tree --write-tree of each merge's parents gives the merge's own tree (dcc8007f… and d66b66c7…).

Pins at this head: ReportNewPage-36692, ReportView.designModeExclusion-36692, StudioAreaAppOpen-36906, studioAppEdit, studioAddress and DashboardView.inPageEdit-36372 all pass: 6 files, 92 tests. The dev's 99 adds urlParams, which the seat did not run.

Closed findings, each re-run with its fix ablated (anchor replaced once, then restored; git diff --quiet HEAD clean after each):

  • M1: closed. ReportNewPage resolves the app's package only when ?studio= is present: resolveRuntimeCreatePackage(draftBarPackageOf(appName, apps)), then saveAndPublishInPackage. Otherwise it keeps the package-less saveAndPublishRuntimeMetadata.
    • This covers the package when it is writable, the pair through the ensure door otherwise, and null (package-less) when the package is not listed or the door refuses. runtime-metadata-persistence.ts is unchanged at this head.
    • Ablation, resolve → null: 3 failed of 13 (the package pin, the pair pin, and the refusing-door CONTROL).
    • Ablation, resolve outside Studio too: 1 failed of 13. "Outside Studio nothing changes" is therefore pinned, not only stated.
  • M2 (a): closed, except one unpinned call site (S1 below). StudioAreaAppOpen reads client.get(type, name, { packageId }) before reading apps. A null or failed read keeps the fallback. That read sends no state=draft, and adds preview=draft only when the client is already in draft preview, so it asks what the app asks.
    • Ablation, if (!published) → if (false): 2 failed of 16 (draft-only dashboard; draft-only report and a failed read).
    • studioCreateLandsInApp is true only for a dashboard or report with an area package. The pure rule is pinned.
  • S1 (× on the new-report page over unsaved edits): closed. The ask now runs before both legs. Ablation, ask removed: 2 failed of 13 (the Studio leg and the index leg).
  • S2 (changeset wording): closed. ?studio=, STUDIO_RETURN_PARAM, /apps/APP/reports/new, "Tailwind's sm" and "reserved console param" are gone. It now says "the app's New report page", "a phone-width window (narrower than 640 px)" and "the page's address remembers the Studio list". The remaining studioReturn names the strings' namespace, which is fair for a locale package.
  • S3 (速读 bullet 3): reworded, but it now states a false "before" (S2 below). It does now name the data-placement change, and the installed app's customization items staying on Studio's page (in Chinese, with no bare card number).
  • S4 (report builder × outside Studio): closed. handleBuilderClose asks before either leg. Ablation, ask removed: 2 failed of 8 (the Studio dirty pin and the new outside-Studio pin). The prompt string is neutral ("Leave without saving?…"), so it reads right outside Studio too.
  • S5 (read-only base through the gate): closed. Four cases under a read-only base:
    • a base dashboard row opens in the base's app;
    • a pair row keeps the generic page;
    • report New opens the base app's new-report page;
    • with the pair door closed, report New goes back to the list.
    • AreaCreate now routes report New to the app only when !host.readOnly || host.pairCreate. Ablation, that condition removed: 1 failed of 16.
  • N2: closed. The Acceptance-notes bullet "A pending Studio draft over a published version" declares it. It matches the code by reading: the published version opens in the app, and the in-page Save refuses while the draft is pending.
  • N3: closed. The double blank line in StudioAreaAppOpen.tsx is removed.
  • N1 (HotCRM): still NOT MEASURED, and it carries to Studio 重构(4-2):新形态的端到端测试、总走查,更新平台测试清单、文档和技能里的 Studio 地址与说法 #36910 as ruled. Fixes #36906 stands on that basis.

Seat rulings on the dev's two open questions (noted, not graded here):

Open

  • S1 (should-fix) — The create landing's replace in ResourceEditPage.tsx is not pinned. It is one of the PR's own three "Read first, by risk" hunks, on the save path every type shares.
    • What the pin really drives: StudioAreaAppOpen-36906 mocks MetadataResourceEditPage with a CreateStub. That stub reimplements the landing (navigate(…, { relative: 'path', replace: studioCreateLandsInApp(host?.packageId, type) })). So "dashboard New → Save … Back lands on the list" drives the stub, not the real page.
    • Seat ablation: replace: studioCreateLandsInApp(areaHost?.packageId, type) → replace: false in ResourceEditPage.tsx. StudioAreaAppOpen-36906 stays green, 16 of 16. So does every ResourceEditPage* test plus views/studio-design/: 366 files, 2,583 tests, all passed.
    • Why the dev's ablation 6 missed it: forcing the helper false reds the stub's copy and the pure rule. It does not reach the call site.
    • Coverage today: the live walk at 727300e5 covered Back once. Nothing keeps the call site from silently reverting.
    • Fix: one ResourceEditPage create case under a MetadataAreaHost with a packageId. A dashboard save navigates with replace: true. CONTROL: a view save, or no area host (Setup), pushes. Check: the call-site ablation above turns it red.
    • Body: correct the Tests bullet and ablation 6 so they say what they reach.
  • S2 (should-fix) — 维护者速读 bullet 3 describes a "before" that main never had.
    • What it says: 「从 Studio 报表列表新建的报表现在存进该包……而不再存成环境级的元数据」.
    • What main does: at d7f299c0, Studio's report New is the area's own create. It saves into the package (?package=), or into the pair through AreaPairedCreate, or goes back to the list where the pair door is closed.
    • The real difference: the package-less save existed only at this PR's first head. Against main, where the report lands is the same in every normal case. What changed is which page saves it (the app's new-report page). There is one new leg: the ensure door refuses at save time, and the report is then saved with no package.
    • Fix: reword bullet 3 in plain Chinese. For example: from Studio's report list, New now saves on the app's new-report page, still into the package (an installed app's into its customization package), as before. If this goes wrong, it affects where a new report is stored. It can be reverted directly, and reports already saved stay where they are.
    • Also: bullet 1 is three sentences. os-dev.md's 速读 rule is one sentence per line.
  • S3 (should-fix) — The first save case of ReportNewPage-36692 runs on a clock, and goes red on this head merged with main.
    • The cause: the case is 'the new-report page saves on its own' → "Save creates and publishes the report…". It pays handleSave's cold dynamic import (await loadHanRomanizer()) inside two setTimeout(0) flushes.
    • Measured on the merged tree (git merge-tree --write-tree origin/main HEAD, origin/main 9171bed0), with the six pin files under default workers: 2 failed of 92, in 3 of 3 runs. The case sees no saveAndPublish call, and the late save then lands in the next case, "Close goes back to the reports index, writing nothing".
    • It passes elsewhere: at this head the same run is green 3 of 3. It is also green with --maxWorkers=1, and with the file alone.
    • The cause is confirmed: paying loadHanRomanizer() once in a beforeAll (a throwaway edit) makes the merged run green.
    • Why it is this PR's to fix: the clock pattern dates from Design mode: creating a report inside it shows two Save/Cancel sets and can silently detach. Make report editing its own entry, mutually exclusive with design mode (Twenty's model) #36692, but this PR owns the file. This round already fixed the same class for @objectstack/lint (check:test-source-alias: a first load is paid at collection, never inside a case's clock).
    • Fix: pay the romanizer at collection too, or wait on the assertion instead of a fixed number of ticks. A local measurement only: CI's shards may not hit it, but merged main may.
  • N1 — The CONTROL leg (ensure door refuses at save) saves the report package-less without telling the user. A new view says so through onSavedOutsideApp. Only console.warn fires here, and it still says "the view is saved". The changeset's "so it appears in the list × goes back to" does not hold on that leg. It is rare, because pairCreate already keeps walled and kernel bases off this page. A one-line notice, or a changeset clause, would close it.
  • N2 — The live walk ran at 727300e5, before the d7f299c0 merge. That merge touches none of the PR's files (the seat checked: both merges are pure), so this is noted, not re-asked.

Gates

  • Check-runs at head: 66 runs, 54 success, 12 skipped, 0 failed, 0 pending. This matches the zone's count. The PR is still a draft.
  • Staleness: K = 6 (git rev-list --first-parent --count d7f299c0..origin/main, origin/main 9171bed0). feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168 landed since (merged 2026-11-25T08:40Z). It shares StudioMetadataArea.tsx, studioAddress.ts and studioAddress.test.ts with this PR.
    • git merge-tree --write-tree origin/main HEAD is clean. In the merged tree, AreaItem still wraps the open in StudioAreaAppGate, and AreaCreate still routes report New through StudioAreaAppOpen.
    • The six pin files on the merged tree: 2 failed of 92 with default workers, in 3 of 3 runs. See S3.
  • Changeset, sentence by sentence against the code: every bullet holds, except "so it appears in the list × goes back to" on N1's leg.
    • "On the list of every package" is the cross-package (~all) leg.
    • "Where the installed app's customization package cannot be used, New goes back to the list" is AreaCreate's pairCreate condition.
    • "now ask … everywhere" is S1/S4 above.
    • plugin-dashboard.mdx: the three reworded sentences hold at this head.
  • 维护者速读:
    • Bullet 1 holds: the open lands in the edit state or the builder; × survives a reload; New goes to the app's page.
    • Bullet 2 holds.
    • Bullet 3: the clause on drafts and the installed app's customization items holds; the "before" clause does not (S2).
    • Bullet 4 is 「无」, which is right.
  • Declarations:
    • Clause-②: no holds. @object-ui/app-shell is private.
    • The @object-ui/i18n diff from the merge base is +66/−0 across the 11 locales. It adds only studioReturn.{close,closeLabel,leaveConfirm}, which is not in 18.6.0. No released key is removed, so neither the 19.0.0 narrowing arm nor a 「Removed translation keys」 list is owed.
    • Metadata-protocol: none holds: no spec or protocol file is touched.
    • The delta touches no i18n file.
  • Overlap (git merge-tree --write-tree with this head):
  • L2: none owed. There is no contract face: no spec or protocol change, i18n is additive, and the package is private.

Next: one small patch round for S1–S3 (one ResourceEditPage pin, the romanizer paid at collection, and a body edit), with N1 at the dev's discretion. The seat then reads that delta and self-lands (not Tier H).

…says so; pin the create landing's replace at the real page; the new-report save cases wait on what they assert

Claude-Session: https://claude.ai/code/session_01QSeKYofoAyhBfKixcEM6wT
Co-authored-by: Claude <noreply@anthropic.com>
…notice pin reads its key

Claude-Session: https://claude.ai/code/session_01QSeKYofoAyhBfKixcEM6wT
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 298361bdf94f615349f842c275a4f75738da56c5 · 2026-11-25T12:03Z

This is the delta L1 for card #36906 (Studio epic #36890, zone a4-S). It covers the change from the REWORK delta L1 7158516979 at 08107d2fc4783d0cc9ca371bd77d3f3a07c53530 to this head. It reads the dev's report 7160765819 (2026-11-25T11:13Z).

  • Review method: read-only, in a throwaway worktree under the scratchpad, removed afterwards.
    • Install ran with --ignore-scripts. Under the scratchpad's long path, the patched tsx's IPC pipe goes over the socket-path limit.
    • spec's three generators ran through node --import tsx. tsup built spec, core, client, formula, sdui-parser, metadata-core and lint with OS_SKIP_DTS=1.
    • Each ablation below replaced its anchor once and was then restored. git diff --quiet HEAD was clean after each one and at removal.
    • There was no live walk at the seat, and this round has none. The body's walk is still at 727300e5.
  • Size: 36 files, +1,853/−61 (1,914 lines), from merge base 057cedfa. Not governed, Tier S.
  • The delta:
    • Two commits of the PR's own: 99b4f96c (fix) and 35c94a71 (test).
    • Two merges of origin/main: ad67a645, whose second parent is ede9b91f, and 298361bd, whose second parent is 057cedfa.
    • Both merges are pure. git merge-tree --write-tree of each merge's parents gives that merge's own tree (f0236b72…, 96838ec9…), with no conflict files.

Pins at this head:

  • Seven files with default workers, 3 runs: 7 of 7 files and 95 of 95 tests each time. The files are ReportNewPage-36692, ReportView.designModeExclusion-36692, StudioAreaAppOpen-36906, studioAppEdit, studioAddress, DashboardView.inPageEdit-36372 and the new ResourceEditPage.createLandingReplace-36906.
  • This matches the dev's 95.

Closed findings, each re-run at this head:

  • S1 (the create landing's replace was unpinned at the real call site): closed. The new ResourceEditPage.createLandingReplace-36906.test.tsx drives the real MetadataResourceEditPage over a real MetadataClient and an in-memory server. It reads PUSH or REPLACE through useNavigationType.
    • Ablation at the call site, replace: studioCreateLandsInApp(areaHost?.packageId, type), → replace: false,: 1 failed of 19 across this file and StudioAreaAppOpen-36906. The dashboard REPLACE case fails with "Received: /studio/com.acme.crm/metadata/dashboard/pipeline PUSH". This is the edit the prior round left green.
    • Inverse ablation, → replace: true,: both CONTROLs fail, 2 of 3. These are the view create in the same area, and a dashboard create with no area host. So the CONTROLs are live.
    • The body's Tests bullet now says the CreateStub case pins the gate's forward, not the call site. Ablation 6 is corrected to say what it reaches.
  • S2 (维护者速读): closed.
    • Bullet 1 is one sentence.
    • Bullet 3 is one sentence. It now says the app's new-report page saves the report "和以前一样存进该包(已安装的应用存进它的定制包)". It names the one new leg (saved outside the package, with a notice, when the customization package cannot be used at save time), says the change can be reverted, and says reports already saved stay where they are.
    • That matches main: Studio's report New already saved into the package or its pair. It also matches the code.
    • Bullet 3 carries no code name, path or bare card number. Bullet 4 is 「无」.
  • S3 (the ReportNewPage-36692 save cases ran on a clock): closed.
    • loadHanRomanizer() is paid once in a beforeAll.
    • All five save cases wait on the address they assert (waitFor). The two flush() ticks are gone from every save case.
    • ReportNewPage-36692 alone, 3 runs at this head: 13 of 13 each time.
    • Seat mutation: loadHanRomanizer made to wait 100 ms on every call, including the warm path. The file stays green, 13 of 13, so no fixed tick count is left to miss.
    • The seat's earlier red cannot be re-run against the old file on today's tree. On the tree merged with current main (below), the seven files are green 3 of 3.
    • Main is merged twice (see the delta above), and both merges are clean.
  • N1 (a package-less save from Studio was silent): closed.
    • ReportNewPage now fires toast.info(t('report.builder.savedOutsideApp')) when studioReturn && appPackageId && !packageId. That covers the listed package being unwritable with the pair refused, the ensure door throwing, and the package not being listed.
    • resolveRuntimeCreatePackage(appPackageId, type, doors?) now names the type in its warning ("the report is saved naming no package"). The new type parameter is required, and all three callers pass it: ReportNewPage, and createRuntimeMetadata and saveAndPublishRuntimeMetadata (views only). git grep finds no other caller in the repo, and no test passes doors positionally.
    • Ablation, notice line removed: the refusing-door CONTROL fails, 1 of 13.
    • Ablation, notice made unconditional under Studio: the package case and the pair case fail, 2 of 13. Their new "no notice" assertions are live.
    • Ablation, the warning text back to "the view": the CONTROL fails, 1 of 13.
    • The doc page (plugin-dashboard.mdx) and the changeset each gained one sentence on this leg.

Open

  • N1 — The changeset says "If that package becomes unusable between opening the page and saving…", and 速读 bullet 3 says 「保存那一刻定制包恰好用不了」. Both describe a race. The code's leg is wider: a reloaded or shared /apps/APP/reports/new?studio=… address on a base whose pair door is closed reaches the same package-less save and notice, without passing Studio's New gate.
    • plugin-dashboard.mdx says it accurately: "If neither package can be used when the report is saved".
    • Optional: reuse that wording in the changeset. It is the dev's call, and nothing is owed.

Gates

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

Landing · 2026-11-25T12:04Z · head 298361bdf9 · zone a4-S (#36906)

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 12:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit ff04943 Nov 25, 2026
67 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36906-dashboard-report-app-edit branch November 25, 2026 12:51
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ress; no flow rail (objectstack-ai#36903) (objectstack-ai#37169)

Fixes objectstack-ai#36903
Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no page under `skills/` or `content/docs/` names the
Automations rail's strings or teaches overriding a Studio console string

## 维护者速读

- 搭建者在 Studio 点开一个流程,会在右侧全屏打开它的设计器,左上角 × 回到流程列表,‹ ›
按列表顺序看上一个、下一个;原来设计器左侧那一列流程列表没有了,组织级流程也在同样的新地址上打开。流程的“审阅草稿”链接打开通用详情页并显示审阅;权限集的审阅链接照旧打开它的权限矩阵页。
- 这是 Studio 重构专题(左侧菜单 → 列表 → 右侧全屏详情)里流程设计器的一张,和对象、权限集的设计器共用同一套“设计器页面”写法。
- 出错时最可能是旧书签没跳对、或某个流程打不开;不改数据和元数据协议。原流程列表专用的 9 条界面文字随 19.0.0
大版本退役,已在变更说明里逐条列出(若有人自定义过这几条翻译,自定义将不再显示),回退这个 PR 即可恢复。
- 这个 PR 超过 3000
行,按您的裁决在席位审核后请您审核;另有一个问题请您定:流程列表要不要加“触发对象”和“运行状态”两列(需要另开一张协议卡)。

## What changes

- **The flow designer is full-screen on its metadata address.**
`/studio/PACKAGE/metadata/flow/NAME` mounts the designer
(`AutomationsPillar`, now fixed on one flow named by the route). The
area decides it through the shared designer-page helper in
`metadataArea.ts` (`AREA_DESIGNER_PAGE_TYPES`,
`areaItemOpensDesignerPage`, `areaDesignerItemOf`), now on main from
objectstack-ai#37089; after the merges the list is `['permission', 'object', 'flow']`.
Header: the shared full-screen item header (`ResourceDetailHeader`): ×
back to the list with its filters, ‹ › in the list's order (decision
10), title, type, package, and the flow's ⋯ (New similar, Delete). Tabs:
Canvas, Variables, Runs, Problems, Debug, then References, History,
Source from `item-tools/ItemToolTabs` (hand-off §2); the open tab is
`?tab=` (`flowDesignerTabs.ts`).
- **No flow rail.** The rail, its search, object groups, legend, status
dots, contributed-flow rows and the pillar's own New dialog are deleted.
Create is the list's 「新建」 (`MetadataListCreateDialog`, same presets).
- **Nine released console strings are retired, declared (M1, ruling
7153171432 「B」 with 7153326968 「下一版是大版本 19.0.0」).** The nine
`engine.studio.auto.*` keys only the rail read (`heading`, `none`,
`emptyMain`, `group.noObject`, `kind.record`, `kind.scheduled`,
`kind.screen`, `kind.autolaunched`, `legend`) are removed from `en` and
`zh` of `@object-ui/i18n`'s studio namespace. The changeset declares
`Clause-②: yes (narrowing)`, carries the BREAKING note, the ADR-0087
`not-required (no-migration-prescription)` disposition and a 「Removed
translation keys」 list, and keeps `'@object-ui/i18n': patch` (the one
`major` is objectstack-ai#37223's). `engine.studio.org.none` is kept: S5 reads it.
- **Address switch.** `flow` leaves `STUDIO_ITEM_PILLAR` (with objectstack-ai#37168's
`object` gone too, it is empty), so `studioItemPath`, ⌘K, the AI
artifact links and the Changes drawer open the new address. Old
addresses redirect (`automationsPillarRedirect.ts`):
`/automations?surface=flow:NAME` to the flow, bare `/automations` to the
list; `?view=`/`?nav=` dropped, everything else kept (including
`?changes=review`).
- **`~org` flows** live on the package-less scope's own area leg: list
`/studio/~org/metadata/flow?source=runtime`, flow
`/studio/~org/metadata/flow/NAME?source=runtime`. Its list offers no
「新建」, and when it is empty it says how a packaged flow is changed
instead (`engine.studio.org.none`, ADR-0146 D11), through a new optional
`emptyListHint` on the area host. An empty, unsearched list there reads
as empty, not as "No matches for """.
- **Copilot context** has the sisters' shape: a designer on its metadata
address sends `{ pillar: STUDIO_METADATA_AREA, artifact }`, the same
block as objectstack-ai#37089 (on main) and objectstack-ai#37168, plus `orgScopeFlowOf` for the
`~org` leg.
- **Review links, in plain words:** a flow's review link opens the
general item page with its review; a permission set's review link keeps
its matrix page; an object's opens the general item page with its
review, as objectstack-ai#37168 shipped it.
- **One predicate for the generic page.** `?review=1` and
`?scope=environment` keep an item on the generic item page through
`areaItemAsksGenericPage`, with objectstack-ai#37168's text, for a designer type whose
generic page serves that review (the flow). A type whose item page is
its own editor (`registerMetadataResource`'s `EditPage`: the permission
set's matrix) has no generic review, so it keeps its designer page,
exactly as main does. Seat 4 recorded this as the measured form of its
ruling A (7157282796). See Acceptance notes.
- **Taken name in this package.** The list dialog's flow create says
「This package already has an automation…」
(`engine.studio.auto.createTaken`) and offers Open, to the flow's
address, when the flow holding the identifier is this package's;
`createTakenElsewhere` otherwise.
- **Kept (card item 6):** the copilot's refresh after its edits
(`useMetadataRefreshNonce`) and its current-item report
(`onSurfaceLabelChange`). objectstack-ai#36726's pinned publish on Save and on the
switch is unchanged; the list dialog's flow create publishes with
`publishCreated`.
- **Run status (card item 2):** the list has no column for it or for the
trigger object (the spec's flow columns are NAME, LABEL, type,
DESCRIPTION). Both stay on the designer header's Trigger and Status
pills. No `packages/spec` change; the column question is a fork for the
maintainer.

## Empty state and old deep links (card item 7)

- A package with no flow: the flow list's own empty state. The designer
is never opened on nothing.
- An address naming a flow the package does not hold: one block, 「The
link names flow “NAME”, which is not here.」, nothing else opened. A
package-less flow opens in `~org` instead (objectui#11553).
- Old `/studio/PACKAGE/automations`, `/studio/BASE.custom/automations`
and `/studio/~org/automations` links redirect as above.
`…/metadata/flow/NAME/history` opens the History tab.
- Delete returns to the flow list (its filters kept); no other flow is
opened in the deleted one's place.

## Tests

- This round:
- `heldFlowLeave-26705`: an unsaved, NOT held edit. × asks, Cancel keeps
the edit, OK lands on the list with nothing sent; › the same, onto the
next flow; CONTROL: after Save neither asks. The Changes sheet's flow
request: over a dirty or a held edit it asks, then lands; on the open
flow it does nothing; CONTROL: no edit, no question.
- `packageLessFlows-11553`, through the real surface: the old address of
a package flow lands on its address with the designer open; a read-only
base's old address naming a pair-added flow lands on the base's address,
writable, with the pair chip; the pair's old address lands on the pair's
own address; CONTROL: the base's own flow stays read-only. Also the
`~org` Changes request landing on the scope's flow, and the empty `~org`
list's guidance.
- `tabs-12454`: `?tab=runs` and `?tab=history` open their panel on the
real designer; CONTROL: no tab, Canvas.
- `createTaken-26917`: a published flow in this package reads
`createTaken` and Open lands on `/studio/PKG/metadata/flow/escalate`;
another package's keeps `Elsewhere` and no Open.
  - `aiChipLabel`: repinned to `{ pillar: 'metadata', artifact }`.
- `customizeFlow-28570`: the Restore dialog's label is read off the
header's title.
- Earlier rounds: the remaining `AutomationsPillar.*` suites and the
`StudioDesignSurface.*` / `StudioMetadataArea.*` suites that open a
flow, converted to the address. Deleted as rail-only, each with the pin
that covers what is left: `AutomationsPillar.railSearch-11794`,
`FlowStatusDot`, `FlowStatusDot.registration-12349`,
`StudioDesignSurface.railUnboundReason-11281` (the unbound reason is on
the header's Status pill, `flowStatusTruth-11779`),
`.automationsRailOrder-12612`, `.draftObjectFlowGroup-29706`, and the
rail cases in `.emptyStates-12514`, `.homeLoop-12513`,
`.oneSurface-28572`, `.autosaveSwitch-11232`, `.heldFlowCreate-26845`,
`StudioRail.noMatches-26733`. New pins:
`automationsPillarRedirect.test.ts`, `flowDesignerTabs.test.ts`, the
helper and predicate cases in `metadataArea.test.ts`, the designer and
`/history` routes in `StudioMetadataArea.routes-28561`.

<details><summary>Ablations (each: committed fix, anchored mutation
through the ablation-replace script, restored to the HEAD
blob)</summary>

- M2, `dirty: autoDirty` → `dirty: false` at
`AutomationsPillar.tsx:803`: the two new guard cases go red on `expected
"vi.fn()" to be called 1 times, but got 0 times` (lines 315, 338), the
CONTROL goes red on Save not offered, and the 5 held-step cases stay
green (`Tests 3 failed | 5 passed (8)`). Restored: blob `068563e042de`
== HEAD, `git diff HEAD` empty.
- S4, `here: own.some(…)` → `here: false`: the in-package case goes red,
the others stay green (`1 failed | 9 passed (10)`). Restored: blob
`c5263910bff6` == HEAD.
- S5, the area host's `emptyListHint` spread deleted: the empty `~org`
list case goes red (`1 failed | 23 passed (24)`). Restored: blob
`5386130ea404` == HEAD.
- The first M2 run went red at the case's own precondition (Save not
offered), not at the question; the precondition was moved out of the
shared helper and the ablation re-run as above. Declared, not hidden.
</details>

<details><summary>Local readings (final head first; earlier heads
named)</summary>

- **Final head `9fcff540`** (the third merge of `origin/main`, at
`1b91538b` with objectstack-ai#37168, in `7a7af7ad`; then the lint fix). CI on
`7a7af7ad` was red in Lint UI only: three imports that the
retired-pillar cases left unused (`fireEvent` and `screen` in
`expectedMisses-11799`, `parseSurfaceParam` in `metadataArea.test`).
`9fcff540` removes them; no source changed. Readings on that tree, each
under the lock:
- `pnpm --dir ui --filter @object-ui/app-shell run lint`: exit 0, 0
errors.
- app-shell type-check (src and `tsconfig.test.json`): exit 0, 0 `error
TS`.
- Full run over `studio-design`, `metadata-admin`,
`CommandPalette.studioScope-11863`, `console`, `packages/i18n/`,
`clickableNonControlCensus-13461` and the console's `StudioRoute`: Test
Files 1508 passed (1508); Tests 15400 passed, 14 skipped; VERDICT
command-exit 0.
- `check:i18n-keys`: exit 0. `check:test-source-alias`: exit 0 before
the push. The 36 light derived families re-ran on `7a7af7ad`: all exit
0. `overlap-check`: `origin/main` and objectstack-ai#37226 merge cleanly; objectstack-ai#37166
conflicts.
- Full dogfood battery on `7a7af7ad` (the lint fix changes no runtime
file), `pnpm --filter @objectstack/dogfood test` under the lock: Test
Files 487 passed, 3 skipped (490); Tests 4128 passed, 68 skipped (4196);
VERDICT command-exit 0.
- Ablation of the review rule after the merge: `const genericPage =
areaItemAsksGenericPage(search) &&
!getMetadataResource(type)?.EditPage;` → `const genericPage = false;` in
`StudioMetadataArea.tsx`. `routes-28561`: Tests 2 failed, 32 passed
(34). The object's `?review=1` CONTROL and the flow's `?review=1` case
go red (`expected 'flow-designer' to be 'item'`); the permission set's
matrix pin stays green. Restored: blob `c3b2d2786f9f` == HEAD.
- CI on `9fcff540`: 58 check-runs, all completed: 45 success, 13 skipped
(path filters, opt-in and queue jobs), 0 failed. Lint UI, Type Check UI,
Test UI (shards 1–16), Build & E2E UI, Live E2E UI, Lint & Repo Gates,
TypeScript Type Check, Test Core, Dogfood Regression Gate, Governed
Surface Queue Guard, Check Changeset and PR-body guards: success.
- **Review-link round, head `d3e30576`** (on top of `3f65d38b`, below):
app-shell type-check exit 0. `StudioMetadataArea.*`,
`StudioPermissionSetPage.*`, `metadataArea.*`, `packageLessFlows-11553`,
`heldFlowLeave-26705`, `oneSurface-28572` and
`AppContent.setupMetadataStudio-28578`: Test Files 8 passed (8), Tests
218 passed (218). Ablation as above. Full dogfood battery on `d3e30576`
under the lock: Test Files 487 passed, 3 skipped (490); Tests 4128
passed, 68 skipped (4196); VERDICT command-exit 0.
`check:test-source-alias`: exit 0 before the push. CI on `d3e30576`: 58
check-runs, 45 success, 13 skipped, 0 failed.
- **Final head `3f65d38b`** (the second merge of `origin/main`, at
`6211ddf4`). app-shell type-check: exit 0. `studio-design`,
`metadata-admin`, `CommandPalette.studioScope-11863`, `console/ai`,
`packages/i18n/` and `clickableNonControlCensus-13461`: Test Files 1265
passed (1265), Tests 13230 passed, 14 skipped (VERDICT command-exit 0).
Full dogfood battery, `pnpm --filter @objectstack/dogfood test` under
the lock: Test Files 487 passed, 3 skipped (490); Tests 4128 passed, 68
skipped (4196); VERDICT command-exit 0. The derived gate list is
unchanged (38); its 36 light families re-ran, all exit 0.
`check:test-source-alias`: exit 0 before the push. `overlap-check`:
`origin/main` merges cleanly; objectstack-ai#37168 and objectstack-ai#37166 conflict.
- Diff against the merge base with `origin/main` at `3f65d38b`: 94
files, +2,235 / −2,787.
- **M1 round, head `576f67d3`.** `check-adr-0087-registration --base
origin/main`: exit 0, one declared-breaking changeset with `not-required
(no-migration-prescription)`. `check-changeset-no-major`: exit 0.
`check-empty-changeset`: exit 0. `ui` `check:i18n-keys`,
`check:i18n-drift`, `check:i18n-dead-keys`: exit 0 each.
`packages/i18n/` plus `plainLanguage-11659`, `studio-locale.i18n` and
`packageLessFlows-11553`: Test Files 114 passed (114), Tests 2060
passed, 13 skipped (VERDICT command-exit 0). app-shell type-check: exit
0. The 36 light derived families re-run: all exit 0. Full dogfood
battery (owed by the `(narrowing)` arm), `pnpm --filter
@objectstack/dogfood test` under the lock: Test Files 487 passed, 3
skipped (490); Tests 4128 passed, 68 skipped (4196); VERDICT
command-exit 0. `check:test-source-alias`: exit 0 before the push.
- `pnpm --filter @object-ui/app-shell type-check` (src and
`tsconfig.test.json`): exit 0 on `49bf2233`, after the `@object-ui/*`
dependency closure was rebuilt from this tree (turbo, 68 tasks).
- Full run on `1d6b2854` (the merge plus its seam fixes), over
`packages/app-shell/src/views/studio-design`,
`packages/app-shell/src/views/metadata-admin`,
`CommandPalette.studioScope-11863`, `console/ai` and
`clickableNonControlCensus-13461`: Test Files 2 failed, 1150 passed
(1152); Tests 3 failed, 11175 passed, 1 skipped. The failures came from
the merge: `homeLoop-12513` opened on `/access`, which objectstack-ai#37089 turned
into a redirect; and `MetadataListCreateDialog.pairCreate-36897` mounts
the dialog without a router, where this round's Open used `useNavigate`.
Both are fixed at `49bf2233`, where the touched files re-ran: Test Files
24 passed (24), Tests 176 passed (176).
- `dispatch-gates --commands`: 38 families. `--ran` reconciliation: 38
derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, all with exit codes, all 0.
`pnpm --dir ui exec vitest run scripts/` was OOM-killed on its first run
beside the full suite; re-run alone under the lock it exited 0 (Test
Files 172 passed, 2 skipped). `check:type-check-debt` re-measured under
the lock: OK, 0 raw errors.
- `check:test-source-alias`: exit 0 before each push. `overlap-check`:
`origin/main` merges cleanly; objectstack-ai#37168, objectstack-ai#37166 and objectstack-ai#37185 conflict (exit
1).
- ESLint (`--no-inline-config`) over every changed `ui/` file: 0 errors,
59 warnings.
</details>

## Acceptance notes

- **M1, how it ended.** Round 2 first restored the ten released keys
(the L1's preferred fix). The maintainer then ruled retire-and-declare
(7153171432 「B」; next release is the major, 7153326968), so this round
removes the nine keys no code reads and declares them; the tenth,
`engine.studio.org.none`, is read again by the `~org` list (S5) and
stays. `studioAutomationCopy.plainLanguage-11659`'s heading case went
with its row (N1, first option). The ~35 keys main had already removed
are objectstack-ai#37223's, not declared here.
- **Merged `origin/main` at `bc3ec37a`, which holds objectstack-ai#37089 (the
permission designer).** The merge unions the two designers:
`AREA_DESIGNER_PAGE_TYPES = ['permission', 'flow']`,
`STUDIO_ITEM_PILLAR` keeps `object` only, and `AreaItemOpen` mounts
`AutomationsPillar` for a flow and `StudioPermissionSetPage` for a set.
Two consequences, both deliberate:
- **Declared deviation, accepted (seat 4, 7157282796): a permission
set's `?review=1` keeps main's behaviour and opens the matrix page.**
The ruling said uniform (A), on this branch's recommendation. Checking
it showed the premise was false. For a type whose item page is its own
editor, the generic page never draws: `MetadataResourceEditPage` hands
the item to the registered `PermissionMatrixEditPage`, which has no
draft review. Neither it nor main's `StudioPermissionSetPage` reads
`?review=1`. Uniform would therefore have sent a set's review link to
Setup's matrix editor, with no review sheet and outside the Studio page:
a regression. So `AreaItemOpen` asks the generic page only for a type
with no own `EditPage`. That is the flow here and the object in objectstack-ai#37168
(objectstack-ai#37168 should check the object's registry before relying on it). Pinned
in `routes-28561` (`?review=1` keeps the matrix page), and ablated:
dropping the `EditPage` guard reds it, `1 failed | 31 passed (32)`,
restored to the HEAD blob. The flow's `?review=1` still opens the
generic page and its review (the case beside it).
- **Carrier for the permission set's review, objectstack-ai#37269.** Two live links
write a permission set's `?review=1` today: the Packages page's
per-draft review link (`PackagesPage.tsx:1317`) and the chat's 「Review N
changes」 (`AppContent.tsx:286`). Both open the matrix page with no
review, as on main. objectstack-ai#37269 makes the matrix page show the draft's
changes; this PR does not change what those links open.
- The census rows for `AccessPillar.tsx` and `AutomationsPillar.tsx`
`setRailOpen` both go: both rails are gone.
- **Merged `origin/main` again at `6211ddf4`**, after objectstack-ai#37185 (the
authenticated fetch) and objectstack-ai#37232 (the menu's type table) landed and the
PR showed a conflict. Two files conflicted, each resolved so both sides
survive: `CommandPalette.studioScope-11863.test.tsx` (one comment above
the shared `@object-ui/plugin-detail` warm-up; main's wording kept) and
`FlowItemMoreMenu.tsx` (main's `authFetch` for the clone door kept; the
`STUDIO_HEADER_ICON_BUTTON` import this branch had dropped as unused
stays dropped). objectstack-ai#37168 had still not merged, so the exemption below
stands.
- **Merged `origin/main` a third time, at `1b91538b` (objectstack-ai#37168, the object
designer).** This PR now lands second of the pair, so it carries the
routing ruling. The 47 conflict hunks in 22 files were resolved so both
designers survive:
- `AREA_DESIGNER_PAGE_TYPES = ['permission', 'object', 'flow']`, and
`STUDIO_ITEM_PILLAR` is empty.
- `AreaItemOpen` mounts `DataPillar` for an object, `AutomationsPillar`
for a flow and `StudioPermissionSetPage` for a set. objectstack-ai#37168's `type ===
'object'` review gate is replaced by the one `EditPage` rule; it gives
the object the same answer.
- Both creates' `onOpenExisting` paths are kept: the object's at its
target package, the flow's in this package. The prop, which both PRs
added, is passed once.
  - Both old-pillar redirects (`/data`, `/automations`) are kept.
- Two suites lost their last case, every one a retired pillar's in-place
behaviour: `StudioRail.noMatches-26733` (all three rails are gone) and
`StudioDesignSurface.autosaveSwitch-11232` (main kept only the
Automations cases and this branch only the Data cases, and both pillars
are gone). Each is deleted. What they pinned for items is pinned per
item: the area keys each designer by item, and `heldFlowLeave-26705`'s ›
case pins that the next flow opens clean, with nothing sent.
- **`AreaHistoryRedirect`'s designer-item exemption (`pillarItem`) is
deleted** (seat 4's routing: the second lander of objectstack-ai#37168 and objectstack-ai#37169
deletes it). With `STUDIO_ITEM_PILLAR` empty it could no longer fire.
`routes-28561`'s CONTROL keeps its own-`EditPage` leg (the standalone
history page), and its object leg is repointed at the object designer's
History tab; the flow's `/history` opens the flow designer's History tab
(the case beside it).
- The closing line on line 1 is kept this round (N4): the maintainer is
still to answer card item 2.
- N2: the stale `/studio/~org/automations` comments in `src/index.ts`
and `studioScope.ts` now name the scope's area addresses.
- N3: not changed. The caption's `title="API name: …"` predates this PR:
main's pillar header set the same `titleProps.title`, and 20 test
lookups across 15 suites key on it. A cut label's hover still shows the
API name; the changeset now names the api-name chip instead of a
tooltip.
- N5 / `orgScopeFlowOf` (seat 4: keep it): a one-line comment at the leg
says it is dormant because the package-less scope mounts no copilot
(objectui#11553). No surface-level `~org` copilot case is possible: the
package-less scope mounts no copilot (`slotHost` needs a package,
objectui#11553; `packageLessFlows-11553` pins `chatDock.mounts === 0`).
The `~org` leg's context is pinned on the pure `orgScopeFlowOf` in
`metadataArea.test.ts`.
- N6: four `docs/qa/platform-checklist/areas/studio-authoring.json`
items still describe the deleted rail and the `~org` pillar:
`automations-rail-and-new-flow`, `org-scope-flows`,
`flow-status-matches-runtime`, `flow-edge-type-authoring`. They carry to
objectstack-ai#36910, whose item 3 owns that rewrite.
- N7: corrected. CI on `5d9bb8da` was 47 success and 15 skipped, and
"Check PR Size" was skipped, not passed.
- N8: the Restore case reads its label off the header's title
(`auto-canvas-caption`), so it still cross-checks the dialog.
- S6: `ui/packages/app-shell/README.md`'s package-less section describes
the scope's area leg; the changeset is in user terms, with no route
templates and no query parameters.
- The suites this PR edits import `@objectstack/lint` and
`@object-ui/plugin-detail` at module top, so the dynamic imports their
source reaches are paid at collection (`check:test-source-alias`).
- Overlaps at this head (`9fcff540`): objectstack-ai#37166 conflicts with this branch;
`origin/main` and objectstack-ai#37226 merge cleanly. Whichever lands later merges
main.
- Left for objectstack-ai#36909 (pillar leftovers): `groupFlowsByObject`,
`withContributedFlowGroups`, `ContributedRailRow`, `useOpenContributor`,
the console's `/studio/~org` bare route, and producers still writing the
old `/automations` (all redirect).

## Verification

First read, by risk: `StudioMetadataArea.tsx` (`AreaItemOpen`: the
designer decision for both types, the `~org` leg), `metadataArea.ts`
(the shared helper and `areaItemAsksGenericPage`),
`MetadataListCreateDialog.tsx` (the taken-name branch).

Two-minute check: open
`/studio/com.example.showcase/automations?surface=flow:showcase_urgent_task_alert`;
expect the flow full-screen at
`/studio/com.example.showcase/metadata/flow/showcase_urgent_task_alert?package=com.example.showcase`,
with × to the list and ‹ › enabled.

<details><summary>Live walk-through (showcase, earlier round, head
5d9bb8d)</summary>

Stack: `pnpm dev -- --fresh -p 38917` after `pnpm build`, and the
Console dev server, driven with Playwright. It covered the list, the
full-screen canvas, › and ×, a `~org` flow, an old bookmark, bare
`/automations` and `/history`. No page errors. HotCRM was not walked:
this container holds only this repository. This round adds no new screen
path that the cases above do not drive through the real surface; it was
not re-walked.
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYnHH41MS5hWVGPia4F)_
<!-- signed: repo:objectstack#4 · os-justin ·
session_01QSeKYkkwuF6UuFtu85Yd5H -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… and their notes follow the new currency (objectstack-ai#37284)

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Fixes objectstack-ai#36412

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

## 维护者速读

-
用户可见变化:在报价、订单、发票里选产品带出价格后,如果在同一次编辑中改了币种,价格不会被改动或清空,下方会说明这笔价格是按哪个币种带入的、记录现在是哪个币种;没带入的价格提示会跟着换成新币种;改成与产品价格相同的币种时,提示保留、价格仍空,并提示重新选取即可带入。
- 为什么做:这是「选产品不跨币种抄价格」那张卡里最后一项(「保留金额并提示」及其 B 方案),替多币种单据的使用者补上改币种后的说明。
- 出错会怎样:只影响价格下方的提示文字,不写入、不清除任何金额;手动输入的金额不显示提示;可以直接撤回这一个合并。
- 要你做什么:无。

## What changes

The ruling item on this card (comment 7118795825, 「保留金额并提示」) and its
branch B (comment 7158109013), on both hosts: the line-item grid
(`GridFieldWidget`) and the record form (`LookupField` with the declared
pairs). Scope is bounded by ADR-0144 D2: new records, records with no
saved lines, lines staged in the same edit, and declared pairs on the
record's own amounts. Items 1–4 landed in objectstack-ai#36918. With this PR the
card's last open item is done.

- **Point 1: a currency change in the same edit never changes or clears
a filled amount.** Measured first. This already holds on `main`
(`057cedfa9b6`): nothing writes an amount when the code changes. The new
pins were run against main's source files, and every amount assertion
passed there; the only failures were the note lines that come after them
(see Tests). Pinned either way, on both hosts. This PR adds no write.
- **Point 2: an amount a pick copied gets a note once the currencies
differ.** `judgePickWrites` now records each amount it copies as
`CopiedAutofill` (`target`, `source`, `value`, `under`: the code the
target was in at the write). The plan gains the optional `copied`,
absent when there is none. Each host keeps these beside the withheld
values of the same pick. When drawing, it shows "Unit Price was copied
as $100.00, but the record is now in EUR. Enter Unit Price in EUR if it
should change." only when all of these hold (`copiedAutofillNow`): the
field still holds that pick, the target still holds the copied value,
and the code the target is in now is known and differs from `under`. A
currency change back ends the note.
- **Point 3: a withheld note already shown refreshes to the record's new
currency.** `withheldAutofillNow` judges each shown withheld item again
with `crossCurrencyRefusal`, using the picked amount's own currency (its
`from`) against the target's currency as it is now. The note follows the
new code, and its reason too: a code cleared reads "no currency is
chosen".
- **Point 4: a hand-typed amount gets no note.** Only a pick records a
copied amount, and the note needs the target to still hold the copied
value. So an amount typed by hand, or typed over a copied one, says
nothing.
- **Branch B.** When the record's currency turns to the picked amount's
own, the re-judgement copies nothing. The item takes the new reason
`nowSameCurrency`, the note stays and the cell stays empty: "Unit Price
was not filled when it was picked. The record is now in USD: pick again
to fill $100.00." A pick again fills it (pinned as the control on the
record form). When the target still holds an earlier value (`held`), the
sentence says to clear the field, then pick again
(`lookup.autofillNowSameCurrencyHeld`, round 3).
- "Now" on each host is the same context the pick used, with no picked
row. On the grid that is `gridAutofillCurrency` on the current line,
with `columnCurrencies` (a header-following line) or `columnFields` (the
line's own code). On the record form it is `currencyFor` on the live
record, followed parent included. So a code written later in the edit is
read exactly as a pick would read it.
- i18n: three sentences, `lookup.autofillNowSameCurrency`,
`lookup.autofillNowSameCurrencyHeld` and `lookup.autofillCopiedUnder`,
in all 11 packs (zh-Hant generated by `gen:zh-hant`) and in
`FIELD_DEFAULTS`.
- One changeset, `.changeset/36412-currency-change-notes.md`:
`@object-ui/fields` and `@object-ui/i18n`, both `patch`. The objectstack-ai#36918
changeset is left untouched. `@object-ui/plugin-form` changes in its
test file only, which is not published.

## Clause-② rework: route (a), `copied` optional

At the seat's rework the first declaration, `Clause-②: no`, did not
hold. Route (a) is taken; no route (b), nothing here needs `copied` to
be required. `LookupAutofillPlan.copied` is now optional (`copied?:
CopiedAutofill[]`). `judgePickWrites` leaves it out when the pick copied
no amount under a judged currency, and every in-package reader treats
absent as none (`LookupField`'s two `noteWithheld` calls,
`GridFieldWidget`'s pick, `planLookupAutofill`'s pass-through). A plan
built without `copied` is still a plan, so nothing is narrowed. The
published `@object-ui/fields` surface widens:
- new exports `withheldAutofillNow`, `copiedAutofillNow`,
`copiedAutofillMessage` and the type `CopiedAutofill`;
- the optional member `LookupAutofillPlan.copied`;
- the `WithheldAutofill.reason` union gains `nowSameCurrency`, so code
that switches over every reason gains one case.

The same declaration is in the changeset. `Metadata-protocol: none`
stands: no spec key, value or metadata type changes. A pin asserts that
a plan which copied no amount carries no `copied`.

## Tests

Round 3 (the seat's S1, N1, N2 and N4), all under `os-verify-lock`:
- Both pin files at `dd0ebf7f96`: Tests 71 passed (71). Two new pins
hold the held branch B case on each host (grid: header USD over a line
holding 80, then EUR; form: an `overwrite: true` pair over a typed 80 on
a EUR quote, then USD). Each asserts the exact clear-then-pick-again
sentence and that the earlier value stays. The grid branch B pin now
ends with the N4 control: a pick again fills 100 and no note remains.
- Ablation: the held arm in `withheldAutofillMessage` is deleted
(`ablation-replace --delete`, restored to the HEAD blob `848e5fd1844c`).
Tests 2 failed, 9 passed: exactly the two held pins fail. The non-held
branch B pins on both hosts stay green, so their wording is unchanged.
- The three-package run at `dd0ebf7f96` failed one test,
`all-locales-key-parity` "placeholders match en in every pack": the
first zh-Hans text of the new key named `{{field}}` three times against
en's two, and zh-Hant was generated from it. Fixed in `315c0d8fef`. At
that head, `packages/i18n/` gives Test Files 111 passed, Tests 2028
passed, 13 skipped. Only locale strings changed between the two heads;
fields and plugin-form were green at `dd0ebf7f96` (685 of 687 files
passed, 1 skipped, and the one failure was that i18n test). `type-check`
of the three packages exits 0 at `315c0d8fef`.

Round 2 (the Clause-② rework), head `a602513471`, all under
`os-verify-lock`: the same three-package run gives Test Files 686
passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861),
`VERDICT command-exit 0`. `type-check` of the three packages exits 0.
Ablations of the reworked lines, each restored to the HEAD blob
`e96dadd3fbba`:
- `copied` always present (`return copiedAmounts.length > 0 ? { ...plan,
copied: copiedAmounts } : plan;` becomes `return { ...plan, copied:
copiedAmounts };`): Tests 1 failed, 8 passed. The absent-means-none pin
fails.
- No copied note, re-run on the new head: Tests 3 failed, 6 passed. The
copied note fails on both hosts, plus the pure pin.

Round 1 readings follow. Tests on head `482148532`, all under
`os-verify-lock`: `pnpm --dir ui exec vitest run --maxWorkers=2
packages/fields/ packages/plugin-form/ packages/i18n/` gives Test Files
686 passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861),
`VERDICT command-exit 0`. `type-check` of `@object-ui/fields`,
`@object-ui/plugin-form` and `@object-ui/i18n` exits 0, after the
closure build. Both pin files are in the `tsconfig.test.json` program
(`--listFiles`: 1 hit each).

<details><summary>New pins, the point 1 measurement, and
ablations</summary>

- `ObjectForm.lookupAutofill-28245.test.tsx`, new describe "a same-edit
currency change keeps amounts and says so", 4 tests through
`ObjectForm`. (1) A USD quote picks a $100 product. Changed to EUR, it
keeps 100 and shows the copied note with its exact text. Control: before
the change there is no note, and changing back to USD ends it. (2) A JPY
quote's withheld note names GBP and no longer JPY after the code becomes
GBP, and the price stays empty. (3) Branch B: a EUR quote's withheld
note reads exactly "Unit Price was not filled when it was picked. The
record is now in USD: pick again to fill $100.00." once the code becomes
USD, and the price stays empty. Control: the pick again fills 100 and no
note remains. (4) A typed 55 gets no note through a currency change, and
neither does 55 typed over a copied 100.
- `GridField.lookupAutofill-28245.test.tsx`, new describe of the same
name, 5 tests. The same four cases through `GridField`, with the header
currency handed in as `columnCurrencies` and changed by a rerender, for
a product priced in EUR. One more is pure: `withheldAutofillNow` follows
the currency now, `nowSameCurrency` applies when it matches, and with no
currency known the item is returned unchanged; `copiedAutofillNow` names
a differing code only while the target holds the copied value. The
objectstack-ai#36412 declared-pairs pin now also asserts `copied` (the price is
recorded under the code the same pick wrote).
- **Point 1 measured on main's code.** The five source files were
restored to `057cedfa9b6` in the tree only, the `-t ruling` pins were
run, and the files were restored with `git checkout HEAD` (`git diff
HEAD` empty afterwards). Result: 7 failed, 2 passed. The two hand-typed
pins passed. Both copied-amount pins failed on the note line after their
amount assertion (ObjectForm line 745, GridField line 641): the amount
kept its value through the currency change on main. The refresh and
branch B pins failed on their note text, and the pure pin failed on the
missing export. Point 1 has no implementing line to ablate: nothing
writes an amount on a currency change, before or after this PR.
- Ablations on the committed tree with `scripts/ablation-replace.mjs`
(`lookupAutofill.ts`; vitest aliases `@object-ui/*` to `src`, so no
`dist` sits between mutation and run), `-t ruling`, each restored to the
HEAD blob `18535d11faef`:
- ` if (!now) return item;` becomes ` return item;` (no refresh): Tests
5 failed, 4 passed. Refresh and branch B on both hosts, plus the pure
pin.
- ` return to && to !== item.under ? to : undefined;` becomes ` return
undefined;` (no copied note): Tests 3 failed, 6 passed. Copied note on
both hosts, plus the pure pin.
- ` if (!sameValue(current, item.value) || !now) return undefined;`
becomes ` if (!now) return undefined;` (a typed-over amount keeps the
note): Tests 3 failed, 6 passed. Hand-typed on both hosts, plus the pure
pin.

</details>

## Acceptance notes

- Clause-②: `yes (widening)` (see the rework section above). The diff
touches no `packages/spec/**` and no metadata. `git grep` finds
`LookupAutofillPlan` only inside `ui/packages/fields`.
- Branch B over a filled target (round 3, the seat's S1): a withheld
value that carries `held` (a pick over a target that still holds an
earlier value) now gets its own branch B sentence,
`lookup.autofillNowSameCurrencyHeld`: "Unit Price was not filled when it
was picked and still holds its earlier value. The record is now in USD:
clear Unit Price, then pick again to fill $100.00." For a declared pair
without `overwrite`, picking the same record again does not replace a
value that record did not fill (the spec's overwrite rule), so the
sentence says to clear the field first. Re-pick behaviour is unchanged.
- A copied amount whose record's currency becomes unset or unreadable
gets no note (no current code to name). Only a known, different code is
named, as the ruling's example reads.
- N9 (record-page editor re-renders): not measured. The new work per
render is one re-judgement per shown note, and nothing runs when no pick
left a note.

## Verification

<details><summary>Gates</summary>

- Round 3: `dispatch-gates --commands` derived the same 41 at
`315c0d8fef`. All 41 ran with exit 0, including the ui `scripts/` family
(172 files passed, 2 skipped; 5130 tests passed). `--ran`: 41 derived,
41 run, 0 NOT-MEASURED, 0 UNRUN. ui `check:i18n-keys`,
`check:i18n-drift`, `check:i18n-dead-keys` and
`check:new-line-citations` exit 0 (run at `dd0ebf7f96`; the later commit
changes two locale strings, and key parity is pinned by the i18n suite
above). Size: 19 files, +582/-38 (620 changed lines); with objectstack-ai#36918's 714
the card totals 1,334, under 3,000.
- Round 2: `dispatch-gates --commands` derived the same 41 at
`a602513471`. All 41 ran with exit 0, including the ui `scripts/` family
(172 files passed, 2 skipped; 5130 tests passed). `--ran`: 41 derived,
41 run, 0 NOT-MEASURED, 0 UNRUN.
- Round 1: `dispatch-gates --commands` (no paths, change set from the
merge base) derived 41 commands at `482148532`. All 41 ran with exit 0.
`pnpm --dir ui exec vitest run scripts/` ran under the lock with
`--maxWorkers=2`: Test Files 172 passed, 2 skipped, and Tests 5130
passed, 2 skipped. `dispatch-gates --ran` with exit codes recorded: 41
derived, 41 run, 0 NOT-MEASURED, 0 UNRUN, exit 0.
- ui `check:i18n-keys`, `check:i18n-drift`, `check:i18n-dead-keys` and
`check:new-line-citations`: exit 0, with 0 new citations.
- `overlap-check` before each push: VERDICT clean, exit 0. Re-read after
`git fetch` against `origin/main` `622f3985fe` and 5 PR heads that share
files (objectstack-ai#37282, objectstack-ai#37249, objectstack-ai#37226, objectstack-ai#37210, objectstack-ai#37166): clean. `--pr=37264`
named explicitly: merges cleanly.

</details>

Read first, by risk: (1) `judgeCopy`, `withheldAutofillNow` and
`copiedAutofillNow` in `lookupAutofill.ts`; (2) the note block at the
end of `LookupField.tsx` (`pickStands`, `currencyNow`); (3) the per-row
note block in `GridFieldWidget.tsx` (`lineCurrencyNow`).

Two-minute check: `pnpm --dir ui exec vitest run
packages/plugin-form/src/ObjectForm.lookupAutofill-28245.test.tsx -t
ruling` passes 4 tests. In them, a USD quote picks a $100 product,
changes its currency to EUR, keeps 100, and shows "Unit Price was copied
as $100.00, but the record is now in EUR."

https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…or Setup > Packages (objectstack-ai#37166)

Fixes objectstack-ai#36908
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 管理员和开发者打开 Studio
不再看到软件包卡片页:有上次用过的软件包就直接进它;没有的话,能打开设置软件包列表的人进那个列表,打不开的开发者进「全部元数据」;已安装应用「改了什么」挪到了设置里的软件包详情;「添加应用」菜单去掉了「用
AI 搭建」,「在 Studio 中新建」改名为「新建空白应用」,凡是开放了元数据编辑的环境都会出现。
- 这是 Studio 重构专题的「去掉 Studio 首页」一步:首页的入口大多已有去处,但软件包的「管理」和「全部软件包」要等 Studio
顶栏菜单那张卡(objectstack-ai#37139)补上,一步「新建应用」要等新建软件包对话框那张卡(objectstack-ai#37134);另有三个入口没能在真实环境走过,「添加应用」菜单这一轮的变化(去掉「用
AI 搭建」、改名「新建空白应用」)也没在真实环境走过,都只有自动测试覆盖。
-
维护者已裁定统一「已定制」的口径(objectstack-ai#37236),但设置里的软件包详情和本次更新说明里的一句话目前仍把标签页等排列调整算作「已定制」;改正由那张卡完成,本
PR 不妨碍它。
- 只有 Studio 权限、没有设置权限的开发者现在没有任何页面能新建软件包,因为新建入口只在设置里;这要等 Studio
顶栏菜单(objectstack-ai#37139)和新建软件包对话框(objectstack-ai#37134)两张卡落地。
- 如果出错,用户进 Studio 会落到软件包列表或「全部元数据」页,而不是首页;这次只改界面,不改数据,可以直接撤回。
  - 服务器没有报告用户权限时,这些「新建」入口按有权限处理,把人带到设置里的新建软件包;真正能否创建仍由服务器判断,席位建议保持这样。
- 本 PR 超过 3000 行(主要是删除旧首页和它的测试),请您按大 PR 流程审核后再合并。

## What changes

Epic objectstack-ai#36890 decision 9: the package-card page at bare `/studio`
(`BuilderLanding`) is removed. This PR finds a new home for every entry
it carried and deletes the page, the code only it used, and its tests.

Every Studio exit that names no package now makes one choice,
`studioEntryFallbackPath`: Setup → Packages
(`/apps/setup/component/developer/packages?face=admin`) for a principal
holding `setup.access` and `manage_platform_settings`, and
`/studio/~all/metadata` (the All metadata area) for one who may enter
Studio but not that page. The capability set is the one Studio's entry
gate read: app-shell now exports `StudioEntryPermissionsProvider` and
`useStudioEntryPermissions`, and the console's `RequireStudioAccess`
provides the set around the `/studio` subtree. Outside that provider the
set reads as holding nothing, so nobody is sent to a page they may not
open.

| Entry the home carried | Where it goes now |
|:---|:---|
| bare `/studio` | `StudioEntryRedirect` (in the lazy Studio chunk). It
opens the newest remembered package (the recent `package` entries
`StudioRoute` records) that `GET /api/v1/packages` still lists, else
`studioEntryFallbackPath`. If the list cannot be read, it opens the
newest remembered package, and Studio reports the failed read itself. |
| New package (`/studio?new=package`) | `SETUP_NEW_PACKAGE_PATH`: the
admin face with `?new=package`. It opens New Package on arrival and
drops the param with a replace. After create it lands in Studio on the
new package (objectstack-ai#36834). Callers: Home's no-agent chip, the `/ai`
no-assistant screen, the 「Add app」 menu and the no-apps screen, all
labelled 「New blank app」 / 「新建空白应用」 now (below); for an author who may
not open Setup → Packages each of them, like the bookmark, opens the All
metadata area instead (`useNewPackageDoorPath`, `newPackageDoorPath`).
An old `/studio?new=package` bookmark goes there for a holder of the
pair, and to the All metadata area for anyone else
(`studioNewPackageEntryPath`). One-step 新建应用 is objectstack-ai#37134. |
| `~all` / `~org` cards | Already in the left menu (objectstack-ai#36899). Nothing
more to do here. |
| Per-app "n customized, m switched off" and the "Customizations in this
environment" panel | `PackageCustomizationsPanel`, shown in a read-only
base's detail sheet on the admin face. It is not shown for an authored
package, a `.custom` pair or a kernel package. It has a summary line,
rows with tabs (adds Layouts), search, Show all, and 「Customize in
Studio」. **"Customized" now counts `counts.arrangements`.** This
delivers objectstack-ai#36833's requirement in the panel's new home; objectstack-ai#36833 was closed
as not planned (ruling 7125820739), so this PR does not close it. |
| Card Manage and the All packages link (development face) | Not this
card: the door is added by objectstack-ai#37139 (card note 7146329913). The
development face stays reachable by its address. |
| Recently viewed | Now Studio's entry itself: `/studio` opens the
newest remembered package. |
| 「包不存在」 → Studio home | The button follows `studioEntryFallbackPath`:
「Open the package list」 → Setup → Packages for a holder
(`engine.studio.notFound.packageList`), 「Open All metadata」 → the All
metadata area otherwise (new key `engine.studio.notFound.allMetadata`).
|
| `AppContent` fallbacks, `packagedActionsStudioPath` fallback with no
package named | `SETUP_PACKAGES_PATH`. |
| `studio:builder` (the `@objectstack/studio` app's 「应用构建」) | Forwards
to `/studio`. |
| 「Add app」 (sidebar app menu, and the no-apps screen's buttons) |
Maintainer rulings 7153161067 and 7153400210 on objectstack-ai#36908: 「Build with AI」
(to bare `/studio`) is removed, and `new-in-studio` is pushed for every
admitted viewer on a deployment that offers metadata authoring, whether
or not the build agent is served. It is relabelled under its existing
key `home.build.inStudio`: en "New blank app", zh-Hans 「新建空白应用」, zh-Hant
regenerated (「新建空白應用」), and the eight other packs translated anew, as
`check:i18n-drift` requires of an en change. Home's no-agent chip and
the `/ai` button read the same key; their inline `defaultValue` now
matches the en value (`check:i18n-keys`); the chip's condition and
target are unchanged. It stays inside `isAiStudioEnabled()`, because
with `features.aiStudio` false the runtime offers no metadata authoring;
a viewer `useMayAddApp` admits there gets the marketplace's two entries,
so the list is never empty for an admitted viewer. `SidebarAppMenu`
reads the list itself and draws neither 「Add app」 nor its separator for
an empty list. Home's 「Build an app」 chip and Home's 「Build with AI」
drawer button are untouched. |

Removed: `BuilderLanding.tsx`, its `BuilderLanding.*` test files,
`fetchInstalledPackageRow` (only the home's Manage called it) with its
pin, and the home's console frame in `StudioRoute` (header and command
palette). Two deleted suites still pinned code that stays, and those
halves moved (see Tests): the permission matrix's read-only hint copy,
and the three new-app door cases. `LandingCustomizationsPanel` and
`landingCustomizations-io` were renamed and rewritten as
`PackageCustomizationsPanel` and `packageCustomizationRows`.
`newAppDoor.ts`, `PackageFormDialog`'s `newApp` branch and the
`engine.studio.newApp.*` strings stay for objectstack-ai#37134; the branch keeps its
three cases, now mounted on `PackageFormDialog` itself.

**Strings.** The home's `engine.studio.landing.*` keys and
`engine.studio.landingHome` that ship in the released
`@object-ui/i18n@18.6.0` (71 in each of `en` and `zh`, measured against
the published tarball; 3 of them are still read by the Packages page)
stay, the other 68 no longer read. Removing a published key is a
narrowing, so this PR removes none. The four landing keys added after
18.6.0 and never released (`manage`, `manageTitle`, `allPackages`,
`allPackagesTitle`) are removed. `engine.packages.customizations.*`,
`engine.studio.notFound.packageList` and
`engine.studio.notFound.allMetadata` are added (38 keys per language).
The PR changes no existing value.

**Changesets.** `36908-remove-studio-home.md` (app-shell, console,
platform-objects) says what users see, in their words. The i18n note is
in its own `@object-ui/i18n`-only changeset,
`36908-studio-home-strings.md`. Both carry the two declaration lines.

Checklist: `studio-authoring.package-customization-counts-and-marks`
(rev 4) and `studio-authoring.org-scope-flows` (rev 5) are re-pointed.
The rev 4 note now says objectstack-ai#36833 was closed as not planned and this card
delivers its requirement; its `acceptance[2].verify` names
`PackageCustomizationsPanel.test.tsx` as the pin. Also re-pointed off
the removed home: `automation.setup-packaged-automation-board` (rev 15:
title, `steps[1]`, `acceptance[0]`; the packaged-actions bookmark with
no `?package=` opens Setup → Packages),
`studio-authoring.first-run-loop` (rev 16, `steps[1]`: 「Build an app」
opens the last package or Setup → Packages, the other chip reads 「New
blank app」), and the fixture lines of
`automation.packaged-flow-clone-contract` (rev 14),
`studio-authoring.held-edit-leave-guard` (rev 12) and
`ux-conventions.write-feedback` (rev 18), which made their scratch
package on the Studio landing.

Size at `54e4586e`: +2,306 / −5,217 across 101 files rename-aware
(+2,680 / −5,591 across 103 without renames), mostly deletions. Per
ruling 7145880574 on objectstack-ai#36890 this lands as one PR, reviewed by the
maintainer after L1.

**Overlaps** (overlap-check at `54e4586e`, against `origin/main`
`4fb03ebb`, exit 1 for objectstack-ai#37249 below): origin/main merges cleanly. This
round merged main six times: `cf77ecb9` (K 12) was clean, and `54e4586e`
(K 9, with objectstack-ai#37169) is resolved below. Resolved:
- objectstack-ai#37089 (landed as `886e9707`): conflicted in
`StudioDesignSurface.notFound-26708`; both sides added the same
`@object-ui/plugin-detail` import, main's comment kept. The same merge
brought objectstack-ai#37198's address-guard fixtures spelling the removed
`STUDIO_LANDING_PATH`; they are dropped here.
- objectstack-ai#37185 (landed as `ad604c10`): `PackageSwitcher.tsx` keeps this
branch's side (`fetchInstalledPackageRow` and `STUDIO_LANDING_PATH`,
which objectstack-ai#37185 moved onto the authenticated fetch, are deleted here); its
edits to the six test files this branch deletes were stub adaptations (a
`headers` field, a module-top import, the gate's fetch double) with no
subject left to pin. The new customizations read goes through
`packageCustomizations-io.ts`, already on the authenticated fetch;
`PackageCustomizationsPanel.test.tsx`'s stub now carries `headers: new
Headers()`.
- objectstack-ai#37204 (landed as `bd98dd12`): `StudioRoute.test.tsx` and
`StudioRoute.lazyBuilder-11798` keep this branch's removal of the
home-frame cases; `StudioRoute.metadataArea-28561` keeps this branch's
comment line and objectstack-ai#37204's `app-bar-product-home` test-id absence,
without the old-name check.

- objectstack-ai#37241 (landed as `fc216747`): `SidebarAppMenu.tsx` takes its
`AppMenuList` and keeps this branch's `offerAddApp` separator; its new
`SidebarDocsPortalMenu` gets the same rule (the 「Add app」 list read
there, nothing drawn for an empty list, `AddAppSubmenu entries={…}`),
pinned in its `SidebarAppMenu-36112` block (「New blank app」 and no
「Build with AI」 with the build agent served; a Studio-only author to
`~all`; the empty-list guard).
- objectstack-ai#37168 (landed as `1b91538b`): `PackageFormDialog.newAppStep-36748`
keeps this branch's host and adds objectstack-ai#37168's
`/studio/:packageId/metadata/*` route; `notFound-26708` keeps this
branch's provider and Setup / All metadata routes and adds objectstack-ai#37168's
metadata-area route (the removed home's `/studio` route stays out). Its
edits to the two `BuilderLanding.*` files this branch deletes were the
switched-off action's new address; that pin now lives at
`PackageCustomizationsPanel.test.tsx:188`, updated here to
`/studio/APP/metadata/object/opportunity?action=clone_opportunity`.

- objectstack-ai#37169 (landed as `4fb03ebb`; this PR is the second lander):
`BuilderLanding.orgScope-11553` stays deleted. objectstack-ai#37169 only moved the
removed home's ~org card to `/studio/~org/metadata/flow?source=runtime`,
and the org-scope entry is pinned by
`StudioDesignSurface.packageLessFlows-11553`, which objectstack-ai#37169 updated.
`notFound-26708` keeps this branch's `StudioEntryPermissionsProvider`
and Setup / All metadata routes, with objectstack-ai#37169's comment naming
`/automations` too. Nothing else conflicted. `AREA_DESIGNER_PAGE_TYPES`
and the removed `AreaHistoryRedirect` exemption came in untouched. The
18.6.0 studio key comparison was re-run against `4fb03ebb`: the branch
removes only the four never-released keys, adds 38 per language and
changes 0 values; all 71 released landing keys are present.

Still open; whichever lands second merges main and resolves:
- objectstack-ai#37249 (objectstack-ai#37227) conflicts in `HomePage.desktopNoApps-36732` and
`HomePage.noAgentsBuildChip-26614` (this branch's Studio-only chip
case). Beyond the text: its first case expects the no-apps doors
`[template, marketplace]` with the build agent served, and 「New blank
app」 now shows there too (ruling 7153400210), so the second lander keeps
`new-in-studio` first. Its HomePage filter of `build-with-ai` becomes a
no-op. It touches neither `home.build.inStudio`'s values nor the chip's
lines (measured by `git merge-tree` against its branch).
- objectstack-ai#37226, objectstack-ai#37215, objectstack-ai#37210, objectstack-ai#37165, objectstack-ai#37282 and objectstack-ai#37284 merge cleanly.

### Read first

1.
`ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx`:
the whole `/studio` decision, and the two capability helpers. Risk:
where a non-administrator lands (the `studioEntryFallbackPath` pair),
now for the bookmark too.
2.
`ui/packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.tsx`
and the mount in `PackagesPage.tsx` (`PackageDetailSheet`). Risk: the
gate `!authoring && !writable && !isKernel &&
!isCustomizationPackage(id)`.
3. `ui/apps/console/src/components/StudioRoute.tsx` with
`studioEntryPermissions.ts`: the index route and the capability set the
entry gate provides to Studio (`StudioEntryPermissionsProvider`), which
the not-found exit reads.

### Two-minute verification

As the seeded admin with nothing remembered, open `/_console/studio`.
Expected: you land on Setup → Packages
(`…/developer/packages?face=admin`). Open the ObjectStack Showcase row:
its detail shows "Customizations in this environment" with a Customize
in Studio link.

## Tests

New pins:
- `StudioEntryRedirect.test.tsx` (12 cases): the newest remembered
package the list still names opens; a package the list no longer names
is skipped; nothing remembered leads to Setup → Packages, read without a
list request; a Studio-only principal lands on `~all`; a failed list
read opens the newest remembered package; the old new-package bookmark
is forwarded for an administrator (CONTROL) and sends a Studio-only
principal to `~all`, never to Setup; both helpers read the same
capability pair.
- `StudioDesignSurface.notFound-26708`: the not-found button opens Setup
→ Packages for an administrator (CONTROL), and for a Studio-only
principal it reads 「Open All metadata」 and opens `~all`, never Setup.
The harness provides the entry gate's set through
`StudioEntryPermissionsProvider`.
- `PermissionMatrixEditor.readOnlyHintCopy-12171.test.ts`: the half of
the deleted `BuilderLanding.environmentOverlayCopy-12171` that covered
`perm.readOnly.artifact.hint`, which `PermissionMatrixEditor` still
draws. No table names the organization axis; lit control that it names
the environment overlay in every table; lit control that `t()` serves
the value the extractor read, for every declared locale.
- `PackageFormDialog.newAppStep-36748.test.tsx`: the three
`BuilderLanding.newAppDoor-36748` cases, moved onto `PackageFormDialog`
with `newApp={newAppStep(client, locale)}`, mounted as the home mounted
it (create mode, Studio on the new package after save): the dialog
worded for an app in zh; package POST, app draft, app publish, then the
Studio header names the app and 「‹ Back to app」 opens it; a taken app
name refuses the confirm and writes nothing.
- `PackageCustomizationsPanel.test.tsx`: the rows and counts, including
the **objectstack-ai#36833 arrangement-only case**; the empty and failed states (never
"0"); row and switched-off-action links; tabs, search and Show all; zh
words; and the moved rows and labels io.
- In the `PackagesPage` administration-face harness, two describes: "the
new-package deep link" (3 cases) and "a read-only base's customizations
in its detail" (6 cases: a code package draws the section with
arrangements counted; an authored package does not; the development face
does not; a read-only `.custom` pair draws none and sends no
customizations request; a kernel package's detail, opened directly
because the admin face lists none, draws none and sends no request;
CONTROL, the same direct render of a code package draws it and reads
once).
- Unreported capability set on the doors:
`HomePage.noAgentsBuildChip-26614` renders Home inside the real
`MePermissionsProvider` with an authenticated answer that carries no
`systemPermissions`; the chip opens Setup's New Package (the fail-open).
CONTROL, the same provider with a reported set holding `manage_metadata`
alone: the chip opens `/studio/~all/metadata`.
- Studio-only author on the doors outside Studio: `SidebarAppMenu-36112`
(「New blank app」 links to `/studio/~all/metadata`) and
`HomePage.noAgentsBuildChip-26614` (the chip navigates there, never to
Setup); `StudioEntryRedirect.test` holds `newPackageDoorPath` to the
same two answers.
- `SidebarAppMenu-36112` (the shared harness, new top-level describe):
with build and ask, the legacy build id, ask only, other agents only, or
no agent served, 「Add app」 offers `new-in-studio` ("New blank app", to
New Package), the template and the marketplace, and never 「Build with
AI」; never empty for an admitted viewer with authoring but no
marketplace, or a marketplace but no authoring; CONTROL, with neither
the viewer is not admitted; guard, an admitted viewer handed no entries
gets no 「Add app」 and no separator. `HomePage.desktopNoApps-36732`: the
no-apps doors are `[new-in-studio, template, marketplace]` with the
build agent served.
- Converted, not deleted: the StudioRoute gate, lazy-module,
recent-visit and access-notice pins; `studio:builder` registration (now
a forward); `setupMetadataRedirect`; `studioAddress` and its guard (the
guard no longer names the deleted `STUDIO_LANDING_PATH`); the Home,
sidebar 「Add app」 and `/ai` deep-link hrefs; the vocabulary census;
`consoleTopBar.height-12639`; `AppContent.setupMetadataStudio-28578`.

<details><summary>Local runs at this round's heads</summary>

**Rework 2, objectstack-ai#37169's merge, head `54e4586e`** (after merging
`origin/main` `4fb03ebb`, K 9, and `pnpm --filter
'@object-ui/console^...' build`, lock VERDICT command-exit 0):
- vitest over app-shell `views/studio-design`, `console/home`,
`console/ai`, `console/__tests__`, `layout/`, `hooks/`, `PackagesPage*`
and `PackageFormDialog*`, plus console `components/`: Test Files 826
passed (826); Tests 6948 passed; lock VERDICT command-exit 0.
- type-check `@object-ui/app-shell` (src + `tsconfig.test.json`) and
`@object-ui/console`: exit 0. eslint on the two touched test files: exit
0.
- Exit 0: check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, `check-platform-checklist
--changed-from origin/main` (11 anchors, 0 lost), and under `ui/`
check:i18n-keys, check:i18n-drift, check:unreferenced-sources and the
three vi-mock gates.
- The full `check:platform-checklist` exits 1 on one finding, and
`origin/main` `4fb03ebb` fails the same way: `automation.json` anchors
`FlowItemMoreMenu.tsx#FlowItemMoreMenu`, which objectstack-ai#37169 removed. That is
main's to fix, not this PR's.

**Rework 2 (delta L1 S1, N4, N5), head `cf77ecb9`** (after merging
`origin/main` `4ed453dc`, K 12, clean, and `pnpm --filter
'@object-ui/app-shell^...' build`, lock VERDICT command-exit 0):
- vitest over `console/home`, `console/ai`, `RequireAiSurface`,
`AppContent.setupMetadataStudio-28578`, `setupMetadataRedirect.test`,
`PackageCustomizationsPanel.test`, `StudioEntryRedirect.test`,
`SidebarAppMenu-36112` and `hooks/`: Test Files 210 passed (210); Tests
1827 passed; lock VERDICT command-exit 0.
- Mutation through `scripts/ablation-replace.mjs`:
`useNewPackageDoorPath` made to fail closed
(`Array.isArray(systemPermissions) && hasCapabilities(…)`) →
`HomePage.noAgentsBuildChip-26614` 4 failed / 12: the new unreported
case, plus the three no-agent cases whose stub leaves
`systemPermissions` undefined; the reported-set control stayed green.
Restored to the HEAD blob, `git diff HEAD` empty.
- type-check `@object-ui/app-shell` (src + `tsconfig.test.json`): lock
VERDICT command-exit 0. eslint `--no-inline-config` on the 4 touched ui
files: exit 0.
- Exit 0: check:platform-checklist, `check-platform-checklist
--changed-from origin/main` (4 anchored files, 11 anchors, 0 lost),
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:issue-citations, and under `ui/`
check:i18n-keys, check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape. `git grep -n "Studio landing"
docs/qa/platform-checklist/areas`: history entries only, plus
`studio-authoring.json:35` and `:2290`, already stale on main (the
studio-home button).
- overlap-check: exit 1, only for objectstack-ai#37249 and objectstack-ai#37169 (objectstack-ai#37169 has since
landed; see Overlaps).

**Third part (seat answers to N1 and N3, then objectstack-ai#37241's and objectstack-ai#37168's
merges), final head `1c7f29cc`:**
- After merging main with objectstack-ai#37241 and objectstack-ai#37168 (`2ae0823f`) and rebuilding
(VERDICT command-exit 0): `views/studio-design`, `layout/`,
`console/docs`, `console/home`, `console/ai`, `console/__tests__`,
`hooks/`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, console `components/` and `pages/`,
`packages/i18n/src/__tests__`: Test Files 1162 passed (1162); Tests
10870 passed, 13 skipped; VERDICT command-exit 0. type-check
`@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/console`: VERDICT
command-exit 0. Exit 0 at this head: check:test-source-alias,
check:nul-bytes, check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
check:issue-citations, check-changeset-no-major, check-empty-changeset,
check-adr-0087-registration, `check-platform-checklist --changed-from
origin/main`, and under `ui/` check:i18n-keys, check:i18n-drift,
check:unreferenced-sources, check:phantom-deps,
check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape.
- After a fresh closure build (VERDICT command-exit 0): `layout/`,
`console/home`, `console/ai`, `RequireAiSurface`, `hooks/`,
`StudioEntryRedirect*`, `notFound-26708`, console `StudioRoute*`: Test
Files 376 passed (376); Tests 3153 passed; VERDICT command-exit 0.
- Mutation through `scripts/ablation-replace.mjs`:
`useNewPackageDoorPath` forced to the Setup path (`true ||
hasCapabilities(…)`) → 2 failed / 43, exactly the two Studio-only door
cases; restored to the HEAD blob, `git diff HEAD` empty.
- type-check `@object-ui/app-shell` and `@object-ui/console`: VERDICT
command-exit 0. eslint on the 7 touched files: 0 errors. Exit 0:
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, and under `ui/` check:i18n-keys,
check:i18n-drift, check:unreferenced-sources, check:phantom-deps,
check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape.

**Second part of the round (the 「Add app」 rulings, then three main
merges), head `64e7071b`:**
- At `048a5a84` (rulings + first merge): `layout/`, `console/home`,
`console/ai`, `RequireAiSurface`, `hooks/`, `packages/i18n/src`,
`PackageCustomizationsPanel`, console `StudioRoute*`: Test Files 486
passed (486); Tests 5161 passed, 13 skipped; lock VERDICT command-exit
0.
- At `fe78cd2b` (after objectstack-ai#37185's merge), the overlap:
`views/studio-design`, `layout/`, `console/home`, `console/ai`,
`console/__tests__`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, `sameServerFetch*` (objectstack-ai#37185's ratchet),
`apps/console/src/components`, `packages/i18n/src`: Test Files 1 failed,
888 passed (889); Tests 2 failed, 8291 passed. The failures were two
cases of `layout/__tests__/designModeMenuSave-36363`, a file this branch
does not touch; run alone it read 47 passed (47), and it passed again in
the run below, so it was load in the big run.
- At `45e4a5eb` (after objectstack-ai#37204's merge and a rebuild):
`apps/console/src/components`, `layout/`, `console/home`, `console/ai`,
`RequireAiSurface`, `packages/i18n/src/__tests__`: Test Files 436 passed
(436); Tests 4837 passed, 13 skipped; lock VERDICT command-exit 0. (A
first attempt at this run hit a 590 s cap before its verdict and is not
counted.)
- Mutation checks through `scripts/ablation-replace.mjs` (blob moved,
restored to the HEAD blob, `git diff HEAD` empty): the hook's entry key
back to `build-with-ai` → `SidebarAppMenu-36112` 7 failed / 32; the
empty-list guard removed (`offerAddApp = mayAddApp`) → 1 failed / 32,
the guard case.
- CI on `45e4a5eb` failed `Type Check UI` at `check:i18n-keys`: Home's
chip kept `defaultValue: 'New in Studio'` against the new en value.
Fixed at `64e7071b` with the chip's default and the eight packs
(`check:i18n-drift`); locally at `64e7071b`, exit 0: `check:i18n-keys`,
`check:i18n-drift`, and the job's other static steps
(`check:phantom-deps`, `check:self-import`,
`check:unreferenced-sources`, `check:doc-example-readers`,
`check:side-effects-array`, `check:spec-symbols`,
`check:icon-record-names`, `check:designer-field-key-parity`,
`check:action-forward-parity`, `check:esm-specifiers`,
`check:handler-key-reads`, `check:metadata-write-doors`,
`check:control-bytes`, `check:shell-escape-residue`,
`check:vi-mock-specifiers`, `check:vi-mock-inherit`,
`check:vi-mock-override-shape`, `check:test-path-roots`,
`check:prompt-keys`), plus `check:keyed-text-bounds` and
`check:i18n-stale-fill`. Vitest over `packages/i18n/src`,
`console/home`, `console/ai`, `RequireAiSurface`,
`SidebarAppMenu-36112`: Test Files 213 passed (213), Tests 2745 passed,
13 skipped, lock VERDICT command-exit 0.
- type-check at `45e4a5eb` after `pnpm --filter '@object-ui/console^...'
build` (VERDICT command-exit 0): `@object-ui/i18n`,
`@object-ui/app-shell` (src + `tsconfig.test.json`),
`@object-ui/console` passed, VERDICT command-exit 0. eslint
`--no-inline-config` on this part's 6 ui files: 0 errors.
- Gates at `45e4a5eb`, all 0: check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
check:issue-citations, check-changeset-no-major, check-empty-changeset,
check-adr-0087-registration, `check-platform-checklist --changed-from
origin/main` (11 anchors, 0 lost). `pnpm --filter @object-ui/i18n
gen:zh-hant` after the merges: every target already current.
- 18.6.0 studio-namespace comparison at `fe78cd2b`, unchanged: 71/71
published landing keys present in `en` and `zh`; 35 missing, all already
missing on main; 0 values changed vs main, 4 never-released keys
removed, 38 added.

**First part of the round (L1 and contract-review fixes):**

- Targeted vitest at `4121473e` (after the first main merge, K 26), one
locked run over `apps/console/src`, `packages/i18n/src`,
`views/studio-design`, `metadata-admin/PackagesPage*`,
`PackageFormDialog*`, `PermissionMatrixEditor*`,
`console/__tests__/AppContent*`, `console/home/__tests__/HomePage*` and
`layout/`: Test Files 1 failed, 1050 passed (1051); Tests 1 failed,
10456 passed, 13 skipped. The failure was the moved new-app pin's own
harness (it navigated to the bare package path, which only the console
route table expands); fixed at `4121473e` by landing on the package's
Studio home as the removed home did, then 3 passed (3).
- After the second main merge (`df4a65cb`) and the guard fix
(`329ddefc`), the overlap re-run under the lock: `views/studio-design`,
`apps/console/src/components`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, `packages/i18n/src`, `consoleTopBar*`,
`AppContent*`: Test Files 594 passed (594); Tests 6016 passed, 13
skipped; lock VERDICT command-exit 0.
- Mutation checks, each through `scripts/ablation-replace.mjs` (anchor 1
→ 0, blob verified moved, restored to the HEAD blob with `git diff HEAD`
empty), at `4121473e`:
- 「组织」 written into the zh `perm.readOnly.artifact.hint`:
`PermissionMatrixEditor.readOnlyHintCopy-12171` 1 failed / 3 ("no table
names the organization axis").
- `!isKernel` removed from the detail gate (`PackagesPage.tsx:1271`): 1
failed / 6, the kernel case only.
- `!isCustomizationPackage(id)` removed: 1 failed / 6, the `.custom`
pair case only.
- The bookmark forward reverted to `SETUP_NEW_PACKAGE_PATH`:
`StudioEntryRedirect.test` 1 failed / 11, the Studio-only bookmark case.
- The not-found exit reverted to `SETUP_PACKAGES_PATH`: `notFound-26708`
1 failed / 14, the Studio-only case.
No dist leg was needed: these tests import app-shell by relative path,
and the ui vitest config aliases `@object-ui/i18n` to its `src`.
- type-check at `329ddefc` after `pnpm --filter '@object-ui/console^...'
build` (lock VERDICT command-exit 0): `@object-ui/i18n`,
`@object-ui/app-shell` (src and `tsconfig.test.json`, which lists all
six new or changed test files) and `@object-ui/console` passed, lock
VERDICT command-exit 0.
- eslint `--no-inline-config` on this round's 11 changed ui files: 0
errors, 15 warnings.
- Gates at `329ddefc`, exit captured before any pipe, all 0:
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
`check-platform-checklist --changed-from origin/main` (11 anchors, 0
lost). At `4121473e`, also 0: check:issue-citations,
check:doc-authoring, check:gitlink-declared, check-changeset-no-major,
check-empty-changeset, check-adr-0087-registration (2 non-breaking
changesets), check-closing-keyword-parity,
check:changeset-gate-self-tests, and the edited
`ui/scripts/check-eager-closure-budget.mjs`'s tests (6 files, 305
passed). `check:i18n`: PREREQUISITE NOT MET locally (the CLI build
closure is not built); it reads the platform translation bundles, which
this round does not touch; its evidence is CI. `dispatch-gates --ran`:
57 of 74 derived families not run locally, declared; their evidence is
this head's check-runs.
- **i18n against the published `@object-ui/i18n@18.6.0`** (`npm pack`,
read by AST, nothing evaluated), on the merged tree: all 71 published
`engine.studio.landing*` keys are present in `en` and `zh`; 35 published
keys are missing at this head and all 35 are already missing on
`origin/main`; against `origin/main` this PR changes 0 values, removes
exactly the four never-released keys, and adds 38 per language
(`engine.packages.customizations.*`,
`engine.studio.notFound.packageList`,
`engine.studio.notFound.allMetadata`).
</details>

## Acceptance notes

- The environment-wide list the home drew across all installed apps (one
list, a total, grouped by app) is now shown per app only, in each
read-only base's detail in Setup → Packages.
- "Customized" now has two meanings. The Setup detail counts tab,
field-group and action-layout arrangements with overrides and
extensions; the All metadata header still draws `customizationTotal`
(overrides + extensions, `customizationMarks.ts:96-97`, drawn at
`DirectoryPage.tsx:246-249`), and the same total gates the list filters
in `ResourceListPage` and `useListOrderedNames`. Not aligned here:
adding arrangements to that total would stop the header equalling the
sum of its per-type tiles and change which lists offer the customized
filter. Not aligned here (seat answer A): follow-up card filed: objectstack-ai#37236.
objectstack-ai#37236 has since been ruled B (7158100447): 「已定制」 stays overrides +
extensions, and the Setup detail's count changes there to match. Until
it lands, the Setup detail counts arrangements as described here.
- The new-package doors outside Studio (Home's no-agent chip, the `/ai`
screen's door, 「Add app」's 「New blank app」 and with it the no-apps
screen) make the same choice as Studio's entry, through
`useNewPackageDoorPath` (seat answer to N1): Setup's New Package for a
holder of `setup.access` + `manage_platform_settings`, the All metadata
area for an author who may enter Studio but not open that page. They sit
outside the entry gate's provider, where `useStudioEntryPermissions`
holds nothing, so they read the session's own
`usePermissions().hasCapabilities`, which fails open on an unreported
set as the doors' own authoring gate does (the Setup app still refuses a
non-holder). That is the doors' doctrine, judged A in contract review
7162083002 ④: the door is only a link, and the server still refuses a
package create without `manage_metadata` (`package-routes.ts:102-106`).
Pinned by the unreported-set case in `HomePage.noAgentsBuildChip-26614`
(the real `MePermissionsProvider`, no `systemPermissions`, the chip
opens Setup's New Package; control: a reported set without the pair
opens `/studio/~all/metadata`).
- A Studio-only author (`studio.access` + `manage_metadata`, without the
Setup pair) has no screen that creates a package at this head: 「New
blank app」 opens All metadata, which has no New Package, where on main
the same door opened the dialog inside Studio. The server still admits
the create. This follows ruling N1 (a), and waits for objectstack-ai#37134 / objectstack-ai#37139.
- Two console test files pinned only the home's frame and are deleted:
`StudioRoute.landingI18n.test.tsx` (its header crumb) and
`StudioRoute.searchPalette-11863.test.tsx` (⌘K on the home; ⌘K inside
Studio is objectstack-ai#36900). The other StudioRoute pins now stub the entry.
- Duplicate pins named for deleted tests (AGENTS.md, ruling 6120820653):
the new-package deep link is pinned in the `PackagesPage` admin harness;
the customization counts, rows and labels in
`PackageCustomizationsPanel.test.tsx`; the org-scope entry by
`StudioDesignSurface.packageLessFlows-11553` and the menu pins from
objectstack-ai#36899; the permission hint copy and the new-app step moved, above. The
home's own layout, ordering, Duplicate form, recent cards and Manage
pins have no remaining surface to pin.
- Possibly orphaned now that the frame is gone, not removed here:
`AppHeader` `variant="studio"` and `CommandPalette` `scope="studio"`
(objectstack-ai#36900 may reuse the scope).
- 「Build with AI」 is gone from the 「Add app」 menu and the no-apps screen
(ruling 7153161067). Home's 「Build an app」 chip still targets bare
`/studio`, and Home's own 「Build with AI」 drawer button is untouched;
objectstack-ai#37227 / objectstack-ai#37249 removes both from Home.
- The kept-unread released studio keys stay as they are this round (the
seat made dropping them optional under the 19.0.0 ruling);
`home.buildWithAI` is still read by Home and is untouched.
- Recents are read local-first, and the server copy arrives after first
render (`RecentItemsProvider`). On a device with no local copy,
`/studio` falls back before that copy arrives; "opens the package you
were last in" holds on a device that already has it.
- The 68 published landing keys are kept and unread.
`check-i18n-dead-keys` (report-only, not in CI) will list them as
candidates, and a later change can decide to retire them.
- `docs/qa/platform-checklist/FOLLOW-UPS.md` still names
`BuilderLanding` in a dated follow-up entry; it is a log and was left as
written.

## Verification

Walked on a live stack at `a21c7b6f` (the previous head). Server: `pnpm
-C examples/app-showcase exec objectstack dev --seed-admin -p 4710` (CLI
and showcase closure built in a worktree). Console: this branch's
`ui/apps/console` under Vite on 4711, proxied to it. Signed in as the
seeded admin and driven with Playwright; key screens confirmed by
screenshot.

| Entry | Observed |
|:---|:---|
| `/studio`, nothing remembered | →
`/apps/com.objectstack.setup/component/developer/packages?face=admin` |
| `/studio?new=package` (old bookmark) | → same page, `new=package`
dropped, New Package dialog open |
| `/apps/setup/component/automation/packaged-actions` (no package) | →
Setup → Packages (admin face) |
| `/studio/no_such_pkg_36908` | 「Package not found…」 with 「Open the
package list」 → Setup → Packages |
| ObjectStack Showcase (code) row → detail | "Customizations in this
environment", "No changes in this environment yet", Customize in Studio
→ `/studio/com.example.showcase/data` |
| `/studio` after visiting that package | → back into
`/studio/com.example.showcase/data…` (remembered) |
| Sidebar app menu → 「Add app」 | New in Studio (the label at `a21c7b6f`;
「New blank app」 now) → `…packages?face=admin&new=package`; clicked, it
lands there with the dialog open |
| `/ai` (no assistant on this stack) | 「New in Studio」 (the label at
`a21c7b6f`; 「New blank app」 now) → `…packages?face=admin&new=package` |
| New Package dialog → Create package | →
`/studio/com.default.walk-pkg-36908/data` |
| That authored package's detail | no customizations section (count 0);
Open in Studio present |
| `/studio/~all/metadata` | renders the All Metadata Types area |

Not walked live, each pinned by unit tests:
- Home's 「New blank app」 chip (「New in Studio」 at `a21c7b6f`): its
condition does not hold on this seeded stack
(`HomePage.noAgentsBuildChip-26614`, `HomePage.desktopNoApps-36732`).
- A non-administrator's landings (bare `/studio`, the old bookmark and
the not-found button for a Studio-only principal): no such principal is
seeded (`StudioEntryRedirect.test.tsx`,
`StudioDesignSurface.notFound-26708`); their target `~all` renders
above.
- `studio:builder`: the `@objectstack/studio` app does not load on a
stock boot (`registerStudioComponents.builderLazy-11798`).

This round's changes were not walked live: the Studio-only exits, the
moved pins and the changesets change no administrator-visible entry
above; the 「Add app」 menu's new contents (no 「Build with AI」, 「New blank
app」 always) and the relabel are pinned in `SidebarAppMenu-36112` and
`HomePage.desktopNoApps-36732`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYkEULEjF814KSPBLVC)_
<!-- signed: repo:objectstack#4 · os-justin ·
session_01QSeKYkkwuF6UuFtu85Yd5H -->

---------

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

2 participants