feat(toast): add toast notification system (#825) - #1318
Closed
wengkit218-pixel wants to merge 1 commit into
Closed
Conversation
- ToastContext with useToast hook for app-wide notifications - 4 variants: success, error, warning, info - Auto-dismiss after 5 seconds with manual close - Slide-in animation from top-right via framer-motion - Stacks multiple toasts properly - Accessible (role=alert) - Integrated ToastProvider in main.tsx Closes SolFoundry#825
Author
|
💰 Wallet: 47HxQss7ctt6fFymSo8gevkYUWJPxieYFDG1eWQK7AjU |
Author
|
Closing - FNDRY tokens have no USD cash value. Waited 27+ days with 0 reviews. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a complete toast notification system for the SolFoundry frontend.
Changes
New:
ToastContext.tsxToastProvider— Context provider wrapping the app, renders a fixed toast container (top-right)useToast()— Hook returningtoast(message, variant)for triggering notifications anywheresuccess(emerald),error(red),warning(amber/tier-t2),info(blue)AnimatePresence+layout)role="alert"for screen readersbg-emerald,border-border,text-text-muted, etc.)Modified:
main.tsxToastProviderinsideAuthProvider(so auth-dependent components can use it)New:
__tests__/ToastContext.test.tsxIntegration Example
Acceptance Criteria Met
Closes #825