Skip to content

feat(#41): add toast notification system for transaction status#198

Open
JosephOnuh wants to merge 1 commit into
PrincessnJoy:mainfrom
JosephOnuh:feat/41-toast-notifications
Open

feat(#41): add toast notification system for transaction status#198
JosephOnuh wants to merge 1 commit into
PrincessnJoy:mainfrom
JosephOnuh:feat/41-toast-notifications

Conversation

@JosephOnuh
Copy link
Copy Markdown

Closes #41

Changes

  • Add ToastContext.tsx with ToastProvider, useToast hook, and toast UI
    • Three types: pending (blue), success (green), error (red)
    • Auto-dismiss after 5 s for success/error; pending stays until explicitly dismissed
    • Includes explorer link for transaction hashes (View tx ↗)
    • Accessible: role=region, aria-live=polite, role=alert per toast
  • Wrap app in <ToastProvider> in main.tsx
  • Add connect() wallet function in App.tsx demonstrating toast usage:
    • Shows "Connecting wallet..." pending toast
    • Resolves to success or error toast on completion
  • Add explorerTxUrl / explorerAccountUrl helpers to config.ts

Testing

  • Click Connect Wallet → pending toast appears
  • On success/failure → toast updates with correct type and message
  • Transaction toasts include a link to the Stellar explorer

…status

- Add ToastContext with useToast hook and ToastProvider
- Show pending/success/error toasts with icons and auto-dismiss
- Include explorer link for transaction hashes in toast
- Wrap app in ToastProvider in main.tsx
- Add connect() wallet function in App.tsx using toast notifications
- Add explorerTxUrl/explorerAccountUrl helpers to config.ts
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@JosephOnuh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

No transaction status tracking or toast notifications

1 participant