Repository navigation
feat(console)!: forms are listed in Studio's menu, and the Developer Public Forms page is retired - #38619
feat(console)!: forms are listed in Studio's menu, and the Developer Public Forms page is retired#38619objectstack-fleet[bot] wants to merge 8 commits into
Conversation
The `form` type leaves the directory's hidden types and gains its menu row: under UI, in the common tier, last of the group's common types and so directly before `view`. ADR-0084's type-to-group table gains the row the placement pin reads, with `view` and `action` one place later. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
Switching a public form on while another form holds its address is refused by the server. Setup now reads the environment's forms again, finds the holder by the server's own rule, and says both names: the form being switched on and the form that holds the address. With no holder read it says another form holds the address. Two new sentences in every locale. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
A public form is a `form` item: designed in Studio's form editor and switched on or off in Setup's Public forms page. The console's Developer page that listed and edited public forms as views is removed with its tests and its `console.developer.publicForms.*` strings, and Studio's Developer group no longer names it. Both of the page's addresses redirect to Studio's list of forms. Setup's entry of the same id stays, and the three navigation pins assert it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
Read live, the unquoted title ran into the sentence around it. The changeset records what the environment's translation door does with a removed key. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
…d removes The developer namespace holds 184 leaves once the Public Forms keys are gone, and the de pack gains one paired quote span with the new refusal. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB
📓 Docs Drift Check11 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c87393a0b3d82769ed1f64e540cf1dd65e85dd4b && git checkout c87393a0b3d82769ed1f64e540cf1dd65e85dd4b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 48da71613b8b6c3e9c12da1c7b3e149c9d1d644c 81426a31136bafa5fd4fc6a5ea8828f3e767c5a5 && git checkout -B drift-repro 48da71613b8b6c3e9c12da1c7b3e149c9d1d644c && git merge --no-ff 81426a31136bafa5fd4fc6a5ea8828f3e767c5a5
node scripts/docs-audit/affected-docs.mjs --json 48da71613b8b6c3e9c12da1c7b3e149c9d1d644c |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract-tier review (rules face on the ADR-0084 row and the ui contributor guide, and the declared narrowing over every path outside the prose faces) at this head by an isolated sub-agent of seat 1's L1 thread; the record follows on this PR. |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract reviewServed-tier: Two faces meet on this head and this one record answers both: the rules face (the two ① Derived judgments
② Semver level
Clause-②: yes (narrowing) — the declaration on the PR body and in the changeset is right as written. ③ Boundary flagsDev flags (report 7257975783,
Commits after the two reading heads — the seat's expectation holds. After Check-runs on the head. Read three times; last read 2026-11-29T15:42Z: 70 runs, 59 success, 10 skipped, none failed. No verdict yet: SQL push-down — no finding. The diff adds no object query, no id materialisation and no in-app join. The one new read is Security. ④ Design judgmentNo must-fix, no should-fix.
The narrowing itself — it retires a surface that was ruled retired; it takes no declared capability away at the consumer. Read against
Removed tests against the deletion rule (AGENTS.md: deleted only when the PR names a duplicate, or the assertion retired with its surface). Each of the five deleted files renders Nits (none affects correctness or the contract; a fix outside the prose faces moves the head, so each is a follow-up or an accepted deviation):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 维护者速读
席位意见:建议批准。合同审查没有必须修、没有应修,十条小项都不影响正确性;图标、过时注释这类收尾在卡 #38621 上。因为这次改动撤掉了原先编辑表单「对外共享」设置的那个页面,PR 带 席位核对 — ACCEPT · L1 · seat repo:objectstack#1, review thread R2 · Head-sha
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Tier H approval request · 2026-11-29T15:49Z · PR #38619 (
The ask: approve this head, and the seat lands it; a merge by your own hand is the same record. |
Requested by Jianguo · project thread
Fixes #37087
Fixes #36444
Clause-②: yes (narrowing) — released translation keys, one Studio navigation entry and a console page are removed (listed under What changes); two
publicFormsSetupkeys are added in every localeMetadata-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 #38484). The claim is 7255649193 with amendments 7255720152, 7255945859, 7256242334 and 7256905062.
formleavesHIDDEN_DIRECTORY_TYPES(metadata-admin/directoryScope.ts), andSTUDIO_MENU_PLACEMENT(studio-design/studioMenuPlacement.ts) gains{ type: 'form', tier: 'common' }directly afterreport: 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 theformrow (viewandactionmove to 6 and 7) and one dated note, nothing else; the table now has a row for each of the registry's 35 entries.nav_public_formsentry is removed frompackages/platform-objects/src/apps/studio.app.ts, withapps.studio.navigation.nav_public_forms.labelin 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 keydeveloper:public-formsstays registered inregisterDeveloperComponents.tsx, as a redirect). The 47 keys underconsole.developer.publicFormsleave@object-ui/i18n's./namespaces/developerin every locale. Setup's navigation entry of the same id is untouched, and the three pins still assert it.409 FORM_ADDRESS_TAKEN, the page reads the forms again, finds the form that holds the address (publicAddressHolderOf, which mirrors the server'sformHeldSlugand 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.refusalAddressTakenandpublicFormsSetup.refusalAddressTakenUnknown. Any other 409 keeps today's sentence.Removed, for the record:
ui/apps/console/src/pages/developer/PublicFormsPage.tsx.PublicFormsPage.emptyPlaceholderAffordance-8504.test.tsx,PublicFormsPage.publicUrlBasename-11769.test.tsx,PublicFormsPage.redirect.test.tsx,PublicFormsPage.servedRule-11545.test.tsx,PublicFormsPage.sharedSelect-11865.test.tsx; thePublicFormsPagecases inconsolePagesLocale-13460.test.tsxanddeveloperMetadataEnvelope.contractEnvelope-6917.test.tsx.nav_public_formsof the Studio app (componentdeveloper:public-forms), with its label key.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.mjsand theci.ymlpath lists do not name the page and are not changed.Tests that enumerate the listed types, changed to add
formonly:studioMenuPlacement.test.ts,studioMenuModel.test.ts,StudioMenu.test.tsx.StudioPaletteGroups.surfaceScope-36900.test.tsxneeded no change.Read first (by risk):
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.ui/apps/console/src/registerDeveloperComponents.tsxandAppContent.tsx, the two<Navigate>redirects: a bookmark of either address must land on a page.docs/adr/0084-application-builder-information-architecture.md: theformrow and the note.Two-minute check:
pnpm --dir ui exec vitest run apps/console/src/__tests__/publicFormsRetired-37087.test.tsxprints 8 passed; or open/apps/setup/developer/public-formsin a running console and land on Studio's list of forms.Tests
studioMenuPlacement.test.ts:formis listed and common, directly afterreportand so directly beforeview; CONTROLfieldandpackagestay hidden; the ADR-0084 table pin now reads theformrow.studioMenuModel.test.ts: the directory rule listsformon a package and still dropsfieldandpackage; 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 noformserved, 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) andisAddressTakenRefusal(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/formin 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.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) andde-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}}“).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 nonav_public_formsand names nodeveloper:public-forms; Setup serves exactly one, withforms:public-forms.Acceptance notes
Driven in a browser on
examples/app-showcase(objectstack dev --ui --seed-adminon its own port and data file, the console's dev server proxied to it), headafcf5fb1before the merge of main. Two shipped public forms: the old-shapeshowcase_inquiry.contact(served through the projection) and theformitemshowcase_inquiry.feedback. Every step ran on the old-shape form.admin/create-user(rolemember):/api/v1/meta/appserves nosetupapp, and the page's address answers "Only system administrators can manage public forms."/f/showcase-feedbackand/f/contact-us, both On/f/contact-usshows Page not found without signing in,GET /api/v1/forms/contact-us404, submit404 FORM_NOT_FOUND; the row stays listed as Off. On again: the form renders and a submit answers 201400 VALIDATION_FAILED("Company is required"), with it 201. Then Source removed and published: it is gone from the anonymous pagerequest-demo(Name, Email, Message, Company), saved into the app's.custompair, published; filled in and submitted without signing in (201, the thank-you page); the record reads back with the four values; Setup lists it/forms/contact-usthrough 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 savessharing.enabled: false; after the publish the address still answers 404 and takes no submission, and Setup still shows Offformopens its formshowcase_log_time, targetshowcase_task.form):GET /api/v1/meta/form/showcase_task.form200 twice, no/meta/viewread, the form renders with the recordformin Studio's menu/apps/setup/developer/public-forms,/apps/showcase_app/developer/public-formsand the two/component/developer/public-formsaddresses each land on/studio/~all/metadata/form, which lists the 8 formsScreenshots (project files,
/mnt/project-files/card-37087/pr2/): Setup's list01-setup-public-forms-admin.png, the member's view02-…, the Studio list12-studio-form-list.pngand24-studio-form-list-zh.png, the editor06-studio-form-editor-shipped.pngand14-studio-new-form-editor.png, the refusal20-setup-switch-on-address-taken.pngand21-…-zh.png, and one per step above (24 files).The showcase does not mount the
studioapp, 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):
studioand translatesapps.studio.navigation.nav_public_forms.labelgetserror 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.translationitem 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.tsxand its merge test: the branch that keepsviewKind: 'form'items out of the list switcher, kept by the card until major 19.vieweditor's form arm undermetadata-admin/(anchors.ts,previews/ViewPreview.tsx,view-item-normalize.ts) and its tests: it still edits aview, kept by the card.FormPage.tsx,recordFormNavigation.ts,SchemaForm.tsx,clientValidation.ts,registry.ts,freeze-schema.ts,imported-defaults.ts.formViewFeaturesRootRefused-6262, the twointernalFormRetired-36425files,data-objectstack'slistViewstests,view-create-body,clientValidation.*, the inspectors' tests), and one dated audit underui/docs/audits/.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).formrow ofStudioMenu.tsx's icon table (the menu row draws the UI group's icon), and two comments that name what this PR changes, inservices/builtinComponents.tsx("formstays out of Studio's menu") andplugin-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.ui/apps/console/src/components/submitRedirect.tssays the Public Forms dialog callscheckSubmitRedirectUrlat save time; with the page gone, the only caller isresolveSubmitRedirectin the same file.Verification
Head
81426a31:origin/main696d02f5merged in atbf797ae1, 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).pnpm exec turbo run build --filter=!@objectstack/docs --concurrency=3atbf797ae1, 123 of 123 tasks, exit 0.@objectstack/platform-objectssrc/appsand the two CLI pins are green at the head (readings below).turbo run type-checkof@object-ui/app-shell,@object-ui/consoleand@object-ui/i18n(each covers its test files; 82 of 82 tasks, 53 from cache), thentypecheckof@objectstack/platform-objectsand@objectstack/cli, at the head under the verify lock: VERDICT command-exit 0.dispatch-gates --commandsderives 81 commands at the head; all 81 exit 0.--ran: 81 derived, 81 run, 0 NOT-MEASURED, 0 UNRUN.check-changeset-no-major --base origin/mainandcheck-adr-0087-registration --base origin/mainpass; the changeset'sadr-0087marker isnot-required (no-migration-prescription)(no spec schema or registered type changes, and no stored item stops parsing).pnpm --filter @objectstack/dogfood testunder 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.afcf5fb1(the tree before the merge of main and the two pins; main brought noui/orexamples/change).overlap-checkat the head, againstorigin/main48da7161and the open PRs that share a file: main merges cleanly; feat(console): list pending invitations on the organizations page #38612 (the 11 locale files) merges cleanly; feat(app-shell)!: retire Studio's package-less scope (/studio/~org), and an item of a package you can write reads New in the Studio list (#38150 PR-B2) #38598 (the retirement of/studio/~org) conflicts instudioMenuModel.test.ts, on two neighbouring lines of one expectation (itsautomationrow losesorgFlows, this PR'suirow gainstype:form). Verdict exit 1: this PR queues behind feat(app-shell)!: retire Studio's package-less scope (/studio/~org), and an item of a package you can write reads New in the Studio list (#38150 PR-B2) #38598.Unit test readings
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/developeratbf797ae1: 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) andde-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.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/appsfromdist: before that package was rebuilt, both new assertions were red on the old build (the Studio app still servednav_public_forms).pnpm --dir ui exec vitest run scripts/(in the derived list): 172 files passed, 2 skipped; 5159 tests passed.Gate notes
node scripts/check-plugin-teardown-shape.mjs --self-testexits 3 on a shallow clone until its pinned fixture commit is fetched (git fetch --depth=1 origin 621a487607881c66b2899b7e3477115229a156b4); then 48 cases pass.bf797ae1recordedvitest run scripts/andcheck:type-check-debtas 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.ui/:check:i18n-keys,check:i18n-drift,check:i18n-dead-keys,check:spec-symbols,check:new-line-citationsandcheck:skill-examples, exit 0 each.Ablations (four, one behaviour each)
Run at the head through
scripts/ablation-replace.mjsunder 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 andgit diff HEADempty. Expected direction was red for each, and each went red.directoryScope.ts:formback inHIDDEN_DIRECTORY_TYPESstudioMenuPlacement.test.ts,studioMenuModel.test.ts,StudioMenu.test.tsxformplacement, the ADR table pin, the always-listed row and the threeformmenu casesPublicFormsSetupPage.tsx: theisAddressTakenRefusalbranch never takenPublicFormsSetupPage.test.tsxAppContent.tsx: thedeveloper/public-formsroute deletedpublicFormsRetired-37087.test.tsxregisterDeveloperComponents.tsx: the registered component renders nothingRestored baseline: the five files, 127 passed.
Owed before landing
docs/adr/**,ui/.claude/**, the narrowing, and 3731 changed lines).studioMenuModel.test.ts. Whichever lands second merges main and keeps both edits (theautomationrow withoutorgFlows, theuirow withtype:form).🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB