Skip to content

feat(fe): loading/error/success states for contract calls (FE-005)#197

Merged
devEunicee merged 2 commits into
devEunicee:mainfrom
Sammy-Samy:fe/loading-error-states
Jun 2, 2026
Merged

feat(fe): loading/error/success states for contract calls (FE-005)#197
devEunicee merged 2 commits into
devEunicee:mainfrom
Sammy-Samy:fe/loading-error-states

Conversation

@Sammy-Samy
Copy link
Copy Markdown
Contributor

Closes #93

Changes

  • useContractCall hook: wraps any async contract call with idle | loading | success | error state
  • contractErrors.ts: maps all BE-006 error codes to human-readable strings
  • ContractCallStatus.tsx: Spinner, ErrorMessage, SuccessBanner reusable components
  • SuccessBanner links transaction hash to Stellar Explorer

Acceptance Criteria

  • All contract-calling components show a loading spinner during submission
  • Error messages map to human-readable strings (BE-006)
  • Success state shows transaction hash with Stellar Explorer link

…icee#93)

- useContractCall hook wraps async calls with idle/loading/success/error states
- contractErrors.ts maps all BE-006 error codes to human-readable strings
- Spinner, ErrorMessage, SuccessBanner reusable components
- SuccessBanner links tx hash to Stellar Explorer
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Sammy-Samy 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

@devEunicee devEunicee merged commit 7d51dcb into devEunicee:main Jun 2, 2026
0 of 4 checks passed
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.

FE-005 · No loading / error states in UI components

2 participants