Skip to content

Standardize Toast notification styling across all transaction states #115

Description

@Lakes41

Difficulty: Intermediate
Type: UI/UX, refactor

Background

Notifications for transaction success, failure, and pending states are managed by different developer implementations throughout the codebase, leading to visual inconsistencies.

Problem

Some success toasts contain links to the block explorer, while others just say "Done". Some failure toasts auto-dismiss, while others require manual closing. This degrades the polish of the user experience.

Expected outcome

A unified TransactionToast wrapper is created, standardizing the icon, colors, text layout, and explorer linking behavior for all blockchain interactions.

Suggested implementation

  1. Create a standardized configuration object/component for the application's Toast provider (e.g., react-hot-toast or sonner).
  2. Design uniform layouts for PENDING, SUCCESS, and ERROR states.
  3. Ensure every SUCCESS state automatically includes a correctly formatted link to the relevant block explorer using the transaction hash.

Acceptance criteria

  • All blockchain transaction notifications share identical padding, font sizes, and icon alignments.
  • Users can click a "View on Explorer" link directly from the success toast.
  • Error toasts strictly require manual dismissal (no auto-timeout) so users can read the error.

Likely affected files/directories

  • src/components/UI/ToastProvider.tsx
  • src/hooks/useTransaction.ts

Requirements

  • Explorer links must dynamically respect the currently connected network chain ID.

Metadata

Metadata

Assignees

Labels

GrantFox OSSRelated to GrantFox Open Source Software initiativesMaybe RewardedPotential for a reward based on contributionOfficial Campaign | FWC26Period after the official FIFA World Cup 2026 campaignUI/UXUser interface or user experience relatedintermediateGood for intermediate level contributorsrefactorCode refactoring or restructuring

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions