Skip to content

feat: Toast notification system for bounty status changes (closes #825)#1041

Open
tarai-dl wants to merge 1 commit intoSolFoundry:mainfrom
tarai-dl:rn/bounty-825-toast-notifications
Open

feat: Toast notification system for bounty status changes (closes #825)#1041
tarai-dl wants to merge 1 commit intoSolFoundry:mainfrom
tarai-dl:rn/bounty-825-toast-notifications

Conversation

@tarai-dl
Copy link
Copy Markdown

Description

Implements a toast notification system for bounty status changes, errors, and success messages.

Features

  • Toast component with success, error, warning, info variants
  • Auto-dismiss after 5 seconds with manual close option
  • Slide-in animation from top-right (framer-motion)
  • Multiple toasts stack properly (max 5 visible)
  • Accessible (role="alert", aria-live="assertive")
  • React context + useToast hook for easy consumption

Implementation

  • ToastContext.tsx - Context provider with success(), error(), warning(), info() helpers
  • Toast.tsx - Container component with animated toast items using framer-motion
  • useToast.ts - Re-export of the hook for convenience
  • toast.test.tsx - 10 unit tests covering all acceptance criteria

Testing

All 10 tests pass:

  • Toast rendering and variants
  • Dismiss functionality (close button)
  • Auto-dismiss after 5 seconds
  • Multiple toast stacking
  • Accessibility (role="alert", aria-live)

Closes #825

Wallet: 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU

…Foundry#825)

Implements a toast notification system with:
- Toast component with success, error, warning, info variants
- Auto-dismiss after 5 seconds with manual close option
- Slide-in animation from top-right (framer-motion)
- Multiple toasts stack properly (max 5)
- Accessible (role="alert", aria-live="assertive")
- React context + useToast hook for easy consumption
- 10 passing unit tests

Closes SolFoundry#825

Wallet: 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T1: Toast Notification System

1 participant