feat(frontend): error boundaries, crash reporting, and Soroban contract hooks#283
Closed
Smartdevs17 wants to merge 2 commits into
Closed
feat(frontend): error boundaries, crash reporting, and Soroban contract hooks#283Smartdevs17 wants to merge 2 commits into
Smartdevs17 wants to merge 2 commits into
Conversation
- Add GlobalErrorBoundary with reset functionality for full app recovery - Add ComponentErrorBoundary for component-level error isolation - Add PageErrorFallback with full page layout for major errors - Add useErrorHandler hook for programmatic error handling - Add i18n translations for new error states (en/es) - Integrate with Sentry for production crash reporting Closes Gildado#245
Error Boundaries & Crash Reporting (Gildado#245): - Add GlobalErrorBoundary with reset functionality for full app recovery - Add ComponentErrorBoundary for component-level error isolation - Add PageErrorFallback with full page layout for major errors - Add useErrorHandler hook for programmatic error handling - Add i18n translations for new error states (en/es) - Integrate with Sentry for production crash reporting Soroban Contract Invocation Hook (Gildado#246): - useSorobanContract(contractId) returns invoke, loading, error, result state - Hook integrates simulateTransaction before every live submission - Wallet signing delegated to useWalletSigning - On-chain result decoded and returned as typed data - Error states surfaced via useNotification toast system - Add typed contract hooks: useBulkPaymentContract, useVestingEscrowContract, useRevenueSplitContract Closes Gildado#245 Closes Gildado#246
|
@Smartdevs17 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! 🚀 |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidated implementation for issues #70 (Error Boundaries) and #71 (Soroban Contract Hook).
Error Boundaries & Crash Reporting (#245)
Soroban Contract Invocation Hook (#246)
invoke,loading,error, andresultstatesimulateTransactionbefore every live submissionuseWalletSigninguseNotificationtoast systemuseBulkPaymentContract(contractId): For bulk_payment contractuseVestingEscrowContract(contractId): For vesting_escrow contractuseRevenueSplitContract(contractId): For revenue_split contractFiles Added/Modified
frontend/src/components/GlobalErrorBoundary.tsxfrontend/src/components/ComponentErrorBoundary.tsxfrontend/src/components/PageErrorFallback.tsxfrontend/src/hooks/useErrorHandler.tsfrontend/src/hooks/usePayrollContracts.tsfrontend/src/main.tsxfrontend/src/locales/en/translation.jsonfrontend/src/locales/es/translation.jsonAcceptance Criteria
Closes #245
Closes #246