You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 85a0312
Browse filesBrowse the repository at this point in the historyBrowse files
fix(plugin-list): a non-grid view's selection bar draws only actions the object declares
The bar ListView draws itself for kanban, calendar, gallery and the other
non-grid views mapped every bare `bulkActions` name to a button. It now
folds the names through plugin-grid's `resolveBulkActions`, the grid's own
fold: a declared name draws under its declared label, the built-in
`delete` keeps its own path, and any other name draws nothing and is named
once in development by plugin-grid's `useUndeclaredActionNamesWarning`.
plugin-grid exports the two (and their types) for this, and the warning's
address gains an optional `component`, defaulting to `ObjectGrid` so the
grid's message is unchanged. plugin-list declares plugin-grid as a peer
and dev dependency.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVzvtWN68zb2r9z2zy
fix(plugin-list): a list's selection bar over a non-grid view (kanban, calendar, gallery, …) draws only actions the object declares, by the grid's own rule; an undeclared bare `bulkActions` name draws nothing and warns once in development (#30394)
7
+
8
+
Clause-②: yes (widening) — `@object-ui/plugin-grid` exports `resolveBulkActions` and `useUndeclaredActionNamesWarning` (with the `ActionLabelResolver`, `NamedActionDef`, `UndeclaredActionNameKey`, `UndeclaredActionNamesAddress` and `UndeclaredActionNamesBasis` types) so `@object-ui/plugin-list` reuses the grid's fold and warning instead of a second copy; the warning's address gains an optional `component`, defaulting to `ObjectGrid`, so the grid's message is byte-identical.
9
+
Metadata-protocol: narrowed
10
+
Skills-docs: no move — `skills/**` teaches no handler-only bulk action name (searched for `bulkActions` examples); `content/docs/ui/**` already names only declared actions.
11
+
12
+
-**Before.** The bar ListView draws itself for every view but the grid mapped each `bulkActions` member straight to a button, labelled by the humanized name, whether or not the object declared it. A name the object does not declare (a misspelling, or an action a disabled package withholds from the served object) showed a button that toasted "not executable" on click. The grid stopped drawing such names in #30169.
13
+
-**Now.** The bar folds the names through the grid's `resolveBulkActions`: a name the object declares draws under that action's label (through the app's i18n bundle), the built-in `delete` keeps its own path and gate, and any other name draws nothing. In development the console logs one warning per list naming the key, the view and each name (`[ObjectUI] ListView bulkActions: kanban (objectName: …) — …`), the grid's own message. A bar with nothing left to draw is not shown.
14
+
-**Remedy.** Declare the named action on the object, or remove the name from `bulkActions`. An action withheld by a disabled package needs nothing: it draws again when the package is enabled.
0 commit comments