Repository navigation
feat(spec)!: retire FormView modalSize — no form view opens in a dialog - #38168
Conversation
…y, ledger, pins Claude-Session: https://claude.ai/code/session_01L9qibyCTygnt62jKN3Wmxu Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibyCTygnt62jKN3Wmxu Co-authored-by: Claude <noreply@anthropic.com>
…rm-modal-size-retired
📓 Docs Drift CheckThis PR changes 1 package(s): 11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 7 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 177 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 8f8442bd39374344773dc665c23e583400e97827 && git checkout 8f8442bd39374344773dc665c23e583400e97827
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e42520c67bcef027552f8db83655ff9b54d32cef 953a77454ec5fc166168f237f4d1f71cacd97323 && git checkout -B drift-repro e42520c67bcef027552f8db83655ff9b54d32cef && git merge --no-ff 953a77454ec5fc166168f237f4d1f71cacd97323
node scripts/docs-audit/affected-docs.mjs --json e42520c67bcef027552f8db83655ff9b54d32cef
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head fa4a7b4 · 2026-11-28T05:46Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Why Inputs read: card #36544 body and all six comments (triage 7084472400, fold 7193096338, claim 7233564954, amendments 7233624584 and 7233916166, os-dev-report 7234867735); PR #38168 body, its two comments, its 23 files and the net diff from merge base 581ae76; the 70 latest check-runs on the head: 60 success, 10 skipped, 0 failed, 0 pending. ① Derived judgments
② Semver levelThe
③ Boundary flags
④ Design judgmentThe narrowing itself, against the published spec on Per file: S1 (should-fix) — N1 (nit) — at the N2 (nit) — the two deferred edits (the QA checklist row and the N3 (nit) — No must-fix. One should-fix, S1, open on this head. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record: Contract review brief — PR #38168 @
|
…m-view read to 19.0.0 Through 18.6.0 the console's New / Edit dialog opened at a form view's authored modalSize. It stopped loading a form view at 19.0.0. The D3 entry, the conversion's doc comment and the changeset said "in 18", which told an app upgrading from 18.x that it loses nothing. They now say the dialog opens at the size it chooses after the upgrade, and that no key restores the authored size. Claude-Session: https://claude.ai/code/session_01L9qibyCTygnt62jKN3Wmxu Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: REWORK at
|
…rm-modal-size-retired # Conflicts: # packages/spec/src/conversions/registry.ts
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head e17b04f · 2026-11-28T07:49Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Why DELTA review from Inputs read: the head's history (fa4a7b4, then 067eaa9, then e17b04f, a merge of ① Derived judgmentsD1 to D14 of record 7235062576 stand. 18 of the 23 files are byte-identical to the head that record judged, and the net diff against 9609c13 is the same 23 files (628 insertions, 77 deletions). What moved:
② Semver levelUnchanged and right. The ③ Boundary flags
④ Design judgmentThe design holds as the first record judged it, and the merge does not change it: no other entry of the major writes what this one writes, so its place in the order decides no result of its own.
No must-fix. No should-fix. Three nits carried, two new.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
理由:本 PR(head e17b04f)不碰这两个文件所在的包;plugin-approvals 在 581ae76..9609c13 之间没有提交;两个分片在 fa4a7b4 与 9609c13 上都是绿的;失败形态是时序(超时、重挂载计数),不是断言内容不符。重跑只做一次,再红即按真红处理,由卡线程排查。 |
…rm-modal-size-retired
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 953a774 · 2026-11-28T12:06Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Why DELTA review from Inputs read: the merge commit and both parents; the net diff of this head against ① Derived judgmentsD1 to D14 of record 7235062576 and E1 to E7 of record 7236573514 stand. What I measured on this head:
② Semver levelUnchanged and right. The changeset is byte-identical to the one judged. The ③ Boundary flags
④ Design judgmentThe design holds as the first record judged it. This head changes no file of the diff, and nothing No must-fix. No should-fix. Four nits carried, one answered, one new.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a merge delta: ACCEPT at
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-28T12:19Z. 维护者速读
席位意见:可以合。 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Tier H approval request at 2026-11-28T12:20Z. Seat record: the newest |
Requested by Tesla · project thread
Fixes #36544
repo:objectstack#3 · os-tesla · session_01L9qibyCTygnt62jKN3Wmxu
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no hand-written skills page teaches a form view's
modalSize; the one skills file that listed it is the generatedskills/objectstack-ui/references/react-blocks.md, regenerated here, and two evals inskills/objectstack-ui/evals/views-apps-actions-pages.jsonalready carrymodalSize:undermust_not_contain维护者速读
What changes
packages/spec/src/ui/view.zod.ts:FormViewSchema.modalSizebecomes aretiredKey()tombstone. The refusal names the removal version, says why (no form view opens in a dialog), tells the author to delete the key, and names what sizes each dialog now. Theformitem (FormSchema, ADR-0159) takes the form view's shape by reference, so it refuses the key at that door too.packages/spec/src/ui/react-blocks.ts: the ReactObjectFormblock keepsmodalSize. It moves fromdataProps(read off the form view schema) to the block's overlay as abindingprop with the same type, and joinsREACT_OVERLAY_SHADOWS.ObjectFormbesidedrawerSide/drawerWidth. Theobject-formpage block's ownmodalSize(ObjectFormPropsSchema) is untouched.form-view-modal-size-removed(protocol 19,retiredFromLoadPath: true,retiredAfter: '18.6.0'): deletes the key fromform,formViews.*, a form view item'sconfig, a flattened form overlay, the assembledviewItemschannel and aforms[]item. It never walks page components. Wired intoMAJOR_19_CONVERSIONSat order 4, the last of the major. The list's head comment records the one entry that reads form payloads before this delete applies: over sources,action-type-ask-ai-removedtakes every string of the stack as a possible action name, amodalSizevalue included, and errs on keeping the action.ui/FormView:modalSizeandui/Form:modalSizeunder major 19. D3 entryui-form-view-modal-size-retired: through 18.6.0 the console's New / Edit dialog opened at the authored size; at 19.0.0 that dialog stopped loading a form view (the change recorded byinternal-record-forms-not-loaded, 内部的新建和编辑表单作废:平台不再加载表单定义,弹窗一律按字段分组和字段规则排;字段加一个「新建时显示」的开关(对外表单不受影响) #36425), so the delete changes nothing a reader sees on 19, and an app that comes from 18.x finds the dialog at the size the dialog chooses. No key restores the authored size; the entry's acceptance line asks the upgrader to look at New and Edit on each object whose form carried the key. The changeset says the same under "Coming from 18.x". The step-19 rationale inregistry.ts.templategains one sentence.view.jsonform.modalSizeandform.jsonmodalSizegolive→deadwith a REMOVED note; state counts regenerated (view 75 live / 11 dead, form 27 live / 6 dead / 2 planned).modalSizeas the bystander key that must ride through; they now usetabPositionandcolumns.ui-form-view-type-layout-onlysaid the console's New and Edit dialogs were "sized bymodalSize". They choose their own size; the sentence now says so.packages/spec/authorable-surface/ui.json,content/docs/references/ui/view.mdx,content/docs/references/api/protocol.mdx,skills/objectstack-ui/references/react-blocks.md.@objectstack/specminor with the BREAKING banner, FROM → TO and the ADR-0087 marker;@objectstack/skillspatch for the regenerated reference.Tests
packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts:form, atformViews.*, at a form view item, at a flattened form overlay and at aformitem, each with one issue atmodalSizecarrying the prescription; a control without the key parses at every door;defineStackanswersSTACK_SCHEMA_INVALID;RETIRED_KEYS_BY_MAJOR[19]holds both rows; two@ts-expect-errorlines pin the authoring-site type.modalSizekeeps it": theobject-formpage block and the React block overlay still declare it.formitem lose the key; a page block keeps it; a second pass changes nothing; the entry is off the load path and wired at step 19 with its D3 entry.modalSizeon a form view and adefineForm({…})body too, with its own matcher anti-vacuity test.packages/spec/src/ui/form-view-type-layout-retirement.test.ts: the test that pinned "modalSizestays declared" now pins the refusal and its message.packages/spec/src/shared/retired-key-removal-version.pin.test.ts: one join row ties the conversion to the tombstone's removal version.Readings (head named on each line; base origin/main e42520c)
mainat 9609c13, one hand-resolved conflict in the head comment ofconversions/registry.ts) → 953a774 (merge ofmainat e42520c, no conflict, no generated path changed on both sides).modalSizehas 0 hits in the console'sFormPage.tsx(controlsubmitBehavior: 4), 0 in any server package, 0 inexamples/andpackages/apps(control: 6). The remainingui/readers are the block's own prop and the host-derived size. At tag@objectstack/spec@18.6.0the record dialog still copied the key from the object's form view; that read ended at 19.0.0.scripts/ablation-replace.mjs, at 3ae879f: the tombstone line put back to the live enum on the committed change;vitest runover the three pin files showsTest Files 3 failed (3),Tests 12 failed | 160 passed (172). Restored: blob equals HEAD andgit diff HEADis empty. No later commit touchesview.zod.tsor the pin files.pnpm --filter @objectstack/spec buildexit 0 (the retired-key registration gate runs inside it);check:generatedexit 0 (All 14 generated artifacts are up to date);vitest runover the three pin files plussrc/conversionsandsrc/migrations:Test Files 34 passed (34),Tests 1215 passed (1215).check-platform-checklist --changed-from origin/mainexit 0 (13 anchors judged, 0 lost).typecheckexit 0;test:Test Files 911 passed (911),Tests 28853 passed | 1 todo (28854);test:repo:Test Files 94 passed (94),Tests 1604 passed (1604).dispatch-gates --commands, 126 exit 0;dispatch-gates --ran: 126 derived, 126 run, 0 NOT-MEASURED, 0 UNRUN.!):os-verify-lock: VERDICT command-exit 0,Test Files 491 passed | 3 skipped (494),Tests 4148 passed | 68 skipped (4216).typecheckexit 0;test:Test Files 911 passed (911),Tests 28854 passed | 1 todo (28855);test:repo:Test Files 94 passed (94),Tests 1604 passed (1604). Derived local gate set: 126 commands, 126 exit 0;dispatch-gates --ran: 126 derived, 126 run, 0 NOT-MEASURED, 0 UNRUN. Full dogfood battery:os-verify-lock: VERDICT command-exit 0,Test Files 491 passed | 3 skipped (494),Tests 4148 passed | 68 skipped (4216). CI check-runs on this head: 74, each success or skipped, none re-run.skills/objectstack-ui/references/react-blocks.md113 lines / 13751 bytes onmain, 113 lines / 13725 bytes here (one row moved from the data table to the binding table); allSKILL.mdfiles together 4940 lines onmain, 4940 here.check-skills-token-ratchetexit 0: authored files 199826 / 199826 (+0); generator-owned 14846 tokens; bundle total 303536.Acceptance notes
ui/Form:modalSizewith the conversion'sforms[]reach, because theformitem takes the form view's shape by reference; the join row inretired-key-removal-version.pin.test.ts; and the one-sentence correction to the protocol-18 D3 entry.ui/packages/types/src/objectql.tsstill listsmodalSizeamong form view keys. Editing it would pullui/and an@object-ui/typespatch into this narrowing.docs/qa/platform-checklist/areas/studio-authoring.json, theview.formrow, still recordsmodalSizeas a row that fails today.packages/lint/src/rule-explanations.tsand the D3 entryinternal-record-forms-not-loadedlistmodalSizeamong keys that steer nothing on the record dialog.subformson a form view is a separate decision and is not touched here.os migrate meta --from 18 --writedeletes them.Verification
Read first (by risk):
packages/spec/src/ui/view.zod.ts:FORM_VIEW_MODAL_SIZE_RETIREDand themodalSizemember ofFormViewSchema.packages/spec/src/conversions/entries/19/form-view-modal-size-removed.ts:apply, in particular theviewItemsbranch that tells aconfigpayload from a flattened overlay, and theformswalk.packages/spec/src/ui/react-blocks.ts: theObjectFormhunk that moves the prop fromdataPropsto the overlay.Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/ui/form-view-drawer-keys-retirement.test.ts src/ui/form-view-type-layout-retirement.test.ts src/shared/retired-key-removal-version.pin.test.tsshows 172 passing; putz.enum(['sm', 'default', 'lg', 'xl', 'full']).optional()back onFormViewSchema.modalSizeand the same command shows 12 failing.Generated by Claude Code