Skip to content

Commit 1c05546

Browse files
feat(plugin-grid): report an aggregate bulk handler's BulkActionResult per row (#35362)
Fixes #34269 Clause-②: yes Metadata-protocol: none ## 维护者速读 - 改了什么:批量操作 `execution: 'aggregate'` 的处理器若返回 `{ succeeded, failed }`(`BulkActionResult`),结果面板按行报告:成功数、失败行及其原因、未确认的行;返回值带这两个成员却解析不了的,报「结果无法读取」,不再当全成功。 - 为什么改:以前聚合批量只要不抛错就把整个选择算作成功,部分成功的处理器(HotCRM 批量移动)被误报为全部成功;契约已在 `@objectstack/spec/ui` 声明,但没有读取方。 - 风险与回滚:已有聚合处理器若在返回值顶层用 `succeeded`/`failed` 表示别的东西(例如计数),会从「全成功」变成「无法读取」,已在 changeset 中声明;回滚即还原本 PR。 - 先看:`ui/packages/plugin-grid/src/hooks/useBulkExecutor.ts`(`readAggregateResult` 与聚合分支)、`ui/packages/plugin-grid/src/ObjectGrid.tsx`(`runBulkActionAggregate` 现在返回处理器的值)、`ui/packages/plugin-grid/src/components/BulkActionDialog.tsx`(两个新结果形态)。 - 两分钟验证:`pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/objectBulkActionDispatch.test.tsx -t "BulkActionResult per row"`,预期 5 个用例通过。 - 需要你做的:无,席位落地。 ## What changes - **Reader.** On an `execution: 'aggregate'` dispatch only, the grid's bulk executor reads the handler's resolve value against the ids it dispatched (`params._selectedIds`) with `readAggregateResult`, parsing it with `BulkActionResultSchema` from `@objectstack/spec/ui`: - neither a `succeeded` nor a `failed` own member (nothing, a summary, a link, an array) keeps today's report: every row covered; - one of them present but the value does not parse is one **unreadable** outcome for the selection (`BulkResult.aggregateUnreadable`), never full success; - a parsed value reports per row: ids outside the selection are dropped, a duplicate counts once, an id in both lists counts as failed, when one id is in `failed` twice the first entry's message wins, and a selected id in neither list is **not confirmed** (`BulkResult.aggregateUnconfirmed`), never succeeded. - **Rejection is unchanged**: it stays the one-outcome `aggregateRejection` report. The per-row result sits beside it as two new optional `BulkResult` members, never inside it. - **Dispatcher.** `ObjectGrid`'s `runBulkActionAggregate` returned `void`, so no resolve value ever reached the executor. It now returns the handler's own value, read one level below the action envelope with `readActionPayload` (the reader every other consumer of `ActionResult.data` uses). Closing the dialog re-reads the grid after an unreadable run or one that left rows unconfirmed, as it already did after a rejection. - **Dialog.** Failed rows are listed under their record with the handler's `message` (and in the error CSV), with no Retry (an aggregate run has no per-row slice). Unconfirmed rows get a `Not confirmed N` tally and their own list. An unreadable run gets its own one-outcome panel with no per-row count. - **Strings.** Three new keys in every `@object-ui/i18n` pack: `grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`; `zh-Hant` regenerated from `zh-Hans`; `resultNotConfirmed` listed as a count tally beside `resultFailed`. - **Spec prose.** The `[PLANNED — not enforced]` marker and the "until the reader lands" sentences are removed from `BulkActionResultSchema`'s TSDoc and `.describe()`, and the reference page `content/docs/references/ui/bulk-action.mdx` is regenerated (`check:generated --fix`). The prose restates seat ruling 6905490575 option A and adds the card's first-entry-wins rule; no schema shape changes. `content/docs/ui/views.mdx` drops "a handler that cannot cover the whole selection must reject" and says how a per-row answer is reported. - **Declared behaviour change** (review r2 N2, 6907153374), in the changeset: an existing aggregate handler whose return value carries a top-level `succeeded` or `failed` member in another form (counts, or only one of the two lists) moves from the success report to "unreadable". ## Tests - `useBulkExecutor.test.ts`, new top-level describe "an aggregate run reads its BulkActionResult per row": one pin per reader rule (moved count + failed rows, outside-selection dropped, duplicate once, both lists then failed, first `failed` entry wins, neither list then not confirmed), four unreadable shapes (counts, `error` instead of `message`, one member only, numeric ids), and a CONTROL over five neither-member values (nothing, null, a summary, a link, an array) asserting today's exact report. - `objectBulkActionDispatch.test.tsx`, new top-level describe "an aggregate run reports its BulkActionResult per row": through the real `ObjectGrid`, `ActionProvider` and `createServerActionHandler` over the `/actions` success envelope: partial result listed per row with no Retry; not-confirmed row listed by name and kept out of the succeeded list; all-unconfirmed run re-reads the grid once on close; unparseable `{ succeeded: 2, failed: 0 }` shows the unreadable panel and no count; CONTROL: a handler returning nothing keeps "Succeeded 2 / 2". ## Acceptance notes - **File surface.** The claim named `useBulkExecutor.ts`, `BulkActionDialog.tsx`, the spec file and reference page, the locale packs, new test files and `.changeset/`. This PR also edits: - `ObjectGrid.tsx`: without its one-line `return readActionPayload(res.data)` the reader would only ever see `undefined` in the running console. This is the card's own defect (the resolve value is dropped), so it is fixed here. - Two existing test files instead of new ones, because AGENTS.md puts a new pin for a component that already has a shared harness file into that file as a top-level `describe` (ruling record 6583487846). - `count-families-11445.test.ts`: the new count key, listed beside `grid.bulk.resultFailed`. - `content/docs/ui/views.mdx`: it stated the rule this PR retires. - **Not changed, stale after this PR:** `docs/audits/2026-07-unknown-key-strictness-ledger.md`, in the `bulk-action.zod.ts` row, still says `BulkActionResultSchema` is PLANNED with nothing reading it. It is an internal audit ledger and no gate reads it; left for the seat. - Server audit row (`runResolvedActionAsRest`) and skills teaching (#34268) are out of scope, as the card says. ## Verification Local runs on head 8870567. <details><summary>Tests, typecheck, gate families (head 8870567)</summary> - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/src/__tests__/useBulkExecutor.test.ts packages/plugin-grid/src/__tests__/objectBulkActionDispatch.test.tsx`: Test Files 2 passed (2), Tests 72 passed (72), lock VERDICT command-exit 0. - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ packages/i18n/` (head d18360f): plugin-grid all green; i18n had 2 failures, now fixed: `grid.bulk.resultNotConfirmed` was missing from the count-tally list, and `zh-Hant` needed regenerating. Re-run of `packages/i18n/` on 8870567: Test Files 104 passed (104), Tests 1956 passed, 13 skipped. - `pnpm --filter @object-ui/plugin-grid run type-check && pnpm --filter @object-ui/i18n run type-check`: VERDICT command-exit 0 (`tsconfig.test.json` compiles the tests). - `pnpm --filter @objectstack/spec build` exit 0; `check:generated` named `check:docs` stale (expected, describe changed), `--fix` regenerated `content/docs/references/ui/bulk-action.mdx`, exit 0. - `node scripts/pm/dispatch-gates.mjs --commands` on 8870567: 113 families, all run; `--ran` reconciliation: 110 run exit 0, 3 NOT-MEASURED (exit 3, PREREQUISITE NOT MET), 0 UNRUN. - `check-plugin-teardown-shape --self-test`: shallow clone missing its pinned fixture commit; after fetching that commit, re-run exit 0 (checker-health only). - `check:skill-examples`: client-react was not built; after building it, re-run exit 0 (345 prose examples type-check). - `check:dual-build-cjs-loads`: NOT MEASURED, needs a whole-tree `pnpm build` (35 packages without dist); CI runs it. - `node scripts/pm/overlap-check.mjs` before each push: VERDICT clean exit 0 (shares only locale packs with #35313 and #35261, both merge cleanly). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent adcb9f8 commit 1c05546

26 files changed

Lines changed: 472 additions & 72 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
'@object-ui/i18n': patch
4+
'@objectstack/spec': patch
5+
'@object-ui/types': patch
6+
---
7+
8+
feat(plugin-grid): an aggregate bulk action that resolves with a `BulkActionResult` is reported per row: the rows it moved, the rows it refused with its own reasons, and the rows it did not confirm
9+
10+
Clause-②: yes
11+
Metadata-protocol: none
12+
13+
The grid's bulk executor now reads the resolve value of an `execution: 'aggregate'` bulk handler. When it is a `BulkActionResult` (`{ succeeded: string[], failed: { id, message }[] }`, `BulkActionResultSchema` in `@objectstack/spec/ui`), the result panel shows how many selected rows were moved, lists each refused row under its record with the handler's `message` (and in the error CSV), and lists every selected row the result names in neither list as "not confirmed", never as succeeded. Ids are read against the dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and when one id is in `failed` twice the first entry's message wins. A rejection is unchanged: it stays one outcome for the whole selection.
14+
15+
A handler that partly succeeds no longer has to reject to avoid being reported as full success: resolve with the per-row answer instead. The `[PLANNED — not enforced]` marker is removed from `BulkActionResultSchema`'s description and its reference page, and the "all-or-nothing" wording is removed from the `bulkActionDefs` description (`@objectstack/spec`) and the `BulkActionDef.execution` TSDoc (`@object-ui/types`).
16+
17+
**Declared behaviour change.** An existing aggregate handler whose own return value carries a top-level `succeeded` or `failed` member in another form (for example counts, `{ succeeded: 2, failed: 1 }`, or only one of the two lists) was reported as full success and is now reported as "unreadable": the panel says the action finished but its result could not be read, prints no per-row count, and the grid re-reads its rows when the dialog closes. To keep the success report, return a value with neither member (a summary under another name), or return both lists in the `BulkActionResult` shape. A handler that returns nothing, or a value with neither member, keeps today's report.
18+
19+
The widening is additive: three new keys in every locale pack `@object-ui/i18n` publishes (`grid.bulk.resultNotConfirmed`, `grid.bulk.notConfirmedRecords`, `grid.bulk.aggregateUnreadable`). No metadata key, value or default changes.

‎content/docs/references/api/protocol.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ The published metadata item body, opaque by ruling (1C). Shape is the item's own
20152015
| **fieldOrder** | `string[]` | optional | Explicit field display order for this view — the ORDERING of the per-view field composition `columns` x `hiddenFields` x `fieldOrder`: it sorts what survives `columns` minus `hiddenFields` and never adds a field. A surviving column absent from `fieldOrder` sorts LAST, after every listed one, keeping its `columns`-relative order; a name listed here that did not survive orders nothing. |
20162016
| **rowActions** | `string[]` | optional | Actions available for individual row items |
20172017
| **bulkActions** | `string[]` | optional | Actions available when multiple rows are selected |
2018-
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Rich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a `patch` / 'delete') that no action expresses, or for an `operation: 'custom'` + `execution: 'aggregate'` entry that dispatches the action it NAMES once for the whole selection — the renderer injects `params._selectedIds: string[]` (read that on the server, not `recordId`) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). Aggregate results are all-or-nothing: a handler that cannot cover the whole selection must reject, and per-row retry is replaced by re-running the action. `batchSize` does not apply (the call is never chunked); set `maxRecords` on defs whose server work is expensive. For the PER-RECORD dispatch use `bulkActions: ['<name>']` instead — the bare-string form, promoted with the action's own label, params and `visible`; a 'custom' def without `execution: 'aggregate'` has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via `${ctx.selection.ids}` / `${ctx.selection.count}`. |
2018+
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Rich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a `patch` / 'delete') that no action expresses, or for an `operation: 'custom'` + `execution: 'aggregate'` entry that dispatches the action it NAMES once for the whole selection — the renderer injects `params._selectedIds: string[]` (read that on the server, not `recordId`) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). A rejection is one outcome for the whole selection; a run that moved some rows and refused others resolves with a `BulkActionResult` (`{ succeeded, failed }`), a non-empty `failed` being a legal success answer. Per-row retry is replaced by re-running the action. `batchSize` does not apply (the call is never chunked); set `maxRecords` on defs whose server work is expensive. For the PER-RECORD dispatch use `bulkActions: ['<name>']` instead — the bare-string form, promoted with the action's own label, params and `visible`; a 'custom' def without `execution: 'aggregate'` has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via `${ctx.selection.ids}` / `${ctx.selection.count}`. |
20192019
| **conditionalFormatting** | `{ condition: string \| object; style: Record<string, string> }[]` | optional | Conditional formatting rules for list rows |
20202020
| **inlineEdit** | `boolean` | optional | Allow inline editing of records directly in the list view |
20212021
| **exportOptions** | `Enum<'csv' \| 'xlsx' \| 'json'>[] \| { formats?: Enum<'csv' \| 'xlsx' \| 'json'>[]; maxRecords?: integer; includeHeaders?: boolean; fileNamePrefix?: string; … }` | optional | Export configuration for the list toolbar export menu: `{ formats?, maxRecords?, includeHeaders?, fileNamePrefix?, streaming? }`. A bare format array is the legacy spelling and lifts to `{ formats: [...] }` at parse. |
@@ -2095,7 +2095,7 @@ The published metadata item body, opaque by ruling (1C). Shape is the item's own
20952095
| **fieldOrder** | `string[]` | optional | Explicit field display order for this view — the ORDERING of the per-view field composition `columns` x `hiddenFields` x `fieldOrder`: it sorts what survives `columns` minus `hiddenFields` and never adds a field. A surviving column absent from `fieldOrder` sorts LAST, after every listed one, keeping its `columns`-relative order; a name listed here that did not survive orders nothing. |
20962096
| **rowActions** | `string[]` | optional | Actions available for individual row items |
20972097
| **bulkActions** | `string[]` | optional | Actions available when multiple rows are selected |
2098-
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Rich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a `patch` / 'delete') that no action expresses, or for an `operation: 'custom'` + `execution: 'aggregate'` entry that dispatches the action it NAMES once for the whole selection — the renderer injects `params._selectedIds: string[]` (read that on the server, not `recordId`) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). Aggregate results are all-or-nothing: a handler that cannot cover the whole selection must reject, and per-row retry is replaced by re-running the action. `batchSize` does not apply (the call is never chunked); set `maxRecords` on defs whose server work is expensive. For the PER-RECORD dispatch use `bulkActions: ['<name>']` instead — the bare-string form, promoted with the action's own label, params and `visible`; a 'custom' def without `execution: 'aggregate'` has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via `${ctx.selection.ids}` / `${ctx.selection.count}`. |
2098+
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Rich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a `patch` / 'delete') that no action expresses, or for an `operation: 'custom'` + `execution: 'aggregate'` entry that dispatches the action it NAMES once for the whole selection — the renderer injects `params._selectedIds: string[]` (read that on the server, not `recordId`) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). A rejection is one outcome for the whole selection; a run that moved some rows and refused others resolves with a `BulkActionResult` (`{ succeeded, failed }`), a non-empty `failed` being a legal success answer. Per-row retry is replaced by re-running the action. `batchSize` does not apply (the call is never chunked); set `maxRecords` on defs whose server work is expensive. For the PER-RECORD dispatch use `bulkActions: ['<name>']` instead — the bare-string form, promoted with the action's own label, params and `visible`; a 'custom' def without `execution: 'aggregate'` has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via `${ctx.selection.ids}` / `${ctx.selection.count}`. |
20992099
| **conditionalFormatting** | `{ condition: string \| object; style: Record<string, string> }[]` | optional | Conditional formatting rules for list rows |
21002100
| **inlineEdit** | `boolean` | optional | Allow inline editing of records directly in the list view |
21012101
| **exportOptions** | `Enum<'csv' \| 'xlsx' \| 'json'>[] \| { formats?: Enum<'csv' \| 'xlsx' \| 'json'>[]; maxRecords?: integer; includeHeaders?: boolean; fileNamePrefix?: string; … }` | optional | Export configuration for the list toolbar export menu: `{ formats?, maxRecords?, includeHeaders?, fileNamePrefix?, streaming? }`. A bare format array is the legacy spelling and lifts to `{ formats: [...] }` at parse. |

‎content/docs/references/data/object.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ const result = ApiMethod.parse(data);
417417
| **fieldOrder** | `string[]` | optional | Explicit field display order for this view — the ORDERING of the per-view field composition `columns` x `hiddenFields` x `fieldOrder`: it sorts what survives `columns` minus `hiddenFields` and never adds a field. A surviving column absent from `fieldOrder` sorts LAST, after every listed one, keeping its `columns`-relative order; a name listed here that did not survive orders nothing. |
418418
| **rowActions** | `string[]` | optional | Actions available for individual row items |
419419
| **bulkActions** | `string[]` | optional | Actions available when multiple rows are selected |
420-
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Rich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a `patch` / 'delete') that no action expresses, or for an `operation: 'custom'` + `execution: 'aggregate'` entry that dispatches the action it NAMES once for the whole selection — the renderer injects `params._selectedIds: string[]` (read that on the server, not `recordId`) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). Aggregate results are all-or-nothing: a handler that cannot cover the whole selection must reject, and per-row retry is replaced by re-running the action. `batchSize` does not apply (the call is never chunked); set `maxRecords` on defs whose server work is expensive. For the PER-RECORD dispatch use `bulkActions: ['<name>']` instead — the bare-string form, promoted with the action's own label, params and `visible`; a 'custom' def without `execution: 'aggregate'` has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via `${ctx.selection.ids}` / `${ctx.selection.count}`. |
420+
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Rich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a `patch` / 'delete') that no action expresses, or for an `operation: 'custom'` + `execution: 'aggregate'` entry that dispatches the action it NAMES once for the whole selection — the renderer injects `params._selectedIds: string[]` (read that on the server, not `recordId`) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). A rejection is one outcome for the whole selection; a run that moved some rows and refused others resolves with a `BulkActionResult` (`{ succeeded, failed }`), a non-empty `failed` being a legal success answer. Per-row retry is replaced by re-running the action. `batchSize` does not apply (the call is never chunked); set `maxRecords` on defs whose server work is expensive. For the PER-RECORD dispatch use `bulkActions: ['<name>']` instead — the bare-string form, promoted with the action's own label, params and `visible`; a 'custom' def without `execution: 'aggregate'` has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via `${ctx.selection.ids}` / `${ctx.selection.count}`. |
421421
| **conditionalFormatting** | `{ condition: string \| object; style: Record<string, string> }[]` | optional | Conditional formatting rules for list rows |
422422
| **inlineEdit** | `boolean` | optional | Allow inline editing of records directly in the list view |
423423
| **exportOptions** | `Enum<'csv' \| 'xlsx' \| 'json'>[] \| { formats?: Enum<'csv' \| 'xlsx' \| 'json'>[]; maxRecords?: integer; includeHeaders?: boolean; fileNamePrefix?: string; … }` | optional | Export configuration for the list toolbar export menu: `{ formats?, maxRecords?, includeHeaders?, fileNamePrefix?, streaming? }`. A bare format array is the legacy spelling and lifts to `{ formats: [...] }` at parse. |

‎content/docs/references/ui/bulk-action.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ const result = BulkActionDefSchema.parse(data);
179179

180180
## BulkActionResult
181181

182-
[PLANNED — not enforced] The per-row outcome an `execution: 'aggregate'` bulk action handler MAY resolve with: `{ succeeded: [ids], failed: [{ id, message }] }` as its whole resolve value, never attached to a rejection (a rejection stays one outcome for the selection). The console does not read it yet, so until its reader lands a handler that cannot cover the whole selection must still reject: a resolved aggregate call is counted as covering every selected row. Not the data plane's batch answer: here `succeeded` and `failed` are row lists, not counts. Once read: a value with neither member keeps the one-outcome report; a value with either member that does not parse is reported as unreadable, never as full success; members beyond the two lists carry no meaning. Ids must be dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, and a selected id in neither list is reported as not confirmed, never as succeeded.
182+
The per-row outcome an `execution: 'aggregate'` bulk action handler MAY resolve with: `{ succeeded: [ids], failed: [{ id, message }] }` as its whole resolve value, never attached to a rejection (a rejection stays one outcome for the selection). The console reads it on every aggregate dispatch. Not the data plane's batch answer: here `succeeded` and `failed` are row lists, not counts. A value with neither member keeps the one-outcome report; a value with either member that does not parse is reported as unreadable, never as full success; members beyond the two lists carry no meaning. Ids must be dispatched `params._selectedIds`: an id outside the selection is dropped, a duplicate counts once, an id in both lists counts as failed, an id in `failed` twice keeps its first message, and a selected id in neither list is reported as not confirmed, never as succeeded.
183183

184184
### Properties
185185

186186
| Property | Type | Required | Description |
187187
| :--- | :--- | :--- | :--- |
188-
| **succeeded** | `string[]` | ✅ | Ids of the selected rows the handler wrote. Each must be one of the dispatched `params._selectedIds`. The planned reader will drop an id outside the selection, count a duplicate once, and count an id that is also in `failed` as failed. |
189-
| **failed** | `({ id: string; message: string } & Record<string, any>)[]` | ✅ | One entry per selected row the handler did not write, each with its own reason (`message`, not `error`). The planned reader will drop an id outside `params._selectedIds` and count a duplicate once. |
188+
| **succeeded** | `string[]` | ✅ | Ids of the selected rows the handler wrote. Each must be one of the dispatched `params._selectedIds`. The reader drops an id outside the selection, counts a duplicate once, and counts an id that is also in `failed` as failed. |
189+
| **failed** | `({ id: string; message: string } & Record<string, any>)[]` | ✅ | One entry per selected row the handler did not write, each with its own reason (`message`, not `error`). The reader drops an id outside `params._selectedIds` and counts a duplicate once; an id listed twice keeps its first `message`. |
190190

191191
### Nested Shape: `BulkActionResult.failed[number]`
192192

0 commit comments

Comments
 (0)