refactor: replace speed-up/cancel retry modal with error toasts#27857
refactor: replace speed-up/cancel retry modal with error toasts#27857vinistevam wants to merge 9 commits intomainfrom
Conversation
…nsaction update errors - Removed the RetryModal component from UnifiedTransactionsView. - Integrated toast notifications to handle transaction update errors using ToastContext. - Updated useUnifiedTxActions to show toast messages instead of managing retry state. - Added utility functions to resolve error messages and create toast options for transaction updates. - Updated tests to reflect changes in error handling and toast notifications. - Modified localization files to support new toast messages for transaction updates.
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
...nts/Views/confirmations/components/modals/cancel-speedup-modal/cancel-speedup-modal.test.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/UnifiedTransactionsView/useUnifiedTxActions.test.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 65106db. Configure here.
...mponents/Views/confirmations/components/modals/cancel-speedup-modal/cancel-speedup-modal.tsx
Outdated
Show resolved
Hide resolved
app/components/Views/UnifiedTransactionsView/useUnifiedTxActions.test.ts
Outdated
Show resolved
Hide resolved
PatrykLucka
left a comment
There was a problem hiding this comment.
LGTM, just left one non-blocking comment.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeConfirmations: The cancel and speed-up transaction flows are directly affected. The error handling UX has changed from a modal to a toast, which needs validation in the confirmation/transaction management flows. SmokeWalletPlatform: The transaction history view ( No performance impact expected - this is a UX change replacing a modal with a toast notification. No performance-sensitive code paths are affected. Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
Speed up and cancel failures no longer open a blocking Retry modal. Users see a toast with a clear title and, when available, a short error description—including a friendlier message when the failure is due to “nonce too low” (already confirmed).
Changes
RetryModaland related state (retryIsOpen,errorMsg,toggleRetry,retry) from the legacy Transactions screen and UnifiedTransactionsView.TransactionsusesToastService.showToastwith shared options fromgetTransactionUpdateErrorToastOptions.ToastContextinuseUnifiedTxActionsto show the same toast shape.app/util/confirmation/transactions.ts(variant, icon, colors, transparent background, copy) so both entry points stay in sync.resolveTransactionUpdateErrorMessageto map raw errors to user-facing strings where we special-case known cases.Changelog
CHANGELOG entry: Redesigned speed-up/cancel retry modal with error toasts
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1076
Manual testing steps
Screenshots/Recordings
toast.failed.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UX refactor that changes how speed-up/cancel failures are surfaced (toast instead of a blocking modal) without altering transaction update logic; main risk is missing toast context/service wiring in some views.
Overview
Speed-up/cancel failures no longer open a blocking Retry modal; they now show an error toast in both the legacy
Transactionslist (viaToastService) and the unified flow (viaToastContext).Adds shared helpers
resolveTransactionUpdateErrorMessageandgetTransactionUpdateErrorToastOptionsinutil/confirmation/transactions.ts, including a friendlier message for “nonce too low” (already confirmed), and updates tests/mocks accordingly. Locale strings are migrated fromtransaction_update_retry_modaltotransaction_update_toastacross supported languages.Reviewed by Cursor Bugbot for commit d49b050. Bugbot is set up for automated code reviews on this repo. Configure here.