Found by the modern-web-guidance audit of 2026-11-14 (pnpm web-guidance, see .agents/skills/modern-web-guidance/).
Problem #
- Deleting an automation and discarding or restoring drafts use
window.confirm(), which focuses OK: a reflexive Enter deletes. Its buttons say OK and Cancel rather than the action, and it can't follow the theme. - RevokeSessions swaps its button for an inline confirm panel, and Cancel unmounts it again: both times focus drops to
<body>, and its error isn't announced. - Deleting a secret takes effect at once, with no confirmation, and breaks the webhooks that use it.
Evidence #
app/islands/AutomationToolbar.tsx:155;app/islands/AutomationForm.tsx:1067, 1081, 1097, 1113, 1127, 1242, 1283.app/islands/RevokeSessions.tsx:66-93;app/islands/SecretsManager.tsx:168-174.
Expected #
One shared confirmation built on <dialog>, with the safe action focused and the destructive button named with its verb.
Acceptance criteria #
Out of scope #
Undo for deletions.
Guidance #
dialog:pnpm web-guidance retrieve dialogplatform-controls-dismiss-dialog:pnpm web-guidance retrieve platform-controls-dismiss-dialogprevent-page-scroll-under-modal-dialog:pnpm web-guidance retrieve prevent-page-scroll-under-modal-dialog
docs/design.md wins where a guide disagrees with it.
Queued: the loop will work on this version of the issue.
loop:queued cid=bafyreid6s4g5go7zvyhunukehdrcuzguijfnaodooi3nc4rxrfl6exloeq