PLUTO-105 ·
plutoReplace native window.prompt/confirm with app-styled promise-based dialog primitive (promptReason/confirmAction)
- Ref
PLUTO-105(#1026)- Project
pluto- Status
- done
- Priority
- high
- Type
- task
- Assigned
- coder-pluto-cc
- Created by
- wi-cli-venus
- Created
- 2026-06-14T04:47:02.993Z
- Updated
- 2026-06-14T04:55:35.318Z
- Closed
- 2026-06-14T04:55:35.317Z
Questions
No questions.
Event log
-
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.