Skip to content

feat: add toast notification system for wallet and vault events - #84

Merged
collinsezedike merged 4 commits into
mainfrom
feat/toast-notifications
Jun 1, 2026
Merged

collinsezedike merged 4 commits into
mainfrom
feat/toast-notifications

Conversation

@collinsezedike

Copy link
Copy Markdown
Collaborator

Type of change

  • New feature (non-breaking change which adds functionality)

Summary

Adds a lightweight toast notification system using a Zustand store (no new dependencies). Toasts auto-dismiss after 4 seconds and can be manually closed.

Events that now surface a toast:

  • Wallet connected → success
  • Wallet disconnected → info
  • Wallet connection error → error
  • Deposit success → success (shows amount)
  • Deposit failure → error (shows reason)
  • Withdraw success → success (shows shares)
  • Withdraw failure → error (shows reason)

Files added:

  • apps/web/src/store/toast.ts — Zustand store with push/dismiss and auto-dismiss timer
  • apps/web/src/components/ui/Toasts.tsx — fixed top-right stack with success/error/info styles

Files modified:

  • apps/web/src/App.tsx — mounts <Toasts />
  • apps/web/src/hooks/useWalletConnect.ts — pushes success/error on connect
  • apps/web/src/hooks/useVaultActions.ts — pushes success/error on deposit and withdraw
  • apps/web/src/components/onboarding/WalletConnect.tsx — pushes info on disconnect

Protocol context

N/A — frontend only.

Testing

  • Typecheck passes (pnpm typecheck)
  • Manual: connect wallet → success toast appears; trigger an error → error toast appears

@collinsezedike
collinsezedike force-pushed the feat/toast-notifications branch from d2da8e2 to f872f7e Compare June 1, 2026 14:09
@vercel

vercel Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meridian Ready Ready Preview, Comment Jun 1, 2026 2:30pm

@collinsezedike
collinsezedike merged commit 76784fc into main Jun 1, 2026
4 checks passed
@collinsezedike
collinsezedike deleted the feat/toast-notifications branch June 1, 2026 14:32

This branch was successfully deployed

1 active deployment
Preview — 2df18f43 Deployed Jun 1, 2026 by vercel[bot]
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.

1 participant