Repository navigation
feat(ui): retire the grid's staged edit model with its host interface - #37437
Conversation
Every editable grid selects a cell first and saves each committed cell on
its own. ObjectGrid drops the cellSelection={false} arm, onBatchSave and the
default batch save; data-table drops the pending bar, Save All and the row
save column, and an editable table without a select-first host and onRowSave
renders read-only with one console warning. DataTableSchema.onBatchSave is
retired on both faces and singleClickEdit is removed.
Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt
Co-authored-by: Claude <noreply@anthropic.com>
Pins of the staged model move to the select-first gestures (click, then double-click, Enter, F2 or typing) and read the per-cell save; pins whose behaviour is gone are deleted with a comment naming the pin that now covers the same ground. Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt Co-authored-by: Claude <noreply@anthropic.com>
The ADR-0087 D3 entry data-table-staged-edit-retired names what an upgrade still owes once the grid's staged edit model is gone: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures. Nothing it retires is authorable metadata, so it has no conversion. Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 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 — 176 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 822c41ead92de9f0c79ff952a39840ad91e265c4 && git checkout 822c41ead92de9f0c79ff952a39840ad91e265c4
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f71d488d6f4d7181cc6e075eb956f92489fb87ba deefadb3a13681d5e31f584317f73a7a92c270e2 && git checkout -B drift-repro f71d488d6f4d7181cc6e075eb956f92489fb87ba && git merge --no-ff deefadb3a13681d5e31f584317f73a7a92c270e2
node scripts/docs-audit/affected-docs.mjs --json f71d488d6f4d7181cc6e075eb956f92489fb87ba |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head deefadb · 2026-11-26T10:31Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37437, card #35827, ruling 7178367040 (option A). Inputs read: the card body and its 12 comments, PR #37314's body (it opened protocol step 19), the PR body and its 2 comments, the net diff of 69 files against ① Derived judgmentsWhat the diff takes away, each read in the head tree:
The −2787 lines are dead at the head. Greps of the whole head tree, covering docs, skills, examples and tests:
② Semver level
Clause-②: no (narrowing) — correct. Nothing is widened; ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. The entry file,
The narrowing against the ruling:
Ways an author can still write the old mode, and what each meets:
Nits. None changes correctness or the contract; each is an accepted deviation or a follow-up, and none needs a head move.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。收窄范围完整声明,删除的代码都已无人使用,拒绝点位正确。6 条 nit 都不影响正确性。 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (lands as Tier H: 4040 changed lines over 3000, and a declared narrowing). Seat ACCEPT: comment 7189772467. Contract review PASS at |
Fixes #35827
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none —
skills/**never taught the grid's host props (cellSelection,onBatchSave,singleClickEdit, "Save All" have zero hits there); none of them is authorable metadata.维护者速读
What changes
Ruling A on the card ("the old mode and its interface retire together"):
@object-ui/plugin-grid: thecellSelection={false}arm ofObjectGrid,onBatchSaveand the default batch save are removed.cellSelectionaccepts onlytrue(ask for select-first on a read-only grid). The default cell save (defaultRowSave) keeps only the select-first path: rule check, claim-answer warnings,If-Matchwrite, conflict dialog, Undo toast. The record verdicts are now asked on first cell selection only (the mount-time ask served the staged arm).@object-ui/components:data-tableloses the staged arm (pending-changes bar, Save All / Cancel All, the row save/cancel column, click-to-edit, the amber tints) and its fallback copy rows. Ruling term (2), bare-primitive arm: loud refusal. An editabledata-tableedits only inside aGridCellSelectionhost that also passesonRowSave; otherwise it renders read-only and logs one[ObjectUI] DataTable editable:console warning naming what is missing. Writing through a data source the table does not own was rejected because the primitive has noobjectNameor record identity of its own.@object-ui/types:DataTableSchema.onBatchSaveis?: neveron the TS face and aretiredhandler-key refusal on the zod mirror;DataTableSchema.singleClickEditis removed (it only chose how the staged editor opened). Parity ledgers updated (KnownDrift 92 to 91, RuntimeOnlyDeclared 31 to 30). ThekeyboardNavigationdescribe drops its staged sentence.@object-ui/app-shell:ResourceListPagestops passingcellSelection={false}. It is read-only, so it keeps click-to-open (assumption A1, measured: its 14 test files pass, and a read-only grid never mounts the select-first provider).content/docs/frontend/plugins/plugin-grid.mdxand the plugin-grid README describe the one editing model and theonRowSavehand-off..changeset/35827-data-table-staged-edit-retired.mdwith both declaration lines, the BREAKING banner and the FROM/TO table.@objectstack/spec: the ADR-0087 D3 entrydata-table-staged-edit-retired(packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts). Protocol 19 opened on main while this was in flight, so the entry is a step-19 file; step 19's rationale is one hand-written string, soregistry.ts.templateis untouched. No conversion: nothing it retires is authorable metadata.Outside-host census (ruling premise clause): public clones of
hotcrmandgalleryat their default-branch heads have zero hits forcellSelection={false}andonBatchSave. No named outside host, no fork.Tests
Staged-path pins either migrated to the select-first gestures (click, then double-click, Enter, F2 or typing; reading the per-cell save) or were deleted together with the behaviour they pinned, each deletion leaving a comment that names the pin covering the same ground. Deleted files:
data-table-batch-per-row-12292,data-table-refusal-cells-27520,ObjectGrid.inlineEditPendingKeyedByRecord-12310. New helpers incomponents/src/__tests__/test-utils.tsx:renderSelectFirstTableandopenCellEditor.Readings
@object-ui/components: 4958 passed@object-ui/plugin-grid: 2774 passed@object-ui/types: 10512 passedResourceListPage*: 14 files, 105 passedcheck-adr-0087-registrationwas red until the entry landed and is green now;@objectstack/spec check:skill-examplesrefused (exit 3) because@objectstack/client-reactwas not built in this container, and nothing underskills/**or that package is touchedcheck-plugin-teardown-shape --self-testrefused for a shallow clone andcheck:dual-build-cjs-loadsfor an unbuiltknowledge-turso, both outside this changesrc/migrations) greendeefadb3: 487 files, 4129 passed, 68 skipped, 0 faileddeefadb3: one CLI integration file timed out in its 480 s setup hook; the same file passes locally on the same head (54 of 54), so its failed job was re-run onceAcceptance notes
packages/specfence. The claim's Amendment 1 admits the one semantic entry file, and the maintainer approved it by name; it is the onlypackages/specpath this diff touches.'@objectstack/spec': minoris in the changeset with it.table.saveAll,table.cancelAll,table.modified,table.saveRow,table.cancelChanges; nothing reads them now. Left for a follow-up so this diff stays off the locale files.ui/packages/fields/README.md(around lines 145 to 147) andFieldEditWidget.tsx(around lines 216 to 217) still describe a grid withoutcellSelection.ui/packages/fields/**is outside this claim.useRecordCrudVerdicts'updateOnMountoption has no caller left; removing it is a small follow-up.Verification
Files to read first, by risk:
ui/packages/plugin-grid/src/ObjectGrid.tsx:defaultRowSave(the only save path now) and thehostCellSelectionderivation.ui/packages/components/src/renderers/complex/data-table.tsx: theselectFirst && onRowSaveedit gate and the read-only fallback.ui/packages/types/src/zod/data-display.zod.ts: theonBatchSaveretired refusal.Two-minute check:
pnpm --dir ui exec vitest run packages/components/src/__tests__/data-table-autosave-35685.test.tsxpasses, and its "no staged fallback" describe shows an editable table with no host rendering read-only with exactly one warning line.Generated by Claude Code