Repository navigation
feat(app-shell): a create with no named package asks to pick or create one - #38204
Conversation
…from outside it The premise the App Studio create ask rests on: a position saved into a new writable package still grants its holder another package's set, a code package's set and a loose set. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…ge holds Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…e one (WIP) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…eate pins The create ask's own tests (the Setup list, the item editor, the console create's package pick), and the existing pins that held the retired package-less create moved to the ask, the refusal, or a named package. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…te, and the report's ask and refusal Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…notice Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…form, never in the address before the save On Studio's cross-package leg a `?package=` written before the save moved the page into the package's area and remounted the form. The answer is now held for the form: a retried Save reuses it, and the item opens under it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…rit the wizard module's mock, count the create-app chunk Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
…age-id address The shell serves Setup at its package id, not at the setup alias the page prefix-read on, so the sub-path came out empty there and Positions, New rendered a blank page. Read the route's own splat instead. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
The leg's New asks for the package with nothing pre-selected, so the pin that New alone picked the first package retargets to the ask. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…sk is a package-create door The Save as view chart case stubbed the authenticated fetch as a no-op, so the create's package read failed and the create asked instead of saving. The resource list's create-package door now lives in the create ask. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
The Create View refusal cases and the new-dataset seed cases created with no readable package, so the create asked instead of saving: the routed app's package answers the first, the address names one for the second. The create-app route's lazy boundary is the console wrapper now, so the two route tests pay its load at collection as they pay the designer's. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…eate tests Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…t Save The catalog's New asked and wrote the answer into the create's address, but Studio's area drops ?package= under the environment scope, so the editor's Save asked a second time. New now opens the create in the scope and the editor's Save asks. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 Contract reviewServed-tier: The face is the declaration alone: ① Derived judgments
② Semver levelAdditive on both published packages. Each takes ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 L1-b, the seat's L1 thread for zone o3-studio · 2026-11-28T13:03Z 席位核对 — L1 REWORK @
|
The leg fell through to the heuristic pick, so the ask opened with a package checked. Pin it with the heuristic fixture, and say where the datasource import door lands an object as the page's comment does. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 Contract reviewServed-tier: Delta record. It answers the ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 L1-b, the seat's L1 thread for zone o3-studio · 2026-11-28T14:14Z 席位核对 — L1 delta ACCEPT @
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T15:39Z · zone
|
…actions and OWD rows (objectstack-ai#38285) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao153cRYFjsg9HJ2VwLVqVbD)_ Fixes objectstack-ai#36660 repo:objectstack#3 · os-tesla · session_01L9qibxGxp6swERUK2T9NML Clause-②: no Metadata-protocol: none ## 维护者速读 - 在对象设计器的「钩子」页、只读基础对象「动作」页里的配套包动作、以及共享默认值总览的每一行上,如果 AI 助手留下了未发布的改动,现在会显示一行提示,说明保存会让 AI 的改动一起生效,并给一个「放弃 AI 的改动」按钮;以前保存会悄悄把它们一起发布。 - 属于「AI 改动要让人看见再生效」这条线:权限集和从左侧菜单打开的钩子、动作已经有这行提示,这次补齐剩下的三处。 - 只在草稿确实来自 AI 助手时才显示,人自己的草稿不受影响;放弃只丢这一项(共享默认值这一行是整个对象)的草稿,有没保存的编辑时会先确认。如果提示出现得不对,只是多一行文字和按钮,可以直接撤回。 - 无 ## What changes - **Object designer, Hooks tab** (`objectHooksBuffer.ts`, `ObjectHooksPanel.tsx`): - The buffer's load records which hooks have a pending draft whose provenance (`readDraftChanges`) names the AI assistant (`isAgentDraftSurface`: copilot or MCP). The set clears on an object switch and on a successful save. - The open hook shows `StudioAiDraftNotice` when its draft is the AI's and the hook is not a new one. The notice's discard calls the buffer's new `discardAiDraft`. - `discardAiDraft` asks `engine.studio.aiDraft.discardConfirmUnsaved` only when the hook holds unsaved edits. It then calls `client.reset('hook', name, { state: 'draft', packageId })`, the hook's own package, re-reads the list and emits the metadata refresh. A failure reads `engine.studio.aiDraft.discardFailed`. - **Paired package's actions on a read-only base object** (`pairObjectActions.ts`, `ObjectActionsPanel.tsx`): - A draft row whose provenance names the AI assistant carries `aiDraft`. A successful save, and a discard, put the row back to its live form. - The selected row shows the notice above the inspector. Discard is offered only where the row is editable. - `discardAiDraft(name)` asks only when that row holds an unsaved edit. It resets at the package the ensure door answers (`pairForWrite()`), never a hand-built `<base>.custom` name, then reloads. - **Organization-wide defaults overview** (`PackageOwdOverviewPanel.tsx`), seat ruling Q1 = A: - Each row reads its object's draft provenance. When the AI assistant wrote it, the row shows the notice with the OWD sentence, `engine.studio.owd.aiDraftNotice`: the whole object has the AI's unpublished changes, and saving this row makes all of them live. The plain "unpublished" chip is not shown beside it. - Discard drops that object's whole draft at the package (`client.reset('object', name, { state: 'draft', packageId })`). It asks `engine.studio.owd.aiDraftDiscardConfirmUnsaved` only when that row holds an unsaved edit. Other rows' unsaved edits are kept across the re-read. - `StudioAiDraftNotice.tsx`: an optional `text` prop, for a page that names what the draft covers. Without it the item sentence shows, as before. - i18n (`studio` namespace, en + zh): the two OWD keys above. Changeset `36660-owd-ai-draft-notice.md`: `@object-ui/i18n` patch. `@object-ui/app-shell` is private. - The hook list rows get no AI marker (seat ruling). ## Tests Three new files, 19 cases. Each covers the AI line for copilot and for MCP, no line for a person's draft or for a draft read with no provenance, discard with nothing unsaved (no confirm, one reset at the right package), and discard over an unsaved edit both declined and confirmed. - `ObjectHooksPanel.aiDraftNotice-36660.test.tsx` (7): through the Hooks tab host and the top bar's Save. Save publishes the AI version and the line goes away. - `DataPillar.pairActionsAiDraft-36660.test.tsx` (6): a read-only base object with a paired package. The reset names the door's pair. - `PackageOwdOverviewPanel.aiDraftNotice-36660.test.tsx` (6): the row's OWD sentence, the whole object's reset, and another row's unsaved edit surviving a discard. ## Acceptance notes - **Premise corrected at the claim:** the permission set and the hook and action opened from the left menu already carry the notice (objectstack-ai#37089, objectstack-ai#36902). This PR covers the three surfaces left. - **Out of scope, for the seat to decide on filing:** for an item the AI created and never published, the notice's discard tooltip reads "Drop this item’s unpublished draft and go back to the live version", while the discard removes the item. Seat ruling Q2: not in this card. - The local test run was narrowed to the files these changes reach (below). CI runs the whole app-shell suite. - The browser reading used a writable package made for the run, since the showcase package is managed (its writes answer `ITEM_LOCKED`). The HTTP doors refuse a copilot surface, so the draft's provenance was stamped as copilot in the stored draft row, and the served read confirmed `draftChanges[].by = copilot`. ## Verification <details><summary>Failing first, then green</summary> - On the base sources with the new tests: 15 failed, 4 passed. The 4 are the person's-draft and no-provenance controls. Failures: `Unable to find … studio-ai-draft-discard` ×9, `studio-ai-draft-notice` ×6. - With the change: 3 files, 19/19 passed. </details> <details><summary>Ablation</summary> Two parts removed on disk and restored (blob equal to HEAD afterwards): the OWD put-back of other rows' edits, and the hooks agent-surface check (any draft counts). 3 failed, 10 passed: OWD "another row keeps its edit", and hooks "a person's own pending draft" and "no provenance". </details> <details><summary>Wider runs</summary> - Affected test files: 328/328 files, 2574/2574 tests. - `@object-ui/app-shell` `tsc --noEmit` exit 0, `tsc -p tsconfig.test.json` exit 0. ESLint on the changed files: 0 errors, 5 warnings that were already there. - Derived gates at 4fd9904: 38 of 38 run, all exit 0, `dispatch-gates --ran` accounted. `pnpm --dir ui exec vitest run scripts/`: 172 files passed, 2 skipped. - `overlap-check`: clean against `origin/main` and objectstack-ai#38204 (shares the studio i18n files). </details> <details><summary>Browser reading, real console build</summary> Vite console against a showcase backend, signed in, Studio → package → organization-wide defaults. Two objects in the package. The one with a copilot-stamped draft shows under its name: "This object has unpublished changes from the AI assistant. Saving this row makes all of them live too." with "Discard the AI’s changes" (1 line, 1 button). The other object's row shows no line. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxGxp6swERUK2T9NML)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxGxp6swERUK2T9NML --------- Co-authored-by: Claude <noreply@anthropic.com>
…udio in the other languages (objectstack-ai#38339) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoTBeBeWuhs82hXPgJRyTok8)_ Fixes objectstack-ai#37618 repo:objectstack#3 · os-tesla · session_01L9qibz59TqsYwACVq1LPf9 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:中文界面里所有提到搭建工具的句子都改叫「应用搭建」,比如「在应用搭建中编辑」「这个对象在应用搭建里有未发布的改动」「应用搭建菜单」;英文和其他语言改叫「App Studio」。标志、入口和句子里的叫法从此一致。 - 为什么做:属于「App Studio 改版」专题。上一步只改了标志、应用名和入口,句子里还写着「Studio」,中文界面两个名字混着出现。 - 出错会怎样:最坏是某句话的叫法或语序不顺,不影响任何功能;地址、权限名和包名都没动,可以直接撤回。 - 要你做什么:无。 ## What changes Display text only, per ADR-0084's 2026-11-26 amendment (`docs/adr/0084-application-builder-information-architecture.md:368`: "Its name is App Studio, and 应用搭建 in a Chinese interface … A Chinese interface shows 应用搭建 and not the English name"). The `/studio` address, the `studio.access` capability name, package names, identifiers, code comments and `skills/**` are untouched. PR objectstack-ai#37581 already renamed the brand, the app label and the doors; this PR renames every sentence that still said "Studio". - **UI packs (`ui/packages/i18n/src/locales/`)**: 24 keys, in every pack. `en`, `zh-Hans`, `ar`, `de`, `es`, `fr`, `ja`, `ko`, `pt-BR` and `ru` are edited by hand (240 values); `zh-Hant` is regenerated with `pnpm --filter @object-ui/i18n gen:zh-hant` (24 values, 應用搭建), never hand-edited. - `zh-Hans` reads 应用搭建 and drops the spaces that only separated the Latin word from Chinese text (「在 Studio 中编辑」 → 「在应用搭建中编辑」). - Every other pack swaps `Studio` for `App Studio` inside the existing sentence, as objectstack-ai#37581 did for the doors, the non-Latin packs included. `de` writes its compounds with the coupling hyphen (`App-Studio-Zugriff`, `App-Studio-Liste`). - `common.editInStudio`'s `en` value was lowercase (`Edit in studio`); it now reads `Edit in App Studio`. - The capability label `capability.label.studio_access` is included (seat ruling Q1 A on the claim). The spec registry's English label (`packages/spec/src/security/capabilities.ts:55`) stays, so this PR touches nothing under `packages/spec/src/**`. The picker reads the pack key, so the interface shows the new name. - **`studio` namespace (`ui/packages/i18n/src/namespaces/studio/{en,zh}.ts`)**: 20 keys, among them the refusal sentence `engine.studio.refusal.draftUnreadable`, `engine.studio.menu.label`, `engine.studio.backToAppTitle(NoApp)` and `engine.studio.landingHome`. The namespace ships only `en` and `zh`. - **Inline fallbacks**: `check-i18n-call-site-keys` requires every literal `defaultValue` to equal its `en` value, so 20 literals in 11 files follow (`StudioRoute.tsx`, `AppNoAccessEmptyState.tsx`, `DesignModeHeaderPinsPanel.tsx`, `DesignModeMenu.tsx`, `DashboardView.tsx`, `PageView.tsx`, `RecordDetailView.tsx`, `RecordTabsConfig.tsx`, `StudioReturnButton.tsx`, `DraftReviewCard.tsx`, and the capability fallback row in `useFieldTranslation.ts`). No logic changes. The `studio` namespace's call sites carry no inline fallbacks. - **Docs** (seat ruling Q2 A, only the two lines the card names): `content/docs/build-without-code.mdx:22` quotes the top bar's door as "Design in App Studio", and the `content/docs/ui/apps.mdx` example reads `label: 'App Studio'`, as `STUDIO_APP.label` does. - **Changeset** `.changeset/37618-app-studio-prose-name.md`: patch for `@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/fields`, `@object-ui/plugin-chatbot` and `@object-ui/console`. ## Tests Pins that read these sentences move to the new text; none is loosened, deleted or skipped. - **Pack pins**: `ui/packages/i18n/src/__tests__/residue-namespaces-3546.test.tsx` (`common.editInStudio` in `en`, `zh-Hans`, `ja`, `ko`, `ar`, the inline-default source pin on `PageView.tsx`, and its comment's quoted label), `studioAccessGrantor-27521.test.ts`, `DraftReviewCard.i18n-38048.test.tsx`. - **Rendered-name pins** (inline fallbacks or the resident `studio` catalogue): `StudioRoute.test.tsx`, `CapabilityMultiSelectField.test.tsx` (the rendered chip; the registry fixture's own English label stays `Studio Access`, as the spec registry does), `DraftReviewCard-38048.test.tsx`, `DashboardView.inPageEdit-36372.test.tsx`, `PageView.editInStudioFollowsPackagePosture-12615.test.tsx`, `PackageFormDialog.newAppStep-36748.test.tsx`, `MetadataListCreateDialog.newObjectJoinsAppMenu-36748.test.tsx`, `StudioDesignSurface.backToApp-36501.test.tsx`, `StudioDesignSurface.homeLoop-12513.test.tsx`, `StudioDesignSurface.packageLessFlows-11553.test.tsx`, `StudioDesignSurface.packageListErrorPosture.test.tsx`, `StudioMenu.test.tsx`. - Two of those are absence pins (`queryByRole(... 'Studio home')` and `/Open app|Studio home/` expected null); they now name `App Studio home`, so they still look for the label that exists. <details><summary>Local runs (final head 0519b38)</summary> - The 108 app-shell files and the 9 fields / chatbot / console files ran at 8880f66; the only later change is the `report.builder.savedOutsideApp` revert (pack values only) and the changeset count. The i18n suite, the i18n gates and the derived gates ran on the final tree. - i18n gates (from `ui/`): `check-i18n-en-drift` exit 0 ("24 en value(s) changed … 240 pack value(s) followed"; "20 en value(s) changed … 20 zh value(s) followed"), `check-i18n-call-site-keys` exit 0, `check-i18n-dead-keys` exit 0. - `dispatch-gates.mjs --commands`: 72 derived, 71 exit 0, 1 NOT MEASURED: `pnpm --filter @objectstack/spec run check:skill-examples` exits 3 (PREREQUISITE NOT MET, it reads a built client SDK this worktree did not build). `--ran` reconciliation: 72 accounted, 0 unrun. CI runs it. - `overlap-check.mjs` at 0519b38: clean against origin/main 4ebe9a1 and the 5 open PRs that share files (objectstack-ai#38318, objectstack-ai#38304, objectstack-ai#38285, objectstack-ai#38284, objectstack-ai#38204). - `vitest run packages/i18n/` (from `ui/`): Test Files 110 passed (110), Tests 1874 passed, 13 skipped. - `vitest run` on the 9 fields / plugin-chatbot / console StudioRoute files: Test Files 9 passed (9), Tests 119 passed (119). - `vitest run` on the 108 app-shell test files that name these sentences (assertions or fixtures): Test Files 108 passed (108), Tests 1409 passed (1409). - The full `fields`, `plugin-chatbot` and console runs did not finish inside the container's command limit and are left to CI (NOT MEASURED locally). </details> <details><summary>Ablation</summary> - Put `zh-Hans` `common.editInStudio` back to 「在 Studio 中编辑」: `residue-namespaces-3546.test.tsx` goes red, 2 failed, `expected '在 Studio 中编辑' to be '在应用搭建中编辑'`. Restored, green. - Put the `chatbot.draftReview.hint` inline default back to the old `en` sentence: `check-i18n-call-site-keys` exits 1, `DraftReviewCard.tsx:113:10 [default-value-drift] chatbot.draftReview.hint`. Restored, exit 0. </details> ## Acceptance notes - **Residue grep after the change**: walking the loaded catalogues key by key (case-insensitive), the only value left that names Studio outside "App Studio" / 应用搭建 is `report.builder.savedOutsideApp`, left on purpose (next note). Each of the 10 hand-edited packs changed exactly the same 24 keys, both `studio` catalogues the same 20, and no key was added or removed. - **`report.builder.savedOutsideApp` is left unchanged** (seat amendment to the claim): PR objectstack-ai#38204 removes its last use and a follow-up on objectstack-ai#38149 deletes the key, so renaming it here would only conflict. - **Not in this PR, filed by the seat** (claim ruling Q3): five Chinese strings in `packages/platform-objects` generated translations still say Studio (`zh-CN.metadata-forms.generated.ts` and `zh-CN.objects.generated.ts`). They are generated from spec form help and the `sys_email` field help, outside `domain:ui`. - **Positional fallbacks are not paired by the call-site gate**: `tt(key, 'fallback')` in `StudioReturnButton.tsx` and `DashboardView.tsx` were updated by hand here; reverting one of them leaves `check-i18n-call-site-keys` at exit 0 (measured). Noted, not filed. - The docs pages' other prose mentions of "Studio" are left as the shorthand for the surface (seat ruling Q2 A; ADR-0084:368 uses it the same way). ## 44 keys, before and after <details><summary>en and zh values</summary> | # | Catalogue | Key | en before → after | zh before → after | |--:|:--|:--|:--|:--| | 1 | main | `capability.label.studio_access` | Studio Access → **App Studio Access** | 访问 Studio → **访问应用搭建** | | 2 | main | `common.editInStudio` | Edit in studio → **Edit in App Studio** | 在 Studio 中编辑 → **在应用搭建中编辑** | | 3 | main | `studioReturn.close` | Back to Studio → **Back to App Studio** | 返回 Studio → **返回应用搭建** | | 4 | main | `studioReturn.closeLabel` | Close and go back to the Studio list → **Close and go back to the App Studio list** | 关闭并返回 Studio 列表 → **关闭并返回应用搭建列表** | | 5 | main | `dashboard.inPageEdit.pendingDraft` | This dashboard has unpublished changes in Studio. Publish or discard them there, then edit it here. → **This dashboard has unpublished changes in App Studio. Publish or discard them there, then edit it here.** | 这个仪表盘在 Studio 里有未发布的改动。请先在那里发布或放弃,再在这里编辑。 → **这个仪表盘在应用搭建里有未发布的改动。请先在那里发布或放弃,再在这里编辑。** | | 6 | main | `console.studio.accessRequired` | You need Studio access to open Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment. → **You need App Studio access to open App Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.** | 你需要 Studio 访问权限才能打开 Studio。管理员可以在“设置 → 权限集分配”中通过权限集授予。 → **你需要应用搭建访问权限才能打开应用搭建。管理员可以在“设置 → 权限集分配”中通过权限集授予。** | | 7 | main | `designMode.menu.pendingDraft` | This app has unpublished changes in Studio. Publish or discard them there, then save again. → **This app has unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个应用在 Studio 里有未发布的改动。请先在那里发布或丢弃,再保存。 → **这个应用在应用搭建里有未发布的改动。请先在那里发布或丢弃,再保存。** | | 8 | main | `designMode.menu.translationPendingDraft` | This app's menu names in this language have unpublished changes in Studio. Publish or discard them there, then save again. → **This app's menu names in this language have unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个应用在当前语言下的菜单名称在 Studio 里有未发布的改动。请先在那里发布或放弃,再保存。 → **这个应用在当前语言下的菜单名称在应用搭建里有未发布的改动。请先在那里发布或放弃,再保存。** | | 9 | main | `designMode.menu.newItemLeft` | The new dashboard "{{name}}" could not be removed again; remove it in Studio. → **The new dashboard "{{name}}" could not be removed again; remove it in App Studio.** | 新建的仪表盘「{{name}}」没能删除,请在 Studio 里删除它。 → **新建的仪表盘「{{name}}」没能删除,请在应用搭建里删除它。** | | 10 | main | `designMode.pins.pendingDraft` | This object has unpublished changes in Studio. Publish or discard them there, then save again. → **This object has unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个对象在 Studio 里有未发布的改动。请先在那里发布或丢弃,再保存。 → **这个对象在应用搭建里有未发布的改动。请先在那里发布或丢弃,再保存。** | | 11 | main | `designMode.recordTabs.pendingDraft` | This object has unpublished changes in Studio. Publish or discard them there, then save again. → **This object has unpublished changes in App Studio. Publish or discard them there, then save again.** | 此对象在 Studio 中有未发布的改动。请先在那里发布或丢弃,再保存。 → **此对象在应用搭建中有未发布的改动。请先在那里发布或丢弃,再保存。** | | 12 | main | `empty.recordPagePlacesNoComponentDescription` | The record page "{{name}}" places no component in its regions, so it shows nothing for any record. An administrator can fix it in Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows. → **The record page "{{name}}" places no component in its regions, so it shows nothing for any record. An administrator can fix it in App Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows.** | 记录页 “{{name}}” 的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在 Studio 中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。 → **记录页 “{{name}}” 的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在应用搭建中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。** | | 13 | main | `empty.recordPagePlacesNoComponentDescriptionUnnamed` | This record page places no component in its regions, so it shows nothing for any record. An administrator can fix it in Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows. → **This record page places no component in its regions, so it shows nothing for any record. An administrator can fix it in App Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows.** | 该记录页的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在 Studio 中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。 → **该记录页的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在应用搭建中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。** | | 14 | main | `empty.appMenuEmptyDescription` | Create objects for this app in Studio and they join its menu, or add entries in Design layout. → **Create objects for this app in App Studio and they join its menu, or add entries in Design layout.** | 在 Studio 里为这个应用新建对象,它们会自动加入菜单;也可以在设计布局里添加。 → **在应用搭建里为这个应用新建对象,它们会自动加入菜单;也可以在设计布局里添加。** | | 15 | main | `empty.openInStudio` | Open in Studio → **Open in App Studio** | 在 Studio 中打开 → **在应用搭建中打开** | | 16 | main | `chatbot.draftReview.hint` | Nothing is published yet. Review the drafts and publish them in Studio. → **Nothing is published yet. Review the drafts and publish them in App Studio.** | 还没有发布。请在 Studio 中审阅并发布这些草稿。 → **还没有发布。请在应用搭建中审阅并发布这些草稿。** | | 17 | main | `chatbot.draftReview.reviewAndPublishAria` | Review and publish the drafts of package {{name}} in Studio → **Review and publish the drafts of package {{name}} in App Studio** | 在 Studio 中审阅并发布包 {{name}} 的草稿 → **在应用搭建中审阅并发布包 {{name}} 的草稿** | | 18 | main | `chatbot.draftReview.reviewAria` | Review the draft {{name}} in Studio → **Review the draft {{name}} in App Studio** | 在 Studio 中审阅草稿 {{name}} → **在应用搭建中审阅草稿 {{name}}** | | 19 | main | `packagedAutomation.actionsSubtitle` | Actions shipped by installed packages. Turn one off for this deployment and it stops running everywhere it is offered. Authoring your own action alongside it stays open in Studio. → **Actions shipped by installed packages. Turn one off for this deployment and it stops running everywhere it is offered. Authoring your own action alongside it stays open in App Studio.** | 由已安装软件包提供的动作。在本部署中停用后,它在所有提供它的位置都不再运行。你仍然可以在 Studio 中另行编写自己的动作。 → **由已安装软件包提供的动作。在本部署中停用后,它在所有提供它的位置都不再运行。你仍然可以在应用搭建中另行编写自己的动作。** | | 20 | main | `packagedAutomation.actionsEmptyBody` | No installed package declares an action on this deployment. Actions you author yourself live in Studio. → **No installed package declares an action on this deployment. Actions you author yourself live in App Studio.** | 本部署中没有任何已安装软件包声明动作。你自己编写的动作在 Studio 中。 → **本部署中没有任何已安装软件包声明动作。你自己编写的动作在应用搭建中。** | | 21 | main | `publicFormsSetup.designHint` | Switch a form off to stop taking submissions; its address then opens nothing. Forms are designed in Studio. → **Switch a form off to stop taking submissions; its address then opens nothing. Forms are designed in App Studio.** | 关掉一个表单就不再接收提交,它的地址也打不开了。表单的设计在 Studio 里做。 → **关掉一个表单就不再接收提交,它的地址也打不开了。表单的设计在应用搭建里做。** | | 22 | main | `publicFormsSetup.emptyBody` | Public forms are designed in Studio. Once an app has one, it is listed here. → **Public forms are designed in App Studio. Once an app has one, it is listed here.** | 对外表单在 Studio 里设计。应用里有了对外表单,就会列在这里。 → **对外表单在应用搭建里设计。应用里有了对外表单,就会列在这里。** | | 23 | main | `publicFormsSetup.pendingDraft` | {{name}} has unpublished changes in Studio. Publish or discard them there first. → **{{name}} has unpublished changes in App Studio. Publish or discard them there first.** | {{name}} 在 Studio 里有未发布的修改,请先在那里发布或放弃。 → **{{name}} 在应用搭建里有未发布的修改,请先在那里发布或放弃。** | | 24 | main | `publicFormsSetup.switchedOnEarlierVersion` | {{name}} is on. It stays on the app's earlier version {{version}}, which this environment customized; to take the app's current form, restore the original in Studio. → **{{name}} is on. It stays on the app's earlier version {{version}}, which this environment customized; to take the app's current form, restore the original in App Studio.** | {{name}} 已开启。它仍沿用本环境定制时的应用旧版本 {{version}};如需使用应用当前版本的表单,请在 Studio 中恢复原样。 → **{{name}} 已开启。它仍沿用本环境定制时的应用旧版本 {{version}};如需使用应用当前版本的表单,请在应用搭建中恢复原样。** | | 25 | studio | `perm.field.systemCapabilitiesHelp` | Platform / org capabilities granted to holders of this set (e.g. Studio access, user management). Designed here; Setup shows them read-only. → **Platform / org capabilities granted to holders of this set (e.g. App Studio access, user management). Designed here; Setup shows them read-only.** | 授予此权限集持有者的平台/组织能力(如 Studio 访问、用户管理)。在此设计,Setup 中只读展示。 → **授予此权限集持有者的平台/组织能力(如应用搭建访问、用户管理)。在此设计,Setup 中只读展示。** | | 26 | studio | `engine.studio.refusal.draftUnreadable` | This item has an unpublished draft you are not allowed to read, so Studio has not opened it: editing the published version here would overwrite that draft. Someone who holds the permissions the draft requires can edit or publish it. Details show what the server answered. → **This item has an unpublished draft you are not allowed to read, so App Studio has not opened it: editing the published version here would overwrite that draft. Someone who holds the permissions the draft requires can edit or publish it. Details show what the server answered.** | 此项有一份您无权读取的未发布草稿,因此 Studio 没有打开它:在这里编辑已发布版本会覆盖那份草稿。持有该草稿所需权限的人可以编辑或发布它。详情中有服务器的答复。 → **此项有一份您无权读取的未发布草稿,因此应用搭建没有打开它:在这里编辑已发布版本会覆盖那份草稿。持有该草稿所需权限的人可以编辑或发布它。详情中有服务器的答复。** | | 27 | studio | `engine.inspector.servedLabel.kept` | Readers in this language see “{served}”: a translation of this name comes ahead of the text saved here. To change what they see, edit that translation in Studio › All metadata › Translation. → **Readers in this language see “{served}”: a translation of this name comes ahead of the text saved here. To change what they see, edit that translation in App Studio › All metadata › Translation.** | 使用该语言的读者看到的是「{served}」:这个名称有一条译文,排在这里保存的文字之前。要改读者看到的文字,请到 Studio ›「全部元数据」›「翻译」里修改这条译文。 → **使用该语言的读者看到的是「{served}」:这个名称有一条译文,排在这里保存的文字之前。要改读者看到的文字,请到应用搭建 ›「全部元数据」›「翻译」里修改这条译文。** | | 28 | studio | `engine.inspector.servedLabel.ifKept` | Readers in this language now see the translation “{served}”. If it is kept in this environment’s own translations or in its customization package, they keep seeing it after you save. To change it, edit that translation in Studio › All metadata › Translation. → **Readers in this language now see the translation “{served}”. If it is kept in this environment’s own translations or in its customization package, they keep seeing it after you save. To change it, edit that translation in App Studio › All metadata › Translation.** | 使用该语言的读者现在看到的是译文「{served}」。如果这条译文存放在本环境自己的翻译或定制包的翻译里,保存后读者仍会看到它。要改它,请到 Studio ›「全部元数据」›「翻译」里修改这条译文。 → **使用该语言的读者现在看到的是译文「{served}」。如果这条译文存放在本环境自己的翻译或定制包的翻译里,保存后读者仍会看到它。要改它,请到应用搭建 ›「全部元数据」›「翻译」里修改这条译文。** | | 29 | studio | `engine.packages.admin.description` | Turn the packages installed in this system on or off, or delete one. A new package opens in Studio, where it is designed. → **Turn the packages installed in this system on or off, or delete one. A new package opens in App Studio, where it is designed.** | 启用、停用或删除本系统中安装的软件包。新建的软件包会在 Studio 中打开,在那里设计。 → **启用、停用或删除本系统中安装的软件包。新建的软件包会在应用搭建中打开,在那里设计。** | | 30 | studio | `engine.packages.detail.openInStudio` | Open in Studio → **Open in App Studio** | 在 Studio 中打开 → **在应用搭建中打开** | | 31 | studio | `engine.packages.customizations.customize` | Customize in Studio → **Customize in App Studio** | 在 Studio 中定制 → **在应用搭建中定制** | | 32 | studio | `engine.packages.customizations.customizeTitle` | Open this app in Studio, where its items are customized → **Open this app in App Studio, where its items are customized** | 在 Studio 中打开这个应用,在那里定制它的条目 → **在应用搭建中打开这个应用,在那里定制它的条目** | | 33 | studio | `engine.packages.customizations.rowTitle` | Open {name} in Studio → **Open {name} in App Studio** | 在 Studio 中打开 {name} → **在应用搭建中打开 {name}** | | 34 | studio | `engine.studio.data.appMenu.pendingDraft` | The app has unpublished changes in Studio. → **The app has unpublished changes in App Studio.** | 这个应用在 Studio 里有尚未发布的改动。 → **这个应用在应用搭建里有尚未发布的改动。** | | 35 | studio | `engine.studio.desktopHint` | Studio is built for a desktop screen. → **App Studio is built for a desktop screen.** | Studio 专为桌面屏幕设计。 → **应用搭建专为桌面屏幕设计。** | | 36 | studio | `engine.studio.notFound.pillar` | This page does not exist. Studio has no "{pillar}" section; pick Data, Automations, Interfaces, Access or All metadata above. → **This page does not exist. App Studio has no "{pillar}" section; pick Data, Automations, Interfaces, Access or All metadata above.** | 页面不存在。Studio 没有“{pillar}”这一栏,请在上方选择数据、自动化、界面、权限或全部元数据。 → **页面不存在。应用搭建没有“{pillar}”这一栏,请在上方选择数据、自动化、界面、权限或全部元数据。** | | 37 | studio | `engine.studio.menu.label` | Studio menu → **App Studio menu** | Studio 菜单 → **应用搭建菜单** | | 38 | studio | `engine.setup.accessDirectory.notAllowed` | Opening this page needs the {capability} capability, the one Studio asks. → **Opening this page needs the {capability} capability, the one App Studio asks.** | 打开此页需要 {capability} 权限,即进入 Studio 所需的权限。 → **打开此页需要 {capability} 权限,即进入应用搭建所需的权限。** | | 39 | studio | `engine.studio.backToAppTitle` | Leave Studio and go back to {app} → **Leave App Studio and go back to {app}** | 离开 Studio,回到 {app} → **离开应用搭建,回到 {app}** | | 40 | studio | `engine.studio.backToAppTitleNoApp` | Leave Studio and go back to your apps → **Leave App Studio and go back to your apps** | 离开 Studio,回到你的应用 → **离开应用搭建,回到你的应用** | | 41 | studio | `engine.studio.customize.pendingDraft` | This item has unpublished changes in {package}. Publish or discard them in Studio, then edit it here. → **This item has unpublished changes in {package}. Publish or discard them in App Studio, then edit it here.** | 此项在 {package} 中有未发布的更改。请先在 Studio 中发布或丢弃它们,再在这里编辑。 → **此项在 {package} 中有未发布的更改。请先在应用搭建中发布或丢弃它们,再在这里编辑。** | | 42 | studio | `engine.catalog.readOnly.walled` | Read-only for organization administrators. On this deployment the platform operator defines {type} items for every organization in Studio; your organization assigns them. → **Read-only for organization administrators. On this deployment the platform operator defines {type} items for every organization in App Studio; your organization assigns them.** | 组织管理员只能查看。此部署中由平台运营方在 Studio 中为所有组织定义{type};您的组织负责分配。 → **组织管理员只能查看。此部署中由平台运营方在应用搭建中为所有组织定义{type};您的组织负责分配。** | | 43 | studio | `engine.studio.landingHome` | Studio home → **App Studio home** | Studio 首页 → **应用搭建首页** | | 44 | studio | `engine.studio.landing.customizations.pairTitle` | Open the customization package {pair} in Studio → **Open the customization package {pair} in App Studio** | 在 Studio 中打开定制包 {pair} → **在应用搭建中打开定制包 {pair}** | </details> ## Verification Read first, in risk order: 1. `ui/packages/i18n/src/locales/zh-Hans.ts`: the Chinese sentences, where the old Latin word took spaces with it. 2. `ui/packages/i18n/src/locales/de.ts`: the only pack with compounds (`App-Studio-Zugriff`, `App-Studio-Liste`). 3. `ui/packages/i18n/src/namespaces/studio/zh.ts`: the Studio front's own sentences (menu label, the way back, the refusal). Two-minute check: open `/_console/studio/PACKAGE_ID` in a Chinese UI. The left menu's accessible name is 「应用搭建菜单」, and the way back's tooltip reads 「离开应用搭建,回到 …」; in an English UI they read "App Studio menu" and "Leave App Studio and go back to …". --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibz59TqsYwACVq1LPf9)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…cale (objectstack-ai#38370) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao2kRNNd8UR35wDQqCUcVVEy)_ Part of objectstack-ai#38149 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感,只是删掉两句已经不再显示的提示文字(11 种语言)。 - 为什么做:上一步已把“保存到应用之外”改成先询问或直接拒绝,这两句提示从此没人用。 - 出错会怎样:若仍有地方读取它们会显示原始键名;已确认没有任何代码读取,可直接撤回。 - 要你做什么:无。 ## What changes PR 2 of objectstack-ai#38149. PR 1 (objectstack-ai#38204, merged at bc31d45) stopped reading the i18n keys `view.savedOutsideApp` and `report.builder.savedOutsideApp`; this PR deletes both entries from each of the 11 bundled locales in `ui/packages/i18n/src/locales/` (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant) — 22 deleted lines, nothing else. One patch changeset on `@object-ui/i18n`. `.changeset/pre/*` untouched. Premise grep at base bc31d45 (`git grep -n savedOutsideApp`): hits only the 11 locale files, the two `.changeset/pre` entries, and historical CHANGELOG.md lines in app-shell and i18n. No source or test file reads either key. After the change: only the `.changeset/pre` entries and CHANGELOGs remain. No key-census baseline lists them; `all-locales-key-parity.test.ts` stays green because every locale drops both keys together. ## Tests <details><summary>i18n package (head e2ac23d)</summary> - `pnpm --filter @object-ui/i18n test`: Test Files 110 passed (110), Tests 1874 passed | 13 skipped - `pnpm --filter @object-ui/i18n type-check`: VERDICT command-exit 0 </details> ## Verification Read first: any one locale diff, e.g. `ui/packages/i18n/src/locales/en.ts`. Two-minute check: `git grep -n savedOutsideApp -- ui/packages/*/src` prints nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe --------- Co-authored-by: Claude <noreply@anthropic.com>
…as a shared mapping, and Manage it in Studio (objectstack-ai#38357) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoXjoHKbjY5r1kWnzkDHsGaB)_ Fixes objectstack-ai#37359 repo:objectstack#3 · os-tesla · session_01L9qibxL8ZWRpBvBqgZ5Vor Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 管理员在应用里导入数据时,对好列之后,可以在预览这一步把列的对应、写入方式和匹配字段存成大家都能选的共享映射,存进应用的软件包;应用没有可用的软件包时先问存到哪个包,取消就什么都不写。「已保存的映射」旁边多一个「管理」,打开 Studio 里这个对象的字段映射列表。没有权限的人看不到这两个按钮。 - 属于「导入用的共享字段映射在哪里新建和管理」这张决策卡,你选了 A 并排期为 p2。 - 存错了只是多一条共享映射,可以在 Studio 里删掉;名字已被占用、取消选包、系统应用里都不会存。 - 无 ## What changes - **`ImportWizard` takes two optional props** (`ImportWizard.tsx`): - `onSaveSharedMapping(draft)`: the host's door for saving a shared `mapping` item. When it is passed, the **preview step** shows "Save as shared mapping" under the write-mode panel, where the columns, the write mode and the match fields are all known (the claim's premise correction: the ruling said the mapping step, but write mode and match fields are collected on the preview step). The form asks for a label and an API name, suggested from the label, and checked against the spec's `SnakeCaseIdentifierSchema`. The saved mapping joins the Saved mapping list at once. A rejection keeps the form open and shows its message; a host that resolves `null` wrote nothing and adds nothing. - `onManageMappings()`: "Manage" beside the Saved mapping selector. - Neither is offered while a saved mapping is in use (that mapping already owns the columns). - **`sharedMappingDraft.ts`** (new, pure): `buildSharedMappingDraft` turns the wizard's column index → field map into the `mapping` item: `fieldMapping` is one `{ source: header, target: field }` per mapped column in column order, `mode` is the write mode, `upsertKey` the match fields (only for update and upsert), each `source` the header trimmed, as the import door trims a header before it looks one up (`import-prepare.ts`); `sourceFormat: 'csv'` (the import door applies a `csv` mapping to CSV, Excel and pasted rows alike, and the wizard sends such a mapping's rows as CSV text from every source). It refuses: nothing mapped; update or upsert with no match field; a mapped column whose header is blank or shared with another column, since the import door finds a column by its header text. The per-import toggles (create missing options, skip blank match keys, background job) have no key on a mapping and stay with the import. - `index.tsx` exports the `SavedMapping` and `SharedMappingDraft` types for the host. - **The app (`@object-ui/app-shell`)**, after PR objectstack-ai#38204 merged, per the claim: - `objectViewSharedMapping.ts` (new): `sharedMappingDoors` hands the wizard both props only when `mayManageViews` holds (an administrator holding `manage_metadata`, the shared-view rule), never on the identity import, and never without a metadata client. `ObjectView` spreads it into the `ImportWizard`. - `saveSharedImportMapping` first reads `GET /meta/mapping/<name>` and refuses a name a mapping already holds, in any package. The draft save's first-write pin (`If-None-Match: *`) only asserts that no **draft** row exists, so without the read a save would replace a published mapping of the same name; and a name two packages hold is refused at import (`409`). Then it calls `saveAndPublishRuntimeMetadata('mapping', …)` with the app (`useRuntimeCreateApp`), so the mapping goes into the app's package or its pair, or the package the person picks in objectstack-ai#38204's ask. A cancelled ask resolves `null`, which writes nothing and keeps the wizard's form open; a system app and a caller the package door refuses are refused with their reason; a pending draft of that name is refused and nothing is published. No path saves a mapping naming no package. - `RuntimeArtifactType` gains `'mapping'`. - Manage closes the wizard and opens `/studio/~all/metadata/mapping?targetObject=<object>`: every package's mappings, the same set the wizard's Saved mapping list offers. - The metadata list state gains `targetObject` (`LIST_TARGET_OBJECT_PARAM`, `metadataListState.ts`). It narrows only a type whose reader names a row's object; `ResourceListPage` gives that reader to `mapping` alone and draws the narrowing as a chip ("Object: crm_lead ×") in both the Studio and the Setup toolbars, whose × shows every object again. - i18n: 13 new `grid.import.*` keys and 3 `console.objectView.sharedMapping*` keys (name taken, draft pending, system app) in every language pack; `zh-Hant` regenerated by `gen:zh-hant`; 2 `engine.list.targetObject*` keys in the Studio namespace (en, zh). The de quote-pairing pin counts the five new „…“ pairs (128 → 133). - Changeset `37359-import-wizard-shared-mapping.md`: `@object-ui/plugin-grid`, `@object-ui/i18n` and `@object-ui/app-shell` **patch**. The claim named `minor`; `check-changeset-no-major.mjs` grades every entry `patch` under `Metadata-protocol: none`, so patch it is. - **The ADR-0146 dated line is not in this PR.** Per the claim it goes into the weekly ADR PR, as the card body says. ## Tests - `sharedMappingDraft.test.ts` (9): the insert shape, a header saved trimmed, the upsert shape (also parsed by the spec's `MappingSchema`), a match field whose column was unmapped, nothing mapped, blank and shared headers (each named once), a duplicated header on an unmapped column, the name grammar, the name suggestion. - `ImportWizard.sharedMappingSave-37359.test.tsx` (10), through the real wizard: no door → no save; the insert draft; the upsert draft and the "choose the match fields" reason; a shared header refused before any call; a bad API name cannot be sent; a refused save; a saved mapping listed and then picked, after which there is nothing to save; a `null` save adds nothing; Manage with and without the door. - `objectViewSharedMapping-37359.test.ts` (11), with a real `MetadataClient` over a fake `/meta` door and the package list stubbed at `fetch`: the saved request (`PUT /meta/mapping/supplier_list?mode=draft&package=com.example.crm`, `If-None-Match: *`, header → field, `mode: upsert`, `upsertKey: ['email']`, then the publish); a taken name refused with zero writes; a pending draft refused with no publish; no app package → the ask, and the save names the picked package; a cancelled ask → `null`, zero writes; a system app refused, never asks, zero writes; who gets the doors (admin both; non-admin, identity import, no client: none); Manage closes and navigates; Manage's address decodes back to the object. - `metadataListState.targetObject-37359.test.ts` (3): the codec round trip and a blank value; narrowing; a reader with no object is not narrowed. - `ResourceListPage.targetObject-37359.test.tsx` (4), the real page: the narrowed list under its chip; the × lists every object and drops the param; no param, no chip; a type whose rows name no object (`skill`) is not narrowed. ## Acceptance notes - Measured in tests, not in a browser: the package ask opens over the import wizard's own dialog (two Radix dialogs stacked, the same shape as objectstack-ai#38204's ask over Create View). - Still to measure on a real server: that a named-mapping import accepts a match-only (readonly or autonumber) field in `upsertKey`. The wizard offers such fields as match fields, and the draft saves what was chosen. ## Verification <details><summary>Tests</summary> - Import wizard half at 8b1e3b8: `pnpm --dir ui exec vitest run packages/plugin-grid/ packages/i18n/`: 430 files, 4704 passed, 13 skipped. `@object-ui/plugin-grid` and `@object-ui/i18n` `type-check`: exit 0. - App half at afeff95: the 4 new files, 18/18. `vitest run` over app-shell's `ResourceListPage*`, `metadataListState*`, `runtime-metadata-persistence*`, `objectView*`, `ObjectView*`, `__tests__/identityImport*`, `useListOrderedNames*` and `packages/i18n/`: 258 files, 3147 passed, 13 skipped. `@object-ui/app-shell` `type-check` (`tsc --noEmit && tsc -p tsconfig.test.json`): exit 0, after a declaration build of `@object-ui/app-shell^...`. </details> <details><summary>Ablation</summary> Each mutation landed on disk through `ablation-replace.mjs` and was restored (blob equal to HEAD, `git diff HEAD` empty). Import wizard half: - the shared-header refusal turned off: 2 failed (the pure refusal and the wizard's disabled save); - `upsertKey` dropped from the draft: 2 failed (the pure upsert shape and the wizard's upsert draft); - Manage never drawn: 1 failed; - the save drawn without a host door: 1 failed; - the header saved untrimmed: 1 failed (the trimmed-header pin), at 81774d0. App half, against the 18 new app tests (baseline 18/18): - the name read skipped: 1 failed (a taken name); - a cancelled ask rethrown instead of `null`: 1 failed (cancel); - `'pending-draft'` ignored: 1 failed (pending draft); - the `canManageViews` gate dropped: 1 failed (non-admin gets neither); - the list's `targetObject` narrowing deleted: 2 failed (the pure narrowing and the real page's narrowed list); - the chip never drawn: 2 failed (the chip and its ×). </details> <details><summary>Derived gates</summary> At 9008472: 43 of 43 derived families run, each exit 0; `dispatch-gates --ran` accounted (43 derived, 43 run, 0 not measured, a derived zero). List with exit codes: `gates-ran-90084723.list` in the card's project folder. The run started at afeff95; the one-file lint fix of 9008472 (`objectViewSharedMapping.ts`, the caught error kept as `cause`) landed during it and changes no derived path. At 81774d0 (the trim and the changeset's `Clause-②` line, two already-changed files plus a test): no derived path changes; `check-changeset-no-major` exit 0, plugin-grid `type-check` exit 0, ESLint 0 errors, the two plugin-grid shared-mapping test files 19/19. `overlap-check` at afeff95: clean against `origin/main` (bc31d45) and the two open PRs that share files (objectstack-ai#38370 the locale packs, objectstack-ai#38318 the Studio namespace). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxL8ZWRpBvBqgZ5Vor)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxL8ZWRpBvBqgZ5Vor <!-- signed: repo:objectstack#3 · os-tesla · session_01L9qibxL8ZWRpBvBqgZ5Vor --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ngs panel and the create-view dialog only when opened (objectstack-ai#38429) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoLA64Pdo43CcX7aDR1Nooow)_ Part of objectstack-ai#37444. This is the first cut: the object list page stops loading authoring code before its first screen. The card stays open, because this cut alone is not expected to bring the list page under 2.5 s; a second cut waits for this PR's reading and a claim amendment. Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户打开对象列表页时少下载约 180 KB 的编辑类代码,首屏更快;页面上看到和保存的内容都不变。 - 属于「控制台首屏 2.5 秒内打开」专题,这是列表页的第一刀。 - 出错时,第一次打开选包框、视图设置面板或新建视图框会多等一下,或者打不开;撤回这个 PR 即可恢复。 - 无。 ## What changes The object list route (`ObjectView`) pulled about 69 chunks (~183 KB brotli, measured on `ff69bcab`) of authoring code before its first screen: 1. `objectViewViewCrud.tsx` and `objectViewViewSharing.ts` imported `metadata-admin/PackageCreateAsk` and `metadata-admin/i18n` statically (since objectstack-ai#38204). `usePackageCreateAsk` drew a closed `PackageCreateAskDialog` on every list, and that dialog imports the package page's create dialog, `PackageFormDialog`, `SchemaForm` and the Studio catalogue. 2. `ViewConfigPanel` and `CreateViewDialog` are `React.lazy`, but were rendered closed on every list, so their chunks were fetched on every list load too. Now: - `useDeferredPackageCreateAsk` (in `objectViewViewCrud.tsx`) keeps the same `ask(request) => Promise<string | null>` contract. It mounts a lazy `PackageCreateAskDialog` on the first ask and keeps it mounted afterwards, so it closes the way it did before. A newer ask still resolves the older one with `null`, and unmount still resolves a pending ask with `null`. - `reportViewNotSaved(err, locale)` still answers synchronously whether the error was a runtime-create refusal. The refusal text, the designer locale mapping and the Studio catalogue load on the refusal, and the toast shows once they arrive. A cancelled ask still shows nothing. - Both hooks read the locale from `useObjectTranslation()` instead of `useMetadataLocale()`; `designerLocaleOf` maps it at refusal time. - `ObjectView.tsx` mounts `ViewConfigPanel` and `CreateViewDialog` the first time each opens (`useOpenedOnce`), and keeps them mounted after that. No exported shape changes, no spec or metadata change. ## Tests - New `objectViewListRoute.deferredAuthoring-37444.test.tsx` pins the load order with counted `vi.mock` factories: importing `./ObjectView` evaluates none of `PackageCreateAsk`, `PackagesPage`, `SchemaForm`, `metadata-admin/i18n`, `ViewConfigPanel`, `CreateViewDialog`; the ask loads its dialog on the first ask, answers it and stays mounted closed; a refused create toasts once its words load, a cancelled one never toasts. - `ObjectView.readOnlyPackageViewSaves-35974.test.tsx` and `ObjectView.viewConfigSaveWiring-10210.test.tsx` read the panel's props; they now open the panel first, since a closed panel is no longer mounted. The personal-view case now asserts the closed panel is not mounted. <details><summary>Pin ablation</summary> Committed first, then `scripts/ablation-replace.mjs` on `objectViewViewCrud.tsx`: the anchor `import type { PackageAskRequest } from './metadata-admin/PackageCreateAsk.js';` replaced with a value import of `PackageCreateAskDialog` (`void`-used). Result: case 1 (`packageAsk` 0 → 1) and case 2 red, case 3 green: 2 failed, 1 passed. Restored: blob equals HEAD, `git diff HEAD` empty. What is not separately pinned: the `CreateViewDialog` render deferral in `ObjectView` (its module-load count is pinned at import time only; no case opens the dialog). The `ViewConfigPanel` render deferral is pinned by the 35974 personal-view case. </details> ## Acceptance notes - Read first: `objectViewViewCrud.tsx` (`useDeferredPackageCreateAsk`: the resolve-older-ask and unmount paths), then `ObjectView.tsx` (`useOpenedOnce` and the two mount sites), then `objectViewViewSharing.ts` (the catch path). - Two-minute check: on a list page, open the browser's network panel, load the list: no `PackagesPage`, `SchemaForm` or `CreateViewDialog` chunk. Click the view settings gear: the panel opens after one chunk fetch. - Found while testing, not changed here: the toolbar Settings path opens the config panel on the first grid view (`all`), not on the open view (unit-level evidence only). ## Verification LCP on this PR's build (`bd4f2071`) against main, by the card's method: production builds, HTTP/2 TLS front, Lighthouse 13.6.0 desktop preset, signed in, blocks main-1, pr-1, pr-2, main-2 of 5 runs per page. The record page got a reversed round on top. p is a two-sided permutation test on the median difference. Full runs: card comment 7248989586. | page | main median (ms) | PR median (ms) | delta | p | |:--|--:|--:|--:|--:| | home (10 vs 10) | 2080.5 | 2115.5 | +35 | 0.33 | | object list (10 vs 10) | 2647 | 2551 | −96 | 0.03 | | record (20 vs 20) | 2444.5 | 2478.5 | +34 | 0.30 | On the list page, the scripts fetched before the first screen go from 274 to 225: 171.6 KB less gzip as served, or 188 KB less brotli by the dist's `.br` files. Home and record fetch the same script count on both builds. The list is still 51 ms over 2500, so the card stays open for a second cut. <details><summary>Gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 38 derived, all 38 exit 0. `--ran`: 38 run, 0 NOT-MEASURED, 0 UNRUN. - `--tier`: no path-derived mandate; 356 changed lines (under 3000). - `overlap-check`: merges cleanly onto `origin/main`, VERDICT clean. - `cd ui && pnpm exec vitest run` on 23 affected app-shell files: 265/265 passed. - eslint on the 6 changed source and test files: 0 errors. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; eslint on the changed files: 0 errors. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxzGFPvShbd2qnkdEv <!-- signed: repo:objectstack#3 · os-tesla · session_01L9qibxzGFPvShbd2qnkdEv --> Co-authored-by: Claude <noreply@anthropic.com>
…d move them into a package; the Packages page counts them (objectstack-ai#38150 PR-A2) (objectstack-ai#38389) repo:objectstack#3 · os-tesla · session_01L9qibyHmxFV4bTFZ5BKnUz <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoLMbEWhC18gy3jFR6wzDkuz)_ Part of objectstack-ai#38150. This is PR-A2, the console's half of the move door, by the seat's claim (comment 7234216673) and its branch ruling of 16:02Z: PR-A1 (objectstack-ai#38185, the server door) is merged, and objectstack-ai#38149 (objectstack-ai#38204, the package ask this PR reuses) merged at 16:01Z. PR-B1 (the retirement of `adopt-orphans` and its two console entries, parked as objectstack-ai#38364 at head `1852bb898`) lands after this PR, so no prerelease ships a console with no way to move loose items. PR-B2 (Studio `~org`, the redirects to `?source=loose`, the Q-f E classifier objectstack-ai#38061, the ADR marks) follows. Clause-②: yes (widening) Metadata-protocol: none Skills-docs: none — no skill under `skills/**` or `.claude/skills/**` teaches the console's lists or loose items; the `objectstack-platform` passage on package-less Setup rows is about overlays of shipped items, which are not loose (searched at this head) **Size: 1,380 lines** (additions + deletions, generated files included: 1,369 added, 11 deleted, 15 files; `git diff --numstat eef1cbf be8e0d5`, base main `eef1cbfe4`). With A1's 1,947 and B1's 3,123 the card is past 3,000 (objectstack-ai#38280's per-card line), so this PR is Tier H. ## 维护者速读 - 用户能看到什么变化:在应用工作室的跨软件包列表(`/studio/~all/metadata/<类型>`)里,来源下拉多了「散落项」。选它后,有编辑权限的人可以逐行勾选或全选,点「移入软件包…」,选好软件包后先看一次试运行:每一项移入后地址怎么变,或者为什么被拒。确认后整批移入。设置的「软件包」页上会提示「有 N 个散落项,不属于任何软件包」,按类型列出,点进去就是那种类型的散落项列表。 - 为什么做:App Studio 改版专题(objectstack-ai#38150)。你裁定散落项原地保留,由一个按勾选移动的入口负责移入。服务端接口已在 A1 合并,这个 PR 做控制台入口。 - 出错会怎样:只改控制台。移入整批进行,要么全部移入,要么一项不动;被拒时逐项给出服务端原话。最坏情况是横幅计数不准,或某个入口不显示,可以直接撤回。 - 要你做什么:这张卡总行数超过 3000 行,属于 Tier H,需要你经 os-zhuang 批准。 ## What changes **The "Loose" source value** (`metadataListState.ts`, `ResourceListPage.tsx`, `useListOrderedNames.ts`). - `?source=loose` joins the list's address state. On the cross-package leg (`allLeg`: an area host with no package, outside the environment scope) the list offers it, as "Loose (N)" in both the Studio and the Setup toolbars. - A row is loose by `isPackageLessItem` on its served `_packageId` (absent, `''`, or the `sys_metadata` sentinel), the card's "never `classifyProvenance`": that classifier also files a `.custom` pair item and a served overlay as runtime, so "Modified and new" holds them and "Loose" does not. - The row reader gains an optional `loose` member. Absent, as on a package's own leg, `source=loose` reads as every source, the way an unoffered filter does. The detail's ‹ › order reads the same member, so prev and next agree with the list. **Select and move** (`ResourceListPage.tsx`, `looseMove.ts`, `LooseMoveDialog.tsx`). - Under "Loose", a person who may author (`useCanAuthorMetadata`, and not walled) gets a select column first in the table and a selection bar above it: "Select all (N)" over the rows the filter shows, the count selected, and "Move into package…". A reader who may not author sees the loose rows with no select box and no bar. - "Move into package…" opens objectstack-ai#38149's ask with nothing pre-selected, with the move's own question and explanation (`PackageCreateAsk` takes an optional `title` and `description`; the create's are unchanged). "New package…" in the ask works as it does for a create. - The confirm step asks the door's dry run (`POST /api/v1/packages/:id/move-in` with `dryRun: true`) and draws its answer: - `would_move`: each item, `(draft only)` where only a draft moves, the address change (`_env/NAME` → `NAMESPACE/NAME`) and the AI face name change where the door reports them. Two notes follow. The first is the dry-run caveat: some save checks run only on the real move, and if one refuses, nothing moves. The second is L2's N4 (record 7236830081): reverting the move's package commit takes the items out of the package and does not make them loose again. - `refused`: each refused item with the door's own code and sentence. For `REFERENCE_LEFT_BEHIND`, "Add the loose items they use and check again" adds the `references` to the selection, which may be of other types, and asks the dry run again. - Move makes the real call. A refusal there is drawn as "The move was refused, and nothing moved". `moved` closes the dialog, says "Moved into PACKAGE: N." and re-reads the list. - The door's 422 arrives as a thrown envelope. `moveLooseItems` resolves it as the door's answer (`error.details` with `outcome: 'refused'`), and every other failure throws with the server's sentence, which the dialog draws with Try again. **The Packages page banner** (`LooseItemsBanner.tsx`, `PackagesPage.tsx`). - "N items belong to no package", drawn on both faces for a person who may author, while N is above zero. Each type with loose items is listed as a link to its "Loose" list, `/studio/~all/metadata/TYPE?source=loose`. That is the acceptance's "from the Setup → Packages banner, a person reaches a flow's Loose list in the UI, with no typed address". - **The count's cost, measured.** No new server read. One `GET /meta/:type` per type that takes a runtime write (`allowRuntimeCreate` or `allowEnvironmentOverlay`; a type that takes none holds no loose item), with the type's own hide hook applied, the same rows its list counts. On the showcase boot that is 30 of the 40 served types, and the 30 reads in parallel took 366 ms. A type whose read fails is named as not counted, never folded into a smaller total. - The count is keyed on the types it reads and reaches the client through a ref. A first version keyed it on the client's identity, and the PackagesPage tests' per-call mock client then looped the effect and hung the app-shell suite. **i18n.** 31 keys in `@object-ui/i18n`'s studio namespace, en and zh: `engine.list.sourceFilter.loose`, `engine.looseMove.*`, `engine.looseItems.*`. No other locale carries the studio namespace. **Changeset.** `38150-move-loose-items-console.md`: `@object-ui/app-shell` and `@object-ui/i18n` patch, `Clause-②: yes (widening)`, `Metadata-protocol: none`, as objectstack-ai#38204 declared for the same kind of console widening. ## Tests New, each with its control: | file | pins | |:--|:--| | `ResourceListPage.looseMove-38150.test.tsx` (7) | `?source=loose` on `~all` lists exactly the package-less rows (none, `''`, `sys_metadata`), never a `.custom` pair item or an overlay; with no filter every row is listed. The select column and bar appear for an author, not for a reader who may not author. Select all → the ask opens with nothing picked and the move's question → the dry run carries the three items, `dryRun: true` → the confirm names the package by its name and shows the address change → Move resends the same items without `dryRun`. One row selected moves that row alone. A package's own leg ignores `?source=loose` and draws no selection. | | `LooseMoveDialog-38150.test.tsx` (5) | The address change, the caveat and the undo note, then Move. `REFERENCE_LEFT_BEHIND` offers to add the dataset, the next check carries it, and Move moves both. A refusal with no `references` offers nothing to add. A refusal on the real move reads as nothing moved, and `onMoved` is not called. A failure that is not an answer shows its sentence and Try again. | | `looseMove-38150.test.ts` (8) | The `source=loose` codec round-trips, and an unknown value reads as all. `loose` keeps package-less rows where `runtime` also keeps the `.custom` row. With no `loose` member every row is kept. The 422 resolves as the answer; a 403 throws the server's sentence; the body carries `dryRun` only on a dry run. References are added once each. | | `LooseItemsBanner-38150.test.tsx` (5) | Per-type counts and links (`/studio/~all/metadata/flow?source=loose`). A type with no runtime write, and `package`, are not read. A failed read is named. Nothing is drawn or read for a non-author, and nothing is drawn at zero. | **Ablation.** With the list's `loose` reader set to `row.source === 'runtime'` (the classifier the card forbids), two cases of `ResourceListPage.looseMove-38150` go red: the exact-rows case and the select-all move (its dry run then carried the pair item and the overlay). Restored, 7 of 7 pass. ## Verification Local, on this branch, after a declaration build of `./packages/**` and `@object-ui/app-shell`'s dependencies: - `@object-ui/app-shell` and `@object-ui/i18n` (`pnpm --dir ui exec vitest run packages/app-shell packages/i18n`), before the merge of main: 2,570 files, 2,569 passed and 1 skipped; 25,917 tests passed and 22 skipped. After the two display fixes, the touched files (every `ResourceListPage*`, the four new files, `PackageCreateAsk*`, all of `packages/i18n`) passed: 132 files, 2,048 tests passed and 13 skipped. After the merge of main and the collection imports, the four new files pass 25 of 25. - `@object-ui/app-shell` `type-check` (`tsc --noEmit` and `tsc -p tsconfig.test.json`) passes after the merge of main. The first run failed on `looseMove-38150.test.ts`'s untyped `vi.fn` tuple, and that was fixed. - **Derived gates.** `node scripts/pm/dispatch-gates.mjs --commands` derives 39 families for this tree, the same 39 before and after the merge of main. 38 passed on the first run. `check:test-source-alias` failed on three of the new test files, which reached `celAuthoring`'s dynamic `@objectstack/lint` import through `packageActions.tsx`. Each now has the module-top import, and the gate passes. After the merge, the four gates that read the diff against `origin/main` (`check-adr-0087-registration`, `check-changeset-no-major`, `check-empty-changeset`, `check:test-source-alias`) and `check:undeclared-dep-imports` and `check:type-check-coverage` were run again and pass. `dispatch-gates --ran`: 39 derived, 39 run, 0 NOT-MEASURED. - `overlap-check.mjs` before the first push: `origin/main` conflicted in `ResourceListPage.tsx` (the lucide import, beside objectstack-ai#38357's `X`) and `metadataListState.ts` (beside objectstack-ai#38357's `targetObject` filter). Both are resolved in the merge, keeping both sides. objectstack-ai#38318 shares the two i18n files and merges cleanly. ## Walkthrough (a real stack) At `c27f9ab24` (the two display fixes in; the merge of main after it touches neither surface), `pnpm console:build`, then the showcase booted with `objectstack dev --ui --seed-admin` on a fresh database. Through the API: an installed writable package `com.probe.zeta` (name Zeta, namespace `zeta`), two loose flows (`probe_loose_flow`, `probe_loose_flow2`) and a loose object `probe_widget`, each saved with no package. Then, in the browser (Playwright, 1400×900): 1. Setup → Packages (`?face=admin`) draws "4 items belong to no package" with Flow (2), Object (1), Datasource (1). The datasource is the showcase's own loose row. 2. Flow (2) opens `/_console/studio/~all/metadata/flow?source=loose`: two rows, the select column, "Select all (2)". 3. Select all, then Move into package…: the ask, Zeta picked by hand. 4. The confirm, "Move into Zeta": each flow `_env/probe_loose_flow` → `zeta/probe_loose_flow`, the caveat and the undo note. 5. Move: the dialog closes and the list is re-read. The API then reads both flows `_packageId: com.probe.zeta`, `GET /meta/flow/zeta/probe_loose_flow` answers 200 and `GET /meta/flow/_env/probe_loose_flow` 409, with no restart. 6. The object list's Loose value, `probe_widget` into Zeta: refused `NAMESPACE_PREFIX`, "Object 'probe_widget' is missing the package namespace prefix. Rename it to 'zeta_probe_widget' (namespace = 'zeta').", Move disabled. 7. Back on Setup → Packages: "2 items belong to no package", Object (1) and Datasource (1). Screenshots, at device scale 2: in the project files under `card-38150/a2-walkthrough/`, `1-packages-banner.png` … `7-banner-after.png`. ## Owed before landing - One CONTRACT_REVIEW_TIER review (the seat's). - Tier H: Tesla's approval via os-zhuang. - PR-B1 lands after this PR, restarted on a new PR from `1852bb898`'s commits. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe
Requested by Tesla · project thread
Fixes #38149
Fixes #38206
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
A create whose address names no package now asks the person to pick a package or create one, before anything is written (ADR-0070 D3, ADR-0084's amendment of 2026-11-26). One dialog (
PackageCreateAsk.tsx) serves every create path. It offers the packages the server says this caller may write (writable: trueonGET /api/v1/packages), never a kernel package. Its "New package…" button reuses the Packages page's create dialog. Cancel writes nothing.?package=the person named (link or scope selector)?scope=environment): positions, permission sets (Q-a, answered A)/studio/~all/metadata/TYPE)preselect: allLeg ? null : pickedPackage); Continue disabled until a choice/…/TYPE/newwith no?package=createLive)403)/apps/:app/create-app)saveItem('app')naming no packageobject-draftread, then a package-less client save.custompair, or no package for a datasource that has noneThe open readings I picked:
?package=repair now writes the location-state keyobjectui.packagePickedbeside the address it repaired. A?package=is named only when that mark is absent or names a different package. A link and the scope selector write no state, so they stay named. The list's own address writers carry the state through.ConsoleCreateAppPage, keeps the plugin-designer wizard.CreateAppPagegains an optionalsaveApp(name, app); the wrapper asks, then saves as Studio's new-app door does (first-write-pinned draft, then that one item's publish).POST /api/v1/datasources/:name/external/tables/:remote/import. It is the same external-datasource service asremote-tablesandobject-draft, and Sync is offered only on a federation source.The Q-a premise was measured first, as a real kernel test, before any UI was built (
position-in-package-binds-outside-sets-38149.dogfood.test.ts, kept in this PR). The setup:PUT ?mode=draft&package=, thenPOST …/publish?package=);Result: 4/4 green. The holder is granted all four sets. A live package-less edit of a set lands on the package's own row. A set the position does not name is not granted. The ablation is in Tests.
The editor holds the chosen package for the form; it never writes it into the address before the save. Measured live: on the
~allleg, a?package=written first moved the page into the package's area and remounted the form mid-save.Not in this PR, as the dispatch ordered:
docs/adr/**edit. What 9's marks go to the kernel-close card.packages/spec.view.savedOutsideApp/report.builder.savedOutsideAppi18n keys are kept, only unused.Surface beyond the claim, each a one-line consequence:
packages-io.ts: the ensure door's error carriesstatus.ObjectView.tsx: renders the ask's dialog.ConsoleCreateAppPage.tsx: new.AppContent.tsx: the create-app chunk.plugin-designer/src/index.tsx: the type export.Setup's access directory reads its own sub-path (#38206)
AccessDirectoryPageread the sub-path below it by slicingACCESS_DIRECTORY_PATH(the/apps/setup/…alias) off the pathname. The shell serves Setup at its package id (/apps/com.objectstack.setup/…), so there the slice never matched, the sub-path came out empty, and…/position/newrendered the directory's empty shell instead of redirecting to Studio's editor. The page now reads the splat of its own route (useParams()['*']belowcomponent/:ns/:name/*), on every address the shell serves it at. The prefix read stays only for a mount without a splat.accessDirectoryLocationis unchanged.CI pins on the previous head (4b15ae4), each fixed at its root
StudioMetadataArea.allList-29566› create on the~alllegcom.example.crm, Continue opens its create; the ask's package list is stubbedPackageFormDialog.newAppStep-36748› the door censusPackageCreateAsk.tsxin place ofResourceListPage.tsxCreateViewDialog.chartBinding-11576› Save as view doordemoanswers as a writable package, as in the sibling view tests already retargetedObjectView.createViewRefusal-11578, 3 casesDatasetDefaultInspector.firstPickKeepsCount-12848, 2 cases/newnaming no package now asks at SaveAppContent.pseudoRouteSegments›/apps/ghost/create-app(and the same hazard inAppContent.noAppsCta)ConsoleCreateAppPage, whose graph loaded insidefindByTestId's budget; CI showed the route skeleton still pending../ConsoleCreateAppPageat collection, as they already pay the designer's barrelMy earlier affected-file selection (171 files) missed these. This round ran the whole
@object-ui/app-shelland console suite (see Verification).Tests
All are run at the final head, one union run. The figures are in Verification.
PackageCreateAsk-38149: list filter, pre-select, Continue gate, Cancel once, New package answers and returns, failed read, a second ask answers the firstnull.ResourceListPage.createAsk-38149: arrival repair asks with the pick pre-selected; Cancel; a?package=arrival and a selector choice skip the ask; New disabled while packages load; the catalog's New opens the create in the scope with no ask; the~allleg asks with nothing pre-selected and Continue disabled, though the fixture's heuristic picks Bravo, while Setup's list on the same fixture pre-selects Bravo.ResourceListPage.catalogAsksOnce-38149: the real list and the real editor on Setup's routes. The catalog's New asks nothing. Save asks once, with nothing pre-selected. The save isPUT ?mode=draft&package=app.alpha, then its publish.ResourceEditPage.createAsk-38149: deep-link Cancel writes nothing; position and permission set get draft + publish in the answer and land under it; a named-package control; a refused first save keeps the form and the answer, and the retry asks nothing.runtime-metadata-persistence.createAsk-38149: every resolve outcome, the pick, the cancel, and the no-app control.ConsoleCreateAppPage.createAsk-38149: ask, then draft under the first-write pin, then publish; Cancel writes nothing.ReportNewPage-36692, three new cases: unlisted app asks; cancel; system app refused, with the ensure door never asked.objectViewViewSharing: a cancelled ask writes and says nothing.AccessDirectoryPage.aliasAddress-38206(设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206): at both the package-id address and thesetupalias,…/position/new?scope=environmentredirects to/studio/~all/metadata/position/new?scope=environment, and…/positiongets the environment scope and renders the list.liveCreate-7611,positionCreateLive-26192,walledFallback-35624,otherTypesUntouched-35624,createIntoApp-35624,saveAndPublishIntoApp-36409,sameAddress-35624,ReportNewPage-36692(both ensure-refusal controls),syncNextSteps-30328(import door),pairCreate-36897;demo.Ablations: each committed, mutated through scripts/ablation-replace.mjs, red, then restored (blob == HEAD, git diff HEAD empty)
.filter((p) => p.writable && !p.kernel)becomes.filter(() => true)packageNameddropped (the heuristic pick taken as named)if (createMode && !activePackage)becomesif (false)403caller-refused branch becomesif (false)if (!packageId) return false;deleted/object-draftchosenCreatePackageRef.current = chosen;deletedAccessDirectoryPage:splat ??becomesundefined ??(the prefix read alone)if (envScope) {becomesif (false) {(New asks again)preselect: allLeg ? null : pickedPackage,becomespreselect: pickedPackage,data-state"checked" for Bravo, expected "unchecked"); Setup's pre-select case stays greenConsoleCreateAppPage.tsx: a 2.5s top-level wait added (--hold, then--restore)security-catalog.ts: thesource === 'registry'closure guard removedpkhome_reviewer_set, showcase_member_default, member_default, storage_attachment_member, missing the other-package, shipped and loose setsAcceptance notes
createLive(permission, position) is now unreachable from the editor's create: every create names a package. The key is registered inbuiltinComponents.tsxandregistry.ts, outside this card's surface. Retiring it is a narrowing, left for a follow-up.savedOutsideAppkeys are unused now and kept, as ordered. Retiring them is a second, narrowing PR..custompair is a listed writable package. A base with no pair is not offered./studio/~all/metadata/position/new?scope=environment. Studio's area drops?package=under the environment scope (areaLocationRedirect), so the answer was lost and Save asked again. Seat ruling A: in the environment scope, the catalog's New does not ask. It opens./new?scope=environment, and the editor's Save asks once.Verification
Read first, by risk:
ResourceListPage.tsxhandleCreate: which create asks and which goes straight through.runtime-metadata-persistence.tsresolveRuntimeCreatePackage: refused versus ask.ResourceEditPage.tsxdoSave: the ask, and the held answer.Two-minute check: boot a showcase, create one writable package, then open
/studio/~all/metadata/dashboardand press New. The dialog lists only that writable package, with nothing checked, and Continue stays disabled until it is chosen.#38206 and catalog check: open Setup → Positions and Permissions → Positions and press New. Studio's position editor opens ("Create new"), not a blank page, with no ask. Fill the name, then press Save. It asks once; Continue saves.
Screenshots (light and dark, desktop 1440 and phone 390) are in the project files under
objectstack-seat3/shots-38149/, 16 PNGs:~allleg's ask (Dashboard);#38206, live at e9cf656: Setup → Positions and Permissions → Positions loads at
/apps/com.objectstack.setup/component/security/access-directory/position?scope=environment. Continue from the then-ask reached/studio/~all/metadata/position/new?scope=environment, where Studio's position editor renders. The screenshot isobjectstack-seat3/shots-38149/38206-setup-position-new-editor.png.The catalog asks once, live at 6b589fc (after the merge of origin/main):
/studio/~all/metadata/position/new?scope=environment.com.acme.field-opsandcom.acme.partner-portal.PUT …/position/live_38149_once?mode=draft&package=com.acme.field-ops200, thenPOST …/publish?package=com.acme.field-ops200, and lands on/studio/~all/metadata/position/live_38149_once?scope=environment.38149-catalog-new-opens-editor.png,38149-catalog-save-asks-once.png,38149-catalog-saved.png.Live, on the same boot: the editor's ask on the
~allleg answeredPUT …/position/field_dispatcher?mode=draft&package=com.acme.field-ops200, thenPOST …/publish?package=com.acme.field-ops200. It landed on/studio/com.acme.field-ops/metadata/position/field_dispatcher. The read answered_packageId: com.acme.field-ops.Union test run at head 1e5b3fa: 172 files, 1410 tests, all green
cd ui && pnpm exec vitest run --maxWorkers=2over 171 affected app-shell, plugin-designer and console test files, plusscripts/__tests__/vite-declared-lazy-views.test.tsandcheck-vi-mock-inherit.test.ts. Throughos-verify-lock.sh:VERDICT command-exit 0,Test Files 172 passed (172),Tests 1410 passed (1410).scripts/family at head:Test Files 172 passed | 2 skipped (174),Tests 5144 passed | 2 skipped (5146),VERDICT command-exit 0.@object-ui/i18nexit 0 and@object-ui/plugin-designerexit 0.@object-ui/app-shell(tsc --noEmit, then the test config) exit 0, run after the source-typed fix tosameAddress-35624. The build closure--filter '@object-ui/app-shell^...' --filter '@object-ui/plugin-designer^...'ran first:VERDICT command-exit 0.pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/position-in-package-binds-outside-sets-38149.dogfood.test.ts, 4/4.test:repo, CI'sTest Core.L1-b rework (R1, R2) at head 65a8b19: affected files 23/23, ablation A5 red, 38 of 38 gates exit 0
preselect: allLeg ? null : pickedPackage). R2: the changeset's Sync sentence now says where the import door lands an object, asDatasourceResourcePage.tsx's comment does.ResourceListPage.createAsk-38149,ResourceListPage.catalogAsksOnce-38149,StudioMetadataArea.allList-29566andPackageCreateAsk-38149. Result:Test Files 4 passed (4),Tests 23 passed (23),VERDICT command-exit 0.1 failed | 7 passed (8), restored to blob == HEAD.@object-ui/app-shelltype-check:VERDICT command-exit 0, 0error TS.dispatch-gates --commandsover this round's three paths. 38 of 38 exit 0;--ran: 38 derived, 38 run, 0 NOT-MEASURED.check-nul-bytesexit 0.dispatch-gatesreports the tree 41 commits behindorigin/main. This round did not merge it, as the order did not ask for one.After the merge of origin/main, at 6b589fc (head 75fbb8d adds only the changeset line): full app-shell and console suite, 2791 files, 27655 tests, 0 failed
VERDICT command-exit 0. Totals:Test Files 2790 passed | 1 skipped (2791),Tests 27646 passed | 9 skipped (27655).@object-ui/app-shelltype-check:VERDICT command-exit 0, 0error TS.catalogAsksOnce-38149,ResourceListPage.createAsk-38149,ResourceEditPage.createAsk-38149): 13/13 green. Ablation A4: 2 failed / 8, restored to blob == HEAD.Gates after the merge, at head 75fbb8d: 71 of 71 run, every exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackwith no paths: 61 paths against merge base bd5407e. Reconciled by--ran:71 derived famil(ies) accounted for — 71 run, 0 NOT-MEASURED.pnpm --dir ui exec vitest run scripts/was OOM-killed beside a suite shard. Rerun under the lock:Test Files 172 passed | 2 skipped (174),Tests 5145 passed | 2 skipped (5147),VERDICT command-exit 0.check:dual-build-cjs-loadsanswered PREREQUISITE NOT MET (no dist for studio, client-react, scenarios). Those three were built, then it gave exit 0.check:type-check-debthit a lock queue-timeout (exit 3). Rerun under the lock:0 raw tsc error(s) total, none above its recorded number,VERDICT command-exit 0.node scripts/check-nul-bytes.mjsexit 0.Full app-shell and console suite at head 958d1c1 (before the merge): 2791 files, 27613 tests, 0 failed
cd ui && pnpm exec vitest run --maxWorkers=2 --shard=N/12 packages/app-shell/ apps/console/, N = 1 to 12, each throughos-verify-lock.sh, eachVERDICT command-exit 0.Test Files 2790 passed | 1 skipped (2791),Tests 27604 passed | 9 skipped (27613).@object-ui/app-shelltype-check (tsc --noEmit, then the test config) at 958d1c1:VERDICT command-exit 0.AccessDirectoryPage.aliasAddress-38206,AccessDirectoryPage,accessDirectory:Test Files 3 passed (3),Tests 52 passed (52).3 failed | 26 passed (29), the same three cases as CI;Gates for the #38206 round at head 958d1c1: 38 of 38 run, every exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, given this round's ten paths (git diff --name-only 1e5b3fad94 HEAD). This narrowing is declared: the first half's 71 families ran at 1e5b3fa, below. The 38 equal the list derived for the first 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206 commit alone.--ran:38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED. Each exit code is captured before any pipe: 38 of 38EXIT=0.check:test-source-aliaswas red on three retargeted files:noAppsCta, the 12848 file and the 29566 file. Each now pays@objectstack/lintat collection, and the gate is green at head.origin/mainwas merged in afterwards (merge commit b99efee, bygit merge, no rebase), on the seat's order.Gates: the derived local subset at head 1e5b3fa, 71 of 71 run, every exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, merge base 9dca109. Reconciled by--ran:71 derived famil(ies) accounted for — 71 run, 0 NOT-MEASURED.check:test-source-aliaswas red on this diff's test files. Each named file now pays@objectstack/lintand@object-ui/plugin-detailat collection.check-vi-mock-inheritnamed the create-app test's factory, which now inherits the real module. Both are green at head.check:dts-closureandcheck:dual-build-cjs-loadsfirst answered PREREQUISITE NOT MET (no full build in this tree). Both answered exit 0 at head.node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 0 anchors lost.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe