Repository navigation
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单(专题:列表行内编辑重做,维护者直派,见本卡挂靠的父卡)。⛔ 不是认领。优先级 p2。
维护者 2026-11-20 原话:「以上都同意」。对应协调席列出的:逐格自动保存、失败时保留并攒到整行一起发、要有撤销、状态机字段先确认。
现状(主干 d96c878e33)
- 提交只进
pendingChanges,不发请求(data-table.tsx:2566-2600)。表格上方出现「N 行已修改 / 全部取消 / 全部保存 (N)」(3433-3457),把表格往下推;行尾多出一列「取消、保存」图标(4442-4461);改过的行琥珀色底,改过的格橙色加粗(3925, 4156)。 - 保存时每条记录一个更新请求,带
If-Match,409 弹并发对话框(ObjectGrid.tsx:2380-2408, 2474, 2565-2568);发之前跑必填、范围、长度、格式检查(objectGridInlineRules.ts)。 - 保存成功后整表重新取数(
ObjectGrid.tsx约 2552 的setRefreshKey)。 - 失败时保留待保存内容,栏下出一行「保存失败」,对应的格红框(
data-table.tsx:3479-3500, 4157, 4199-4202)。
要做的
- 逐格自动保存:一格提交(回车、Tab、点别处、选了选项)就发这条记录的更新。去掉保存栏、行尾的保存取消列、琥珀色样式。
- 保存中、已保存:这一格有轻量的状态提示,不动布局。
- 失败不退回:这一格保持未保存,用户输入的内容留着,格上标出服务端给的原因。再次进入编辑可以改,也可以按 Esc 放弃回到原值。
- 同一行攒着发:一行里有未保存成功的格时,这一行之后的修改不单独发,和失败的格合成一次更新一起发。用来通过「两个字段必须一起改」的校验规则(例如阶段改成输单必须填输单原因)。
- 校验规则涉及多个字段、在列表里补不齐时,提示里给「打开记录完成修改」。
- 撤销:每次保存成功的提示上带「撤销」;Ctrl+Z 撤销最近一次。撤销是一次新的更新(带
If-Match),不是本地回滚。 - 只更新这一行:保存后用返回的记录更新这一行,不重新取整表;服务端钩子改过的值以返回值为准。排序、筛选、分组因这次修改而变化时,这一行先留在原位,直到用户刷新或离开这一行。
- 状态机字段:选了新状态后先确认一步(说明会触发的流程),确认后再保存。
- 并发:409 的现有对话框保留。
- 抽屉:正在抽屉里打开的记录在列表里被改时,抽屉内容跟着更新;抽屉里有未保存修改时,以抽屉为准并提示。
不做的
- 不做整表的「全部保存、全部取消」。
- 不合并多行为一个请求。
验收
- 改一格后按回车:不出现保存栏、行尾按钮、琥珀色行;只发一个更新请求;表格其他行不重新加载、不跳动。
- 把必填字段清空:这一格保持未保存并显示原因,输入框里的内容没有丢;按 Esc 回到原值。
- 「阶段 = 输单时必须填输单原因」这类规则:先改阶段被拒,再填原因,两格一次发出并成功。
- 保存成功后点「撤销」或按 Ctrl+Z:值回到修改前,服务端也回去了。
- 按某列排序的列表里改这一列:这一行不立刻跳走。
- 状态机字段:选新状态后出现确认,取消则不保存。
- 审计记录里每次提交一条,撤销另算一条。
- PR 正文列出迁移和作废的测试。
Reader: domain:ui 车道。ui/packages/components/src/renderers/complex/data-table.tsx(saveEdit、saveRow 约 2566-2767,保存栏 3433-3500)、ui/packages/plugin-grid/src/ObjectGrid.tsx(defaultRowSave 约 2474-2568)、objectGridActionsColumn.tsx。
Dedupe: 逐格保存、保存栏 行内、pendingChanges(objectstack,open)→ 0。
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3

Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Feature (per-cell autosave; a failure is kept and sent with its row; undo; only the current row updates; the save bar goes) · 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.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-20T10:13Z
Area: b1-I2
Session:
session_01L6bhgUYnzYCcbcpABdW7ps(the card thread)Account:
os-salesBranch:
claude/project-thread-9lwydk(this card thread can push only this branch, a measured platform exception to the issue-numbered branch name)Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/components/src/renderers/complex/data-table.tsx,ui/packages/plugin-grid/src/ObjectGrid.tsxand their tests; the interim edit-only column gate that PR #35747 left (drawn only while a row has pending changes) is replaced by the save model.Container & model:
M,mode:thread,model: default (opus) — no path-derived mandate,effort: high(M by difficulty; an epic child is not raised by category)Clause-②: yes (widening expected: a new save behaviour on every ListView grid; the thread confirms it from the changeset at PR time, declaration face at
TIER_DEFAULT)Metadata-protocol: to be read at PR time
Premise: the thread re-reads it on main
a8126d24before any edit and sends the seat a size read and decision candidates first.Basis: epic #35683 child under the maintainer's 2026-11-20 00:47Z order 「然后你开区处理这个专题 行内编辑 objectstack#35683」; scope per ruling 7035276698 on #35683. Serial after #35684 (PR #35747, merged
811858c6).Resume-from: none
Fold-or-serial: serial. #35688 and #35689 follow in their own threads.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps
2026-11-20T12:31Z · Maintainer rulings: two forks of the #35685 save model (asked by the seat before any build).
1. When an edited row in a sorted list moves to its new place.
2. What the confirm step says for a state-machine field.
state_machinevalidation rule. Slice S3.Slices (seat routing, 2026-11-20T10:15Z): S1 per-cell autosave core (this thread,
Part of #35685), S2 undo, S3 state-machine confirm and drawer sync, one PR each, in series. TheonBatchSaveslot retirement is #35827.Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps
os-dev-report
Written 2026-11-20T14:10Z.
{ "issue": 35685, "status": "done", "branch": "claude/project-thread-9lwydk", "pr": "https://github.com/objectstack-ai/objectstack/pull/35864", "session": "session_01L6bhgUYnzYCcbcpABdW7ps", "premise_still_valid": true, "summary": "Slice S1 of #35685 (Part of, card stays open). In every ListView grid (the select-first model) a committed cell saves at once as one update; the save bar, row Save/Cancel column and amber tint are gone there; the cell shows saving/saved; a refusal keeps the typed value with the server reason (Esc restores, later edits on the row ride with it, an open-record hint when the rule names a field the list cannot edit); only the saved row is redrawn from the write's answer, and a new @object-ui/react own-writes registry lets ListView skip the write's own onMutation/bus re-read, so a sorted row stays until the next load. Space now types into the selected cell (maintainer, #35683 comment 7037290299); booleans still flip. Grids without cellSelection keep the staged save bar (#35827 tracks them).", "tests": "vitest from ui/: components table/grid/cell files + all plugin-grid + all plugin-list + react data-invalidation: Test Files 508 passed | 1 skipped (509), Tests 4801 passed | 7 skipped (4808). New: data-table-autosave-35685, ObjectGrid.autosave-35685, objectGridRowPatch-35685, ListView.ownWrites-35685, data-invalidation createOwnWrites. Migrated: data-table-select-first-35684 Space test and edit-only-column describe. Ablation: absorbs() forced false -> 2 of 5 cases fail (ObjectGrid 'reads nothing again', ListView 'held write re-reads no row'), restored -> pass. type-check clean for components, react, plugin-grid, plugin-list; eslint changed files 0 errors.", "gates": "dispatch-gates --commands: 42 families, each run with exit captured before any pipe, all exit 0; --ran: 42 derived, 42 run, 0 NOT-MEASURED, 0 UNRUN (record /mnt/project-files/build-seat1/35685/ran.list). overlap-check: VERDICT clean (main + #35856). CI check-runs: pending at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "reads only (issue_read on the cards); no MCP write tool. One `gh api` READ of PR #35747's body for layout, outside the search-only use of gh; no write.", "api_writes": "relay (fleet-write dispatch / post-stamped): issue create #35827; comment on mailbox #32588; comment 7039615827 on #35685 (ruling record); comment 7039688829 on #35827; pr_create #35864; this os-dev-report on #35685; a pointer comment on #35684. git push x3 to the branch.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "Browser check: the console Vite dev server missed a git checkout of sources once (served stale code until restarted with --force); tooling note only, not a product finding · noted, not filed" ] }Browser evidence (before/after screenshots and journey log) is in the project folder build-seat1/35685/browser/; the PR body carries the observed requests and texts.
Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Seat ruling recorded 2026-11-20T14:59Z, for slice S2 of this card (PR #35864 is S1,
Part of #35685).Deferred to S2:
ObjectGridpasses the host ListView's own-writes registry to its own row load even when cell selection is off. ListView's provider also wraps its record drawer, so a same-object related-list grid inside that drawer misses one refresh while the outer grid is writing that record. Found by L1-a (7041864536) and the declaration L2 on PR #35864. The fix S2 carries: pass the registry to the row load only when cell selection is on, with a test for the drawer's related grid. It is not a contract change and does not block S1.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgVGwmuaJgApFaitJDY
Claim: PM loop · 2026-11-20T15:46Z
Area: b1-I3
Session:
session_01L6bhgVGwmuaJgApFaitJDY(the card thread, which builds itself)Account:
os-salesBranch:
claude/project-thread-ld7kcq(this card thread can push only this branch, a measured platform exception to the issue-numbered branch name)Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/plugin-grid/src/ObjectGrid.tsx(the select-first save's undo, and the row load's own-writes hand-over),ui/packages/react/src/record-save-feedback.ts(an optional toast action), thetable.*keys of everyui/packages/i18nlocale, and their tests.Container & model:
M,mode:thread,model: default (opus) — no path-derived mandate,effort: high(M by difficulty; an epic child is not raised by category)Flow: dev-thread rule (maintainer 2026-11-20 09:22:50Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back, the maintainer's 09:22Z ruling for every p1 card (deviates from contract-review.md:18 until the skill card lands).
Clause-②: yes (widening expected: an optional undo action on the record-save toast in
@object-ui/reactand newtable.*locale keys; the thread confirms it from the changeset at PR time, declaration face atTIER_DEFAULT)Metadata-protocol: none
Premise: slice S2 of this card on main
fac1e7d6(S1, PR #35864, merged): undo after a list cell save, from the save toast and Ctrl+Z, each sent as a newIf-Matchupdate with the previous value; plus the seat's deferred fix (ruling 7042779557): the row load takes the host's own-writes registry only under cell selection, with a test for the drawer's related grid.Basis: epic #35683 child under the maintainer's 2026-11-20 00:47Z order 「然后你开区处理这个专题 行内编辑 objectstack#35683」; slices per the seat's 10:15Z routing (7039615827).
Resume-from: none
Fold-or-serial: serial.
Part of #35685: S3 (state-machine confirm and drawer sync) follows in its own thread; #35827 stays separate.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgVGwmuaJgApFaitJDY
os-dev-report
Written 2026-11-20T17:28Z.
{ "issue": 35685, "status": "done", "branch": "claude/project-thread-ld7kcq", "pr": "https://github.com/objectstack-ai/objectstack/pull/35898", "session": "session_01L6bhgVGwmuaJgApFaitJDY", "premise_still_valid": true, "summary": "Slice S2 of #35685 (Part of, card stays open). In every ListView grid (cellSelection) a landed cell save can be taken back: the save toast carries an Undo button, and Ctrl+Z / Cmd+Z on a grid cell undoes the newest save, each once. An undo is a new guarded update of the prior values (captureUpdateUndoData, relations as stored ids), If-Match from the row the grid draws now, the same 409 dialog, redrawn in place under the own-writes hold; a refusal says why on a toast. toastRecordSave in @object-ui/react takes an optional action (widening). Carried fix (seat ruling 7042779557): the row load takes the host's own-writes registry only under cellSelection, so a related grid in the list's drawer re-reads on the outer grid's write.", "tests": "vitest from ui/ over plugin-grid, plugin-list, react and app-shell at 1837a4af: Test Files 2965 passed | 1 skipped (2966), Tests 28161 passed | 9 skipped (28170). New in ObjectGrid.autosave-35685.test.tsx: 7 cases (toast Undo, Ctrl+Z/Cmd+Z newest first once each, newest-version If-Match, editor keeps Ctrl+Z, refused undo, control without cellSelection, drawer related grid re-reads); record-save-feedback.test.ts: action on either variant. Ablation: ownWrites passed unconditionally -> drawer case fails 1/12, restored 12/12; undo row from the save's leftover row -> newest-version case fails 1/12, restored 12/12 (ablation-replace.mjs, blob == HEAD after restore). type-check clean for react and plugin-grid; eslint changed files 0 errors. Browser (showcase + console Vite, Chromium): toast Undo and Ctrl+Z each send one PATCH of the prior name with the answered version; reload shows the restored value; sys_audit_log has 4 update rows for 2 saves + 2 undos. Evidence /mnt/project-files/build-seat1/35685/s2-browser/.", "gates": "dispatch-gates --commands at 1837a4af: 72 families, exit captured before any pipe, all exit 0 (check:type-check-debt and check:skill-examples re-run after the package build they need; ui vitest scripts/ re-run with one worker after two kernel OOM kills); --ran: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN (record /mnt/project-files/build-seat1/35685/s2-ran.list). overlap-check: VERDICT clean. Head 43e54611 = 1837a4af + a main merge of four commits touching none of these packages. CI check-runs: pending at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0 MCP GitHub calls; reads through gh api (issue 35685 and its comments, PR 35864 body for layout)", "api_writes": "3 relay writes: post-stamped comment on #35685 (claim 7043863808), fleet-write pr_create #35898 with assignee os-sales, this report", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["none"] }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-20T19:21Z · slice S3 (last slice)
Area: b1-I4
Session:
session_01L6bhgVhAK4uNYvjNY3H7XU(the card thread)Account:
os-salesBranch: claude/project-thread-f8vhdm
Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/components/src/context/gridCellSelection.tsx(an optionalconfirmCommithook onGridCellSelection),ui/packages/components/src/renderers/complex/data-table.tsx(under select-first, the commit asks the host first; Cancel writes nothing and the cell returns to its value),ui/packages/plugin-grid/src/ObjectGrid.tsxand a new small helper (which field is a state-machine field; the confirm, worded per ruling 7039615827),ui/packages/plugin-detail/src/InlineEditSaveBar.tsx(a notice when the record being edited was changed elsewhere), new i18n keys in the 12 locale packs ofui/packages/i18n, tests. Both commit paths (editor submit and paste/toggle) go through the confirm.Container & model:
M,mode:thread,model: default (opus) — dispatch-gates --tier on the paths: no path-derived mandate,effort: highClause-②: yes (widening: an optional member on an interface exported by
@object-ui/components; declaration face atTIER_DEFAULT)Metadata-protocol: none
Premise: re-read on main
4609c489by the thread: holds (a state-machine cell saves on commit with no confirm; the record drawer re-reads throughuseDataInvalidation; a drawer draft overwrites on save with no notice).Basis: card #35685 body (state-machine confirm; drawer follows, drawer draft wins with a notice) with the maintainer's 「以上都同意」, and ruling record 7039615827 item 2 (the confirm says from X to Y and "may trigger related automation"). Epic #35683 remainder, in hand under the maintainer's 2026-11-20 18:04Z order.
Resume-from: none (S1 PR #35864 and S2 PR #35898 merged)
Fold-or-serial: serial. S3 is the last slice; the PR carries
Fixes #35685.onBatchSaveretirement stays #35827.Note: the branch is the card thread's harness push branch, a measured platform exception to
claude/issue-<n>-<slug>.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgVhAK4uNYvjNY3H7XU
os-dev-report
{ "issue": 35685, "status": "done", "branch": "claude/project-thread-f8vhdm", "pr": "https://github.com/objectstack-ai/objectstack/pull/35972", "session": "session_01L6bhgVhAK4uNYvjNY3H7XU", "premise_still_valid": true, "summary": "Slice S3, the last of three. A select-first list cell that commits a new value into a state-machine field (an active state_machine rule whose events cover update) first opens an in-app confirm naming the field and both values and saying saving may trigger related automation (ruling 7039615827); Cancel writes nothing, Change saves as any S1 commit. The seam is a new optional GridCellSelection.confirmCommit asked at the data-table commit point (editor commit and paste). The record drawer already re-reads after a list save; InlineEditSaveBar now says so when the record is read at another version during an open edit session, keeping the draft, and Save writes it over the version now read. Follow-up #35928 (naming the flows).", "tests": "New blocks in data-table-autosave-35685 (4 cases), ObjectGrid.autosave-35685 (3 cases), InlineEditSaveBar.test (2 cases). Per-package vitest under os-verify-lock on 44ec496a: plugin-grid 294/294 files 2562 tests; plugin-detail 393 passed 1 skipped, 3601 tests; components 493 passed 1 skipped, 4747 tests; plugin-list 182/182, 1971 tests; i18n 104/105 with the zh-Hant generated pin red, fixed by gen:zh-hant, re-run 11/11. After the main merge 1ef49fae: app-shell 2356 files, 83 red on a stale spec dist, after rebuilding @objectstack/spec the 83 re-ran 83/83 (627 tests); i18n + every data-table / ObjectGrid / InlineEditSaveBar file 184 passed 1 skipped, 2496 tests. Ablation via scripts/ablation-replace.mjs, committed first, restored to HEAD blob with git diff HEAD empty: commitConfirmationOf returns null, 6 failed / 27 passed; save-bar note never rendered, 2 failed / 9 passed.", "gates": "dispatch-gates --commands: 73 families, exit captured before any pipe, all exit 0 (71 on 8620e49e, check:type-check-debt and vitest run scripts/ on the merged head; type-check-debt first answered exit 3 while the verify lock was held, re-run under the lock exit 0). --ran on 1ef49fae: 73 derived, 73 run, 0 NOT-MEASURED, 0 UNRUN; list at /mnt/project-files/build-seat1/35685/s3-ran.list. tsc --noEmit components, plugin-grid, plugin-detail, i18n: exit 0 on the merged head after rebuilding dependency dists. eslint on changed files: 0 errors. overlap-check: VERDICT clean. CI check-runs: pending at report time; the seat reads them on the green head.", "dogfood_battery": "n/a — no ! in the PR title and Clause-② is (widening) only", "mcp_calls": "reads only — mcp__github__issue_read (card and ruling reads), mcp__github__pull_request_read get #35898 (body layout); 0 write tools", "api_writes": "3 — git push of claude/project-thread-f8vhdm; fleet-write dispatch pr_create (#35972, assignee os-sales); this report via post-stamped.mjs", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: c · reach: named producer, not traced · after a list cell PATCH in the browser one GET of the list collection with populate was seen; it may be the open drawer or a step scope reading again, not investigated · dedupe words: list cell save re-read GET populate", "carrier: PR #35972 Acceptance notes omitted it; noted here, not filed" ] }feat(automation): the stage confirms name the flows a move would start (
fix(grid): a grouped row moves to its new group once its row is left,…