Repository navigation
feat(plugin-form): the form dialog maximizes in place like the record drawer, remembered per object - #34703
Conversation
… object Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-authored-by: Claude <noreply@anthropic.com>
Keeps the section nav strip (#34642) and the maximize switch side by side: the flat arm's header drops its bottom rule when the nav strip draws one. Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-authored-by: Claude <noreply@anthropic.com>
…unted Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs Final green head for L1 · 2026-11-17T08:11Z
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 (seat 3, L1-a) · 2026-11-17T08:13ZL1: ACCEPT All three card items are built in both arms, inside the claim's surface. The claim's Clause-② condition (no new key, no exported prop or type) holds, and the hand-resolved merge with #34642 keeps both features. No must-fix. One should-fix is paper only (the PR body). Must-fixNone. Should-fix
Readings that hold
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs Landing · area o3-B · 2026-11-17T08:16Z
State change: ready for review + auto-merge (merge queue). Card #34604 closes on merge via |
Requested by Yibo Wang · project thread
Fixes #34604
Clause-②: no
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
维护者速读
modal-form-maximized:OBJECT),无数据或元数据改动。ui/packages/plugin-form/src/ModalForm.tsx(effectiveModalSize里的放大覆盖、heightClass、maximizeButton)、ui/packages/plugin-form/src/modalMaximize.ts(按对象记忆)、__tests__/modalMaximize-34604.test.tsx。What changes
ModalForm) draws the record drawer's maximize / restore switch in its header: the sameRecordTopBarButton, the lucideMaximize2/Minimize2pair ath-3.5 w-3.5, the same existing i18n keys (detail.maximize/detail.restoreSize), placed just before the close (X) button in both position and tab order. Both arms carry it: the flat form and thesubformsmaster-detail form (its ownMobileDialogContent).full(sm:max-w-[95vw]) whatever the authored or inferred size, and the height cap is lifted:sm:h-auto sm:max-h-[90vh]becomessm:h-[95dvh] sm:max-h-[95dvh], so the dialog fills the window and its body scroller (not the page) scrolls a long form. Restore puts back the exact previous classes.dialogUndeclaredColumns(fieldCount, modalSize)(表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607) answers four columns for a 16+-field undeclared form when maximized, and three again when restored.modalMaximize.tsstoresmodal-form-maximized:OBJECTinlocalStorage(try/catch, SSR-safe; restore removes the entry). It is re-read when a mounted dialog is handed another object. Not re-exported fromindex.tsxorcore.ts.smup only (hidden sm:inline-flex). The header getssm:pr-20so a long title stays clear of the two buttons.noholds: no new locale key (the two keys exist in every pack; only the no-provider English defaults table inModalFormgains the two entries the drawer's table carries), no new export or prop on@object-ui/plugin-formor@object-ui/components, no spec key.mobile-dialog-content.tsxis untouched (the override merges over its basesm:max-h-[90vh]).md-form-submitstill drawn); 表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607'sdialogUndeclaredColumns.Tests
New file
ui/packages/plugin-form/src/__tests__/modalMaximize-34604.test.tsx(10 tests; no shared ModalForm harness file exists, so a card-named file):sm-only, same content node across toggles, restore gives back the previous width class; typed value and same input element across two toggles, then the X still opens "Discard changes?"; switch present withmodalCloseButton: false.Storageleaves the switch working.@4xlin the inferredxl, four maximized, three restored; the typed value survives.No existing pin changed (
dialogDefaultLayout-12521,modalViewportGutter-12593,modalCloseButton-11061,ObjectForm.mobileFullscreenall pass unchanged).Readings at head 9b6b5b0 (after merge f85988a with #34642; os-dev-report 6942457211, PR comment 6942491477)
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-form/src/__tests__/modalMaximize-34604.test.tsx: Test Files 1 passed, Tests 11 passed; lock VERDICT command-exit 0.pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-form/: Test Files 236 passed (236), Tests 2636 passed; lock VERDICT command-exit 0.pnpm --filter @object-ui/plugin-form type-check(tsc --noEmit && tsc -p tsconfig.test.json): exit 0;--listFilesoftsconfig.test.jsonlists the new test file.Ablations (one-shot, restored, no permanent test files)
Both through
scripts/ablation-replace.mjs(anchor 1 to 0, blob moved, restore verified blob == HEAD andgit diff HEADempty). The test imports../ModalFormfrom source, so no build sits on the path.if (maximized) return 'full';replaced by a constant-false guard: 10 of 10 tests red.key={maximized ? 'max' : 'restored'}added to the flat arm's content (a remount on toggle): the two flat-arm identity tests red ("expected the same dialog node", "expected the same input element"), 1 passed.Acceptance notes
xland the height at90vh. After: the switch above, in both arms, remembered per object.modalSize: 'full'still shows the switch: there maximize only lifts the height cap.content/docs/frontend) was not updated: neither page describes the dialog's runtime chrome today and both are outside this card's file surface.f85988achand-resolved ModalForm.tsx and keeps both features (L1 ACCEPT 6942536762).overlap-checkat 9b6b5b0: clean.Verification
Local gates (derived by `dispatch-gates.mjs --commands`, reconciled with `--ran`)
--ranverdict: "38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)").pnpm check:new-line-citations(ui): 0 new citations, exit 0.Generated by Claude Code