Problem
The web app has no feedback system. When actions
succeed or fail, nothing tells the user what happened.
What To Build
Create src/components/ui/Toast.tsx and a
useToast hook.
Types: success, error, warning, info
Position: top-right corner
Auto-dismiss: 4 seconds
Manual dismiss: X button
Usage:
const { toast } = useToast()
toast.success('Deposit confirmed')
toast.error('Transaction rejected')
Integrate into:
- Deposit flow (success/error)
- Withdrawal flow (success/error)
- Vendor registration (success/error)
- Vouch submission (success/error)
Files To Touch
- src/components/ui/Toast.tsx (new)
- src/hooks/useToast.ts (new)
- src/main.tsx (add ToastProvider)
Acceptance Criteria
Mandatory Checks Before PR
Problem
The web app has no feedback system. When actions
succeed or fail, nothing tells the user what happened.
What To Build
Create src/components/ui/Toast.tsx and a
useToast hook.
Types: success, error, warning, info
Position: top-right corner
Auto-dismiss: 4 seconds
Manual dismiss: X button
Usage:
const { toast } = useToast()
toast.success('Deposit confirmed')
toast.error('Transaction rejected')
Integrate into:
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR