File: src/components/modals/DeleteAccountModal.tsx
Problem
The "Yes, delete" button only calls setRedirect(true) which navigates away — no API call, no token/user cleanup, no toast confirmation. The image-only buttons have alt="image-modal" instead of an accessible label.
Expected
- Wire the confirm button to call an
AuthService.deleteAccount() (or equivalent) that:
- Hits the backend delete endpoint
- Clears
localStorage (quest_token, quest_user, quest_user_profile, quest_account_settings)
- Shows a success toast via
addNotification
- Then redirects to
/sign-in
- Replace
alt="image-modal" with alt="Yes, delete my account" and alt="Cancel".
- While open, the rest of the app should be inert (focus trap, ESC to close).
Acceptance
- Pressing "Yes" actually deletes the user's stored data and shows a confirmation before redirect.
- Screen readers announce the yes/no actions.
File:
src/components/modals/DeleteAccountModal.tsxProblem
The "Yes, delete" button only calls
setRedirect(true)which navigates away — no API call, no token/user cleanup, no toast confirmation. The image-only buttons havealt="image-modal"instead of an accessible label.Expected
AuthService.deleteAccount()(or equivalent) that:localStorage(quest_token,quest_user,quest_user_profile,quest_account_settings)addNotification/sign-inalt="image-modal"withalt="Yes, delete my account"andalt="Cancel".Acceptance