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 }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit d2ce342
Browse filesBrowse the repository at this point in the historyBrowse files
feat(types,core,plugin-grid): retire the structured confirm arm — one confirm spelling (#4314) (#5209)
Maintainer ruling 2026-08-17 (ADR-0049 enforce-or-remove, remove arm):
the structured `confirm` object had zero producers, no translation-bundle
key, and its `message` OUTRANKED `confirmText` — the only spelling the
bundle knows — so a dialog authored that way silently lost localization,
while the `@deprecated` note in crud.ts steered authors INTO it.
- types: `ActionSchema.confirm` is a `?: never` tombstone (repo convention,
see complex.ts DashboardWidgetSchema); the Zod twin refuses any authored
value instead of silently stripping it; the backwards `@deprecated` note
on `confirmText` is gone.
- core: ActionRunner reads only `confirmText`; `ActionDef.confirm` carries
the same tombstone. `ConfirmationHandler` signature untouched — the
runner now calls it without the options argument (fed only by this arm).
- plugin-grid: resolveBulkActions drops the `confirm.message` fallback —
spec's action surface carries only `confirmText`, so the branch read a
key `objectDef.actions` can never deliver.
- docs: enhanced-actions.mdx and schema-reference.md now teach `confirmText`
(they were 4 of the surfaces steering authors into the retired spelling).
Reopen condition (recorded on #4314): real demand for structured confirm
dialogs returns the arm WITH its bundle keys designed in.
Claude-Session: https://claude.ai/code/session_01RV6yuVCxymHYE16PL9vQkE
Co-authored-by: Claude <noreply@anthropic.com>
|`confirm`|`object`| Confirmation dialog with `title`, `message`, `confirmText`, `cancelText`.|
654
+
|`confirmText`|`string`| Confirmation message shown before executing — the one confirm spelling, addressed by the translation bundle. (A structured `confirm` object was retired in objectui#4314.)|
660
655
|`dialog`|`object`| Modal dialog with `title`, `content`, `size`, `actions`. |
661
656
|`chain`|`ActionSchema[]`| Actions to execute after this action completes. |
662
657
|`chainMode`|`"sequential" \| "parallel"`| How chained actions execute. |
0 commit comments