Repository navigation
feat(console): the console reads and edits forms as form items - #38484
Conversation
Setup's public forms page lists and switches form items, Studio's public form designer becomes the form type's editor (no switch: every save and publish writes the sharing stored at that moment), the form list gets its columns, and the console's own form page reads /meta/form. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxQiu6MyZ2ngLJtA5Y
…reads it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxQiu6MyZ2ngLJtA5Y
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB 席位核对 — REWORK · L1-b · area o5-ux · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u Contract reviewServed-tier: Inputs read: card #37087 (body and all 12 comments: claim 7248756424, amendment 7248849494, dev report 7251244605, release 7251253363 and addendum 7251555985, seat-5 claim 7251649959), PR #38484 body, the net diff against ① Derived judgmentsPublished packages the diff reaches:
No published export is removed or renamed, no translation key is removed, and no ② Semver level
③ Boundary flagsDev report 7251244605 has
SQL push-down: no new id materialisation or in-app join over records. The designer's early address and name checks scan the effective Findings:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u The brief the card thread handed its isolated TIER_DEFAULT reviewer for record 7251744213 (filled from Contract review brief — PR #38484 @
|
…e address clash A 409 FORM_ADDRESS_TAKEN the editor's own check missed was shown as a pending draft. Branch on the refusal's code: FORM_ADDRESS_TAKEN shows the address sentence, any other 409 still shows the pending-draft one. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nBh856nLqWBYMy29u
… read The real ActionRunner produces the Log Time URL; FormPage at that route reads GET /api/v1/meta/form/NAME, never /meta/view, renders the record and submits it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nBh856nLqWBYMy29u
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nBh856nLqWBYMy29u
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB 席位核对 — ACCEPT · L1-b · area o5-ux · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u Contract reviewServed-tier: Delta round over round-1 record 7251744213 (head ① Derived judgmentsRound 1's judgments stand. What the delta changes:
No published export or key is removed. Nothing published is narrowed. ② Semver level
③ Boundary flags
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并。第 2 个 PR(收窄、契约档 L2)在本 PR 合并后开工,和本 PR 进同一个 next 版本。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Approval requested (Tier H by size: 3,561 lines changed, over 3,000;
|
…Public Forms page is retired (objectstack-ai#38619) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Jianguo** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb7NAv1vsLzLdMX44CnW7rhy)_ Fixes objectstack-ai#37087 Fixes objectstack-ai#36444 Clause-②: yes (narrowing) — released translation keys, one Studio navigation entry and a console page are removed (listed under What changes); two `publicFormsSetup` keys are added in every locale Metadata-protocol: none Skills-docs: none — no metadata an author writes changes; the Studio page retired is a console page. ## 维护者速读 - 用户能看到什么变化:搭建者在应用搭建左侧菜单的「界面」分组里,「报表」下面多了一行「表单」,点进去是这个应用的表单列表,再点一个表单进设计器;原来「开发者 → 公开表单」那一页没有了,旧网址自动跳到表单列表;管理员在设置里打开一个公开表单时,如果地址被别的表单占着,提示会同时说出两个表单的名字。 - 为什么做:属于「表单独立成一种元数据」专题里控制台这张卡的后一半;表单已经改在应用搭建里设计、在设置里开关,旧页面读写的还是旧存法,留着会让人改到不再生效的东西。 - 出错会怎样:最坏是搭建者在菜单里找不到「表单」,或旧网址跳不到表单列表;访客匿名打开和提交表单、管理员在设置里开关表单都不经过这次改动的代码;可以整体撤回。 - 要你做什么:这次改了一份架构决策记录里的表格、删掉了已发布的翻译条目,改动也超过三千行(大多是删掉的旧页面和它的测试),需要你本人批准,请在审核通过后审批。 ## What changes Card ③ of ADR-0159, PR 2 of 2 (PR 1 was objectstack-ai#38484). The claim is 7255649193 with amendments 7255720152, 7255945859, 7256242334 and 7256905062. 1. **Forms in Studio's menu.** `form` leaves `HIDDEN_DIRECTORY_TYPES` (`metadata-admin/directoryScope.ts`), and `STUDIO_MENU_PLACEMENT` (`studio-design/studioMenuPlacement.ts`) gains `{ type: 'form', tier: 'common' }` directly after `report`: the UI group, the common tier, placed by name as the ADR-0084 amendment ruled. Being common, the row is always listed, also in a package that holds no form, and the type directory lists the type too. ADR-0084's type-to-group table gains the `form` row (`view` and `action` move to 6 and 7) and one dated note, nothing else; the table now has a row for each of the registry's 35 entries. 2. **Developer → Public Forms is retired.** The page module and its five test files are deleted. The Studio app's `nav_public_forms` entry is removed from `packages/platform-objects/src/apps/studio.app.ts`, with `apps.studio.navigation.nav_public_forms.label` in the 11 translation files and the 10 source-hash files. Both addresses of the page redirect, in one hop, to Studio's cross-package list of forms (`/studio/~all/metadata/form`): the standalone route `/apps/APP/developer/public-forms` (`AppContent.tsx`) and the component address `/apps/APP/component/developer/public-forms` (the key `developer:public-forms` stays registered in `registerDeveloperComponents.tsx`, as a redirect). The 47 keys under `console.developer.publicForms` leave `@object-ui/i18n`'s `./namespaces/developer` in every locale. Setup's navigation entry of the same id is untouched, and the three pins still assert it. 3. **Setup names both forms when an address is taken.** When the server refuses a switch-on with `409 FORM_ADDRESS_TAKEN`, the page reads the forms again, finds the form that holds the address (`publicAddressHolderOf`, which mirrors the server's `formHeldSlug` and leaves the row's own layers out) and says: "Couldn't switch Request a demo: the form “Talk to the team” already uses the same address. Give one of the two forms another address in App Studio." When two forms share a title, the holder's name follows in brackets. When the holder cannot be read, the sentence says another form holds the address. Two keys in all 11 locale files: `publicFormsSetup.refusalAddressTaken` and `publicFormsSetup.refusalAddressTakenUnknown`. Any other 409 keeps today's sentence. Removed, for the record: - Page: `ui/apps/console/src/pages/developer/PublicFormsPage.tsx`. - Tests: `PublicFormsPage.emptyPlaceholderAffordance-8504.test.tsx`, `PublicFormsPage.publicUrlBasename-11769.test.tsx`, `PublicFormsPage.redirect.test.tsx`, `PublicFormsPage.servedRule-11545.test.tsx`, `PublicFormsPage.sharedSelect-11865.test.tsx`; the `PublicFormsPage` cases in `consolePagesLocale-13460.test.tsx` and `developerMetadataEnvelope.contractEnvelope-6917.test.tsx`. - Navigation entry: `nav_public_forms` of the Studio app (component `developer:public-forms`), with its label key. - Keys: the 47 under `console.developer.publicForms` (shipped since 18.2.0). References the removal touched (claim: "only where they name the removed page"): `ui/.claude/skills/objectui-contributor/guides/console-development.md` (the pages tree, the developer routes line, one legacy-redirect line). `ui/scripts/markdown-test-inputs.mjs`, `scripts/check-ci-filter-parity.mjs` and the `ci.yml` path lists do not name the page and are not changed. Tests that enumerate the listed types, changed to add `form` only: `studioMenuPlacement.test.ts`, `studioMenuModel.test.ts`, `StudioMenu.test.tsx`. `StudioPaletteGroups.surfaceScope-36900.test.tsx` needed no change. Read first (by risk): 1. `ui/packages/app-shell/src/views/setup/publicForms.ts`, `publicAddressHolderOf`: which form is named as the holder, and which layers of the row itself are left out. 2. `ui/apps/console/src/registerDeveloperComponents.tsx` and `AppContent.tsx`, the two `<Navigate>` redirects: a bookmark of either address must land on a page. 3. `docs/adr/0084-application-builder-information-architecture.md`: the `form` row and the note. Two-minute check: `pnpm --dir ui exec vitest run apps/console/src/__tests__/publicFormsRetired-37087.test.tsx` prints 8 passed; or open `/apps/setup/developer/public-forms` in a running console and land on Studio's list of forms. ## Tests - `studioMenuPlacement.test.ts`: `form` is listed and common, directly after `report` and so directly before `view`; CONTROL `field` and `package` stay hidden; the ADR-0084 table pin now reads the `form` row. - `studioMenuModel.test.ts`: the directory rule lists `form` on a package and still drops `field` and `package`; the UI group's tiers. - `StudioMenu.test.tsx`: the row is drawn after Report above the fold with the package's list address; the count shows when the package holds forms; CONTROL no `form` served, no row. - `publicForms.test.ts`: `publicAddressHolderOf` (another form on the slug, switched on or off; the row's own base, override and package-less layers left out; nothing found) and `isAddressTakenRefusal` (status and code both required). - `PublicFormsSetupPage.test.tsx`: the refusal names the holder; equal titles add the name; holder unreadable; CONTROL another 409 keeps the old sentence. - `publicFormsRetired-37087.test.tsx` (new): each address lands on `/studio/~all/metadata/form` in one hop (a recorder logs every location), no query or fragment carried, the key stays registered by the console, the page module is gone, CONTROL the neighbouring developer route still renders. - Catalogue pins moved with the keys (claim amendment 7256905062; the pins and one comment line each, nothing else): `ui/packages/i18n/src/__tests__/developer-namespace.test.ts` (the en catalogue has 184 leaves where it had 231, so its floor of 200 becomes 150) and `de-quote-pairing-3876.test.ts` (the de pack holds 134 paired quote spans where it held 133, at both pins: the new refusal's „{{holder}}“). - Pins: `packages/platform-objects/src/apps/console-page-nav-entries.test.ts`, `packages/cli/test/console-page-nav-entries.pin.test.ts`, `packages/cli/test/connect-agent-both-halves-wire.pin.test.ts`: the Studio app serves no `nav_public_forms` and names no `developer:public-forms`; Setup serves exactly one, with `forms:public-forms`. ## Acceptance notes Driven in a browser on `examples/app-showcase` (`objectstack dev --ui --seed-admin` on its own port and data file, the console's dev server proxied to it), head `afcf5fb1` before the merge of main. Two shipped public forms: the old-shape `showcase_inquiry.contact` (served through the projection) and the `form` item `showcase_inquiry.feedback`. Every step ran on the old-shape form. | Step | Result | |---|---| | An administrator sees Public forms in Setup, an ordinary member does not | Admin: the sidebar entry and the list. A member minted through `admin/create-user` (role `member`): `/api/v1/meta/app` serves no `setup` app, and the page's address answers "Only system administrators can manage public forms." | | Both forms listed with title, object and address | Share feedback and Tell us about yourself, Inquiry, `/f/showcase-feedback` and `/f/contact-us`, both On | | Switch one off, then on | Off: `/f/contact-us` shows Page not found without signing in, `GET /api/v1/forms/contact-us` 404, submit `404 FORM_NOT_FOUND`; the row stays listed as Off. On again: the form renders and a submit answers 201 | | Edit a shipped form in Studio and publish | Title changed, Company made required, Source added: the anonymous page shows all three; a submit without Company answers `400 VALIDATION_FAILED` ("Company is required"), with it 201. Then Source removed and published: it is gone from the anonymous page | | Create a public form with four fields at a new address | Request a demo on Inquiry at `request-demo` (Name, Email, Message, Company), saved into the app's `.custom` pair, published; filled in and submitted without signing in (201, the thank-you page); the record reads back with the four values; Setup lists it | | A taken address is refused, in the designer | Editing: "The form “showcase_inquiry.feedback” already uses this address. Choose a different one." and Save draft is disabled. Creating: "Another form already uses this address. Choose a different one." and Create is disabled | | A taken address is refused, at Setup's switch-on | Request a demo, switched off, was given `/forms/contact-us` through the metadata API (a save that leaves a form closed is never refused; the designer's own check would have stopped it). Switching it on: `PUT … 409`, the switch stays off, and the message names both forms, in English and in Chinese. CONTROL: with its own address back, the same switch saves | | Removing an object-required field is refused with its reason | "“Name” cannot be removed: the object requires it, so a submission without it could not be saved." | | Off in Setup, then edited and published in Studio | The designer's save carries `sharing.enabled: false`; after the publish the address still answers 404 and takes no submission, and Setup still shows Off | | An action of type `form` opens its form | On a task, Log Time (`showcase_log_time`, target `showcase_task.form`): `GET /api/v1/meta/form/showcase_task.form` 200 twice, no `/meta/view` read, the form renders with the record | | `form` in Studio's menu | After Report in the UI group, with its count (Form 7), in English and Chinese (表单); a package with no form (Setup's) shows the row too | | The retired page's addresses | `/apps/setup/developer/public-forms`, `/apps/showcase_app/developer/public-forms` and the two `/component/developer/public-forms` addresses each land on `/studio/~all/metadata/form`, which lists the 8 forms | Screenshots (project files, `/mnt/project-files/card-37087/pr2/`): Setup's list `01-setup-public-forms-admin.png`, the member's view `02-…`, the Studio list `12-studio-form-list.png` and `24-studio-form-list-zh.png`, the editor `06-studio-form-editor-shipped.png` and `14-studio-new-form-editor.png`, the refusal `20-setup-switch-on-address-taken.png` and `21-…-zh.png`, and one per step above (24 files). The showcase does not mount the `studio` app, so the navigation entry's removal is shown by the three pins, not live. **Removed-key probe** (does a user's translation of a removed key get refused): - In a project's files: yes, and it already was. A stack that does not define `studio` and translates `apps.studio.navigation.nav_public_forms.label` gets `error translation-target-unknown`, before and after this change. A stack that owns the Studio app gets no finding while the entry is declared and the same error once it is removed, which is why the 11 translation files lose the key in this PR. - In an environment: no. A `translation` item naming the removed key, saved through the metadata API, saves and publishes with `_diagnostics.valid: true`, exactly like one naming a live Studio key or Setup's entry (three probes, then deleted). That door judges no targets today. The key then translates nothing. The changeset says so and tells the reader to delete it. - `console.developer.publicForms.*` are console catalogue keys with no metadata door: an override in a deployment's own i18next resources stops applying, as the changeset says. **Remaining hits** of `git grep -nE "formViews|viewKind: 'form'|viewKind === 'form'" -- ui ':!**/CHANGELOG.md'`: 81 lines in 34 files, none in a console surface that reads a form's definition. - `providers/MetadataProvider.tsx` and its merge test: the branch that keeps `viewKind: 'form'` items out of the list switcher, kept by the card until major 19. - The `view` editor's form arm under `metadata-admin/` (`anchors.ts`, `previews/ViewPreview.tsx`, `view-item-normalize.ts`) and its tests: it still edits a `view`, kept by the card. - Docblocks and comments only: `FormPage.tsx`, `recordFormNavigation.ts`, `SchemaForm.tsx`, `clientValidation.ts`, `registry.ts`, `freeze-schema.ts`, `imported-defaults.ts`. - Tests that pin the old shape as refused, retired or filtered (`formViewFeaturesRootRefused-6262`, the two `internalFormRetired-36425` files, `data-objectstack`'s `listViews` tests, `view-create-body`, `clientValidation.*`, the inspectors' tests), and one dated audit under `ui/docs/audits/`. - The retired page's hits are gone with the page. Not changed here, reported to the seat: - `carrier:` ADR-0159 D9's table still names the retired page and D10 still lists the menu row as owed; the weekly ADR revisions card carries both at landing (the claim keeps ADR-0159 out of this PR). - Admitted by claim amendment 7256242334 and still not changed: the `form` row of `StudioMenu.tsx`'s icon table (the menu row draws the UI group's icon), and two comments that name what this PR changes, in `services/builtinComponents.tsx` ("`form` stays out of Studio's menu") and `plugin-form/src/submitRedirect.ts` (`PublicFormsPage`). The session's permission check declined the icon-table edit twice; it was not retried, the three files are byte-equal to main, and the three items go to a follow-up. - Never admitted, and left as it is: the docblock of `ui/apps/console/src/components/submitRedirect.ts` says the Public Forms dialog calls `checkSubmitRedirectUrl` at save time; with the page gone, the only caller is `resolveSubmitRedirect` in the same file. - The designer's early clash message names the other form by its internal name, not its label (PR 1's surface). ## Verification Head `81426a31`: `origin/main` `696d02f5` merged in at `bf797ae1`, then the two catalogue pins. Changed lines 3731 (+785 / −2946, 72 files), over the 3000-line human-merge threshold; 2787 of the deleted lines are the retired page with its five test files (2248) and its 47 keys in 11 locales (539). - **Build**: `pnpm exec turbo run build --filter=!@objectstack/docs --concurrency=3` at `bf797ae1`, 123 of 123 tasks, exit 0. - **Unit tests**: the related UI suites, `@objectstack/platform-objects` `src/apps` and the two CLI pins are green at the head (readings below). - **Type checks**: `turbo run type-check` of `@object-ui/app-shell`, `@object-ui/console` and `@object-ui/i18n` (each covers its test files; 82 of 82 tasks, 53 from cache), then `typecheck` of `@objectstack/platform-objects` and `@objectstack/cli`, at the head under the verify lock: VERDICT command-exit 0. - **Gates**: `dispatch-gates --commands` derives 81 commands at the head; all 81 exit 0. `--ran`: 81 derived, 81 run, 0 NOT-MEASURED, 0 UNRUN. - **Changeset**: `check-changeset-no-major --base origin/main` and `check-adr-0087-registration --base origin/main` pass; the changeset's `adr-0087` marker is `not-required (no-migration-prescription)` (no spec schema or registered type changes, and no stored item stops parsing). - **Dogfood battery**: the full battery at the head, `pnpm --filter @objectstack/dogfood test` under the verify lock (no shard, no path), after its closure build (79 of 79 tasks): VERDICT command-exit 0 (held 1,948 s); Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68 skipped (4255); no failure, and nothing left in the tree. - **Browser**: the acceptance table above, on head `afcf5fb1` (the tree before the merge of main and the two pins; main brought no `ui/` or `examples/` change). - **Overlap**: `overlap-check` at the head, against `origin/main` `48da7161` and the open PRs that share a file: main merges cleanly; objectstack-ai#38612 (the 11 locale files) merges cleanly; objectstack-ai#38598 (the retirement of `/studio/~org`) conflicts in `studioMenuModel.test.ts`, on two neighbouring lines of one expectation (its `automation` row loses `orgFlows`, this PR's `ui` row gains `type:form`). Verdict exit 1: this PR queues behind objectstack-ai#38598. <details><summary>Unit test readings</summary> - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n packages/app-shell/src/views/studio-design packages/app-shell/src/views/setup packages/app-shell/src/views/metadata-admin apps/console/src/__tests__ apps/console/src/pages/developer` at `bf797ae1`: Test Files 2 failed, 1324 passed (1326); Tests 3 failed, 14645 passed, 14 skipped (14662). The three reds were two catalogue pins this branch moves: `developer-namespace.test.ts` (the en catalogue's floor of 200 leaves; 231 became 184 with the 47 keys gone, floor now 150) and `de-quote-pairing-3876.test.ts` (the de pack's paired quote spans, 133 became 134 with the new refusal's „{{holder}}“, at both pins). Claim amendment 7256905062 admits the two files. - After the pins moved: those two files and `packages/app-shell/src/__tests__/product-neutral-renderer.ratchet.test.ts`, 3 files, 83 passed. - `pnpm --filter @objectstack/platform-objects exec vitest run src/apps`: 42 files, 885 passed. - `pnpm --filter @objectstack/cli exec vitest run test/console-page-nav-entries.pin.test.ts test/connect-agent-both-halves-wire.pin.test.ts`: 2 files, 6 passed. The CLI reads `@objectstack/platform-objects/apps` from `dist`: before that package was rebuilt, both new assertions were red on the old build (the Studio app still served `nav_public_forms`). - `pnpm --dir ui exec vitest run scripts/` (in the derived list): 172 files passed, 2 skipped; 5159 tests passed. </details> <details><summary>Gate notes</summary> - `node scripts/check-plugin-teardown-shape.mjs --self-test` exits 3 on a shallow clone until its pinned fixture commit is fetched (`git fetch --depth=1 origin 621a487`); then 48 cases pass. - An earlier loop at `bf797ae1` recorded `vitest run scripts/` and `check:type-check-debt` as NOT MEASURED (the verify lock was held by this thread's own unit run). The loop reported above is the second one, at the head, with nothing else holding the lock. - Beside the derived list, from `ui/`: `check:i18n-keys`, `check:i18n-drift`, `check:i18n-dead-keys`, `check:spec-symbols`, `check:new-line-citations` and `check:skill-examples`, exit 0 each. </details> <details><summary>Ablations (four, one behaviour each)</summary> Run at the head through `scripts/ablation-replace.mjs` under os-verify-lock; each anchor hit once, each mutation was verified on disk, and each restore ended with the file's blob equal to HEAD and `git diff HEAD` empty. Expected direction was red for each, and each went red. | Mutation | Run | Result | |---|---|---| | `directoryScope.ts`: `form` back in `HIDDEN_DIRECTORY_TYPES` | `studioMenuPlacement.test.ts`, `studioMenuModel.test.ts`, `StudioMenu.test.tsx` | 3 files failed; 10 failed, 97 passed of 107. Red: the directory rule, the rows-equal-listable-types check, the `form` placement, the ADR table pin, the always-listed row and the three `form` menu cases | | `PublicFormsSetupPage.tsx`: the `isAddressTakenRefusal` branch never taken | `PublicFormsSetupPage.test.tsx` | 3 failed, 9 passed of 12. Red: both forms named, equal titles, holder unreadable. The CONTROL (another 409) stayed green | | `AppContent.tsx`: the `developer/public-forms` route deleted | `publicFormsRetired-37087.test.tsx` | 4 failed, 4 passed of 8. Red: the three standalone-route cases and the no-query case. The component address, the registration, the page-gone check and the CONTROL stayed green | | `registerDeveloperComponents.tsx`: the registered component renders nothing | same file | 2 failed, 6 passed of 8. Red: the component address and the no-query case | Restored baseline: the five files, 127 passed. </details> ## Owed before landing - The contract review (L2), then the seat's L1. - The maintainer's approval (Tier H: `docs/adr/**`, `ui/.claude/**`, the narrowing, and 3731 changed lines). - The queue behind objectstack-ai#38598: the two PRs conflict on one expectation of `studioMenuModel.test.ts`. Whichever lands second merges main and keeps both edits (the `automation` row without `orgFlows`, the `ui` row with `type:form`). - A dogfood battery from the landing head. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB --------- Co-authored-by: Claude <noreply@anthropic.com>
… at boot (objectstack-ai#38682) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ844kETyNGBBt9atKc1Snfzd)_ Part of objectstack-ai#37444 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:看不到界面变化。打开 Console 的每一页时,首屏不再提前下载 Studio 的翻译包(约 82 KiB);表单列表的「开/关」文字在打开 Studio 列表时才加载。 - 为什么做:objectstack-ai#38484 之后,表单列表的列定义在启动时就静态引入了 Studio 翻译模块,把 objectstack-ai#38429 已经挪出首屏的翻译包又带了回来(objectstack-ai#37444 的固定对照测量发现,评论 7264938326)。 - 效果:首屏少下载 82 KiB;但复测对象列表 LCP 只快 15 ms(p 0.54,误差内),仍比 2500 ms 超约 68 ms。所以本 PR 修掉回退,不关卡;列表剩下的差距在渲染 CPU,归 objectstack-ai#37575。 - 出错会怎样:最坏是表单列表「开/关」一栏首次显示时晚一帧;可直接撤回。 - 要你做的:无。发布冻结期保持 draft。 ## What changes - `ui/packages/app-shell/src/views/studio-design/publicForm/formListColumns.tsx` no longer imports `../../metadata-admin/i18n.js` statically. The form list's On cell loads the designer string table with `React.lazy` on first draw; the Studio list has already loaded that module by then, so it resolves at once. - `services/builtinComponents.tsx` still registers `FORM_LIST_COLUMNS` at boot, but the boot closure no longer reaches the metadata-admin i18n module, so the built Console's `index.html` no longer preloads `i18n-ns-studio-en` (70.8 KiB) or the metadata-admin i18n chunk (10.3 KiB): 134 modulepreloads, list 229 → 225 scripts before LCP. - Pin: `ui/packages/app-shell/src/services/__tests__/builtinComponents.formListWordsOffBoot-37444.test.tsx` — (1) the walk sees the edge it guards (ResourceListPage reaches the designer table); (2) `builtinComponents.tsx` reaches no designer table through static imports; (3) the On cell renders "On"/"Off" after the lazy load. - Changeset: patch, `@object-ui/app-shell`. ## Tests Head `e1bbe0b8` (reworded to `394a0455` for the commit-trailer check; identical tree): - Under the lock: the new pin plus `studio-design/publicForm` and `firstScreenStudioCatalogue-37444`: 4 files, 54/54 passed; `ui scripts/__tests__/check-i18n-call-site-keys.test.ts`: 152/152 passed. - Ablation (`scripts/ablation-replace.mjs`): a static `import { t } from '../../metadata-admin/i18n.js'` put back into `formListColumns.tsx` turns case 2 red (1 failed, 2 passed); restored, blob == HEAD. - `pnpm --filter @object-ui/app-shell type-check`: exit 0. `pnpm console:build`: exit 0; `index.html` has no `i18n-ns-studio` or metadata-admin i18n chunk. - Browser, branch production build: `/_console/studio/~all/metadata/form` shows "On" for `showcase_inquiry.contact` and `showcase_inquiry.feedback`. ## Measurement (production build, HTTP/2, Lighthouse desktop, ruling conditions) One session, arms branch / base `f5da514b` / control `1afd9c13`, 20 runs per arm per page; control list 2535.1 ms, inside the pre-set band, so scored; no block discarded. | page | branch | base | branch − base | |:--|--:|--:|--:| | object list | 2568.4 | 2583.4 | −15.0 ms (p 0.54, 95% CI −60…+71) | | record | 2446.9 | 2434.3 | +12.7 ms (p 0.81) | The cut restores the bytes but has no measurable LCP effect; the done-when stays unmet on the list. Readings and instrument: project folder `card-37444/a-measure/recut/`; report comment 7266607998 on objectstack-ai#37444. ## Verification - `dispatch-gates --commands`: 38 derived, 38 run, all exit 0 (`ui scripts/` vitest re-run with `--maxWorkers=2` after an OOM kill while measurement servers were up: 172 passed, 2 skipped). `--ran`: 0 NOT-MEASURED. - `overlap-check.mjs`: clean against origin/main; `git merge-tree` against origin/main at push: clean. - CI check-runs: read on this PR. Files to read first: `formListColumns.tsx` (the lazy On cell). Two-minute check: open Studio → Forms list; the On column reads "On"/"Off". 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JQwxbamiNxp7695qyaEYsH <!-- signed: repo:objectstack#2 · os-warren · session_01JQwxbamiNxp7695qyaEYsH --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…s five records) (objectstack-ai#38774) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_ Part of objectstack-ai#38438 Clause-②: no Metadata-protocol: none This pull request carries seven of the card's nine rows. The two ADR-0161 rows stay on the card; see "Rows not carried". ## 维护者速读 - 用户能看到什么变化:用户无感;只在五份设计记录里补了七条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。 - 为什么做:属于「每周设计记录修订」滚动清单(11 月 29 日这一周);清单每一行指出一处「记录写的和主线不一致」或「记录留给某项工作回答、那项工作已经做完」,这次把代码已在主线的七行一并补齐。 - 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。 - 要你做什么:请审这七条说明并批准一次(设计记录须由你本人批)。 ## What changes Five ADR files gain seven notes dated 2026-11-30. Every diff line is an addition: 62 lines added, 0 removed. No original decision text is rewritten, and no decision changes. Each note follows the note convention its own record already uses, and each says that the passage it is read with is left as written. Each row's "what is true now" was read against the code on `main` before its note was written. Where a row's wording did not match the tree, the note says what `main` does; the last column says so and the list under the table gives the detail. | ADR · section | Was (the record's words) | Now (what the note records) | Source PR | Row on the card · result | |:---|:---|:---|:---|:---| | ADR-0084 · amendment of 2026-11-28, item (3) | "one landing for every door is not ruled"; the command palette's package entries, an app's design-in-Studio entry, the empty menu's entry and Setup's doors "still open the object list" | One landing is ruled: ruling record 7247357556 on objectstack-ai#37958, the maintainer's 「OK」, quoted with its question. Every door lands on the package's overview, `/studio/PACKAGE/overview`. `/studio/PACKAGE/data` stays a working address for the object list. The review-changes deep link still opens the Changes drawer over the object list and is read as no door, by a seat reading and not by a ruling | objectstack-ai#38501 | Card body row and 7252442785 · **written, corrected to the tree** (two labels, the date) | | ADR-0084 · the note of 2026-11-29 on the `form` row (near line 219) | "The same change takes the type off the directory's hidden types and brings its designer" | True of card objectstack-ai#37087, loose for the change: objectstack-ai#38484 brought the designer, and objectstack-ai#38619, which wrote the row, lists the type (off the hidden types, a place in the menu) | objectstack-ai#38484, objectstack-ai#38619 | 7258423977 · **written as an added note** (the row says "Reword") | | ADR-0037 · TL;DR item 2 and the "What already exists" table | "the streaming build tree (`data-build-progress` parts)", and a table row that marks "`data-build-progress` stream parts" shipped | The build-progress stream frame is retired. Its reader left with the build chat frontend, its producer with the cloud build loop, and its declaration left `@objectstack/spec/ai`. The upgrade guidance is the migration entry `ai-build-progress-frame-retired` | objectstack-ai#38398 (reader: objectstack-ai#37720) | 7250363289 · **written** (one sentence beyond the row) | | ADR-0150 · the note of 2026-11-26, bullet "Reads stay the missing name" | "Three reads at `_env` still answer `409` at this head (`?state=draft`, `?preview=draft`, `?layers=true`), and card objectstack-ai#34261 carries their move to `404`." | The move has landed. For a name only disabled packages hold, each of the three answers its own `404` and names no package, on both transports. An enabled package's stored draft that the plain read does not see keeps the `409` for the two draft reads | objectstack-ai#38633 | 7259890438 · **written, corrected to the tree** (codes and callers made exact) | | ADR-0150 · D4, the engine's flow-map row | The table keys the engine's flow map by `(package, name)` and says nothing of the status rows read from it | Each status row carries the `packageId` of the engine slot it reads, so `(packageId, name)` names one row. The toggle door reads back the row of the slot it switched, and echoes the request only where the reading cannot name that flow | objectstack-ai#38652 | 7266385586 · **written** | | ADR-0085 · the note of 2026-11-27 | "Neither key is in the spec yet: `ObjectSchema` is strict and refuses both until objectstack-ai#37792 lands `pinOverview` and objectstack-ai#37802 lands `fieldTabs`." | `pinOverview` is in the spec, an optional boolean on `ObjectSchema`; `false` means the desktop full record page never pins. An object extension does not carry the key. `fieldTabs` is still refused | objectstack-ai#38679 | 7271302663 · **written**, no `fieldTabs` line | | ADR-0146 · the note of 2026-11-24 (near line 908) | "A `.custom` package that is not the object's pair is not applied, and the boot log names it." | Maintainer ruling 7268226134 on objectstack-ai#36548, item 5, arm (c), verbatim 「保存和安装都拒绝」. A non-pair `.custom` package that writes `fieldGroups`, `relatedLists` or `actionLayout` on an object extension is refused at the save, the restore, the draft promotion, a package duplicate and marketplace install. Where no door can read the installed packages, the sentence stands | objectstack-ai#38706 | 7272564306 · **written, corrected to the tree** (statuses; the duplicate's answer corrected in patch round 1) | ### Rows not carried - **ADR-0161, two rows** (Consequences, "The service keeps none of its own"; K7 components table, "Split algorithm version"). The claim for this pull request leaves that file out, because pull request objectstack-ai#38764 was open on the same record when the claim was written. objectstack-ai#38764 merged at 2026-11-30T13:15:16Z, while this branch was being verified, and the prerequisites both rows name (objectstack-ai#38307, objectstack-ai#38401, objectstack-ai#38375, objectstack-ai#38452) are merged. Pull requests objectstack-ai#38730 and objectstack-ai#38732 (card objectstack-ai#38692) are still open and both write ADR-0161, so that record still has other writers. By the seat's call on the card (comment 7280598106) the two rows stay on objectstack-ai#38438 behind them, and this pull request is `Part of objectstack-ai#38438`. - **ADR-0085, a `fieldTabs` line.** Its pull request, objectstack-ai#38742, was open and a draft when this was opened (read at 2026-11-30, head `59220bf331`). The card says that line follows when it merges. Every prerequisite of the seven rows is merged on `main`: objectstack-ai#38398, objectstack-ai#38501, objectstack-ai#38484, objectstack-ai#38619, objectstack-ai#38633, objectstack-ai#38652, objectstack-ai#38679 and objectstack-ai#38706. The newest comment on the card when this was opened is the claim, 7279134045; a row added after it is not in this pull request. ### Where a note differs from its row - **ADR-0084, item (3).** The row names Setup's doors "Open in Studio" and "Customize in Studio". The labels on `main` are "Open in App Studio" and "Customize in App Studio", and the note uses them. The proposed text was dated 2026-11-29; the note is dated 2026-11-30, the day it was written into the record. The note names the three Setup doors one by one and says of the review-changes deep link what the row says: no door, by a seat reading, not by a ruling. - **ADR-0084, the `form` row.** The row says "Reword". The card's rule is that a row lands as an added dated note, so the 2026-11-29 note stays as written and a note under it says which pull request did which half. - **ADR-0037.** One sentence goes beyond the row: Phase 2's first invalidation source, the `buildProgress.items` diffs, was the same signal as the chat held it, and no code under `ui/` holds it any more. Cut it if the note should carry the row alone. The note also names the producer's retirement in the cloud repository and what a host does that still streams a progress part of its own. - **ADR-0150, the reads.** The row's proposed sentence gives `404` for `?preview=draft` and `?layers=true`. The note gives the code the tree answers, `404 RESOURCE_NOT_FOUND`, says that these are the answers to a caller admitted to the switch, and that a caller who is not admitted gets the plain read's `404`. It adds two facts from the tree: a package-less draft is withheld while a disabled package holds the name, and the layered view answers `404` under the leak guard. - **ADR-0150, D4.** The note spells out the three cases where the toggle door still echoes the request. The row's proposed sentence leaves them out. - **ADR-0085.** The row offers a "Built by" line in the style of an earlier note. The note carries it and also restates what `false` does and why an object extension does not carry the key, both from the row's own "what is true now". - **ADR-0146.** The row gives one code for every door. The tree answers `VALIDATION_ERROR` with status 400 at the save, the restore and the draft promotion, and with status 422 at marketplace install, with nothing installed. A package duplicate saves each copied row through the save door and lists a refused row in its own `failed[]`, with the save door's sentence and no code, storing nothing for that row. The note says all three, and that no error code is minted. ## Patch round 1 (head `04cc5911`) The contract review at `947b7e64` (comment 7280965486) passed with one should-fix: the ADR-0146 note put `VALIDATION_ERROR` / 400 on the package duplicate. Commit `04cc5911` corrects this branch's own 2026-11-30 note to the tree (`duplicatePackage` reports the refused row in `failed[]`) and adds one sentence from item 3 of ruling 7268226134 (a target whose owner the door does not know is not judged by role). Only that note moves: +9 / -3 inside it, and the branch is still +62 / -0 against `main`. Dev report: card comment 7281379369. Sections below that name `947b7e64` record the first round. ## Tests Docs only. No package source is touched, so no package test and no type check is owed for the change. No tested behaviour changed, so there is no ablation. Checked on the committed text at `947b7e64`: - Each phrase a note quotes from its ADR is in that file as it stands on `main`. A script compared them. One quotation, in the ADR-0085 note, reads as the sentence renders: the record links its two card references and the quotation does not. - Each verbatim maintainer quotation was compared with its record on GitHub (7247357556 and 7268226134). - Each path a note cites exists on the tree. The one exception is deliberate: the ADR-0037 note names `packages/spec/src/ai/build-progress.zod.ts` to say that the module is gone. - Each test title a note quotes is in the test file the note names. - A probe on the spec source: `ObjectSchema` accepts `pinOverview: false`, refuses `pinOverview: "no"`, and refuses `fieldTabs` as an unrecognised key; `ObjectExtensionSchema` refuses `pinOverview` as an unrecognised key, with its guidance. - Upstream moved four commits while this was written. The branch merges `main` at `f576dee5`; none of the four touches one of the five files or a path a note cites. `overlap-check` answers `VERDICT clean exit 0` against that `main`, and no open pull request shares a file with this branch. Two tests read these records from disk. Both were run on `947b7e64` under the verify lock, after building what each needs: - `ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts` reads ADR-0084's type table: `Test Files 1 passed (1)`, `Tests 21 passed (21)`. - `packages/qa/scenarios/test/score/entry.test.ts` reads ADR-0150's D1 table: `Test Files 1 passed (1)`, `Tests 14 passed (14)`. Its first run answered `Failed to resolve entry for package "@objectstack/types"`, a missing build in the fresh worktree and no verdict on this change; it passed once that package's build closure was built. The local gate set is the `dispatch-gates --commands` derivation for this change set, 21 commands, run on commit `947b7e64` (patch round 1 ran the same 21 on `04cc5911`, all exit 0). Each exit code was captured before any pipe. Reconciliation: `Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN`. The same 21 were derived and run on the commit before the merge, with the same result. <details><summary>ADR gates on 947b7e6 (all exit 0)</summary> | Command | Exit | Verdict line | |:---|:---|:---| | `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4597 anchors across 165 records resolve`, 0 line anchors survive. On the base commit the gate read 4570, and 4593 with this change alone; the other four come with `main`. | | `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284 relative link destination(s) under docs/adr/ resolve` | | `node scripts/check-adr-links.mjs --self-test` | 0 | | | `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored file(s), every governing ADR still referenced` | | `pnpm check:adr-index` | 0 | `adr-index --report: OK — docs/adr/README.md is current, every record parsed` | | `pnpm check:doc-authoring` | 0 | | | `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29015 text file(s)`, no raw control bytes | | `pnpm check:closed-ceremony-text` | 0 | | | `pnpm check:pm-governed-merges` | 0 | | | `pnpm --filter @objectstack/lint run check:doc-formula-expressions` | 0 | run after building `@objectstack/spec`, `@objectstack/formula` and `@objectstack/lint` under the verify lock | </details> <details><summary>The other derived families on 947b7e6 (all exit 0)</summary> `node scripts/check-closing-keyword-parity.mjs` and its `--self-test`, `node scripts/check-comment-mask-corpus.mjs`, `node scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm check:pm-prior-rulings`, `pnpm check:refd-timer-probe`, `pnpm check:watch-hint-literal`. Before the last push: `node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD` exit 0, two commit messages (three after patch round 1, also exit 0), no card relation and no model identifier in the trailer pair. </details> <details><summary>A local-only reading that is red for a reason outside this change</summary> `pnpm check:dev-prereqs` exits 1 in this worktree: "The workspace is not built", 105 of 110 workspace packages have no build output. It judges the machine and not the diff, CI does not run its scan, and a fresh worktree that builds only what a docs change needs reads this way. It is not in the derived list. </details> Not run locally: the repository test project behind `test:repo`, and every package suite. CI runs them on the pull request and on the merge group. Every other family CI runs is read from this pull request's check runs, not re-run here. ## Acceptance notes - **Changeset.** None, and the pull request carries `skip-changeset`. `docs/adr/**` ships in no package. - **Governed surface.** `docs/adr/**` lands on the maintainer's approval. This pull request stays a draft; the seat arranges the review at the tier this surface owes and hands it over. - **Why "Part of".** The card says it ends when its pull request merges. Two of its rows are not here, so merging this one must leave the card open. - **Seen and left alone.** These are outside the seven rows and are not changed here. - ADR-0037's Status line says all four phases are implemented. On this tree the console's canvas-invalidate signal has a subscriber and no publisher: nothing calls the bus function that emits it. It is a candidate row for the card of this name. - ADR-0150's D4 note of 2026-11-10 gives its own end condition, an earlier card landing. That card ended on 2026-11-12, and the record carries no line that says so. A possible row; not judged here. - Comments in the chat plugin still name the retired build-progress part, and one test fixture uses the name as an open `data-` part. Not a record, so not a row. ## Verification ### Read first 1. `docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`, the note of 2026-11-30 under the note of 2026-11-24. The highest-risk hunk: it quotes a maintainer ruling, and it draws the line between the doors that refuse and the places where the old sentence still stands. Check the two statuses and the list of places with no door. 2. `docs/adr/0084-application-builder-information-architecture.md`, the amendment of 2026-11-30 under the amendment of 2026-11-28. It quotes a maintainer ruling and lists every door; check the list, and the sentence on the review-changes deep link, which records a seat reading and says so. 3. `docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`, the first amendment note of 2026-11-30. Check the three answers, who gets which, and the leak-guard paragraph against the tests it names. ### Two-minute check Run `git diff --numstat origin/main...HEAD` on this branch. Expect five rows under `docs/adr/`, each with `0` in the removed column, and 62 added lines in total (2, 4, 18, 28 and 10). Then run `pnpm check:adr-symbol-anchors` and expect exit 0 with a line that contains `anchors across 165 records resolve`. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_ <!-- signed: repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Part of #37087
Clause-②: yes
Metadata-protocol: none
Skills-docs: none — no metadata an author writes changes; the console reads and writes the
formtype card ② added.维护者速读
…/metadata/form/表单名)就是表单设计器,能改字段、必填、分组、标题、地址和提交后的提示,存草稿再发布;控制台自己的表单页改读表单类型。表单类型暂不进 Studio 菜单(下一张 PR)。form元数据,控制台要改读改写它,后面才能退役开发者页的公开表单页。What changes
ADR-0159 D9 for the console, card ③ PR 1 of 2 (the seat's claim 7248756424, amendment 7248849494). Every console surface here reads and writes the
formtype; the server's projection (ADR-0159 D5, completed by #38453) serves an old-shape form there too.ui/packages/app-shell/src/views/setup/): the list read isGET /meta/form; the row reader takes theformitem itself (noviewKindfilter, noconfighop). The two layered reads, the save paths, the reset and the override save nameform. A switch savesauthorableForm(effective)withsharing.enabledset: the read's_keys and the old shape'sdataare left out, sinceFormSchemarefusesdata. The shipped-off judgement reads the app's own document from theformlayered read'scodewith the spec'sformExplicitlyWithdraws(ADR-0159 D6 rule 6). A row whose app document cannot be read (code: null) is shown as status unknown and offers no switch.formeditor (studio-design/publicForm/):publicFormDesign.tsreads and writes the top-level body.PublicFormsDesigner.tsxnow holdsFormItemEditor, which edits one form, andFormItemPage, registered as theformtype'sEditPageandCreatePage. It has no switch:storedNowreadssharing.enabledandsharing.allowAnonymousagain at every save and publish, and a draft whose sharing differs is saved again before it is published. A form an installed app ships is saved as a declared override in the app's.custompair. A form with no public link (one an action opens) is edited without an address. The new-name and address checks read the effectiveformlist plusformdrafts. The designer's own list and the Form-tab switch from feat(studio): design an object's public forms in Studio's Form tab #36784 are not carried over.formListColumns.tsx; theformresource is registered inservices/builtinComponents.tsxbeside the other lazy editor pages, sometadata-admin/registry.tsstays free of side effects): name (showstitlewhen there is nolabel), label, object, public address and status./meta/typesserves no list layout forform, so these are the client's ownlistColumns.formstays out of Studio's menu.FormPage(ui/apps/console/src/components/FormPage.tsx): the internal route readsGET /api/v1/meta/form/NAME. The anonymous route is unchanged.engine.studio.publicForms.*andengine.list.col.publicAddress/publicStatekeys in./namespaces/studio(en, zh). This PR removes no key.Outside the claimed file surface (reported to the seat):
ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx: one branch, so that aformitem in a package's Studio area opensFormItemPagewith the area'scustomization,publishNonceandonDraftSaved. Only the area's surface holds a read-only base's customization. Without it, an installed app's form could not be saved as its override.ui/packages/app-shell/src/services/builtinComponents.tsx: theformresource's registration (listColumns, lazyEditPage/CreatePage). The claim namedmetadata-admin/registry.ts, but a registration there makes that module side-effectful andcheck-side-effects-arrayrefuses it; every other editor page registers here.ui/packages/app-shell/src/views/runtime-metadata-persistence.ts:RuntimeArtifactTypegains'form', and aformsave invalidates the view caches the way aviewsave does, because Setup's switch goes throughsaveAndPublishInPackage('form', …).Read first (by risk):
studio-design/publicForm/PublicFormsDesigner.tsx,storedNow,saveandpublish: the no-switch rule.setup/publicForms.ts,switchPublicForm/authorableForm/markShippedOff: the body a switch writes over an old-shape form.studio-design/publicForm/publicFormDesign.ts,publicFormItemOf: what is kept, and what is dropped (data,viewKind,config,_keys).Tests
publicFormDesign.test.ts(29): the top-level body both ways; a new form passesFormSchema.safeParse; an old-shape projected item is written back withoutdataor_formDefinedIn; sharing is written as read (off stays off, an unchanged address keeps the storedpublicLink, a changed one becomes/forms/SLUG); a form with no public link;isPublicFormItem.PublicFormsDesigner.test.tsx(14, the feat(studio): design an object's public forms in Studio's Form tab #36784 tests re-pointed to theformshape): create, taken address and name, delete, the no-switch rule at save and at publish, the publish re-save of a draft whose sharing differs, reads that fail, a form with no public link, an old-shape save withoutdata. Every write is asserted as typeformwith a bodyFormSchemaaccepts.setup/publicForms.test.ts,PublicFormsSetupPage.test.tsx: the list read and both layered reads areform; the shipped-off judgement from theformlayeredcode; a row whose app document cannot be read is status unknown with no switch; a switch over an old-shape row writes nodata.FormPage.*(about 30 files): the internal route reads/meta/form/NAME; the fixtures moved to the top-level body.PublicFormsDesigner.test.tsx(+2, head48a01c7ff7, L2 S2): "shows the server's address refusal its own check missed (409 FORM_ADDRESS_TAKEN) as the address clash, at save and at publish" and "CONTROL: shows any other 409 as a pending draft". Ablation (theFORM_ADDRESS_TAKENbranch deleted): 1 failed, 15 passed, the failure is the address case (received the pending-draft sentence), the CONTROL stayed green; restored to the HEAD blob.FormPage.recordObject.test.tsx(+1, L2 S3): "Log Time on a task: /meta/form/NAME is read, the form renders the record, and the submit writes it". The realActionRunnerruns{type:'form', target:'showcase_task.edit'}with record 42; FormPage reads exactly one/api/v1/meta/form/showcase_task.editand no/meta/view, renders the record and PATCHes/data/showcase_task/42.Acceptance notes
409 FORM_ADDRESS_TAKEN) still shows one sentence that does not name the form holding the address: naming it needs a new key in all 11 locale files, outside this surface. Carrier: PR 2 of Console reads and editsformitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087, under claim amendment 7251711074 (card item 1, "shows the refusal with both names"; L2 S1, L1 R2).48a01c7ff7and pinned by a test (see Verification, L2 S3).Remaining
formViews/viewKind: 'form'hits underui/Docblocks only in
FormPage.tsx,recordFormNavigation.ts,SchemaForm.tsx,clientValidation.ts,registry.ts,view-item-normalize.ts,freeze-schema.tsandimported-defaults.ts; the view editor's own form arm (anchors.ts,ViewPreview.tsx,view-item-normalize.ts), which still edits aview;MetadataProvider.tsx, kept on purpose for packages that still ship forms inviews:; and the developerPublicFormsPage, which PR 2 retires.Verification
ConditionWidget.conditionScope,studio-design/publicForm,StudioMetadataArea.*,views/setupandruntime-metadata-persistence.*: 35 files, 458 passed. An earlier run of all ofviews/metadata-admin,views/studio-designandviews/setupwas red only on the conditionScope exhaustiveness check, whileformwas registered inregistry.ts; moving the registration fixed it (the targeted run above). Alsopackages/i18nplus the console'ssrc/componentsand the two form-page tests insrc/__tests__: 173 files, 2618 passed, 13 skipped.@object-ui/consoletype-checkexit 0 (after building its dependencies).dispatch-gates --commandsderived 28 families, each run and recorded;--ranreconciles 28 derived, 28 run, 0 NOT-MEASURED.pnpm --dir ui exec vitest run scripts/was killed by memory (SIGKILL, exit 1) while a build ran beside it; run again alone it exits 0, recorded as an extra line.examples/app-showcase,objectstack dev, console dev server, signed in as the seeded admin):formitems, both on. Switching Contact off makesGET /forms/contact-usand its submit answer 404; switching it on again answers 200.showcase_inquiry.contactat/studio/com.example.showcase/metadata/form/showcase_inquiry.contact. Removingmessageis refused (the object requires it). Addingsourceas required, removingcompanyand retitling, then save and publish: the anonymous form serves the new title and fields, a submit withoutsourceanswers400 VALIDATION_FAILED, with it201..custompair, published, and opens and accepts a submit (201).formlist shows the label/title, name, object, address and status columns./mnt/project-files/card-37087/pr1-dogfood/(seat 3's project files).48a01c7ff7(L2 S2 and S3; the designer's 409 mapping, two tests, one changeset sentence):PublicFormsDesigner.test.tsx,publicFormDesign.test.tsandFormPage.recordObject.test.tsx3 files, 55 passed;@object-ui/app-shelland@object-ui/consoletype-checkexit 0;pnpm --dir ui exec vitest run scripts/172 passed, 2 skipped. The server's refusal (formAddressClashRefusal,packages/metadata-protocol/src/protocol-form-writes.ts) carries status 409 and codeFORM_ADDRESS_TAKENand names the holder only in its prose, so the editor maps the code to the shippedaddressTakenkey (no structured holder foraddressTakenBy; no key added).48a01c7ff7,examples/app-showcase): on task "Build homepage", the header action Log Time (showcase_log_time, typeform, targetshowcase_task.form) navigates to/apps/com.example.showcase/forms/showcase_task.form?recordId=…&recordObject=showcase_task;GET /api/v1/meta/form/showcase_task.formanswers 200 and no/meta/view/NAMEis read; the form renders prefilled; Submit sendsPATCH /api/v1/data/showcase_task/…200 and the record reads the new title. Screenshots and the network log:/mnt/project-files/card-37087/pr1-dogfood/s3-*.png,s3-network.json; the live 409 envelope:s2-envelope-probe.txt(project files of the seat 5 project).pnpm --filter @objectstack/dogfood testunder os-verify-lock, closure built as CI does, no shard, no path): headd5581291b6· VERDICT exit 0 · Test Files 495 passed, 3 skipped (498) · Tests 4183 passed, 68 skipped (4251) · failures: none. The head moved since by the patch round's fourui/files and the changeset only; none is in the dogfood closure.Ablation of the no-switch rule (L1-b R1, card Done-when "ablate: build the designer's save from the base's body")
Measured at head
d5581291b6, in a throwaway detached worktree, throughscripts/ablation-replace.mjs(HEAD-blob restore with hash check), from theui/root under os-verify-lock:pnpm exec vitest run --maxWorkers=2 --reporter=verbose packages/app-shell/src/views/studio-design/publicForm/PublicFormsDesigner.test.tsx packages/app-shell/src/views/studio-design/publicForm/publicFormDesign.test.ts.PublicFormsDesigner.tsx, the single point where bothsaveandpublishread the sharing throughstoredNow): the sharing is taken from the body as it was opened,form.base.sharing, before the effective, draft and code layers.PublicFormsDesigner.test.tsx:376,expected true to be falseonsharing.enabled; the save leg);PublicFormsDesigner.test.tsx:425, the publish-time re-save carrying the switched-off sharing never happened; the publish leg).publicFormDesign.test.tsstayed 29/29, as expected (publicFormItemOfwrites whatever sharing it is handed).0e7cb3887bequals HEAD,git diff HEADempty, 43/43 green again.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibxQiu6MyZ2ngLJtA5Y