Skip to content
Merged
16 changes: 16 additions & 0 deletions .changeset/33548-card-faces-open-nothing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@object-ui/plugin-grid': patch
'@object-ui/plugin-list': patch
'@object-ui/plugin-kanban': patch
'@object-ui/app-shell': patch
'@object-ui/console': patch
---

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

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.
Metadata-protocol: none

**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 not drag is no control at all: no `button` role, no tab stop, no Enter/Space activation and no title hover. A board card the reader may drag keeps its grab cursor and its drag semantics. Card actions (the phone card's "⋮") stay, and the click still reaches the host.

**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.
4 changes: 3 additions & 1 deletion content/docs/frontend/plugins/plugin-grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ record-link cells (the first column, and any column authored `link: true`) as
plain text, with no anchor and no ARIA link semantics, and the row's right-click menu
offers no Open or Open in new tab; the row's actions stay. The row click still
reaches `onRowClick`, so anything else the host does with it is unchanged.
Absent (or `true`), every row is drawn as before. It is a host prop, not a
On a phone, where the grid draws each row as a card, the card draws no pointer
and no hover wash, and its "⋮" stays (objectstack#33548). Absent (or `true`),
every row is drawn as before. It is a host prop, not a
schema key: list metadata cannot set it. The console passes `false` for a view
authored `navigation: { mode: 'none' }` and for an object whose data API serves
no single-record read (objectstack#33317).
Expand Down
13 changes: 13 additions & 0 deletions content/docs/frontend/plugins/plugin-kanban.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ export function useBoard(initialColumns: KanbanColumn[]) {
}
```

### Cards that open nothing

A host that owns the card click (`onRowClick`) and knows it opens nothing for
these cards passes the React prop `rowOpensRecord={false}` to `ObjectKanban`: a
card that cannot be dragged then is no control at all: it is not a button,
takes no tab stop, ignores Enter and Space, and draws no pointer, hover lift or
title hover. A card that can be dragged keeps its grab cursor and its drag
semantics. The click still reaches `onRowClick`. Absent
(or `true`), every card is drawn as before. It is a host prop, not a schema
key: list metadata cannot set it. The console passes `false` for a view
authored `navigation: { mode: 'none' }` and for an object whose data API serves
no single-record read (objectstack#33548).

### Quick Add is a React-host capability, not a document one

The Quick Add button at the bottom of a lane is gated on **both** halves of a
Expand Down
14 changes: 14 additions & 0 deletions content/docs/frontend/plugins/plugin-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ drawn for a viewer who may not create, or under a host that serves no create.
`sharing` is not a published input of a page node yet: the Share button has no
action the spec declares.

## Rows and cards that open nothing

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

## Status

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