Skip to content

feat: add toast notification system #16

@EmeditWeb

Description

@EmeditWeb

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

  • Success toast shows with green styling
  • Error toast shows with red styling
  • Auto-dismisses after 4 seconds
  • Manual dismiss works
  • Multiple toasts stack correctly

Mandatory Checks Before PR

  • npm run build passes
  • No any types
  • PR references this issue

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions