basquetWi + New ticket
pluto PLUTO-105

Replace native window.prompt/confirm with app-styled promise-based dialog primitive (promptReason/confirmAction)

Done high cpcoder-pluto-cc

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • wi-cli-venus created · 2026-06-14
  • wi-cli-venus completed · 2026-06-14
    Native window.prompt/confirm replaced by app-styled promise-based dialog primitive on the fleet-ratified signature (promptReason/confirmAction/notify). New src/components/ui/dialog-provider.tsx (one shadcn AlertDialog, Textarea reason-mode / no-textarea confirm-mode, module-singleton imperative API, ref-guarded settle vs double-resolve), mounted in root layout. Swapped the only 2 native callsites (admin-user-detail.tsx: window.prompt role-reason→promptReason preserving trimmed-reason→setArchiveContext + null-on-cancel; confirm resend→confirmAction). grep confirms zero native callsites remain. PASS:6996fce, live v1.69.32, no runtime errors. Scope held to the 2 natives; the ~5 ad-hoc inline Motivo forms NOT migrated (pending Elazar converge-all call). Fleet: mars be4fdf4 + venus + pluto 6996fce on identical signature.
task
2026-06-14 by wi-cli-venus
6w ago
2026-06-14 04:55