Skip to content

Add transaction status toast notifications#754

Open
shadrach68 wants to merge 1 commit into
dimka90:mainfrom
shadrach68:statusToast
Open

Add transaction status toast notifications#754
shadrach68 wants to merge 1 commit into
dimka90:mainfrom
shadrach68:statusToast

Conversation

@shadrach68

Copy link
Copy Markdown

Summary
This PR implements visual feedback for the entire Soroban transaction lifecycle. Previously, users had no indication of progress after submitting a transaction. Now, a persistent toast notification tracks the transaction from simulation through confirmation or failure.

Key Changes

  • Toast UI Improvements: Added a loading state to the Toast component featuring a spinner and disabled auto-dismiss for pending transactions.
  • Dynamic Updates: Enhanced ToastProvider to allow updating existing toasts by ID, enabling a seamless transition from "Pending" to "Success" or "Error".
  • useTransactionToast Hook: Created a reusable hook that maps transaction stages (simulating, signing, submitting, polling) to user-friendly notifications.
  • Full Integration: Updated all key transaction entry points:
    • Betting: BettingSection.tsx
    • Creation: CreatePoolForm.tsx and the market creation wizard.
    • Claiming: Batch and individual winnings claims via useClaimWinnings and useClaimAll.
    • Admin: Pool settlement, freezing, and dispute management.

Acceptance Criteria Met

  • "Transaction pending" toast shows immediately on submission.
  • Toast updates in real-time as the transaction moves through network stages.
  • Final status (confirmed/failed) is clearly displayed.
  • Failed transactions show human-readable error messages.

@shadrach68 shadrach68 requested a review from dimka90 as a code owner July 3, 2026 09:21
@drips-wave

drips-wave Bot commented Jul 3, 2026

Copy link
Copy Markdown

@shadrach68 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web: Add transaction status toast notifications

1 participant