Skip to content

Commit fac1e7d

Browse files
feat(list): a list cell saves the moment it is committed, and Space types into the selected cell (#35864)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu35nceJccLpnzyY9BMfwJv9)_ repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps Part of #35685 (slice S1 of three; S2 undo and S3 state-machine confirm + drawer sync follow in their own pull requests, so the card stays open) Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed Metadata-protocol: none Skills-docs: `content/docs/frontend/plugins/plugin-grid.mdx` — the "On an object's list page" section now says Space types into the cell and each commit saves at once (with the refusal and 409 behaviour), and "Batch Editing & Multi-Row Save" says it is the model of a grid without select-first. No skill under `skills/` teaches the save bar, the row Save/Cancel buttons or the Space key (`skills/objectstack-ui/rules/list-views.md` only says inline editing is on by default, with `userActions: { editInline: false }` as the opt-out), so nothing there moves. ## 维护者速读 - 所有用列表组件(ListView)画出的表格:改完一个格子(回车、Tab、点别处)就立刻保存这一格,不再有"全部保存 / 全部取消"栏、行尾的保存/取消按钮和整行黄色底;格子上有一个小转圈表示正在保存,保存后出现一个小对勾。 - 保存只更新这一行,用服务器返回的值(服务器规则改写过的值会如实显示),不再整表重新读取;按某列排序时,改过的行留在原位,等下次刷新、换排序、筛选或翻页才归位(Sales 裁决 7039615827 第 1 条)。 - 保存被拒时,格子保留刚输入的值并直接显示服务器给的原因,按 Esc 恢复成原来的值;同一行接着改别的格子,会和被拒的那格一起作为一次更新发出;原因涉及列表里没有的字段时,提示里有"打开记录完成修改"。409 冲突对话框不变。 - 空格改为和打字一样进入编辑(布尔格仍是切换),按维护者的原话去掉了 #35747 加的"空格打开记录";所以打开记录只剩点名称和触屏轻点,主从页面(如 Task Desk)打开右侧面板也一样。没有挂选中格模型的旧表格(相关列表、仪表盘表格等)保持原来的保存栏,等 #35827 的后续迁移。 ## What changes **Per-cell autosave in the select-first grid** (`@object-ui/components`, `data-table`). Only a table under `GridCellSelectionProvider` changes: that is every grid `ListView` draws, because `ListView` passes `cellSelection: true` to `ObjectGrid` (the scope Sales ruled in 7035276698). Every other table keeps the staged save bar exactly as before. - A committed cell (Enter, Tab, a click elsewhere, a toggle, a paste) is saved at once through the grid's existing `onRowSave`, as ONE update carrying the row's pending fields. An unchanged commit sends nothing. - The save bar, the "N rows modified" banner, the row Save/Cancel buttons (and the edit-only trailing column that held them) and the amber row/cell tint are not drawn in this model. - The cell shows a small spinner while its save runs and a check mark for 1.5 s once it landed (`data-slot="cell-save-state"`, `role="status"`, new `table.cellSaving` / `table.cellSaved` strings in all 11 locales). - A refusal keeps the typed value on the cell and opens a notice anchored to it with the server's reason (field reasons per drawn column; a reason naming no drawn field goes on the sent cell). When the refusal names a field that is not an editable column of this list, the notice offers **Open the record to finish this change** (`table.openRecordToFinish`), which calls the host's row click. - **Esc** on that cell, in its editor or on the selected cell, puts the stored value back and drops the notice. A later edit on the same row is sent together with the refused one, as one update. - A commit made while the row's save is still running waits and is sent right after it, so a row never has two writes in flight. Esc while that save runs (in the editor or on the selected cell) takes back only the edit being made, never the value on the wire. - A select-first table with no `onRowSave` (wired with `onBatchSave` alone) does not autosave: it keeps the staged save bar, the row buttons and the tint exactly as #35684 drew them, so an edit is never held where nothing can send it. `ObjectGrid`, the only host today, always passes a row save. - Client sort and search keep using the pre-save row until the rows load again (`sortBasis`), so a row the user just edited does not jump under the cursor. **Only that row is redrawn** (`@object-ui/plugin-grid`, `@object-ui/plugin-list`, `@object-ui/react`). - `ObjectGrid.defaultRowSave`, when the host mounted `cellSelection`, no longer bumps its refresh key. It overlays the saved row from the write's answer (`mergeSavedRow` in the new `objectGridRowPatch.ts`): `{ ...row, ...changes }` and then every key of the answer the row already carries, so a server hook's rewrite shows as stored; a lookup the answer names by the same id keeps the expanded record the row read. The overlay applies only while the grid still holds the row object it was saved from, so the next load replaces it. - The data source still announces the write (`onMutation`, and the console's bridge onto the data-invalidation bus), which made `ListView` read every row again. `@object-ui/react` adds a small registry for "writes this reader draws itself": `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and an optional `ownWrites` argument on `useDataInvalidation`. `ListView` provides one; `ObjectGrid` holds the record there for the length of its write; `ListView`'s `onMutation` subscription and its bus reader (and the grid's own row load, for a grid that fetches for itself) let a change naming a held record go by. Every other reader (the record's detail pane, related lists, counts, the footer's whole-set summary) is not given the registry and refreshes as before; an object-wide change or `'*'` is never absorbed. On a 409 the hold stays through the dialog and the "Overwrite anyway" write, so that write re-reads no row either; only "Reload latest" lets go first (`resolveRowConflict`'s new `beforeReload`), so its reload reaches the list. - The next save on a row sends the `If-Match` version the previous save answered. - `writeRowGuarded` now returns the write's answer; `resolveRowConflict` returns `{ outcome: 'saved', result } | { outcome: 'reloaded' }` (both internal to `ObjectGrid`). **Space types into the selected cell.** The maintainer, on #35683 (comment 7037290299, transcribing their own check): 「选中任意格后按空格,他是进入编辑了,没有你说的规则」 ("after selecting any cell and pressing Space, it goes into editing; there is no such rule as you described"). So the "Space on a selected cell opens the record" key that #35747 added is removed: Space is typed like any other key and opens the editor with a space; a two-state cell still flips on Space. The record opens from the title link or a touch tap. ## Why #35685 asks for the list to save as the user edits, like a spreadsheet, without a mode, a bar or a refetch that moves rows; Sales ruled the sorted-row timing (「等下次取数才归位」, ruling record 7039615827 item 1). Item 2 of that record (the state-machine confirm wording) belongs to S3. ## Acceptance notes (behaviour changes a reviewer should know) - **Scope:** autosave is on only in tables that mount `GridCellSelectionProvider`, i.e. `ListView` grids. Related lists, dashboard tables and other `ObjectGrid` hosts without `cellSelection` keep the staged save bar and `onBatchSave`; #35827 stays open for their migration (comment 7039688829). - **Master-detail pages** (for example the showcase task desk): a selected cell no longer opens the side pane on Space. The pane opens from the title link or a touch tap. - **Sorted lists:** a saved row stays where it is until the next load (refresh, sort, filter, page change). Counts on group headers, which are read with the rows, follow on that load too; the footer's whole-set summary refreshes on the write. - The save toast ("1 row saved") is unchanged and still raised once per landed save; S2 adds Undo to it. ## Review round 1 (heads `c552f8a3` and `f836ec36`, after `9970dffd`) From the declaration L2 (PASS, comment 7041830485) and L1 (comment 7041864536): - should-fix: a 409 "Overwrite anyway" re-read the whole list → the hold now covers the overwrite write; test added. - should-fix: a select-first table without `onRowSave` would hold edits nothing could send → it falls back to the staged save bar (chosen over failing loud: the bar is the existing, tested model for such a table); test added. - must-fix (docs): `content/docs/frontend/plugins/plugin-grid.mdx` said Space opens the record and Save / Save All save → corrected, and the Batch Editing section says where it applies. - `docs/qa/platform-checklist/areas/ux-conventions.json` › `ux-conventions.write-feedback`: variants[1] and knownGaps[1] told the tester to press Save row / Save All → they now describe the autosave marks and toast; revision 14 → 15 with its history row. - nits: Esc in the editor now has the running-save check Esc on the selected cell has (test added); the `Clause-②:` line names the new i18n keys. Not changed: `rowPatches` entries are not pruned after a load (memory only; a load's rows never match a stale `base`, and pruning by `data` would drop patches for grouped rows read outside it). - Left for S2, as the seat ruled: `ObjectGrid` hands the host's registry to its own row load even without `cellSelection`, so a same-object child grid under a `ListView` would miss one refresh during an outer grid's write. ## Tests New: - `ui/packages/components/src/__tests__/data-table-autosave-35685.test.tsx` — a commit sends at once with no bar, no edit column and no amber row; an unchanged commit sends nothing; a boolean on Space saves; a refusal keeps the value and shows the reason; Esc in the editor and on the selected cell restores; a refused cell and a later edit go as one update; a commit during a running save waits; the open-record hint shows (and does not, for a drawn field); a sorted row stays and a new load re-sorts; a select-first table with `onBatchSave` only keeps the bar and Save All sends the edit; Esc in the editor while the row saves leaves the sent value alone; control without the provider keeps the save bar. - `ui/packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx` — one guarded update and no read again although the write is announced on the bus; the server's rewrite is drawn; the next save sends the answered version; a 409 kept with "Overwrite anyway" writes with the current version and reads no row again, while "Reload latest" reads again; control: without `cellSelection` Save All re-reads. - `ui/packages/plugin-grid/src/objectGridRowPatch-35685.test.ts` — `mergeSavedRow`. - `ui/packages/plugin-list/src/__tests__/ListView.ownWrites-35685.test.tsx` — the grid is handed the registry; a held record's write (on `onMutation` and on the bus) re-reads nothing; control: another record's write, or the same one after release, re-reads. - `ui/packages/react/src/data-invalidation.test.ts` — `createOwnWrites` hold / release / refcount, what it never absorbs, and `useDataInvalidation` with and without it. - Ablation: with `absorbs` forced to `false`, the ObjectGrid and ListView "re-reads nothing" cases fail (2 of 5) and pass again once restored. Review round: releasing the hold before the conflict dialog again fails the "Overwrite anyway" case; `autosaves = selectFirst` (no `onRowSave` check) fails the `onBatchSave`-only case; dropping the running-save check from the editor's Esc fails the Esc case; each restored passes. Migrated (the behaviour they pinned is replaced by this card): - `data-table-select-first-35684.test.tsx` › "Space on a selected cell opens the record" → now asserts Space is not prevented, opens no record and opens the editor with a space (voided by the maintainer's statement above). - `data-table-select-first-35684.test.tsx` › the edit-only trailing column describe ("drawn only while a row has changes") → "no edit-only column, ever": none at rest, none after a commit (which calls `onRowSave` once), plus its control. - `app-shell/src/views/ObjectView.rowOpensNothing-33317.test.tsx` and `ObjectView.listOnlyRecordPage-33219.test.tsx` › the helper `openWithSpace` (Space on a selected cell as "the list's other way to open a row") → `openWithTap`, a touch tap on the cell, which still opens the record. The negative cases (`preventNavigation: true`, `mode: none`, a list-only object) still assert that path opens nothing, and the two CONTROL cases that a tap opens the drawer. Found red on CI at `9970dffd` (Test UI 1/16 and 6/16), fixed at `f836ec36`. Voided: none beyond the Space assertion above. ## Verification - `vitest` (from `ui/`): every `components` table/grid/cell test file, all of `plugin-grid`, all of `plugin-list`, and `react/src/data-invalidation.test.ts` — 509 files, 4805 passed, 7 skipped, 0 failed (re-run on the review-round head) - `type-check` (`tsc --noEmit` and the test tsconfig) for `@object-ui/components`, `@object-ui/react`, `@object-ui/plugin-grid`, `@object-ui/plugin-list`: clean. `eslint` on every changed file: 0 errors. - `node scripts/pm/dispatch-gates.mjs --commands`: 74 derived families on the review-round head (the docs and checklist edits add 32), all run, all exit 0; `--ran` reconcile: 74 derived, 74 run, 0 NOT-MEASURED, 0 UNRUN. `node scripts/pm/overlap-check.mjs`: VERDICT clean (merges with `main` and with #35856, which shares the locale files). - Changed lines 1518 vs the 3000 threshold: under. - **Browser, before / after** — `examples/app-showcase` (`objectstack dev --seed-admin`, own port and DB) with the `ui/apps/console` Vite dev server over it, headless Chromium 1600×1000, zh-CN. Before = the changed `ui/` sources checked out from the merge base; after = this head. - Before: a committed name edit is staged (save bar "全部保存 (1)", amber row, no request); pressing Save sends the PATCH and then re-reads the whole page (`GET /api/v1/data/showcase_project?…top=50…`); Space on a selected name cell opens the record. - After: a committed name edit sends one `PATCH` with that field and nothing else (no list read), the cell shows the check mark, no save bar. Project end date set before the start date: `400` with the cross-field reason naming `start_date`; the cell keeps "2000年1月1日" and the notice says 「保存失败: 结束日期不能早于开始日期。」 with 「打开记录完成修改」. A budget edit on that row then sends `{"end_date":"2000-01-01","budget":123456}` as one PATCH. Esc on the end-date cell restores "2027年1月19日" and the notice goes. Space on a selected name cell opens its editor with " " and the URL does not change. A task title typed with surrounding spaces is trimmed by the showcase's `beforeUpdate` hook and the cell shows the trimmed answer. Sorted by name, a row renamed from "Data Platform" to "Zeta Platform" stays in its place with no list read; after a reload it moves to its sorted place. - Not measured: Safari / WebKit (no WebKit build in the container); the 409 dialog in the browser (covered by the existing conflict tests, unchanged here). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (eslint on the changed files: 0 errors) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 维护者速读 block and the maintainer's quote are Chinese by the maintainer's standing rule) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent eb9f8ed commit fac1e7d

29 files changed

Lines changed: 1468 additions & 92 deletions
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-grid': patch
4+
'@object-ui/i18n': patch
5+
'@object-ui/react': patch
6+
'@object-ui/plugin-list': patch
7+
---
8+
9+
feat(list): a list cell saves the moment it is committed, and Space types into the selected cell
10+
11+
Clause-②: yes (widening) — new members on the `@object-ui/react` package entry: `createOwnWrites`, `OwnWritesContext`, `useOwnWrites` and the `OwnWrites` type, and an optional third parameter on `useDataInvalidation`; three new `table.*` keys in every `@object-ui/i18n` locale (`cellSaving`, `cellSaved`, `openRecordToFinish`); nothing removed or renamed
12+
Metadata-protocol: none
13+
14+
In a grid that mounts `GridCellSelection` (the select-first grid every `ListView` draws), a committed cell edit is now saved at once, as one update for that record:
15+
16+
- **No save bar, no row Save/Cancel column, no amber row.** The cell shows a small spinner while the save runs and a check mark once it landed.
17+
- **Only that row is redrawn**, from the record the write answered with, so a value a server hook rewrote shows as stored. The list is not read again, though the write is still announced to every other reader (the record's detail pane, related lists, counts): the grid holds the record in the list's `OwnWritesContext` registry for the length of its write, and `ListView` lets that one write go by. So a row whose new value would sort it elsewhere stays where it is until the next load (refresh, sort, filter or page change). The counts on group headers, read with the rows, follow on the next load too; the footer's whole-set summary is its own reader and still refreshes on the write.
18+
- **A refused save keeps the typed value** and shows the server's reason on the cell. Esc puts the stored value back. Later edits on the same row are sent together with the refused one as one update. When the reason names a field the list does not show (a rule that needs another field), the notice offers to open the record.
19+
- **The 409 conflict dialog is unchanged.** The next save on a row sends the version the previous save answered.
20+
- **Space** on a selected cell now types a space and opens its editor, as any other key does. A two-state (boolean) cell still flips. The record opens from the title link or a touch tap; the "Space opens the record" key added in #35747 is gone, so a master-detail page opens its pane only that way too.
21+
22+
`@object-ui/react` adds that registry: `createOwnWrites()`, `OwnWritesContext` / `useOwnWrites()`, and `useDataInvalidation(objectName, recordId, ownWrites)`, which skips a change naming a held record.
23+
24+
Grids without `GridCellSelection` keep the staged save bar and its batch save unchanged.
25+
26+
New `table.*` strings in every locale: `cellSaving`, `cellSaved`, `openRecordToFinish`.

‎content/docs/frontend/plugins/plugin-grid.mdx‎

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -370,17 +370,31 @@ object and the view does not declare `userActions.editInline: false`, and
370370
move right / left, and Escape cancels and keeps the cell selected. In a
371371
multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. A click
372372
elsewhere commits.
373-
- **Selected cell keys:** the arrows and Tab move the selection; Space opens the
374-
record (a checkbox cell flips instead, as does a second click on it);
375-
Ctrl/Cmd+C copies; Ctrl/Cmd+V converts the text to the field's type and
376-
commits it; Escape clears the selection.
373+
- **Selected cell keys:** the arrows and Tab move the selection; Space is typed
374+
like any other key and opens the editor (a checkbox cell flips instead, as
375+
does a second click on it); Ctrl/Cmd+C copies; Ctrl/Cmd+V converts the text
376+
to the field's type and commits it; Escape clears the selection. The record
377+
opens from the name link, or a tap on a touch screen.
377378
- **A cell that opens no editor says why** on the cell: the field is read-only,
378379
calculated or not editable in a list, the reader may not edit the field, the
379380
object or the record, the view turned editing off, or the record is locked
380381
by an approval.
381382

382-
Commits are the grid's own staged edits: the row's Save / Cancel and the Save
383-
All bar save them, as before.
383+
**Each commit is saved at once** (objectstack#35685), as one update for that
384+
record; there is no Save All bar, no row Save / Cancel and no amber row. The
385+
cell shows a small spinner while its save runs and a check mark once it
386+
landed. Only that row is redrawn, from the record the server answered with (a
387+
value a server hook rewrote shows as stored); the list is not read again, so a
388+
row whose new value would sort it elsewhere stays in place until the next load
389+
(a refresh, a sort, a filter or a page change).
390+
391+
- **A refused save** keeps the typed value and shows the server's reason on the
392+
cell. Escape puts the stored value back. A later edit on the same row is sent
393+
together with the refused one, as one update. When the reason names a field
394+
the list cannot edit, the notice offers to open the record.
395+
- **A newer version** (409) still opens the conflict dialog: "Reload latest"
396+
re-reads the list, "Overwrite anyway" writes over it and keeps the row in
397+
place.
384398

385399
### Keyboard navigation
386400

@@ -419,8 +433,11 @@ WAI-ARIA grid pattern (objectui#11068):
419433
### Batch Editing & Multi-Row Save
420434

421435
Edit multiple cells across multiple rows and save them individually or all at
422-
once. The schema half is just `editable` — the save/cancel affordances appear on
423-
their own once a row has pending changes:
436+
once. This is the model of a grid without the select-first cell model (a
437+
related list, a dashboard table, an `object-grid` outside a list page); a list
438+
page saves each cell as it is committed (above). The schema half is just
439+
`editable` — the save/cancel affordances appear on their own once a row has
440+
pending changes:
424441

425442
```json
426443
{

‎docs/qa/platform-checklist/areas/ux-conventions.json‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"title": "Every user-initiated write answers visibly — success names what changed, a refusal says why, and a no-op claims nothing",
1010
"since": "v17.7",
1111
"status": "active",
12-
"revision": 14,
12+
"revision": 15,
1313
"priority": "P1",
1414
"surface": "browser",
1515
"personas": [
@@ -25,14 +25,14 @@
2525
],
2626
"knownGaps": [
2727
"FIXED, regression row, expected PASS (objectui#11817): Setup → Users → Invite User toasts the copy of the delivery outcome the server answers (#27843): on a deployment that does not deliver mail the declared outcomeMessages.link_only, 'Invitation created for EMAIL. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it.' (QA run #29890 read it verbatim), and 'Invitation sent to EMAIL' (outcomeMessages.sent) only where mail is delivered (packages/platform-objects/src/identity/invite-outcome-messages.ts#INVITE_USER_OUTCOME_MESSAGES on packages/platform-objects/src/identity/sys-user.object.ts#invite_user, whose successMessage `Invitation sent to {{ result.email }}` is the fallback for an answer without an outcome), interpolating the invitee from the action result — while the sys_invitation and sys_email rows are written (QA run #23163 at objectui 1fb1ced36243; pin ObjectView.inviteFeedback-11817.test.tsx)",
28-
"FIXED, regression rows, expected PASS (QA run #23953 at objectui daeb77fc84dd): Studio Publish gives a success confirmation (objectui#11807); the task grid's 'Save All' toasts '1 row saved' (objectui#12303 fixed for this row); the approval decision's Approve toasted the framework-declared successMessage, read in the approvals drawer that route no longer has (variants[6]) `Approved \"{{ result.request.record_title }}\"` (packages/plugins/plugin-approvals/src/sys-approval-request.object.ts), e.g. Approved \"EXP-2001\" (#23157, closed). Studio's 'Discard draft' toast and its confirm now name the item by its LABEL — QA run #24570 at objectui 4016370a read 'Draft discarded: QA Widget' — a regression row, expected PASS (objectstack-ai/objectui#12690, closed by objectui PR #12830, 0f42aaf8, in the console pin 4016370a and on objectui main; ResourceEditPage.tsx falls back to type/name only for an item with no label)",
28+
"FIXED, regression rows, expected PASS (QA run #23953 at objectui daeb77fc84dd): Studio Publish gives a success confirmation (objectui#11807); the task grid's row save toasts '1 row saved' (objectui#12303 fixed for this row; since #35685 it is the save each committed cell makes, with no Save All); the approval decision's Approve toasted the framework-declared successMessage, read in the approvals drawer that route no longer has (variants[6]) `Approved \"{{ result.request.record_title }}\"` (packages/plugins/plugin-approvals/src/sys-approval-request.object.ts), e.g. Approved \"EXP-2001\" (#23157, closed). Studio's 'Discard draft' toast and its confirm now name the item by its LABEL — QA run #24570 at objectui 4016370a read 'Draft discarded: QA Widget' — a regression row, expected PASS (objectstack-ai/objectui#12690, closed by objectui PR #12830, 0f42aaf8, in the console pin 4016370a and on objectui main; ResourceEditPage.tsx falls back to type/name only for an item with no label)",
2929
"FIXED, regression row, expected PASS (objectui#11816): leaving an inline editor with no value change no longer reads '1 row modified · Save All (1)' (QA run #23163 at objectui 1fb1ced36243; pin data-table-noop-edit-11816.test.tsx) — negative[1]",
3030
"Undo is scored only where a surface offers it, and on stock ONE surface does: the import. An import run as a job (the wizard's 'runs as an undoable job' option) is listed in the import history with 'Undo import', which deletes the records it created and restores the records it updated to their previous values; QA run #25817 at 6679644a read it working in both create and update modes. Elsewhere no stock surface offers Undo: only an action declaring `undoable` pushes an Undo op (inline and form edits push none), and the showcase declares no undoable action (records-forms.record-edit-undo, blocked(fixture)). So acceptance[5] is scored on the import variant. Undo's absence elsewhere is recorded in the evidence and is never a FAIL of this item: which writes should offer Undo is a product decision, not this item's oracle"
3131
]
3232
},
3333
"variants": [
3434
"record create — New form save on showcase_task",
35-
"record inline edit — on any task list (since #35684 a list is editable in place wherever its reader may edit and its view declares no userActions.editInline: false; there is no 'Edit inline' toggle), double-click a Priority cell (a single click only selects it), change it, then Save row or Save All",
35+
"record inline edit — on any task list (since #35684 a list is editable in place wherever its reader may edit and its view declares no userActions.editInline: false; there is no 'Edit inline' toggle), double-click a Priority cell (a single click only selects it), change it and commit it (Enter, Tab or a click elsewhere): since #35685 the cell saves at once, as one update — a spinner on the cell while it runs, then a check mark and the '1 row saved' toast; there is no Save row and no Save All",
3636
"bulk delete — select two rows → Delete in the selection bar → confirm",
3737
"kanban move — drag a card Backlog → To Do (direct manipulation: the card in its new column IS the success feedback; a move the transition rule blocks never leaves the client — its lane is dimmed, data-kanban-drop-blocked, and the drop sends nothing, #25933)",
3838
"declared record action — Mark Done on a task record (declared successMessage `{{ record.title | default:'Task' }} marked done.`, which names the task, examples/app-showcase/src/ui/actions/index.ts#MarkDoneAction). The action patches only done and progress, so the record's Status still reads its old value (e.g. 'To Do') beside the toast: that is the declaration, not a failed write (QA run #33861)",
@@ -189,6 +189,12 @@
189189
"date": "2026-11-20",
190190
"change": "variants[1] follows #35684: every task list is editable in place, not only the Grid view that declares inlineEdit: true, and a single click selects a cell while a double-click edits it. The clauses are unchanged. Read at base 238661f4",
191191
"ref": "#35684"
192+
},
193+
{
194+
"revision": 15,
195+
"date": "2026-11-20",
196+
"change": "variants[1] and knownGaps[1] follow #35685: a list cell saves the moment it is committed, with a saving and a saved mark on the cell and the '1 row saved' toast, and there is no Save row or Save All to press. The clauses are unchanged. Read at base 2ad42b5d",
197+
"ref": "#35864"
192198
}
193199
]
194200
},

‎ui/packages/app-shell/src/views/ObjectView.listOnlyRecordPage-33219.test.tsx‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('objectstack#33219 — a list-only object\'s rows open no record page',
234234
it('a row click opens nothing: no `?recordId=`, no drawer, the list stays', async () => {
235235
await mountList(LIST_ONLY_OPERATIONS);
236236
fireEvent.click(screen.getByText('okta-staging'));
237-
openWithSpace('scim_ab12');
237+
openWithTap('scim_ab12');
238238
await settle();
239239
expect(search()).toBe('');
240240
expect(pathname()).toBe(LIST_PATH);
@@ -290,12 +290,14 @@ describe('objectstack#33219 — a list-only object\'s rows open no record page',
290290

291291
/**
292292
* objectstack#35684 — the list's other way to open a row: a click on a data
293-
* cell selects it (and opens nothing), and Space on the selected cell opens
294-
* its record, as the row's click used to.
293+
* cell selects it (and opens nothing), and a touch tap on a cell opens its
294+
* record, as the row's click used to. (It was Space on the selected cell until
295+
* objectstack#35685 made Space type into the cell, per the maintainer.)
295296
*/
296-
function openWithSpace(text: string): void {
297-
fireEvent.click(screen.getByText(text).closest('td') as HTMLElement);
298-
fireEvent.keyDown(document.activeElement as HTMLElement, { key: ' ' });
297+
function openWithTap(text: string): void {
298+
const cell = screen.getByText(text).closest('td') as HTMLElement;
299+
fireEvent.pointerDown(cell.closest('tr') as HTMLElement, { pointerType: 'touch' });
300+
fireEvent.click(cell);
299301
}
300302

301303
async function mountDataPage(apiOperations: string[] | undefined, search = '') {
@@ -333,7 +335,7 @@ describe('objectstack#33219 — the bare data page opens no record of a list-onl
333335
await mountDataPage(LIST_ONLY_OPERATIONS);
334336
fireEvent.click(screen.getByText('scim_ab12'));
335337
fireEvent.click(screen.getByText('scim_ab12'), { metaKey: true });
336-
openWithSpace('scim_ab12');
338+
openWithTap('scim_ab12');
337339
await settle();
338340
expect(search()).toBe('');
339341
expect(openSpy).not.toHaveBeenCalled();
@@ -348,9 +350,9 @@ describe('objectstack#33219 — the bare data page opens no record of a list-onl
348350
expect(findOne).not.toHaveBeenCalled();
349351
});
350352

351-
it('CONTROL — the same object served with no restriction: Space on a selected cell opens the drawer', async () => {
353+
it('CONTROL — the same object served with no restriction: a touch tap on a cell opens the drawer', async () => {
352354
await mountDataPage(undefined);
353-
openWithSpace('scim_ab12');
355+
openWithTap('scim_ab12');
354356
await waitFor(() => expect(search()).toBe('?recordId=c1'));
355357
expect(await screen.findByRole('dialog', undefined, { timeout: 5000 })).toBeTruthy();
356358
});

‎ui/packages/app-shell/src/views/ObjectView.rowOpensNothing-33317.test.tsx‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,14 @@ const OPEN_ITEMS = ['row-context-open', 'row-context-open-new-tab'];
287287

288288
/**
289289
* objectstack#35684 — the list's other way to open a row: a click on a data
290-
* cell selects it (and opens nothing), and Space on the selected cell opens
291-
* its record, as the row's click used to.
290+
* cell selects it (and opens nothing), and a touch tap on a cell opens its
291+
* record, as the row's click used to. (It was Space on the selected cell until
292+
* objectstack#35685 made Space type into the cell, per the maintainer.)
292293
*/
293-
function openWithSpace(text: string): void {
294-
fireEvent.click(screen.getByText(text).closest('td') as HTMLElement);
295-
fireEvent.keyDown(document.activeElement as HTMLElement, { key: ' ' });
294+
function openWithTap(text: string): void {
295+
const cell = screen.getByText(text).closest('td') as HTMLElement;
296+
fireEvent.pointerDown(cell.closest('tr') as HTMLElement, { pointerType: 'touch' });
297+
fireEvent.click(cell);
296298
}
297299

298300
describe('objectstack#33317 — the console object list: a row that opens nothing does not look clickable', () => {
@@ -313,7 +315,7 @@ describe('objectstack#33317 — the console object list: a row that opens nothin
313315
fireEvent.click(screen.getByText('scim_ab12'), { button: 1 });
314316
// The name cell, no longer a link of its own, hands its click to the row too.
315317
fireEvent.click(screen.getByText('okta-staging'), { metaKey: true });
316-
openWithSpace('scim_ab12');
318+
openWithTap('scim_ab12');
317319
expect(openSpy).not.toHaveBeenCalled();
318320
expect(screen.queryByTestId('left-the-list')).toBeNull();
319321
});
@@ -385,7 +387,7 @@ describe('objectstack#33549 — the console object list: `navigation.preventNavi
385387
await mountList({ navigation: PREVENTED_DRAWER });
386388
fireEvent.click(screen.getByText('scim_ab12'));
387389
fireEvent.click(screen.getByText('okta-staging'));
388-
openWithSpace('scim_ab12');
390+
openWithTap('scim_ab12');
389391
expect(drawerRecordId()).toBeNull();
390392
expect(screen.queryByTestId('left-the-list')).toBeNull();
391393
expect(openSpy).not.toHaveBeenCalled();
@@ -412,14 +414,14 @@ describe('objectstack#33549 — the console object list: `navigation.preventNavi
412414
it('a `page` view with `preventNavigation: true` draws no link face either', async () => {
413415
await mountList({ navigation: { mode: 'page', preventNavigation: true } });
414416
expect(looksLikeALink('okta-staging')).toBe(false);
415-
openWithSpace('scim_ab12');
417+
openWithTap('scim_ab12');
416418
expect(screen.queryByTestId('left-the-list')).toBeNull();
417419
});
418420

419-
it('CONTROL — the same `drawer` view with `preventNavigation: false`: Space on a selected cell writes `?recordId=`, and the name cell is the record link', async () => {
421+
it('CONTROL — the same `drawer` view with `preventNavigation: false`: a touch tap on a cell writes `?recordId=`, and the name cell is the record link', async () => {
420422
await mountList({ navigation: { mode: 'drawer', preventNavigation: false } });
421423
expect(looksLikeALink('okta-staging')).toBe(true);
422-
openWithSpace('scim_ab12');
424+
openWithTap('scim_ab12');
423425
await waitFor(() => expect(drawerRecordId()).toBe('c1'));
424426
});
425427

0 commit comments

Comments
 (0)