Skip to content

Implement Global Transaction Toast Notifications #5

Description

@Alhaji-naira

Description:
Submitting a transaction on the Stellar network takes a few seconds. To prevent users from clicking buttons multiple times or thinking the app is frozen, we need global toast notifications to provide real-time feedback on transaction lifecycles.

Acceptance Criteria:

  • Integrate a toast notification library (e.g., react-hot-toast or sonner).
  • When a user submits a swap or liquidity transaction via Freighter, immediately display a "Transaction Pending..." toast with a loading spinner.
  • Listen for the transaction response from the Soroban contract.
  • Update the toast to a green "Transaction Successful" (with a link to Stellar Expert for the transaction hash) or a red "Transaction Failed" message based on the on-chain result.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions