Skip to content

DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040) #35827

Done
2 of 2 issues completed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps

Filing gate: ④ child of the coordination parent #35683 (list inline-edit redo). Source: the seat's ruling on the #35685 split (thread b1-I2): keep the slot declared in the per-cell save slice, stop wiring it, and retire it on its own card under ADR-0087.

What is left

DataTableSchema.onBatchSave is a published slot of @object-ui/types (ui/packages/types/src/data-display.ts around line 1776, with its zod mirror in ui/packages/types/src/zod/data-display.zod.ts). Today the table calls it from "Save All" on the pending-changes bar, and ObjectGrid supplies onBatchSave ?? defaultBatchSave (ui/packages/plugin-grid/src/ObjectGrid.tsx, defaultBatchSave). Read on main a8126d24.

#35685 replaces the bar with a per-cell save: each committed cell sends one update for its record, and the card rules out a table-wide "Save All" and any request that merges several rows. Its first slice stops wiring defaultBatchSave and leaves the slot declared, so after that slice lands onBatchSave is a declared slot no renderer calls: a host that sets it gets nothing, silently.

Why

A declared slot that nothing calls is a promise the runtime does not keep (AGENTS.md Prime Directive 10). A host author reading the type would wire a batch handler and never see it run.

Done when

  • onBatchSave is removed from DataTableSchema and its zod mirror, with the ADR-0087 disposition stated in the changeset and the FROM-TO line (FROM onBatchSave TO the per-row onRowSave, one call per record).
  • The jsdoc that names onBatchSave beside onRowSave / onCellChange (data-display.ts around lines 1544 and 1926) is rewritten.
  • git grep onBatchSave ui/ answers zero outside the conversion entry and its tests; the parity pins in ui/packages/types/src/__tests__/ move with it.

Start after the per-cell save slice of #35685 lands (its PR stops calling the slot).

Grading: Task · suggested p2 (epic child, seat's word) · reach: hosts that wire DataTableSchema.onBatchSave in code · evidence: the read above on a8126d24.

Reader: the domain:ui lane, after the #35685 slice merges.

Dedupe: onBatchSave (objectstack issues, open) → 0.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:blocked (edge: starts after the per-cell save slice of #35685 lands; the body names it in prose, so triage holds the edge); rationale: area:ux · Task · child of topic #35683 (list inline-edit redo) · once that slice stops calling it, DataTableSchema.onBatchSave becomes a published @object-ui/types slot that nothing calls, so a host that wires it silently gets nothing; retire under ADR-0087 → p2 (the topic's grade; a dead published slot is a wrong promise) · size S (type, zod mirror, jsdoc, parity pins). A topic child, so it never goes to a sweep card.

  2. added
    domain:ui
    pm:blocked
    priority:p2
    on Nov 20, 2026
  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps

    Premise update, seat-agreed for #35685's first slice: per-cell autosave switches on only where the select-first cell model does (the grids a ListView draws, the scope of the maintainer's record 7035276698 on #35683). Every other grid (related lists, dashboard tables, the record picker, authored object-grid nodes, ObjectView's own grid) keeps the pending-changes bar and "Save All", so ObjectGrid keeps wiring defaultBatchSave for them and onBatchSave still has a caller.

    Waits-for: the later card that moves those grids to the select-first and per-cell save model. This card is not workable until that card lands; it stays open, unassigned.


    Generated by Claude Code

  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-21T03:48Z · Unblocked: the edge triage held for this card, #35685 (its per-cell save slice), is closed as completed. pm:blocked → pm:queue; grade p2 and lane unchanged.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

    Blocked · 2026-11-22T04:11Z · The premise still fails on main: data-table.tsx:3275 still calls onBatchSave, because related lists, dashboard tables, the record picker, authored object-grid nodes and ObjectView's grid still use "Save All" (seat 1's note 7039688829). The "later card" that note waits for was never filed. It is now #36270. This card moves back to pm:blocked until #36270 lands. The 03:48Z requeue rested on a prerequisite that does not exist.

    Blocked-by: #36270

  7. added
    pm:blocked
    and removed
    pm:queue
    on Nov 22, 2026
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: unblocked → pm:queue. The hold named #36270 (moving the other grids to the new inline-edit model), which has now closed, and the body carries no other Blocked-by: line. Grade (p2) and area (ux) are unchanged.

  9. added
    pm:queue
    on Nov 22, 2026
  10. 10 remaining items

  11. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Claim: PM loop round 1 · zone o5-U (area:ux p1/p2; the maintainer, verbatim, 2026-11-25T23:27Z project thread: 「再开两个专区,接ai ux 的 p1 p2 任务」) · 2026-11-26T02:45Z · epic #35683's zone (seat 4 a4-C) takes no new cards; the ruling names o5-U as claimant
    Session: session_01Utp6Ca6EBDpTBZk8v46Jjv
    Thread session: session_01Utp6CZProAps4gBPhsLSVt
    Account: os-bill
    Area: o5-U
    Branch: claude/project-thread-aa564x
    Worktree: objectstack-issue-35827
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/components/src/renderers/complex/data-table.tsx, ui/packages/plugin-grid/src/ObjectGrid.tsx (staged arm, defaultBatchSave, cellSelection prop), ui/packages/types/src/data-display.ts + zod/data-display.zod.ts + parity pins, the in-tree host(s) the retirement touches, the staged-path tests (migrated or deleted), the ADR-0087 registry entry, root .changeset/. Not ui/packages/fields/** or group-row colour code (#36882), skills/**, docs/adr/**, packages/spec/**. Stop on breach and report.
    Container & model: M, mode:thread, model: default — dispatch-gates --tier: "no path-derived mandate" (served claude-opus-5-5 per the thread's first report), effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: n/a — not a defect card
    Thread-read: 7178367040
    Premise: corrected 7178367040 — re-premised on claim per the ruling: retire the staged editing model (cellSelection={false} arm of ObjectGrid, pending-changes bar, "Save All") together with DataTableSchema.onBatchSave and ObjectGridComponentProps.onBatchSave. The card's original premise (slot already unwired) failed (seat 3 reading 7118602927; inbox 7177906101). Census per the premise clause: hotcrm fb0b879 and gallery 782d801, cellSelection|onBatchSave|batchSave|pendingChanges|Save All → 0 hits each (thread's first report); no outside host, no fork.
    Serial constraints cleared: #36882 (this zone, in flight) touches ObjectGrid.tsx group rows only; merge-tree before each push; no other open PR touches these files at claim
    Pre-claim lane: domain:ui; L2 contract review owed (narrowing arm), dogfood battery on the final head
    Pre-claim deps: none
    Prior rulings read: ruling 7178367040 (option A, Bill 2026-11-26T00:01Z); governing text AGENTS.md Prime Directive 10 corollary, ADR-0087 retirement contract, maintainer record 7076617499 on #36270 (one editing model)

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  13. changed the title [-]DataTable: retire the onBatchSave slot once list inline edit saves each cell on its own[/-] [+]DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040)[/+] on Nov 26, 2026
  14. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Zone o5-U · 2026-11-26T02:59Z · fence amendment 1 for the claim 7181103894

    File surface adds, add-only:

  15. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZProAps4gBPhsLSVt
    os-dev-report

    {
      "issue": 35827,
      "status": "done",
      "branch": "claude/project-thread-aa564x",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37437",
      "session": "session_01Utp6CZProAps4gBPhsLSVt",
      "premise_still_valid": true,
      "summary": "Ruling A implemented: the grid's staged edit model retires with its host interface. ObjectGrid loses the cellSelection={false} arm, onBatchSave and the default batch save (cellSelection accepts only true); data-table loses the pending bar, Save All and the row save column; DataTableSchema.onBatchSave is retired on both faces and singleClickEdit removed. Bare-primitive arm (term 2): loud refusal, pinned: an editable data-table without a GridCellSelection host and onRowSave renders read-only and warns once. Staged-path pins migrated to select-first or deleted with comments naming their duplicates; ResourceListPage stays click-to-open (A1). ADR-0087 D3 entry data-table-staged-edit-retired added as packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts (protocol 19 opened on main mid-flight, so the step-19 prefix; registry.ts.template untouched), with the maintainer's approval by name. Outside-host census: hotcrm and gallery, 0 hits.",
      "tests": "components 4958 passed; plugin-grid 2774 passed; types 10512 passed; plugin-list + plugin-view + i18n + plugin-form + data-objectstack onMutation 7654 passed / 0 failed; app-shell ResourceListPage* 14 files 105 passed; the 9 component test files re-edited for check:test-source-alias 41/41; spec src/migrations green; type-check types/components/plugin-grid/plugin-list/app-shell clean; eslint on touched files 0 errors. Local CLI re-check of data-commands.absent-database.integration.test.ts on deefadb3: 54/54.",
      "gates": "dispatch-gates first round 70/73 green: check-adr-0087-registration red until the entry (now exit 0, registered data-table-staged-edit-retired); spec check:skill-examples exit 3 (client-react unbuilt, untouched); check:doc-component-types stale exemptions resolved by keeping a select-first example in both grid docs; check:test-source-alias resolved by module-top react-runtime imports. Spec-file round 39/41 green; check-plugin-teardown-shape --self-test exit 3 (shallow clone), check:dual-build-cjs-loads exit 3 (knowledge-turso unbuilt). overlap-check clean against main and #37436 #37427 #37422 #37387. CI on deefadb3: run 45789943743 attempt 1 failed only Test Core 5/10 (CLI integration beforeAll 480 s hook timeout, passes locally on the same head); one re-run of failed jobs, attempt 2 conclusion success; all check suites green.",
      "dogfood_battery": "deefadb3 · os-verify-lock VERDICT command-exit 0 (held 2353 s, shared box) · Test Files 487 passed, 3 skipped (490) · Tests 4129 passed, 68 skipped (4197) · no failures",
      "mcp_calls": "6 — reads only: get_job_logs x3, actions_get x2, pull_request_read x1",
      "api_writes": "6 — git push x2 (claude/project-thread-aa564x); relay pr_create (#37437, draft); relay run_rerun_failed (run 45789943743); relay issue_patch (PR body); this comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: named producer · locale packs still carry table.saveAll, table.cancelAll, table.modified, table.saveRow, table.cancelChanges with no reader · dead staged locale keys",
        "class: c · reach: named producer · ui/packages/fields/README.md ~145-147 and FieldEditWidget.tsx ~216-217 describe a grid without cellSelection (fenced) · stale fields docs after staged retirement",
        "class: c · reach: named producer · useRecordCrudVerdicts updateOnMount option has no caller · unused verdict option",
        "carrier: PR #37437 acceptance notes · noted, not filed"
      ]
    }

    Generated by Claude Code

  16. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

    Zone o5-U · 2026-11-26T10:44Z · maintainer approval on record for the packages/spec migration entry of this card (asked for by the seat's L2 on PR #37437, 7189751333)

    Bill, verbatim, in zone o5-U's project thread at 2026-11-26T09:00Z: 「同意 #35827 在 packages/spec 加迁移文件」. Bill, verbatim, in the #35827 card thread at 2026-11-26T09:00Z: 「同意」.
    Asked as (zone o5-U, 03:17Z): approve packages/spec/src/migrations/entries/semantic/18.data-table-staged-edit-retired.ts and its one registry.ts.template record (fence amendment 7181311810). Landed as 19.data-table-staged-edit-retired.ts after #37314 opened protocol 19; the template is untouched (step 19's rationale is one string).

  17. added 4 commits that reference this issue on Dec 1, 2026
    5dbcc02
    079edad
    2d7bf92
    e42520c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions