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 |
… the page's (objectstack-ai#38279) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoFAW3Y9BBmgxJwzSTjuLS1X)_ Fixes objectstack-ai#37941 repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Clause-②: no Metadata-protocol: none ## 维护者速读 - 在 Studio 或文档里读看板「道底统计」说明的作者,现在读到的是:按查找字段分道的列表看板,道底的计数数的是整条泳道,和看板上显示的一致;以前说明写的是只数一页。 - 看板体验专题:运行时早已改成数整条泳道,说明没跟上,这次只改说明文字。 - 不改任何行为和元数据形状,出错最多是说明措辞不准,可以直接撤回。 - 无 ## What changes - `packages/spec/src/ui/view.zod.ts`, `KanbanLaneSummarySchema` doc comment: the sentence "Its `count` counts the page it was handed" becomes: since objectstack#37327 the same grouped read answers each lane's record count, so `count` counts the whole lane, as the lane header does; only a read that cannot answer (no grouped door, a refusal, a cut answer) leaves the page's count, marked `+`. - Same file, `kanban.summary` describe: "its `sum`, `avg`, `min` and `max` still cover every record of each lane, and its `count` counts that page" becomes "its `count`, `sum`, `avg`, `min` and `max` still cover every record of each lane (where the source cannot answer that read, `count` counts the page, marked `+`)". With `count` now in that list, the next sentence's "the other three" would read ambiguously, so it names them: "`avg`, `min` and `max` show nothing". - `content/docs/references/ui/view.mdx`: regenerated by `pnpm --filter @objectstack/spec gen:docs`. The same describe appears three times there (`KanbanConfig` is expanded in three places), and all three rows change. No other generated file moved. - `.changeset/37941-kanban-lane-count-whole-lane.md`: `@objectstack/spec` patch. The describe ships in `files[]`, so this is a patch changeset, not `skip-changeset`. - Scope is the lookup-lane sentences only (seat ruling S1 in the claim). Swimlane and no-option boards are not rewritten here. ## Tests No new test (seat ruling P1 in the claim). The card's second box, "a lookup-lane board's `count` is the lane's, not the page's", is already pinned at runtime on main: - `ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx:527`, "a foot `count` reads the whole lane too": a lookup-laned list view board is handed one page of 25 of 70 deals, and its foot `count` reads 30 and 30. - Its contrast at `:535`, "CONTROL: over a source with no grouped door each count is the page's, marked `+`": 13+ and 12+. Describe wording is not pinned: os-dev pins no prose unless a consumer parses it. <details><summary>Local runs at 04ae2ae</summary> - `pnpm --filter @objectstack/spec build` + `gen:docs`: exit 0 (lock VERDICT command-exit 0). - `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ui`: Test Files 194 passed (194), Tests 6694 passed (6694). `pnpm --filter @objectstack/spec typecheck`: exit 0. This is narrowed to `src/ui`, the directory of the edited file. The full spec suite runs in CI. - Derived gate list (`dispatch-gates.mjs --commands`): 109 commands. 102 exit 0. 7 exited 3 (PREREQUISITE NOT MET: an unbuilt workspace closure, plus one shallow-clone fixture) and are re-run after the closure build. The report records the re-run. - `overlap-check`: clean against origin/main e2a0e90 and objectstack-ai#38168 (same two files, disjoint lines). </details> ## Acceptance notes - The runtime facts behind the new text, read on main f19350b: `KanbanLaneStatistic.ts` (`LANE_COUNT_ALIAS`, the objectstack-ai#37327 section of its header); `ObjectKanban.tsx`, which adds `laneCount: true` to the lane read when the host hands the query (`hostLaneRead`); and `KanbanImpl.tsx` `LaneFootStatistic`, whose `count` is the lane header's count (`hostCount`). `ListView.tsx` `kanbanLaneStatisticHosted` hands that query for a board it does not page by lane. - Prior rulings read: lane summary, kanbanlanesummary, lanecounts, lookup lane → 0 hits; none; thread: none. ## Verification Read first: `packages/spec/src/ui/view.zod.ts`, the `summary` describe of `KanbanConfigSchema`. Two-minute check: `git grep -n "counts that page" -- packages/spec content/docs` answers nothing. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibwT22DXnLz8V1Bgcxs)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibwT22DXnLz8V1Bgcxs Co-authored-by: Claude <noreply@anthropic.com>
…s taxonomy lists it as a tombstone (objectstack-ai#38632) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9JeHmqv6CKCkW8ewrPBLekk)_ Fixes objectstack-ai#38191 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改内部测试清单的文字和一个类型包的说明注释,界面与行为都不变。 - 为什么做:表单视图的「弹窗尺寸」键已在上一轮退役,清单和注释还把它当作现役键,本次跟上。 - 出错会怎样:最坏是测试员按旧文字打分时多记或少记一行,纯文字改动,可直接撤回。 - 要你做什么:无。 ## What changes - `docs/qa/platform-checklist/areas/studio-authoring.json`, item `studio-authoring.no-entry-property-matrix`: the `view.form` row and `fixtures.knownGaps[0]` no longer list `modalSize` as a stored-and-inert failing row. PR objectstack-ai#38168 retired it, so the row now records `modalSize → refused at parse (retired in @objectstack/spec 19.0.0, ADR-0049: no form view opens in a dialog)`, the convention `drawerSide` / `drawerWidth` already follow, and `knownGaps[0]` records why it left the matrix (its `retiredKey` tombstone in `packages/spec/src/ui/view.zod.ts`, the `form-view-modal-size-removed` conversion). `subforms` stays a failing row. `revision` 11 to 12, with history entry 12 appended; history entries 6 and 11 are untouched. - `ui/packages/types/src/objectql.ts`: the `ObjectFormSchema` key-taxonomy comment moves `modalSize` from the spec-aligned bullet to the ObjectUI-extension bullet, beside `drawerSide` / `drawerWidth` (tombstones on the spec form view, the React `ObjectForm` block's own props). The `ObjectForm` prop and the key union entry are untouched. No type changes. - `.changeset/38191-form-view-taxonomy-modal-size.md`: `@object-ui/types` patch. The comment is JSDoc on an exported interface and ships in the package: after a build, `dist/objectql.d.ts` carries the new bullet text. Read first, by risk: 1. `studio-authoring.json`, the `view.form` row string: the `subforms` clause was narrowed from the joint `subforms and modalSize` clause; check its acceptance scoring sentence still reads right on its own. 2. `studio-authoring.json`, `fixtures.knownGaps[0]`: the new "Out of the matrix since PR objectstack-ai#38168" sentence. 3. `objectql.ts`, the taxonomy comment above `ObjectFormSchema`. ## Tests <details><summary>Local readings at a723679</summary> - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: exit 0 ("0 anchored files in the change set — nothing judged"). - `pnpm check:platform-checklist` (full gate, revision equals last history entry): exit 0. - `@object-ui/types`: `pnpm --filter @object-ui/types build` (tsc, vite, dist completeness) exit 0 ("dist completeness: 1 package(s) complete"); the package has no `typecheck` script, `Type Check UI` is CI's. `pnpm --dir ui exec vitest run packages/types/`: Test Files 390 passed (390), Tests 10526 passed (10526). - Derived gate list (`dispatch-gates.mjs --commands`, 40 commands) plus `check:changeset-fixed`: every command exit 0 locally (`check:doc-formula-expressions` first exited 3, its prerequisite build missing, and exited 0 after building `@objectstack/formula` and `@objectstack/lint`); `pnpm --dir ui exec vitest run scripts/` reported 1 failing file, `unit-registry-absence-collision.test.ts`, failing on "Failed to resolve entry for package @objectstack/client" because that package's dist is not built in this fresh worktree (the diff touches no import). Left to CI's Test UI. </details> ## Acceptance notes - No ablation: the diff is checklist text, a source comment and a changeset; no tested behaviour changes. - Neither edited file names `modalSize` as a live form-view key. The remaining mentions are history entries 6 and 11 (append-only), new history entry 12, and the React block's own `modalSize` prop and key-union entry in `objectql.ts`, which stay. ## Verification Two-minute check: `git grep -n modalSize -- docs/qa/platform-checklist/areas/studio-authoring.json`. Expected: in the `view.form` row and `knownGaps[0]` it appears only as refused at parse or out of the matrix, and otherwise only in history entries. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B)_ <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B --> --------- Co-authored-by: Claude <noreply@anthropic.com>
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