Skip to content

Commit 491249f

Browse files
committed
test(console): pin the card faces and modifier clicks on lists whose rows open nothing; docs and changeset
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT
1 parent 00325ec commit 491249f

9 files changed

Lines changed: 457 additions & 14 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
'@object-ui/plugin-list': patch
4+
'@object-ui/plugin-kanban': patch
5+
'@object-ui/app-shell': patch
6+
'@object-ui/console': patch
7+
---
8+
9+
fix(plugin-grid, plugin-list, plugin-kanban, app-shell): cards whose click opens nothing no longer look clickable, and a view authored `navigation: { mode: 'none' }` opens no record on a Cmd/Ctrl or middle click
10+
11+
Clause-②: yes (widening) — `ObjectGalleryProps` (published by `@object-ui/plugin-list`) and `ObjectKanbanComponentProps` (published by `@object-ui/plugin-kanban`) each gain one optional prop, `rowOpensRecord?: boolean`, the name `ObjectGridComponentProps` and `ListViewProps` already carry. Absent, every card renders as before. Nothing is removed or narrowed.
12+
Metadata-protocol: none
13+
14+
**Cards that open nothing.** A list's rows open nothing when its view is authored `navigation: { mode: 'none' }`, or when its object's data API serves no single-record read (a list-only object). The grid already drew such rows plain on a desktop; its phone cards, the gallery's cards and the board's cards still drew a pointer and a hover lift, so a tap that did nothing looked like a broken page. `ListView` now hands its `rowOpensRecord` to the gallery and the board as well as the grid, and none of these faces draws a pointer or a hover lift for a card that opens nothing. A board card the reader may drag keeps its grab cursor. Card actions (the phone card's "⋮") stay, and the click still reaches the host.
15+
16+
**No new tab on an authored `none`.** On the Console's object list a Cmd/Ctrl-click or a middle click on a row of a view authored `navigation: { mode: 'none' }` opened the record in a new tab, though the view declares no navigation. It now opens nothing, like a plain click. This supersedes the sentence in the `33317-row-opens-nothing-plain` note that says such a click "still opens the record in a new tab, as before". Rows that open a drawer or a page still open a new tab on a Cmd/Ctrl or middle click.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ record-link cells (the first column, and any column authored `link: true`) as
293293
plain text, with no anchor and no ARIA link semantics, and the row's right-click menu
294294
offers no Open or Open in new tab; the row's actions stay. The row click still
295295
reaches `onRowClick`, so anything else the host does with it is unchanged.
296-
Absent (or `true`), every row is drawn as before. It is a host prop, not a
296+
On a phone, where the grid draws each row as a card, the card draws no pointer
297+
and no hover wash, and its "⋮" stays (objectstack#33548). Absent (or `true`),
298+
every row is drawn as before. It is a host prop, not a
297299
schema key: list metadata cannot set it. The console passes `false` for a view
298300
authored `navigation: { mode: 'none' }` and for an object whose data API serves
299301
no single-record read (objectstack#33317).

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,17 @@ export function useBoard(initialColumns: KanbanColumn[]) {
155155
}
156156
```
157157

158+
### Cards that open nothing
159+
160+
A host that owns the card click (`onRowClick`) and knows it opens nothing for
161+
these cards passes the React prop `rowOpensRecord={false}` to `ObjectKanban`: a
162+
card that cannot be dragged then draws no pointer and no hover lift, and a card
163+
that can keeps its grab cursor. The click still reaches `onRowClick`. Absent
164+
(or `true`), every card is drawn as before. It is a host prop, not a schema
165+
key: list metadata cannot set it. The console passes `false` for a view
166+
authored `navigation: { mode: 'none' }` and for an object whose data API serves
167+
no single-record read (objectstack#33548).
168+
158169
### Quick Add is a React-host capability, not a document one
159170

160171
The Quick Add button at the bottom of a lane is gated on **both** halves of a

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ drawn for a viewer who may not create, or under a host that serves no create.
5757
`sharing` is not a published input of a page node yet: the Share button has no
5858
action the spec declares.
5959

60+
## Rows and cards that open nothing
61+
62+
A React host whose row click (`onRowClick`) opens nothing for these rows passes
63+
`rowOpensRecord={false}` to `ListView`, which hands it to the grid, the gallery
64+
and the board. None of them then draws a row or card as something to open: the
65+
grid's record-link cells are plain text and its right-click menu has no Open,
66+
and the grid's phone cards, the gallery's cards and a board card that cannot be
67+
dragged draw no pointer and no hover lift. The click still reaches
68+
`onRowClick`, and row and card actions stay. Absent (or `true`), nothing
69+
changes. It is a host prop, not a schema key: list metadata cannot set it. The
70+
console passes `false` for a view authored `navigation: { mode: 'none' }` and
71+
for an object whose data API serves no single-record read (objectstack#33317,
72+
objectstack#33548).
73+
6074
## Status
6175

6276
This plugin is part of the v3.3.0 release. For full API reference and usage

0 commit comments

Comments
 (0)