Four approaches to replacing window.confirm(),
window.prompt(), and window.alert() in
plugins/kanban/dashboard/dist/index.js. Click a page-level
trigger to fire the same flow in every variant simultaneously, or use the
per-variant buttons to fire flows unique to that variant.
Direct 1:1 mapping to the host's ConfirmDialog. Single-line input. Minimal chrome.
Textarea + contextual SVG icon + inline validation + pluralized copy. What the design brief recommends.
All of B's improvements + GPT-OSS fixes: auto-focus, dual-validation, cancellable-spinner, per-task summaries in bulk.
Skip the modal entirely for non-destructive moves. Optimistic UI + 5s undo in a bottom-right toast.
done/blocked/archive.
| Capability | A | B | B-refined | C |
|---|---|---|---|---|
| Centered modal (Radix) | ✓ | ✓ | ✓ | ✗ |
| Multi-line summary | ✗ | ✓ | ✓ | ✗ |
| Single contextual icon | ✗ | 4 | ✓ | ✗ |
| Inline validation (no second dialog) | ✗ | ~ | ✓ | ✗ |
| Disabled button + persistent error | ✗ | ~ | ✓ | ✗ |
| Cancellable spinner during PATCH | ✗ | ✗ | ✓ | ✓ |
| Bulk-many expandable list | ✗ | ✗ | ✓ | ✗ |
| Auto-focus textarea + mobile scroll | ✗ | ~ | ✓ | ✗ |
| Toast on success | ✗ | ✗ | ✗ | ✓ |
| Toast on error | ✗ | ✗ | opt. | ✓ |
| Survives the required-summary flow | ✗ | ✓ | ✓ | ✗ |