Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e9bebf9
wip(spec): selection location, selection arm, retire view bulkActions
claude Nov 29, 2026
5344184
wip(ui): selection bar reads the object's selection actions
claude Nov 29, 2026
2859597
wip: lint, examples, ledgers, tests and changeset for the selection l…
claude Nov 29, 2026
a78a700
wip: docs, plugin-view and plugin-list tests, selection-bar unit test…
claude Nov 29, 2026
23c2ab6
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 29, 2026
2f92df0
test(ui): census and host-surface pins read bulkActions as a protocol…
claude Nov 29, 2026
43575e0
fix(app-shell): the header pins panel arranges the two header arms an…
claude Nov 29, 2026
40c7e85
chore: regenerate the SDUI manifest, its reference pages and the meta…
claude Nov 29, 2026
189a59b
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 29, 2026
fb34308
docs(qa): the action-location matrix gains its selection leg (ACTION_…
claude Nov 29, 2026
6fee5a0
test(platform-objects): the metadata-form census counts the actionLay…
claude Nov 29, 2026
e36af8d
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
1c6feaf
merge origin/main (os-regen artifacts taken from main; regeneration f…
claude Nov 30, 2026
c2b5868
fix(spec,studio)!: a record:quick_actions bar's location refuses `sel…
claude Nov 30, 2026
a11af7b
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
a12968e
merge origin/main (os-regen artifacts taken from main, then regenerat…
claude Nov 30, 2026
5a644de
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
e54ad97
fix(spec,ui)!: declare the built-in bulk Delete rule; page-component …
claude Nov 30, 2026
ba1cb7d
docs(types): a locationless action reaches the selection bar through …
claude Nov 30, 2026
ca26068
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
908d346
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
e743d38
merge origin/main (os-regen artifacts taken from main, then regenerat…
claude Nov 30, 2026
3b5b2f9
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
29fb45c
merge origin/main (os-regen artifacts taken from main, then regenerat…
claude Nov 30, 2026
4cf3132
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 30, 2026
aceacfe
merge origin/main (os-regen artifacts taken from main, then regenerat…
claude Nov 30, 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
30 changes: 30 additions & 0 deletions .changeset/36496-selection-bulk-actions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
'@objectstack/spec': minor
'@objectstack/lint': minor
'@objectstack/platform-objects': patch
'@object-ui/types': minor
'@object-ui/plugin-grid': minor
'@object-ui/plugin-list': minor
'@object-ui/plugin-view': patch
'@object-ui/plugin-detail': patch
'@object-ui/components': patch
'@object-ui/i18n': patch
---

feat(spec)!: actions that act on many records are placed at `selection`; the object's `actionLayout.selection` orders the selection bar, and a list view's `bulkActions` is retired

Clause-②: yes (narrowing)
Metadata-protocol: narrowed

<!-- adr-0087: registered view-bulk-actions-to-action-selection -->

**BREAKING** for metadata that lists bulk actions on a list view:

- **`view.list.bulkActions` / `object.listViews.*.bulkActions` is refused at parse** (and authoring it is a `tsc` error). FROM `list: { bulkActions: ['mark_done', 'recalc'] }` TO `locations: [..., 'selection']` on the actions `mark_done` and `recalc`; when the order the lists gave is not the default (by `order`, then declaration order), also `actionLayout: { selection: { pinned: [...], more: [...] } }` on the object. Fix: run `os migrate meta --from 18` to list the edits; `--write` applies the ones it can prove (strip the key, add `'selection'`, write the arm), and hands back as a TODO an object whose lists disagree on order or need an arm on an object the stack does not declare. A list that names `delete` (the grid's built-in bulk Delete) keeps its view's Delete: on a view with authored `bulkActionDefs`, which switch the built-in Delete off, the conversion adds a `{ name: 'delete', operation: 'delete' }` def.
- **Multi-select now shows the same actions on every grid view of an object**: every action placed at `selection`, in the arm's order. A view's own `bulkActionDefs` lead the bar while the object sets no `actionLayout.selection`; with the arm set only its `pinned` names are buttons, and the defs lead the bar's 「More」 (an authored def claims its name). Where the conversion writes the arm, a view's defs move from the bar's buttons to its 「More」. A view that listed none of them now draws them too. The built-in bulk Delete follows the object's delete permission, not a view's list: a grid draws it wherever the object allows a delete, on every view with no `bulkActionDefs`, and a view with authored defs draws it only through a `{ name: 'delete', operation: 'delete' }` def; `actionLayout.selection.pinned: []` moves it, and every other action, into the bar's 「More」. **This is a change** (maintainer ruling 7268555255, accept and declare): a view whose list named actions but not `delete`, with no defs, used to hide the built-in Delete and now draws it for anyone the object lets delete. Measured: `showcase_field_zoo`'s `default` and `gated_columns` views (administrators only), and in HotCRM `crm_lead` `all_leads` and `crm_contact` `all_contacts` (Sales Manager and System Administrator). `os migrate meta --from 18` names each such view in a notice.
- **`@object-ui/types` `ListViewSchema.bulkActions` is `never`**, and the `list-view` block's `bulkActions` input is removed. The `object-grid` block's own `bulkActions` / `batchActions` props are unchanged.
- **A `record:quick_actions` bar's own `location` does not take `selection`.** The bar accepts the same set as before this change (`record_page`, `record_row`, `record_related`, `record_section`, `list`); `location: 'selection'` is refused at parse with a prescription naming those single places, because the selection bar belongs to the grid. Studio's location dropdown and the published SDUI manifest offer the same set.
- **An action written on a page component does not take `selection` either.** `action:button` / `action:icon` `locations`, an `action:group` member's `locations` and the group's own `location` filter (`PageComponentActionLocationSchema`) accept every action location but `selection`, refused at parse with a prescription naming the places they take: such an action runs once, with no selection. The `action:group` registration in the SDUI manifest offers the same set.
- **`action-dispatch-contract-mismatch`** now judges an action placed at `selection` (one dispatch per selected record) against its declared `execution`; an action placed at `selection` that declares `execution: 'aggregate'` is refused, with the fix "move it from `selection` to an aggregate `bulkActionDefs` entry".

The retirement kit: the tombstone's prescription (parse and `tsc`), the protocol-19 conversion `view-bulk-actions-to-action-selection`, the `RETIRED_KEYS_BY_MAJOR` entries `ui/ListView:bulkActions` and `ui/ObjectListView:bulkActions`, and the semantic entry `view-bulk-actions-declared-on-the-action`. A stored `view` row arrives without its object's actions, so the conversion leaves it as stored and reports a TODO; sources and package artifacts that carry the actions beside the views are rewritten.
4 changes: 2 additions & 2 deletions content/docs/deployment/validating-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ no declared page, **fails** validation; a `url` path whose
The same gate covers the reference sites that are plain strings in the schema:
an action param's record-picker target, a dashboard filter's options source, a
navigation capability gate, and every surface that binds an action **by name**
(`bulkActions` / `rowActions`, a page's `record:quick_actions`, a nav action item).
(`rowActions`, an aggregate `bulkActionDefs` entry, a page's `record:quick_actions`, a nav action item).

```ts
// ✗ the platform user object is `sys_user` — `user` resolves to nothing → error
{ name: 'owner', type: 'lookup', reference: 'user' }

// ✗ no action named `mass_update` is defined anywhere → error
defineView({ /* … */ bulkActions: ['mass_update', 'mass_delete'] })
defineView({ /* … */ list: { rowActions: ['mass_update', 'mass_delete'] } })

// ⚠ platform-shaped, but no known package registers it → warning
{ id: 'nav_approvals', type: 'object', objectName: 'sys_approval_process',
Expand Down
Loading
Loading