Skip to content

feat: add retry buttons for recoverable error states - #321

Open
AlonsoFi wants to merge 1 commit into
HubDApp:mainfrom
AlonsoFi:feat/retry-buttons-recoverable-errors
Open

feat: add retry buttons for recoverable error states#321
AlonsoFi wants to merge 1 commit into
HubDApp:mainfrom
AlonsoFi:feat/retry-buttons-recoverable-errors

Conversation

@AlonsoFi

Copy link
Copy Markdown

Closes #266

Implements retry actions for account loading failures, verification status check failures, and transaction polling failures per issue.

  • wallet-states.ts: add "account-error" state with "Try Again" action
  • useWalletPageGate: expose retryAccountLoad from useStellarAccount; surface "account-error" when Stellar account fetch fails with a non-funding error (e.g. network timeout)
  • WalletStatePanel: add "account-error" icon (red AlertCircle), onRetry prop wired to the primary action button
  • VerificationStatus: add error state; on fetch failure show an error card with a "Try Again" button instead of silently falling back to NONE
  • projects/[id]/page: add verificationError state + retryVerification callback; show inline Retry button in the sidebar verification card; pass onRetry to WalletStatePanel in the reviews gate
  • All pages using WalletStatePanel (admin, profile, verify, reviews, edit, new) now forward onRetry={gate.retryAccountLoad}

Acceptance criteria covered:

  • Recoverable error states expose retry actions
  • Retry resets loading/error state before re-fetching
  • No duplicate submissions (retry reuses existing ref, not a new call)

Implements retry actions for account loading failures, verification
status check failures, and transaction polling failures per issue.

- wallet-states.ts: add "account-error" state with "Try Again" action
- useWalletPageGate: expose retryAccountLoad from useStellarAccount;
  surface "account-error" when Stellar account fetch fails with a
  non-funding error (e.g. network timeout)
- WalletStatePanel: add "account-error" icon (red AlertCircle),
  onRetry prop wired to the primary action button
- VerificationStatus: add error state; on fetch failure show an error
  card with a "Try Again" button instead of silently falling back to NONE
- projects/[id]/page: add verificationError state + retryVerification
  callback; show inline Retry button in the sidebar verification card;
  pass onRetry to WalletStatePanel in the reviews gate
- All pages using WalletStatePanel (admin, profile, verify, reviews,
  edit, new) now forward onRetry={gate.retryAccountLoad}

Acceptance criteria covered:
- Recoverable error states expose retry actions
- Retry resets loading/error state before re-fetching
- No duplicate submissions (retry reuses existing ref, not a new call)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@AlonsoFi 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.

Add retry controls for recoverable failures

1 participant