Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3702540
wip(ui): select-first cell model in data-table
claude Nov 20, 2026
0311f54
wip(ui): list page grid selects first; cell facts, read-only reasons,…
claude Nov 20, 2026
8b9121e
wip(docs): leave records-forms list-view item to #35706's revision bump
claude Nov 20, 2026
d0ed9ac
wip(ui): select-first pins, and toggle-era tests migrated
claude Nov 20, 2026
d5b8e1f
wip(ui): token scoped to editable grid views, verdicts on first selec…
claude Nov 20, 2026
06d6320
wip(ui): every view of an editable list carries the token, so a view …
claude Nov 20, 2026
8a25ccf
wip(ui): interface page writes canonical editInline; row-open pins mo…
claude Nov 20, 2026
79006b0
fix(ui): a re-click keeps the selected cell's focus; a double-click o…
claude Nov 20, 2026
55bcf9c
Merge origin/main into claude/issue-35684-inline-edit-select-keys
claude Nov 20, 2026
ef7ba2b
test(app-shell): the interface page's spec-default toolbar includes e…
claude Nov 20, 2026
cf0941e
Merge origin/main into claude/issue-35684-inline-edit-select-keys
claude Nov 20, 2026
828a0f1
fix(i18n): keep list.inlineEditLabel in every pack
claude Nov 20, 2026
9f965e6
fix(components): Ctrl/Cmd+C copies a selected cell with CapsLock on
claude Nov 20, 2026
87d6975
fix(i18n): generate zh-Hant's cell reasons from zh-Hans; test: the li…
claude Nov 20, 2026
bd5c58c
test(plugin-list): the live Display report returns to the view's row …
claude Nov 20, 2026
b6ae293
fix(list): no edit column at rest on the list page; the cell's grant …
claude Nov 20, 2026
fb14114
chore: tighten the round-2 comments
claude Nov 20, 2026
fe93cd9
docs(changeset): name every ListView host the select-first model reac…
claude Nov 20, 2026
28d1557
docs(changeset): ListView passes the select-first model to every grid…
claude Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .changeset/35684-35687-list-cells-select-first.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
'@object-ui/components': minor
'@object-ui/core': minor
'@object-ui/plugin-grid': minor
'@object-ui/plugin-list': minor
'@object-ui/i18n': patch
'@object-ui/app-shell': patch
---

feat(list): a list's cells are selected by a click and edited by a double-click, Enter or typing, with no inline-edit toggle

Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: none — `skills/objectstack-ui/rules/list-views.md` already teaches that inline editing is on by default for a user who may update the object, with `userActions: { editInline: false }` as the opt-out, which the list page now does with no toggle; no skill teaches the toggle or a single-click edit.

**The list page (`ListView`) has no inline-edit mode and no toggle.** Its grid is editable in place wherever the reader may update the object and the view does not declare `userActions.editInline: false`; a view's boolean `inlineEdit` still folds into that switch, so `inlineEdit: false` reads off and `inlineEdit: true` reads on. Before, a view that declared neither opened read-only with an "Edit inline" toggle in the toolbar and in the Display menu, the mode lasted for the session, and a click on a cell edited it. Both toggles are gone, and `ListViewProps.onInlineEditChange` is deprecated and never called; the console stops passing it.

**The select-first cell model** (`data-table`, behind the new `GridCellSelectionProvider` in `@object-ui/components`; `ObjectGrid` mounts it when its host passes the new `cellSelection` prop, and `ListView` passes it for every `object-grid` view it draws, on the hosts listed below):

- A click selects a cell (a ring around it) and neither edits it nor opens the record. A link the cell draws (the name, a lookup, a phone or an email) keeps its own click. A touch tap opens the record and never edits in place.
- Double-click, Enter or F2 edits, keeping the value with the caret at its end; typing a character replaces the value with it (a picker or a date opens instead); Backspace or Delete opens an empty editor and saves nothing.
- While editing, Enter commits and moves down, Tab and Shift+Tab commit and move right and left, Escape cancels and keeps the cell selected; in a multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. Commits are the grid's staged edits, saved by the row's Save and Save All as before.
- On the selected cell the arrows and Tab move the selection, Space opens the record (a checkbox cell flips and commits instead, as a second click on it does), Ctrl/Cmd+C copies, Ctrl/Cmd+V converts the text to the field's type and commits it, and Escape clears the selection.
- An input method's composition is kept whole: keys pressed while composing, and the 229 Enter Safari raises after it, never commit, cancel or move, and a composition started on a selected cell opens the editor with the composed text. This guard applies to every `data-table` editor.
- A cell that opens no editor says why on the cell: the field is read-only, calculated or not editable in a list, the reader may not edit the field, these records or this record, the view turned editing off, or the record is locked by an approval. The approval lock is read from the approvals service's per-record lock when a cell of the row is selected, through the record page's rule (`resolveApprovalLock`); until it answers, the row's `approval_status` stands in only where the view fetches that column, which a view that authors its columns does only when a column, a row predicate or a grouping names it.

Every grid a `ListView` draws has this model, because `ListView` passes `cellSelection` to each `object-grid` view: the console's object list pages, interface list pages, the object data page (`/apps/:app/:object/data`), the Studio Data pillar's records artboard, and every `list-view` block, whether an SDUI page node or a `ListView` on a `kind: 'react'` page; a grid no `ListView` draws mounts no provider and keeps its click-to-edit (`singleClickEdit`) and click-to-open behaviour unchanged: an authored `object-grid` node, `ObjectView`'s own grid (the `object-view` block, or a host that passes no `renderListView`), a related list, a dashboard table, the record picker and the designer's grids.

On every `ListView` grid (the select-first model) the table's trailing edit column, which holds a changed row's Cancel and Save, is drawn only while a row has changes, so the list at rest ends on its last data column. `@object-ui/core` exports `resolveAffordanceGrant`, the grant half of `resolveAffordance`, which the list cell's read-only reason reads.

New locale keys, in every pack: `table.cellReadOnly` and `grid.readOnlyReason.*` (nine reasons). No key is removed: `list.inlineEditShort` and `list.inlineEditLabel`, the toggle's words, stay in every pack, though the list no longer draws the toggle.
32 changes: 32 additions & 0 deletions content/docs/frontend/plugins/plugin-grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,38 @@ through the host's data source (`dataSource.update`) with no callback to wire.
To own persistence in a React host, supply `onCellChange` as a **component
prop** — it is not a schema key.

#### On an object's list page

The console's list page draws its grid with the **select-first** cell model
(objectstack#35684, objectstack#35687), which its host turns on (the
`cellSelection` component prop, not a schema key). There is no inline-edit
mode and no toggle: the grid is editable wherever the reader may edit the
object and the view does not declare `userActions.editInline: false`, and
`singleClickEdit` is not read there.

- **A click selects** a cell (a ring around it); it neither edits nor opens the
record. A link a cell draws (the name, a lookup, a phone or an email) keeps
its own click. On a touch screen a tap opens the record.
- **Editing** starts on a double-click, Enter or F2 (the value kept, caret at
its end), or by typing, which replaces the value; an input method's
composition is kept whole. Backspace or Delete opens an empty editor and
saves nothing yet.
- **While editing**, Enter commits and moves down, Tab / Shift+Tab commit and
move right / left, and Escape cancels and keeps the cell selected. In a
multi-line editor Enter is a new line and Ctrl/Cmd+Enter commits. A click
elsewhere commits.
- **Selected cell keys:** the arrows and Tab move the selection; Space opens the
record (a checkbox cell flips instead, as does a second click on it);
Ctrl/Cmd+C copies; Ctrl/Cmd+V converts the text to the field's type and
commits it; Escape clears the selection.
- **A cell that opens no editor says why** on the cell: the field is read-only,
calculated or not editable in a list, the reader may not edit the field, the
object or the record, the view turned editing off, or the record is locked
by an approval.

Commits are the grid's own staged edits: the row's Save / Cancel and the Save
All bar save them, as before.

### Keyboard navigation

`keyboardNavigation` turns the grid's data cells into one roving Tab stop, on the
Expand Down
42 changes: 20 additions & 22 deletions content/docs/frontend/plugins/plugin-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -654,29 +654,27 @@ panel offers every field the user may read, minus the fields the object marks
**Inline editing on that node is on by default.** Both keys below are the
author's permission. `ListView` reads the node's `userActions.editInline` with
the spec's default, on since the v18 ruling (objectstack#22605), so a view that
declares neither key offers the inline-edit toggle (objectui#12086), and
`userActions.editInline: false` is how a view withdraws it. When the node
carries no `editInline` of its own, its `inlineEdit` stands in for it
(objectui#5144). The named view's keys win over the host `views` entry's, as
for every member above:
declares neither key is editable in place, and `userActions.editInline: false`
is how a view withdraws it. When the node carries no `editInline` of its own,
its `inlineEdit` stands in for it (objectui#5144). The named view's keys win
over the host `views` entry's, as for every member above:

| The view declares | Inline-edit toggle | Grid opens in edit mode |
| --- | --- | --- |
| neither key | offered | no |
| `inlineEdit: true` | offered | yes |
| `inlineEdit: false` | not offered | no |
| `userActions.editInline: true` | offered | only with `inlineEdit: true` |
| `userActions.editInline: false` | not offered | no, whatever `inlineEdit` says |

The toggle switches the edit mode for the session and reports it through
`ListView`'s `onInlineEditChange`. The console stores nothing for it: each load
opens in the mode the view's `inlineEdit` declares, so a user's choice is not
remembered across loads. A view where an earlier console stored
`inlineEdit: false` still reads off; that data is not migrated, and declaring
`userActions.editInline: true` brings the toggle back. A list whose records are
read-only by nature declares `userActions.editInline: false`. Neither key opens
editing past the object's own editability or the user's permission to update
the object.
| The view declares | Grid editable in place |
| --- | --- |
| neither key | yes |
| `inlineEdit: true` | yes |
| `inlineEdit: false` | no |
| `userActions.editInline: true` | yes, whatever `inlineEdit` says |
| `userActions.editInline: false` | no, whatever `inlineEdit` says |

There is no inline-edit mode and no toggle (objectstack#35684): a click selects
a cell and a double-click, Enter or typing edits it (the list page's
select-first model, see the grid's Inline Editing). A view where an earlier
console stored `inlineEdit: false` still reads off; that data is not migrated,
and declaring `userActions.editInline: true` turns editing back on. A list
whose records are read-only by nature declares `userActions.editInline: false`.
Neither key opens editing past the object's own editability or the user's
permission to update the object.

### Update

Expand Down
10 changes: 8 additions & 2 deletions docs/qa/platform-checklist/areas/ux-conventions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"title": "Every user-initiated write answers visibly — success names what changed, a refusal says why, and a no-op claims nothing",
"since": "v17.7",
"status": "active",
"revision": 13,
"revision": 14,
"priority": "P1",
"surface": "browser",
"personas": [
Expand All @@ -32,7 +32,7 @@
},
"variants": [
"record create — New form save on showcase_task",
"record inline edit — on the task object's Grid view (the named view `grid`, labelled 'Grid': the one task list that declares inlineEdit: true, examples/app-showcase/src/ui/views/task.view.ts; the default All Tasks list declares none), double-click a Priority cell (the grid has no 'Edit inline' button), change it, then Save row or Save All",
"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",
"bulk delete — select two rows → Delete in the selection bar → confirm",
"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)",
"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)",
Expand Down Expand Up @@ -183,6 +183,12 @@
"date": "2026-11-15",
"change": "steps[1], [2], [5] and variants[4], [6], [8] and [11] re-pointed: the update-mode import's inline result is its feedback (no toast); the settings PUT is outside /api/v1; the import Undo answers with the row's 'Undone' label; Mark Done leaves Status unchanged by declaration; the record title opens the subject record's page, where Approve also sits; Studio autosave needs a record and the column's 'Edit field properties'; and the stock currency is locked (QA run #33861, comment 6894395705, and QA run #33914, comment 6895723718; ledger 6896511848 of #33761 rows 182, 229, 230 and 231). The clauses are unchanged. Read at base 895783a1",
"ref": "#33981"
},
{
"revision": 14,
"date": "2026-11-20",
"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",
"ref": "#35684"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
*
* An ADR-0047 interface page reads the page config's `userActions.editInline`
* with the protocol's default, on (`!== false`, objectstack#22605), and hands
* it to `ListView` as the view's `inlineEdit`. It does not forward `editInline`
* itself, so the `userActions` block it builds carries no `editInline` key. The
* page wires no inline-edit toggle, so that `inlineEdit` is the grid's edit
* mode: a page that declares nothing opens its grid editable in place, and
* it to `ListView` as the `userActions.editInline` it builds. Since the list
* has no edit mode (objectstack#35684) it writes no legacy `inlineEdit`: a page
* that declares nothing opens its grid editable in place, and
* `editInline: false` is the opt-out.
*
* `ListView` reads what this page composes through `normalizeListViewSchema`,
* which folds the `inlineEdit` the page sets into `userActions.editInline`. So
* the two readings agree. This file pins it by capturing the schema the page
* hands `ListView` and running it through the real fold, which is the input
* `ListView`'s `inlineEditOffered` reads. What `ListView` does with
* This file pins it by capturing the schema the page hands `ListView` and
* running it through the real fold (`normalizeListViewSchema`), which is the
* input `ListView`'s `inlineEditOffered` reads. What `ListView` does with
* `editInline`, the permission gate included, is pinned in
* `@object-ui/plugin-list`'s `ListView.permissions.test.tsx`.
*/
Expand Down Expand Up @@ -106,31 +103,26 @@ describe('InterfaceListPage: editInline reads the same as ListView after the fol
testObjects = [];
});

it('an ABSENT page editInline reads on, on both: edit mode, and `editInline` folds to true (objectui#12086)', async () => {
it('an ABSENT page editInline reads on: the page writes `editInline: true`, and no legacy `inlineEdit` (objectui#12086)', async () => {
const schema = await composedSchema({ search: true });
// The page's own reading: the protocol default, `!== false`.
expect(schema.inlineEdit).toBe(true);
// The page forwards no `editInline` of its own…
expect(schema.userActions).not.toHaveProperty('editInline');
// …so `ListView` reads the folded one, which is on.
expect((schema.userActions as Record<string, unknown>).editInline).toBe(true);
expect(schema).not.toHaveProperty('inlineEdit');
expect(editInlineRead(schema)).toBe(true);
});

it('a page with no `userActions` block at all reads on the same way', async () => {
const schema = await composedSchema(undefined);
expect(schema.inlineEdit).toBe(true);
expect(editInlineRead(schema)).toBe(true);
});

it('an explicit page `editInline: true` reads on, on both', async () => {
const schema = await composedSchema({ editInline: true });
expect(schema.inlineEdit).toBe(true);
expect(editInlineRead(schema)).toBe(true);
});

it('an explicit page `editInline: false` is the opt-out: off on both', async () => {
const schema = await composedSchema({ editInline: false });
expect(schema.inlineEdit).toBe(false);
expect(editInlineRead(schema)).toBe(false);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ const NOT_RELAYED: Record<string, NotRelayed> = {
showRecordCount: { kind: 'page-owned', from: 'showRecordCount', reason: "The page config's record-count toggle, page presentation policy; the referenced view's toggle does not stand in for it." },
allowPrinting: { kind: 'page-owned', from: 'allowPrinting', reason: "The page config's \"Allow users to print the page\". It went unwritten until objectui#11572, so the declared toggle drew no print button; the page's value only, like its siblings." },
userActions: { kind: 'page-owned', from: 'userActions', reason: "The page config's toolbar toggles, read with the published `UserActionsConfigSchema` defaults (a control is withheld by writing `false`; rowColor is opt-in). The view's toolbar vocabulary is the object page's policy, not this page's." },
inlineEdit: { kind: 'page-owned', from: 'userActions', reason: "Read from the page's `userActions.editInline` (default on since objectstack#22605; `editInline: false` opts out). Whether this page's cells are editable is the page author's decision, not the referenced view's." },
navigation: { kind: 'page-prop', from: 'recordAction', prop: 'onRowClick', reason: "The page config's `recordAction` (drawer / page / modal / none) decides how a record opens, wired through `onRowClick` to this page's own overlay. The view's `navigation` would be a second, competing answer." },

// ── The page's own binding and text ──────────────────────────────────────
Expand Down
17 changes: 8 additions & 9 deletions ui/packages/app-shell/src/views/InterfaceListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,17 +618,16 @@ export function InterfaceListPage({ page, className, onConfigChange, reserveEdit
group: userActions.group !== false,
hideFields: userActions.hideFields !== false,
rowColor: userActions.rowColor === true,
// Inline record editing is a page-authored property, on by default
// (the v18 protocol default, objectstack#22605): a page opts out with
// `editInline: false`. A cell edits in place with the dedicated field
// widgets, same as the object views, and only where `ListView`'s
// permission gate admits the principal (the object editable in place,
// and the `update` grant). Written as the canonical key since the list
// has no edit mode for a legacy `inlineEdit` to start (objectstack#35684).
editInline: userActions.editInline !== false,
},
allowExport: false,
// Inline record editing is a page-authored property read from
// `userActions.editInline`, on by default (the v18 protocol default,
// objectstack#22605): a page opts out with `editInline: false`. This page
// wires no inline-edit toggle, so the value is the grid's edit mode
// itself. When on, a cell edits in place with the dedicated field
// widgets, same as the object views, and only where `ListView`'s
// permission gate admits the principal (the object editable in place, and
// the `update` grant).
inlineEdit: userActions.editInline !== false,
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [objectDefName, viewDefJson, cfg, orgAttribution]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ const SPEC_DEFAULT_TOOLBAR = {
group: true,
hideFields: true,
rowColor: false,
// On by default as well: the page writes it as the canonical key, since the
// list has no edit mode for a legacy `inlineEdit` to start (objectstack#35684).
editInline: true,
};

const ON_BY_DEFAULT = ['filter', 'rowHeight', 'group', 'hideFields'] as const;
Expand Down
Loading
Loading