Repository navigation
feat(studio): open Studio's dashboards and reports in the app's edit state; × returns to the list - #37226
Conversation
…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>
Claude-Session: https://claude.ai/code/session_01QSeKYmSqW1KzbiTWCnSN1K Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYmSqW1KzbiTWCnSN1K Co-authored-by: Claude <noreply@anthropic.com>
…shboard-report-app-edit
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
…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>
…ge test 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>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — REWORK · L1 · head
|
…shboard-report-app-edit
…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>
…shboard-report-app-edit
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-25T12:04Z · head
|
…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>
… 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>
…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>
Fixes #36906
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Epic #36890, decisions 3, 6, 13 and 15.
studioBackTarget), so the two cannot disagree. It lives in a new pure module,studioAppEdit.ts, and the area's step isStudioAreaAppOpen.tsx.?studio=with the Studio list it came from, filters and sort included. It is built and read only throughstudioAddress.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./apps/APP/reports/newin 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.resolveRuntimeCreatePackage): the package when it is writable, else its.custompair 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'sonSavedOutsideAppnotice). 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 warningresolveRuntimeCreatePackageprints 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.StudioAreaAppOpenreads 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.studioCreateLandsInApp, read byResourceEditPage), so Back from the app lands on the list. Every other type, and Setup, land as before.dirtyfor the Studio leg; the ask now runs before either leg.useDashboardEditOfferednow also requires a window at leastsm(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.studioReturnstrings, andreport.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
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.StudioAreaAppOpen-36906.test.tsx, through the realStudioMetadataArearoutes: 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 namespackageId: Pon 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;studioCreateLandsInApprule 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 (CreateStubreimplements the landing), so it pins the gate's forward and Back over a replaced entry, notResourceEditPage's call site; that is pinned in the new file below. A read-only base (readOnly,customizationhanded 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.ResourceEditPage.createLandingReplace-36906.test.tsx(this round), the REALMetadataResourceEditPageover a realMetadataClientand an in-memory server: under aMetadataAreaHostwith apackageId, a dashboard create's Save lands on the item with a REPLACE (useNavigationType); CONTROLs: aviewcreate 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, thereport.builder.savedOutsideAppkey) 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 romanizerhandleSaveawaits is paid once in abeforeAll(a cold dynamic import, paid at collection), and every save case waits on the address it asserts (waitFor) instead of twosetTimeout(0)ticks, so a late save can no longer land in the next case.useDashboardEditOffered, the phone pin fails 1/1. Restored, its blob equals HEAD's andgit diff HEADis empty.scripts/ablation-replace.mjs(anchor 1 to 0, restore proven blob == HEAD andgit diff HEADempty), are listed under Verification.Acceptance notes
ReportNewPage.tsx(fires only when Studio opened the page, the app has a package, and none could be had), and the new real-page pinResourceEditPage.createLandingReplace-36906.test.tsx.ReportNewPage.tsx(where a report made from Studio is written: the package, its pair, or none), the published-version read at the top ofStudioAreaAppOpen.tsx's effect, and thereplaceon the create landing inResourceEditPage.tsx(shared by every type; it readsstudioCreateLandsInApp, true only for a dashboard or report in a package's area).StudioAreaAppOpen.tsx(async app pick and replace; the fallback), theuseDashboardEditOfferedand arrival hunks inDashboardInPageEditor.tsxandDashboardView.tsx(the phone gate now also governs the design mode's landing), and the?studio=reader instudioAddress.ts(an address-bar value followed by a navigate).StudioMetadataArea.tsxis kept narrow: one import, the item open wrapped inStudioAreaAppGate, 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-checkmerges cleanly with all three at this head. Whichever lands later merges main.runtime-metadata-persistence.tschanges 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:createRuntimeMetadataandsaveAndPublishRuntimeMetadatathemselves, for views only) andsaveAndPublishInPackage(other callers:saveInPlace, the in-page dashboard and report Save, andsetup/publicForms.ts).saveAndPublishRuntimeMetadata's other callers (objectViewViewSharing.ts,objectViewViewCrud.tsx,setup/publicForms.ts) andcreateRuntimeMetadata's (objectViewViewCrud.tsx,ObjectDataPage.tsx) are untouched.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..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..custompair'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 withorigin/main057cedfamerged 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-crmbackend (pnpm dev:crm -- --fresh) with the Console served by Vite from this branch'sui/source, driven by Playwright as the seeded admin, at727300e5. 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 throughPOST /api/v1/packageswith one published app, walks the writable leg.Writable package (11 PASS, 0 FAIL):
PUT ?mode=draft), opened at its Studio row address, stays on Studio's generic item page./apps/PKG/dashboard/NAMEwith 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.GET /api/v1/meta/report/NAME?package=PKGanswers 200 withpackageId: PKG. × returns to the report list, and the new report is in it.Read-only CRM package:
com.example.crm.custom(a read at?package=com.example.crmanswers 409 naming that pair as the holder). × returns to the CRM report list, and the new report is in it.HotCRM: NOT MEASURED, carried to #36910.
Tests, rework 2 (head `298361bd` unless named)
ReportNewPage-36692,ReportView.designModeExclusion-36692,StudioAreaAppOpen-36906,studioAppEdit,studioAddress,DashboardView.inPageEdit-36372) plus the newResourceEditPage.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 at35c94a71(merged withorigin/mainede9b91f): each 6 passed (6), 92 passed (92).ad67a645, before the fix, ran 92 of 92 green once. So the clock is shown another way: withloadHanRomanizerslowed by 100 ms (a mutation throughscripts/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 newtoast.infomock), while this round's file passes 13 of 13.35c94a71, the wider set: everyResourceEditPage*,runtime-metadata-persistence*,Report*andDashboardView*test,urlParams.test.ts,views/studio-design/,views/studio-detail/andpackages/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, at35c94a71: lock VERDICT command-exit 0, 0error TS. (The final merge brings no app-shell or i18n file.)no-explicit-any,only-export-components).scripts/ablation-replace.mjsunder the lock (anchor 1 to 0, restore proven by blob == HEAD andgit diff HEADempty):8. The call site,
replace: studioCreateLandsInApp(areaHost?.packageId, type),toreplace: false,inResourceEditPage.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
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.727300e5, the wider set: everyDashboardView*andReport*test, everyResourceEditPage*test, everyruntime-metadata-persistence*test,views/studio-design/,views/studio-detail/,src/__tests__/,src/preview/,urlParams.test.tsandpackages/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, at08107d2f: exit 0, 0error TS.scripts/ablation-replace.mjsunder the lock (anchor 1 to 0; restore proven by blob == HEAD andgit diff HEADempty). ui tests resolvesrcdirectly, so nodistleg applies:dirty &&dropped (asks on a clean x): the two clean-x pins fail (2 of 13).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.StudioAreaAppOpen, the no-published-version fallback disabled: the two draft-only pins fail (2 of 16).studioCreateLandsInAppforced tofalse: 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 inStudioAreaAppOpen-36906, notResourceEditPage's call site (the seat's call-site ablation left that file green, 16 of 16). Ablation 8 above reaches the call site.Local gates, rework 2 (`dispatch-gates.mjs --commands`, 73 families)
298361bd: all 74 derived families exit 0, each recorded ascmd :: exit Nand reconciled with--ran: "74 derived famil(ies) accounted for — 74 run, 0 NOT-MEASURED". The uiscripts/family ran under the lock with--maxWorkers=1: Test Files 172 passed, 2 skipped. (The same 72 non-ui families also ran at35c94a71, all exit 0 aftercheck:skill-examplesfirst refused with exit 3 because@objectstack/client-reactwas not built in this worktree, then exit 0 once built.)298361bd:check:test-source-aliasexit 0, uicheck:i18n-keysexit 0 (every call-site key resolves against the en pack),check:nul-bytesexit 0,check-platform-checklist --changed-from origin/mainexit 0 (0 anchored files), andoverlap-checkVERDICT clean exit 0 (origin/main057cedfa, fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249, feat(ai): get_record_context joins the service-ai platform tool group, with its chat label (ADR-0160 row 9) #37210, feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169, feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166). The same alias and overlap checks also ran clean before the push.Local gates, previous round (`dispatch-gates.mjs --commands`, 73 families at that head)
08107d2f: all 73 derived families exit 0, each recorded ascmd :: exit Nand reconciled with--ran: "73 derived famil(ies) accounted for — 73 run, 0 NOT-MEASURED". Two needed a second run:check:skill-examplesfirst exited 3 (it refused, measuring nothing, becausepackages/client's source was newer than its build after a local history rebuild), then 0 after rebuildingclient; the uiscripts/family ran under the lock with--maxWorkers=1: 172 files passed, 2 skipped.check:test-source-aliasfirst exited 1 at727300e5: the new-report page now imports the draft bar's package rule, which reaches@objectstack/lint. The test file pays that load at collection (import '@objectstack/lint', the gate's prescription); exit 0 since, and at08107d2f.08107d2f:overlap-checkVERDICT clean (main, fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249, feat(ai): get_record_context joins the service-ai platform tool group, with its chat label (ADR-0160 row 9) #37210, feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169, feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168, feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166),@objectstack/spec check:generatedexit 0 after the merge, andcheck-platform-checklist --changed-from origin/mainexit 0 (no anchored file changed).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (eslint on the changed files locally; the repo-wide run is CI's.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code