Replace browser confirm() with styled confirmation modal #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: Inline
window.confirm()is used for delete confirmations across all list pages. These are unstyled browser dialogs that break the polished UI.Files affected:
frontend/src/pages/VipList.tsx(line 216)frontend/src/pages/DriverList.tsx(line 215)frontend/src/pages/EventList.tsx(line 112)frontend/src/pages/UserList.tsx(lines 97, 103, 110)Suggested fix:
<ConfirmModal>component (or use Shadcn AlertDialog)useConfirm()hook that returns a promise-based confirm functionif (confirm(...))calls with the styled modalEffort: Small
Created with dark-themed styling. Replaced all in VipList, DriverList, EventList, and UserList.