Skip to content

feat(ui): retire the grid's staged edit model with its host interface - #37437

Merged
os-zhuang merged 6 commits into
mainfrom
claude/project-thread-aa564x
Nov 26, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/project-thread-aa564x

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

维护者速读

  • 用户能看到什么变化:所有可编辑表格只剩一种编辑方式,单击选中单元格、双击或回车进入编辑、提交即保存;“全部保存”栏和行内保存按钮全部消失。
  • 为什么做:两套编辑模式并存,旧的暂存模式只剩一个宿主属性在用,按你的裁决让旧模式和它的接口一起退役。
  • 出错会怎样:自己画表格的 React 宿主若还写着旧属性,升级后类型检查直接报错;没有保存通道的裸表格只读显示并在控制台警告一次,可整版回退。
  • 要你做什么:本 PR 约 4000 行改动,超过三千行,需要你本人落地。

What changes

Ruling A on the card ("the old mode and its interface retire together"):

  • @object-ui/plugin-grid: the cellSelection={false} arm of ObjectGrid, onBatchSave and the default batch save are removed. cellSelection accepts only true (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-Match write, 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-table loses 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 editable data-table edits only inside a GridCellSelection host that also passes onRowSave; 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 no objectName or record identity of its own.
  • @object-ui/types: DataTableSchema.onBatchSave is ?: never on the TS face and a retired handler-key refusal on the zod mirror; DataTableSchema.singleClickEdit is removed (it only chose how the staged editor opened). Parity ledgers updated (KnownDrift 92 to 91, RuntimeOnlyDeclared 31 to 30). The keyboardNavigation describe drops its staged sentence.
  • @object-ui/app-shell: ResourceListPage stops passing cellSelection={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).
  • Docs: content/docs/frontend/plugins/plugin-grid.mdx and the plugin-grid README describe the one editing model and the onRowSave hand-off.
  • Changeset .changeset/35827-data-table-staged-edit-retired.md with both declaration lines, the BREAKING banner and the FROM/TO table.
  • @objectstack/spec: the ADR-0087 D3 entry data-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, so registry.ts.template is untouched. No conversion: nothing it retires is authorable metadata.

Outside-host census (ruling premise clause): public clones of hotcrm and gallery at their default-branch heads have zero hits for cellSelection={false} and onBatchSave. 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 in components/src/__tests__/test-utils.tsx: renderSelectFirstTable and openCellEditor.

Readings
  • @object-ui/components: 4958 passed
  • @object-ui/plugin-grid: 2774 passed
  • @object-ui/types: 10512 passed
  • plugin-list, plugin-view, i18n, plugin-form, data-objectstack onMutation: 7654 passed, 0 failed
  • app-shell ResourceListPage*: 14 files, 105 passed
  • type-check: types, components, plugin-grid, plugin-list, app-shell clean
  • eslint on the touched files: no errors
  • dispatch gates, first round: 70 of 73 green; check-adr-0087-registration was red until the entry landed and is green now; @objectstack/spec check:skill-examples refused (exit 3) because @objectstack/client-react was not built in this container, and nothing under skills/** or that package is touched
  • the 41 gates the spec file adds: 39 green; check-plugin-teardown-shape --self-test refused for a shallow clone and check:dual-build-cjs-loads for an unbuilt knowledge-turso, both outside this change
  • spec migration tests (src/migrations) green
  • dogfood battery on deefadb3: 487 files, 4129 passed, 68 skipped, 0 failed
  • CI Test Core 5/10 on deefadb3: 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 once

Acceptance notes

  • packages/spec fence. The claim's Amendment 1 admits the one semantic entry file, and the maintainer approved it by name; it is the only packages/spec path this diff touches. '@objectstack/spec': minor is in the changeset with it.
  • Size. About 4000 changed lines (1216 added, 2787 removed), above the 3000-line line, so this lands by the maintainer.
  • Dead locale keys. The locale packs still carry 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.
  • Fenced, now stale. ui/packages/fields/README.md (around lines 145 to 147) and FieldEditWidget.tsx (around lines 216 to 217) still describe a grid without cellSelection. ui/packages/fields/** is outside this claim.
  • Unused option. useRecordCrudVerdicts' updateOnMount option has no caller left; removing it is a small follow-up.

Verification

Files to read first, by risk:

  1. ui/packages/plugin-grid/src/ObjectGrid.tsx: defaultRowSave (the only save path now) and the hostCellSelection derivation.
  2. ui/packages/components/src/renderers/complex/data-table.tsx: the selectFirst && onRowSave edit gate and the read-only fallback.
  3. ui/packages/types/src/zod/data-display.zod.ts: the onBatchSave retired refusal.

Two-minute check: pnpm --dir ui exec vitest run packages/components/src/__tests__/data-table-autosave-35685.test.tsx passes, 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

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>
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>
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 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
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 176 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json f71d488d6f4d7181cc6e075eb956f92489fb87ba → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 822c41ead92de9f0c79ff952a39840ad91e265c4 — the merge of head deefadb3a13681d5e31f584317f73a7a92c270e2 into base f71d488d6f4d7181cc6e075eb956f92489fb87ba, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head deefadb · 2026-11-26T10:31Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: deefadb3a13681d5e31f584317f73a7a92c270e2
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts + ui/packages/components/src/renderers/complex/data-table.tsx, ui/packages/components/src/renderers/complex/dataTableBindDiagnostic.ts, ui/packages/components/src/context/gridCellSelection.tsx, ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-grid/src/objectGridRowVersion.ts, ui/packages/plugin-grid/src/objectGridTranslations.ts, ui/packages/types/src/data-display.ts, ui/packages/types/src/objectql.ts, ui/packages/types/src/zod/data-display.zod.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx
Security-touching: no

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 origin/main (merge base df0894a664), the 74 check-runs on the head, and both attempts of run 45789943743. The template prints no security line on this face; the one above is written because the dispatch asked for it, and nothing on this PR's landing path reads it.

① Derived judgments

What the diff takes away, each read in the head tree:

  • ObjectGridComponentProps.cellSelection: boolean becomes true (ObjectGrid.tsx:452). Right. At runtime hostCellSelection = cellSelectionProp === true || inlineEditable (:1335), so an editable grid is always select-first and false can no longer keep the staged arm.
  • ObjectGridComponentProps.onBatchSave: declaration deleted, destructuring deleted, defaultBatchSave and saveRowsClaimed deleted, and the onBatchSave ?? defaultBatchSave wire on the built data-table node deleted. Right. ObjectGridComponentProps has no index signature, so an explicit JSX attribute is an excess-property error.
  • DataTableSchema.onBatchSave: the TS face is ?: never (data-display.ts:1798) and the zod mirror moves from 'runtime-slot' to 'retired' (data-display.zod.ts:544). Right. The parse refused the key by name before and still does; only the disposition and its message changed. Pinned by RetiredIsNever and the 60/23 ledger counts in handler-keys-json-refusal-6124.test.ts.
  • DataTableSchema.singleClickEdit: deleted from the interface. It never had a zod arm (it was a RuntimeOnlyDeclared key). Right as a removal: BaseSchema carries no index signature, so a fresh literal that sets it fails tsc. It is a deletion, not this package's ?: never tombstone; see N1.
  • data-table behaviour: editable = editableProp && selectFirst && typeof schema.onRowSave === 'function' (data-table.tsx:1668-1669). The pending-changes bar, Save All, Cancel All, the row save and cancel buttons, the edit-only column header, click-to-edit, the amber tints, saveRow, saveBatch, erroredRows and the non-select-first focus-return branch are gone. Right. Each removed branch was reachable only with selectFirst false or autosaves false, and editable is now false in both.
  • Exports removed: BatchSaveOutcome (objectGridRowVersion.ts, an internal module) and five fallback copy rows in TABLE_DEFAULT_TRANSLATIONS. Right. One export is added: describeUnsavableEditable with DATA_TABLE_EDITABLE_DIAGNOSTIC_PREFIX.
  • Record verdicts: the updateOnMount argument is dropped from the one useRecordCrudVerdicts call. Right. It was true only when inlineEditable && !hostCellSelection, which cannot hold any more.
  • Declarations: the PR body and the changeset both carry line-initial Clause-②: no (narrowing) and Metadata-protocol: narrowed. The changeset has the BREAKING banner, a five-row FROM/TO table, the one-line fix and the marker adr-0087: registered data-table-staged-edit-retired. Each removed item above has its FROM/TO row. narrowed is the ruled kind (term 4) and holds on content: a data-table key leaves the interface, and an authored editable: true with no save path is now refused where it used to stage.

The −2787 lines are dead at the head. Greps of the whole head tree, covering docs, skills, examples and tests:

  • defaultBatchSave, BatchSaveOutcome, saveRowsClaimed, saveBatch, cancelAllChanges, cancelRowChanges, erroredRows, pendingCellFocusRef, table-save-refusal: zero code references. One stale comment survives (N5).
  • onBatchSave: only the tombstone, the zod refusal, the comments that explain the retirement, the pins, the docs' upgrade lines and the changesets.
  • cellSelection={false}, cellSelection: false, onBatchSave=: zero in ui/**, examples/**, packages/** and skills/**, outside prose that names the retirement.
  • skills/** and examples/**: zero hits for onBatchSave, cellSelection, Save All, saveAll. The PR's Skills-docs: none holds.
  • No host other than ObjectGrid builds an editable data-table or supplies onRowSave. GridCellSelectionProvider is mounted in one place, ObjectGrid.tsx:5325. So no in-tree surface falls into the new read-only arm.
  • git merge-tree of the head onto origin/main at 54ea3c8c38 is clean. The 8 commits main gained since the PR's last merge add no use of any retired name.

② Semver level

minor on @object-ui/types, @object-ui/components, @object-ui/plugin-grid, @object-ui/app-shell and @objectstack/spec matches AGENTS.md: a narrowed kind takes at least minor on each package the diff moves, and a breaking change keeps its banner at that level. @objectstack/spec: minor goes with the entry file, as in #37314. @object-ui/data-objectstack and @object-ui/plugin-list change comments only and rightly carry no bump. Check Changeset and its ADR-0087 step are green on the head.

Clause-②: no (narrowing) — correct. Nothing is widened; describeUnsavableEditable is an added export of a diagnostics module, not an accept-set.

③ Boundary flags

  • SQL push-down: not applicable. The diff holds no query, id materialisation or join.
  • open_questions in the os-dev report: empty.
  • Approval for the packages/spec entry: none is recorded. The claim 7181103894 fences out packages/spec/**. Fence amendment 1 (7181311810) admits the entry file, but it is the seat's own comment and quotes no maintainer. The PR body and the os-dev report say the maintainer approved it by name; no comment on the card or the PR quotes that approval, and the o5-U thread is outside this review's inputs. Ruling term 4 does order an ADR-0087 entry, and such entries live only under packages/spec. Escalated: the maintainer lands this PR himself (over 3000 lines), so his merge is the approval; a quoted line on the card would close the record.
  • Dogfood battery: the report's dogfood_battery opens with deefadb3, the 8-hex prefix of the head, not the full 40-hex sha. BATTERY_SHA_SHAPE in label-write.mjs takes 7 to 40 hex, so the land gate reads it as pinned to this head. Reported: VERDICT command-exit 0, 487 files passed and 3 skipped of 490, 4129 tests passed and 68 skipped of 4197, no failure. Full battery, on the final head, as ruling term 4 asks.
  • Test Core (5/10), attempt 1: unrelated to this diff.
    • Signature: packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.ts:703:3, Hook timed out in 480000ms. A timeout, not an assertion. The run reported 220 of 221 files passed and 2732 tests passed.
    • It is a known flake: open card cli test: data-commands.absent-database.integration.test.ts times out its hook at 480 s in a merge-queue Test Core shard #37183, filed 2026-11-25 against merge-queue run 45528039199 of ci(temporal-conformance): PostgreSQL service on pgvector's PG 16 image; merge-queue run on live paths #37155, same shard, same file, same line.
    • Attempt 2 of the same job on the same head is green, and all 74 check-runs on the head are success or skipped.
    • Does a changed path feed the test? Nominally yes: the hook spawns the source CLI 46 times, the CLI imports @objectstack/spec, and the diff adds one spec file. That file is a 36-line constant of strings and adds no work to a boot. No path under packages/cli is in the diff.
    • So the first of the seat's three facts (import closure disjoint from the diff) does not hold on its letter, and the re-run stands on the known-signature branch instead. The audit comment that branch asks for is not on the PR; the PR body and the report carry the account.
  • The three noted-not-filed items:
    • Dead locale keys (table.saveAll, table.cancelAll, table.modified, table.saveRow, table.cancelChanges; still in the locale packs, no reader): no new card. Dead strings are outside the filing gate. They belong to the v19 line's existing @object-ui/i18n retirement of released keys no code reads; a comment on that family's card carries them.
    • ui/packages/fields/README.md:145-149 and FieldEditWidget.tsx:216-219: needs a card. The README ships in the package (files[]) and still says a grid without cellSelection opens the rich-text box over the cell and keeps the text for the grid's save buttons. After this PR that is wrong text that a release fixes in place, which is the filing gate's release-text exception. The card should also check whether the over-the-cell branch behind those lines is now unreachable.
    • useRecordCrudVerdicts' updateOnMount option (useRecordCrudVerdicts.ts:521, no caller, internal hook): no card. Dead code; the acceptance note is its record.
    • The report files all three as class: c. None is: class c is a metadata trap with a named producer, and these are dead strings, stale prose and dead code.
  • content/docs/releases/v19/index.mdx:273-275 says protocol-18-range-refused sits on the protocol-19 step and the other 30 on step 18. With this entry step 19 holds two. The page is release-owned and outside this diff; the release seat should hear of it.
  • Security: no hunk moves a permission, sharing, credential or token boundary. Editing only narrows (editable now also needs a save path). The surviving save path keeps its rule check, If-Match guard and conflict dialog (defaultRowSave, writeRowInPlace). The dropped updateOnMount served only the removed arm. The migrated permission pins (inlineEditPermissionGate, inlineEditFieldWriteGrant-12103, maskedColumnSurfaces-10583) drive the gesture that would open an editor (select, then double-click or Enter) and keep their controls. The report's security_findings is none.

④ Design judgment

No must-fix, no should-fix.

The entry file, 19.data-table-staged-edit-retired.ts:

  • Form: a SemanticMigration with id, surface, replacement, reason and acceptanceCriteria, and no conversionIds. Correct for a D3 entry with no D2 conversion.
  • Step: 19 is right. PROTOCOL_VERSION is 19.0.0 at the head, registry.ts.template declares step19 with a generated semantic:19 block, and feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314 records that a v19-line retirement filed under step 18 is not shown to an 18-to-19 upgrader. The template is rightly untouched: entries are added as files, and the step's rationale is one string.
  • Surface, replacement and reason agree with the code sentence by sentence: cellSelection takes only true; a host may still pass true; an editable data-table without both a cell-selection host and onRowSave renders read-only and warns; nothing authorable is rewritten.
  • The acceptance text says the type check refuses all the retired spellings. That holds for typed call sites and literals (N1 and N2 name its edge).

The narrowing against the ruling:

  • Term 1 (staged arm, onBatchSave on both interfaces, cellSelection={true} kept, absent means editable is select-first and read-only is click-to-open): implemented as ruled.
  • Term 2 (bare-primitive arm): the dev chose loud refusal. It sits at the right door, the renderer, where editable is resolved and where the module's sibling diagnostics already speak, on the same channel (console.warn, keyed on the message, prefix [ObjectUI] DataTable editable:). It holds for no host, for a host without onRowSave, and for a host with onBatchSave alone, which is the old staged-under-select-first arm and is now read-only with the onRowSave line. Pinned in data-table-autosave-35685.test.tsx:272-311 by three cases: no provider, provider without onRowSave, and a read-only control that warns nothing.
  • Term 3 (pins): three test files deleted with the behaviour they pinned, the rest migrated to select-first gestures. keyboardNavigation's jsdoc lost its staged sentence.
  • Term 4: declarations, entry and battery as above.
  • Premise clause: the census (hotcrm fb0b879, gallery 782d801, 0 hits) is the dev's reading. Those repos are outside this review's inputs, so it is not re-measured here.

Ways an author can still write the old mode, and what each meets:

Spelling What it meets
typed host, cellSelection={false} on ObjectGrid tsc error
typed host, onBatchSave on ObjectGrid tsc excess-property error
onBatchSave on a DataTableSchema value tsc error (never)
onBatchSave in a JSON document zod refusal by name, as retired
editable data-table with no host or no onRowSave read-only, one console warning naming what is missing
untyped or cast host passing cellSelection={false} or onBatchSave to ObjectGrid nothing at runtime (N2)
singleClickEdit on a data-table node in a document parses, inert (N1)

Nits. None changes correctness or the contract; each is an accepted deviation or a follow-up, and none needs a head move.

  • N1 (nit) — DataTableSchema.singleClickEdit is deleted, not left as this package's ?: never tombstone (objectql.ts:1337 states that convention). A non-literal value, or a document through the mirror's .passthrough(), still carries it in silence. It is harmless alone: the key only chose how the staged editor opened, and its companion editable: true now warns.
  • N2 (nit) — ObjectGrid says nothing at runtime to an untyped host that still passes cellSelection={false} or onBatchSave. The grid turns select-first and writes each cell through onRowSave or its own dataSource.update, and the batch handler is never called. The ruling names the type error as the door, so this complies. No test pins the narrowed prop type (cellSelection is true | undefined; onBatchSave is not a key of the props), so a later widening would pass every test.
  • N3 (nit) — the warning text and the changeset tell the author to mount GridCellSelection. That is the context's value type; the component to mount is GridCellSelectionProvider (components/src/index.ts:187).
  • N4 (nit) — the retired refusal for onBatchSave uses the generic handlerKeyRefusal text: it cites objectui#6124 and points at a toast or action node, not at onRowSave or object-grid, which is this retirement's FROM/TO.
  • N5 (nit) — leftovers in tests: plugin-form/src/affordanceGrantMap-12082.test.tsx:909 still names defaultBatchSave in a comment; two assertions query the removed data-table-edit-column-header test id and can only read null (data-table-autosave-35685.test.tsx:130, data-table-select-first-35684.test.tsx:339); case e of inlineEditPermissionGate.test.tsx now compares two shapes that cannot differ.
  • N6 (nit) — the card's original Done-when asked for git grep onBatchSave ui/ to read zero outside the entry and its tests. The head keeps a never tombstone and a by-name refusal instead. That is the stricter of the two and follows the re-premise in ruling 7178367040; recorded as an accepted deviation.

Implemented-by: claude/project-thread-aa564x
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

维护者速读

  • 改了什么:表格(data-table / ObjectGrid)的「暂存后批量保存」模式整体退役,只保留逐行保存。cellSelection 只能是 true,onBatchSave 和 singleClickEdit 删除,约 2800 行。仍然这样写的作者,在类型检查和 schema 校验时会被拒绝,渲染时也会给出明确警告。
  • 为什么:执行 DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040) #35827 的裁决(7178367040)。两套保存方式并存,权限检查和并发保护只在逐行保存那一路是完整的。
  • 风险:这是收窄,已经按收窄声明(BREAKING、FROM→TO 表、ADR-0087 第 19 步条目),@objectstack/spec 等五个包 minor。全仓没有任何地方还在用被删的东西,hotcrm 和 gallery 的普查也是 0 处。dogfood 全量回归在当前 head 上跑过:4129 个通过,0 失败。
  • 需要你知道的一点: 这个 PR 在 packages/spec 里加了一个 ADR-0087 迁移条目。区里说你 09:00Z 在 o5-U 线程里口头批准过,但卡片和 PR 上都没有引用原话。你合并就等于批准这个条目。
  • 要你做什么:批准并合并。超过 3000 行(4040 行),需要人合并。契约复核 PASS 在评论 7189751333,Head-sha deefadb3a13681d5e31f584317f73a7a92c270e2。

席位意见:ACCEPT。收窄范围完整声明,删除的代码都已无人使用,拒绝点位正确。6 条 nit 都不影响正确性。

席位核对

Head-sha: deefadb3a13681d5e31f584317f73a7a92c270e2
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, 69 files (+1253/−2787), Fixes #35827, Clause-②: no (narrowing), Metadata-protocol: narrowed, BREAKING with a five-row FROM/TO table, five packages at minor. It matches no governed path but is over 3000 lines, so it lands as Tier H.
  2. Premise: ruling 7178367040 retires the staged batch-save mode.
    • The ADR-0087 entry 19.data-table-staged-edit-retired.ts is correct in form (D3), step (19) and surface. check-adr-0087-registration is green.
    • The loud refusal sits at the renderer and is pinned by three cases.
  3. Gates:
    • Contract record 7189751333 (CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS, with no must-fix or should-fix.
    • Dogfood battery pinned to deefadb3 (os-dev report): 4129 passed, 0 failed.
    • Checks at deefadb3a1: 63 success · 11 expected skip · 0 failed · 0 pending. Mergeable clean.
  4. Test Core 5/10, attempt 1 (L1 judgement on the re-run):
  5. Accepted deviations (nits):
    • N1: singleClickEdit is deleted rather than tombstoned.
    • N2: no runtime notice for an untyped cellSelection={false} / onBatchSave.
    • N3: the warning and changeset say GridCellSelection, but the export is GridCellSelectionProvider.
    • N4: the zod refusal text is generic.
    • N5: test leftovers.
    • N6: the Done-when is met by a stricter tombstone.
  6. Out of scope and where it went:
  7. Landing terms: lands as Tier H, by size and narrowing. The same-head PASS is at CONTRACT_REVIEW_TIER with the battery pinned. It waits for the maintainer's approval and merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 CONTRACT_REVIEW_TIER: comment 7189751333, Head-sha deefadb3a13681d5e31f584317f73a7a92c270e2; dogfood battery pinned to that head. The maintainer merges; the merge also approves the ADR-0087 spec entry.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 26, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 26, 2026 11:30
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 5dbcc02 Nov 26, 2026
123 of 125 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-aa564x branch November 26, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants