Files
romm/frontend
zurdiandClaude Opus 4.7 1ee15fb2d1 feat(frontend-v2): ConfirmDialog shared composite + useConfirm composable
Generic confirmation dialog with three friction levels (low / medium
embedded in feature dialogs / high via requireTyped). Mounted once
in GlobalDialogs alongside the other emitter-driven dialogs, opened
via the useConfirm() composable which returns Promise<boolean> so
call sites read as:

  const ok = await confirm({ title, body, requireTyped: "DELETE" });
  if (!ok) return;

Type-to-confirm is the constitution-mandated friction level for
filesystem-affecting actions; tone="danger" tints the confirm
button red; default focus lands on Cancel so a stray Enter doesn't
destroy work.

Adds two events to the canonical Events map (additive; v1 keeps
working): showConfirm carries the payload, confirmResolved routes
the user's choice back to the awaiting promise via id matching.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 14:48:44 +00:00
..
2026-04-05 17:57:48 -04:00
2026-03-31 08:19:06 -04:00
2026-02-16 22:11:47 -05:00
2025-09-09 20:19:30 -04:00
2024-05-21 10:18:13 -04:00