Skip to content

行内编辑收尾:触屏平板、无障碍、分组与合计随保存更新、与勾选的配合 #35689

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单(专题:列表行内编辑重做,维护者直派,见本卡挂靠的父卡)。⛔ 不是认领。优先级 p2。

维护者 2026-11-20 原话:「以上都同意」。本卡是行内编辑重做的收尾部分,排在交互、保存、键盘、浮层四张之后。

现状(主干 d96c878e33)

  • 768 以下列表渲染成卡片,不是表格(ui/packages/plugin-grid/src/ObjectGrid.tsx 约 3431),不涉及行内编辑。触屏平板上是表格,没有悬停和键盘。
  • 可编辑时表格用 role="grid" 和单一焦点(data-table.tsx:2893-2914);没有保存结果的朗读区,只读格没有 aria-readonly。
  • 分组列表和表尾合计:改了分组字段或被合计的字段后是否刷新,未核实。

要做的

  • 触屏平板:点一下打开记录;行内编辑通过记录页或显式的编辑入口,不靠双击。
  • 无障碍:表格 role="grid";只读格 aria-readonly;保存成功、失败用朗读区播报;浮层关闭后焦点回到原单元格;选中框的对比度达标。
  • 分组与合计:改了分组字段,这一行在用户离开后移到新的分组;分组小计和表尾合计随保存更新。
  • 选择列:勾选多行后再编辑某一格,只改这一格,不批量改;勾选状态保留。

不做的

  • 手机卡片视图上的行内编辑。

验收

  • iPad 尺寸、触摸:点一行打开记录,没有误进编辑。
  • 读屏软件下:移动到只读格读出只读;保存后读出结果。
  • 按阶段分组的列表里把一条的阶段从甲改成乙:离开这一行后它出现在乙组,两个组的条数和金额小计正确。
  • 表尾合计在改了金额后更新。

Reader: domain:ui 车道。ui/packages/plugin-grid/src/ObjectGrid.tsx、ui/packages/components/src/renderers/complex/data-table.tsx。依赖本专题的交互模型和保存模型两张子卡。

Dedupe: 行内编辑 触屏、aria-readonly grid、分组 合计 行内编辑(objectstack,open)→ 0。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature (touch tablets, accessibility, groups and totals updating on save, the interplay with selection) · a child of the inline-editing topic #35683 (the maintainer's list-page work) → p2 as the coordinator set it; topic UX Features take p2 under the rules.

  3. added
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop · area a4-F · 2026-11-22T03:05Z · slice A of #35689 (Part of #35689): accessibility, plus pins for the touch and selection items; slice B (group move and subtotal/footer refresh after a save) follows on its own PR after a4-D's #36082 lands (shared useWholeSetSummary.ts / objectGridGrouping.ts)
    Session: session_01FEkQ5oY5WCqqqBMtn9qt7m
    Account: os-project-manager
    Branch: claude/issue-35689-inline-edit-a11y
    Worktree: objectstack-issue-35689
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-F
    File surface: ui/packages/components/src/renderers/complex/data-table.tsx (cell aria-readonly, one persistent polite live region for cell save results, selection frame colour token if contrast fails), ui/packages/components/src/renderers/complex/dataTableCellOverlay.tsx (focus only if a gap is measured), the read-only reason source in ui/packages/plugin-grid/src/ (objectGridCellFacts.ts) only to expose read-only to the table, i18n keys for the announcements, new card-named tests (touch tap opens the record and never edits; a cell edit with rows checked edits one cell and keeps the checks), a changeset (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: high (seat area order a4-F)
    Clause-②: no (expected; new @object-ui/i18n keys would read yes (widening): measured by the dev on the built declarations, and this line is amended then)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7025512457
    Premise: corrected by reading at origin/main a5a5312 (written against d96c878). Touch: done on main (#35684 isTouchPress, data-table cell click and double-click) ⇒ pins only. Selection: commitCellValue stages one cell on one row and never reads selectedRowIds ⇒ pin only. Accessibility: role="grid" present; aria-readonly absent; save result has only a transient per-cell role="status" and a failure role="alert", no persistent live region; focus return done for keyboard-ended edits; selection frame contrast unmeasured. Groups/totals: not done (a held own write patches rows at draw time only; grouping, group aggregations and the rows-mode footer read unpatched rows) ⇒ slice B.
    Pre-claim lane: repo:objectstack whole-repo lane; paths ui/packages/** (domain:ui); seat 1 hand-over (mailbox #36124 comment 7073058497).
    Pre-claim deps: the interaction and save model children of #35683 are merged (#35684, #35687, #35864, #35898).
    Prior rulings read: card thread → triage p2 only; epic #35683 rulings on the card (Enter saves and stays, 7060745834 on #36023; Esc discards) are not touched by this slice.
    Fold-or-serial: slice A not folded with #36023's rich-text slice (both edit data-table.tsx, different blocks); seat 1 #35795 edits data-table.tsx too; overlap-check before each push, second lander merges main.
    Serial constraints cleared: slice B is serial behind a4-D #36082 (claim 7073157176); slice A has none blocking at origin/main a5a5312

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5oY5WCqqqBMtn9qt7m
    os-dev-report

    Last pushed sha 2c776b4 on #36332 (draft). State: slice A done; slice B left; real screen reader / iPad and CI completion unverified.

    {
     "issue": 35689,
     "status": "done",
     "branch": "claude/issue-35689-inline-edit-a11y",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36332",
     "session": "session_01FEkQ5oY5WCqqqBMtn9qt7m",
     "premise_still_valid": true,
     "summary": "Slice A done at pushed head 2c776b47 (Part of #35689; slice B group move and subtotal/footer refresh left for its own PR). In the grid, a read-only data cell and the focus inside the selected cell carry aria-readonly (host facts for the selected cell only, because describeCell is declared never-per-render; table facts elsewhere); a table that saves per cell has one persistent sr-only polite live region saying 'Saved: COLUMN' (new key table.cellSavedAnnouncement in all 11 packs), failures stay with the existing cell alert, and the per-cell mark is no longer a live region. Measured gap fixed: a touch tap on an unselected lookup cell's invisible edit button opened the editor in place; now a finger never draws it and a touch click on one drawn for a mouse edits nothing. Touch tap, picker focus return (Esc and pick) and checked-rows-edit-one-cell held on main and are pinned; selection frame contrast passes (console light 3.97 on background, 3.40 worst on full muted; dark 6.34; components theme 14.5+), no change. Unverified: real screen reader and real iPad; CI was in progress at hand-over.",
     "tests": "Under os-verify-lock. At e276bef2: components+i18n type-check exit 0 both; pnpm --dir ui exec vitest run packages/components/ packages/i18n/ gives Test Files 608 passed 1 skipped, Tests 6818 passed 37 skipped; ui scripts/ gives 172 passed 2 skipped files, 5122 tests passed. At final head 2c776b47 (after merging origin/main 99fbaa6d, no data-table change incoming): 3 touched harness files + packages/i18n/ gives Test Files 108 passed, Tests 2045 passed 13 skipped. Ablations via ablation-replace.mjs (on-disk mutation proven, restored to HEAD blob 23cae754, git diff HEAD empty): cell aria-readonly removed gives 2 red (first attempt refused as no-op, rerun with --delete); live-region success saying removed gives 2 red; touch guard removed gives 1 red. Source-resolved suites, no dist on path, no per-leg rebuild owed.",
     "gates": "dispatch-gates --commands derived 41 families (identical on e276bef2 and 2c776b47); all run, exit 0 except pnpm check:type-check-debt exit 3 PREREQUISITE NOT MET (closure build never got the lock) = NOT MEASURED, CI Lint and Repo Gates owns it. --ran: 41 derived, 40 run, 1 NOT-MEASURED, 0 UNRUN, exit 0. check:nul-bytes on 2c776b47 exit 0. overlap-check before each push: VERDICT clean. PR check-runs on 2c776b47 at hand-over: 19 success, 13 skipped, 0 failure, 24 in_progress (Test UI 1-16/16, Type Check UI, Lint UI, Build and E2E UI, Lint repo/CI/PM gates) - not waited per hand-over order.",
     "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "3 - git push (branch, 4 pushes), relay pr_create POST /repos/objectstack-ai/objectstack/pulls + POST issues/36332/assignees (one dispatch, run 44993340634), this os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/35689/comments via post-stamped.mjs",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none - noted in PR Acceptance notes only: aria-readonly on unselected cells reflects table-level facts only (bounded by the describeCell never-per-render contract); a touch tap on a lookup edit button drawn earlier for a mouse now does nothing (the row ignores button clicks) rather than opening the record"
     ],
     "deviations": "(1) Dispatch order said no assignees on pr_create; os-dev.md rule 2 says the PR carries the claim Account, and os-dev.md wins on conflict, so assignees [os-project-manager] was sent. (2) Commit trailer model-free per AGENTS.md (harness reminder asked for a model-named trailer). (3) PR footer in the AGENTS.md session-URL form, not the harness emoji form. (4) Clause-② line amended from the claim's 'no' to 'yes (widening)' by measurement: dist/locales/en.d.ts declares readonly cellSavedAnnouncement. (5) Handover mode: CI not driven to green.",
     "files_changed": 16,
     "net_added_lines": 256
    }
  7. 9 remaining items

  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds
    os-dev-report

    Rework round on #36332 (Part of #35689, slice A). Final green head 65b9199.

    {
      "issue": 35689,
      "status": "done",
      "branch": "claude/issue-35689-inline-edit-a11y",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36332",
      "session": "session_01QsR2jUc3qp6bHKSWijbjds",
      "premise_still_valid": true,
      "summary": "Rework round on #36332 (Part of #35689, slice A; slice B stays on the card). Final green head 65b9199f95b7ca25ab1822e534472547bc1d767e (CI 45 success, 13 skipped, 0 failure). S1 (L1+L2) → 1733276c, 6bc85294: the table asks describeCell for the selected cell when it becomes selected and keeps the answer in state (selectedHostReadOnly), re-asked only on a re-read row or a new host value, never per render; TSDoc unchanged; ObjectGrid's GridCellSelection value is memoised on what its facts read, so it is new only when an answer can change. S2 (L2) → 1733276c, re-applied in merge 65b9199f on main's batched lock read (#36295): useRowApprovalLocks re-renders its host when a lock read answers (and when answers are dropped), so a lock answered after selection turns aria-readonly on (or off) on the selected cell without moving; pinned both ways and ablated. N1 → 1733276c: comment says the tap on a mouse-drawn button does nothing; pressedByRef is cleared by the click that reads it (an AT click after a tap edits). N2 → 1733276c: names joined with validation.formInvalidJoiner (zh/ja read the ideographic comma), a header-less column is never named by its key (region says Saved). N3: final file surface for the claim amendment (19 files): .changeset/35689-inline-edit-a11y.md; ui/packages/components/src/renderers/complex/data-table.tsx; ui/packages/components/src/__tests__/data-table-select-first-35684.test.tsx; ui/packages/components/src/__tests__/data-table-autosave-35685.test.tsx; ui/packages/components/src/__tests__/data-table-keys-35687.test.tsx; ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts; ui/packages/plugin-grid/src/ObjectGrid.tsx; ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts; ui/packages/plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx (the changeset now also names @object-ui/plugin-grid: patch). Coordinator's #36357 notice, measured: #36357 at d084d3db touches only plugin-view (ObjectView passes cellSelection: true to an editable grid); it does not edit ObjectGrid.tsx. ObjectGrid already passes singleClickEdit: schema.singleClickEdit ?? true on main. In the select-first model a click only selects, so singleClickEdit is never read, and this PR's touch pins already run with singleClickEdit: true: the touch rule holds under #36357 and no pin flips. A grid on the older click-to-edit model (no cellSelection) still edits on a touch tap, as before; noted in the PR's Acceptance notes. Unverified: real screen reader and real iPad.",
      "tests": "All at 65b9199f through os-verify-lock. Closure build pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-grid^...' build + type-check of @object-ui/components, @object-ui/plugin-grid, @object-ui/i18n: VERDICT command-exit 0, all three script names echoed. Six harness files (three data-table harnesses, ObjectGrid.cellSelection-35684, ObjectGrid.autosave-35685, ObjectGrid.requiredPrompt-35956): Test Files 6 passed (6), Tests 154 passed (154). pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ packages/components/ packages/i18n/: Test Files 910 passed | 1 skipped (911), Tests 9532 passed | 37 skipped (9569), VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs (anchor hit 1, blob changed, restored to HEAD blob, git diff HEAD empty): A1 per-render ask restored → 1 red (describeCell expected 2 calls, got 5); A2 hook re-render removed → 2 red (both lock-answer pins); A3 press not cleared → 1 red (AT click pin); A4 Latin comma → 1 red (zh join pin); A5 key fallback → 1 red (header-less pin). Restore proof: data-table.tsx blob b7a0e669 and hook blob 271953e6 equal HEAD, git diff HEAD 0 lines. Suites resolve source (ui vitest aliases @object-ui/components to src; hook imported relatively): no per-leg rebuild owed.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 65b9199f: 42 families (19 paths vs merge base c448c615); all exit 0 (check:query-options-erasure first hit the loop's 300 s cap, re-run uncapped exit 0 'ratchet holds'); pnpm --dir ui exec vitest run scripts/: 172 passed 2 skipped files, 5127 tests passed, exit 0; pnpm check:type-check-debt exit 0 ('0 raw tsc error(s)'). --ran: 42 derived, 42 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. ui i18n: check:i18n-keys, check:i18n-drift, check:i18n-dead-keys exit 0. overlap-check before push: first VERDICT overlap exit 1 (origin/main conflicted on useRowApprovalLocks.ts and its test, from #36295) → merged origin/main → VERDICT clean exit 0. eslint on the changed files vs 2c776b47: the 2 errors are pre-existing (react-hooks/static-components), new warnings +1 react-hooks/set-state-in-effect (the select-time layout effect), no ratchet. PR check-runs on 65b9199f: 45 success, 13 skipped, 0 failure: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI and 16/16 shards, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards all success.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (1 push, 2c776b47..65b9199f); relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/36332 (PR body to the new head, run 45011011691, read-back 15288 bytes identical); this os-dev-report POST /repos/objectstack-ai/objectstack/issues/35689/comments via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in the PR's Acceptance notes, not filed: a grid on the older click-to-edit model (no cellSelection, singleClickEdit true) still edits in place on a touch tap, unchanged by this PR and outside slice A; the ObjectGrid memo has no pin of its own (its ask count is internal to the host); the coordinator's #36357 notice described an ObjectGrid change that #36357's diff at d084d3db does not contain (it edits ObjectView only)"
      ],
      "deviations": "(1) Merged origin/main (overlap-check reported a real conflict on useRowApprovalLocks.ts and its test from #36295); the S2 edit was re-applied on the new hook inside the merge commit 65b9199f. (2) Commit trailers model-free per AGENTS.md (harness reminder asked for a model-named Co-Authored-By). (3) PR footer in the AGENTS.md session-URL form; the harness first-line attribution comment kept as is, the signed line last. (4) Kept describeCell's TSDoc unchanged (option a); ObjectGrid's value memoised so the contract holds for the in-tree host too, beyond what the reviews named."
    }
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim amendment: PM loop · area f7-list · 2026-11-22T10:23Z (amends 7075957369; seat L2 delta 7077725274 N3)
    File surface (slice A, PR #36332 @ 65b9199f95b7ca25ab1822e534472547bc1d767e, 19 files, dev report 7077625407): ui/packages/components/** (src/renderers/complex/data-table.tsx; tests data-table-select-first-35684, data-table-autosave-35685, data-table-keys-35687), ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts, ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts, ui/packages/plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx, .changeset/35689-inline-edit-a11y.md (now also bumps @object-ui/plugin-grid: patch).
    Clause-②: yes (widening)
    Metadata-protocol: none
    Everything else in 7075957369 stands; slice B is not in this claim.

  10. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds
    os-dev-report

    Delta round on #36332 (Part of #35689, slice A). Final green head 6991954.

    {
      "issue": 35689,
      "status": "done",
      "branch": "claude/issue-35689-inline-edit-a11y",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36332",
      "session": "session_01QsR2jUc3qp6bHKSWijbjds",
      "premise_still_valid": true,
      "summary": "Delta round on #36332 (Part of #35689, slice A). Final green head 699195459b2c9555d0b488a1eeca070dede19dd0 (one commit over 65b9199f; CI 47 success, 15 skipped, 0 failure after the body patch). L1-d 7078101760 item 1 and L2 R1 (7077725274) map to 69919545. GridCellSelection.describeCell's TSDoc (ui/packages/components/src/context/gridCellSelection.tsx) now says when the table asks it: when the reader acts on a cell, once as a cell becomes selected, and again when its row is re-read or the provider's value is a new object. It also says the value's identity is part of the contract: keep it stable (memoised) or the selected cell is asked on every render. The two data-table.tsx comments that echoed 'never per render' are aligned. No code change. This round adds 1 file to the surface (20 files): .changeset/35689-inline-edit-a11y.md; ui/packages/components/src/context/gridCellSelection.tsx; ui/packages/components/src/renderers/complex/data-table.tsx; ui/packages/components/src/__tests__/data-table-select-first-35684.test.tsx; ui/packages/components/src/__tests__/data-table-autosave-35685.test.tsx; ui/packages/components/src/__tests__/data-table-keys-35687.test.tsx; ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts; ui/packages/plugin-grid/src/ObjectGrid.tsx; ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts; ui/packages/plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx. #36357 was read at 579f99ae (moved on from 1c2a16b9). It edits ObjectGrid.tsx and ObjectGrid.cellSelection-35684.test.tsx and merges cleanly with 69919545. The PR body's #36357 note is corrected from the stale d084d3db reading, with the cellSelection={false} residual named. Earlier rounds' item map stands: S1 at 1733276c and 6bc85294, S2 at 1733276c and 65b9199f, N1 and N2 at 1733276c.",
      "tests": "At 69919545 under os-verify-lock: closure build pnpm --workspace-concurrency=2 --filter '@object-ui/components^...' build, then pnpm --filter @object-ui/components run type-check (script echoed), then pnpm --dir ui exec vitest run --maxWorkers=2 on the three data-table harnesses + ObjectGrid.cellSelection-35684: Test Files 4 passed (4), Tests 116 passed (116), VERDICT command-exit 0. No ablation: a comment-only delta changes no tested behaviour.",
      "gates": "dispatch-gates --commands re-derived at 69919545: the same 42 families as at 65b9199f (all run there, --ran 42/42, 0 NOT-MEASURED). This round re-ran only pnpm check:nul-bytes (exit 0); this is a declared narrowing for a comment-only delta, and CI runs the rest. overlap-check at 69919545: against origin/main ff601499 and 10 open heads, VERDICT clean exit 0 (#36357 merges cleanly); with --pr=36357, VERDICT clean exit 0. PR check-runs on 69919545: 47 success, 15 skipped, 0 failure. Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Check Changeset succeeded; Build Core was skipped.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 this round — git push (65b9199f..69919545); relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/36332 (body to 69919545, run 45016852500, read-back 16981 bytes identical); this os-dev-report POST /repos/objectstack-ai/objectstack/issues/35689/comments via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · unchanged from the previous report (older click-to-edit model edits on a touch tap; host passing cellSelection={false} is the residual once #36357 lands; ObjectGrid memo unpinned), noted in the PR's Acceptance notes"
      ],
      "deviations": "(1) Worktree recreated from origin/claude/issue-35689-inline-edit-a11y at 65b9199f; the local branch of the same name still existed at 65b9199f and was checked out (a temporary branch name used to create the worktree was deleted). (2) Commit trailers model-free per AGENTS.md. (3) Local re-run narrowed to the components type-check, the data-table and lock harnesses and nul-bytes, per the dispatch, for a comment-only delta."
    }
  11. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim amendment: PM loop · area f7-list · 2026-11-22T11:26Z (amends 7075957369 and its first amendment)
    File surface: as the first amendment, plus ui/packages/components/src/context/gridCellSelection.tsx (describeCell TSDoc only; PR #36332 @ 699195459b2c9555d0b488a1eeca070dede19dd0, 20 files).
    Clause-②: yes (widening)
    Metadata-protocol: none

  12. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim: PM loop · area f7-list · slice B of #35689 (Part of #35689 or Fixes if nothing else remains; slice A is PR #36332, queued)
    Session: session_01QsR2jUc3qp6bHKSWijbjds
    Account: zhuangjianguo
    Branch: claude/issue-35689-group-refresh
    Worktree: objectstack-issue-35689-b
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-list
    File surface: objectstack ui/** only — ui/packages/plugin-grid/src/ (grouping / group subtotals / footer totals after an inline save: ObjectGrid.tsx, useGroupedData.ts, useServerGrouping.ts, footer summary), ui/packages/components/src/renderers/complex/data-table.tsx if the save path lives there, new card-named tests, a changeset. ⛔ No server or spec change (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/plugin-grid grouped list / footer after an inline save | none | list users editing a grouped or totalled grid: a row whose group field changed, group subtotals and the footer total (unverified on main per the card)
    Thread-read: 7078452600
    Premise: the card says 「分组列表和表尾合计:改了分组字段或被合计的字段后是否刷新,未核实」 — the dev measures it on origin/main first and reports premise_still_valid before coding.
    Pre-claim lane: repo:objectstack seat 7 area f7-list; slice B handed by seat 4 (mailbox #36199 addendum 7076058329) and routed here by the seat 07:52Z.
    Pre-claim deps: slice A PR #36332 queued (landing 7078500227); the dev merges origin/main once it lands before opening the PR. #36396 (#36276, group aggregations per depth, queued) shares useGroupedData.ts / useServerGrouping.ts — same rule.
    Prior rulings read: card body — maintainer 2026-11-20 「以上都同意」; acceptance lines verbatim in the dispatch. No other ruling comment.
    Fold-or-serial: not folded; serial after #36332 and #36396 on shared files.
    Serial constraints cleared: #36332, #36396 (queued, same files) — merge main after they land; #36357 (#36270, ObjectGrid.tsx) — overlap-check before each push

  13. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds
    os-dev-report

    Slice B of #35689 on draft PR #36476 (Fixes #35689). Final head 1285fe4; CI in progress at report time.

    {
      "issue": 35689,
      "status": "done",
      "branch": "claude/issue-35689-group-refresh",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36476",
      "session": "session_01QsR2jUc3qp6bHKSWijbjds",
      "premise_still_valid": true,
      "summary": "Slice B of #35689 is in draft PR #36476 (Fixes #35689; slice A #36332 has merged, and nothing else on the card is left). The final head is 1285fe44a5. CI was in progress at report time: 19 in_progress, 5 skipped, 0 failure. Premise per item, measured on origin/main 285ad8d7 with the card-named pins and no source edit. (1) On both the server and the browser grouping paths, a row whose stage changed never moved to its new group: broken. (2) Group counts and subtotals never refreshed after a save: broken on both paths. (3) The footer total of a flat grid whose rows are the set never refreshed: broken. (4) The whole-set footer of a grid paged on the server is already re-read after a write, because useWholeSetSummary listens to the bus itself: premise false, pinned only. Built in @object-ui/plugin-grid only. rowsAsSaved gives the figures the rows as saved: the footer reads it, and so do the groups a grid buckets in the browser. A select-first save that writes a grouping field holds the record in its group (heldInGroup) until onCellSelect selects a cell of another row; then the browser grouping moves it and a server-grouped grid reads its headers and open groups' rows again (regroupNonce). Any other save makes a server-grouped grid re-ask only its headers (savedFigureNonce), so no row is read again. Grids without cellSelection are unchanged. I merged origin/main with #36332 and #36396 into the branch (merge e96aa671) before opening the PR.",
      "tests": "On origin/main 285ad8d7, the new describe (ObjectGrid.autosave-35685.test.tsx, objectstack#35689) gave Tests 5 failed, 2 passed: Won expected Bolt and Cord but got Cord only (both paths), the subtotal stayed 2 · 150 (both paths), and the footer stayed Sum: 180. The paged whole-set footer and the control passed. At e96aa671, under os-verify-lock: the closure build turbo --filter='@object-ui/plugin-grid^...' --filter='@objectstack/client-react...' had 54 successful; pnpm --filter @object-ui/plugin-grid run type-check exited 0 (script echoed); pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ gave Test Files 304 passed (304), Tests 2706 passed (2706). At the final head 1285fe44 (it only moves the new describe so it does not collide with #36316's append at the end of the file), the harness gave Test Files 1 passed (1), Tests 29 passed (29), VERDICT command-exit 0. Ablations through scripts/ablation-replace.mjs, each anchor x1 to x0, each restored to the HEAD blob f5aebf14 with git diff HEAD empty. A1 onCellSelect leave removed: 2 red (the move pin on both paths). A2 header re-ask removed: 1 red (server subtotal). A3 grouping reads the loaded rows: 2 red (browser move and subtotal). A4 footer reads the loaded rows: 1 red (flat footer). A5 held row bucketed as saved: 1 red (browser hold before leaving). The suites import the grid by relative path (source), so no dist leg was owed.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at e96aa671 derived 72 families (6 paths vs merge base d8628ac7). All exited 0. Three needed a second attempt: check:skill-examples first exited 3 because client-react had no dist (built, then exit 0); check:type-check-debt first exited 3 because the lock was busy (run under the lock: exit 0, 0 raw tsc errors); the ui scripts/ suite first got exit 99 (no turn on the lock), then gave 172 passed and 2 skipped files, 5127 tests passed, exit 0. --ran with exit codes: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. At 1285fe44, check:nul-bytes exited 0. The test-block move adds no path, so the family list is unchanged; this is a declared narrowing. overlap-check: at a49cc566 it was exit 1 (#36316 conflicted on the shared test file); after the block move, at 1285fe44 it was VERDICT clean exit 0 against origin/main 7ae5e074 and #36453, #36438, #36357 and #36316. PR check-runs on 1285fe44 at report time: 19 in_progress, 5 skipped, 0 failure. I did not wait on CI.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (claude/issue-35689-group-refresh: the empty branch, then commits 35779610, a49cc566, the merge e96aa671 and 1285fe44); relay pr_create (run 45026950731: POST /repos/objectstack-ai/objectstack/pulls as a draft, plus POST issues/36476/assignees for zhuangjianguo; the read-back was 8450 bytes sent and 8450 stored, identical); this os-dev-report comment, POST /repos/objectstack-ai/objectstack/issues/35689/comments via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in the PR's Acceptance notes, not filed. A row counts as left only when a cell of another row is selected; Escape or a click outside the grid keeps it in its group until then. A server-grouped regroup resets each group's pager to page 1, as any refresh does. A held id stays noted after a full load, which costs one extra harmless regroup read."
      ],
      "line_budget": "6 files, +356 / -8 vs merge base d8628ac7 (source +104 / -8: ObjectGrid.tsx +60 -5, objectGridGrouping.ts +15 -3, objectGridRowPatch.ts +29; tests +230 in the existing harness; docs +6; changeset +16); under the 3000 human-merge threshold",
      "files_changed": 6,
      "deviations": "(1) File surface: content/docs/frontend/plugins/plugin-grid.mdx (+6, one bullet under the per-cell save section) is outside the claim's 'objectstack ui/** only' surface. ui/AGENTS.md #2 owes docs for a feature change. It is not a server or spec change; the seat should amend the claim with it. (2) The pins went into the existing harness ObjectGrid.autosave-35685.test.tsx as a top-level describe, not a new card-named file, per ruling record 6583487846; the describe and its tests carry the card number. (3) Commit trailers are model-free per AGENTS.md; the harness reminder asked for a model-named Co-Authored-By. The PR footer uses the AGENTS.md session-URL form, not the harness emoji form. (4) Gates ran on e96aa671; the final head 1285fe44 only moves a test block, so I re-ran only the harness and nul-bytes (a declared narrowing). (5) Clause-②: no as the claim said, measured: no export, no GridCellSelection member and no i18n key changed."
    }
  14. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim amendment: PM loop · area f7-list · 2026-11-22T13:23Z (amends slice-B claim 7078763626)
    File surface: as the claim, plus content/docs/frontend/plugins/plugin-grid.mdx (+6, one bullet under the per-cell save section; owed by ui/AGENTS.md #2 for a feature change; not a server or spec change). Pins landed in the existing harness ui/packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx (card-numbered describe) instead of a new file, per ruling record 6583487846. Source touched: ObjectGrid.tsx, objectGridGrouping.ts, objectGridRowPatch.ts. PR #36476 @ 1285fe44a5bdfac2894eb5f2955cb003e7efa501, 6 files, +356 / -8. Closing word is Fixes #35689 (slice A #36332 merged; nothing else left on the card).
    Clause-②: no — measured: no export, no GridCellSelection member and no i18n key changed.
    Metadata-protocol: none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions