-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(IT Wallet): [SIW-1639] Show error banner when wallet instance status check fails #6568
Conversation
Jira Pull Request LinkThis Pull Request refers to the following Jira issue SIW-1639 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6568 +/- ##
==========================================
- Coverage 49.28% 49.28% -0.01%
==========================================
Files 1558 1559 +1
Lines 32156 32179 +23
Branches 7325 7332 +7
==========================================
+ Hits 15849 15860 +11
- Misses 16258 16269 +11
- Partials 49 50 +1
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…tatus check fails (#6568) ## Short description This PR handles unexpected failures during the request to fetch the Wallet Instance status. When it is not possible to determine the status, the Wallet will not be available. ## List of changes proposed in this pull request - Created `ItwWalletNotAvailableBanner` component - Turned `itWallet.walletInstance.status` into a pot for better async handling (+ store migration) - Hide `ItwWalletReadyBanner` and `ItwWalletCardsContainer` when the Wallet Instance status call failed ## How to test - Get a wallet instance, then fake an error in `api/v1/wallet/wallet-instances/<wallet_instance_id>/status`: you should see the following screen Regression tests: - Get a wallet instance and restart the app: everything should work as before - Get a wallet instance, then revoke it: everything should work as before (with an alert only shown once) <img src="https://github.com/user-attachments/assets/cf8d36d0-0fad-4e5e-a4a8-80b75ce3c72b" width="240" />
Short description
This PR handles unexpected failures during the request to fetch the Wallet Instance status. When it is not possible to determine the status, the Wallet will not be available.
List of changes proposed in this pull request
ItwWalletNotAvailableBanner
componentitWallet.walletInstance.status
into a pot for better async handling (+ store migration)ItwWalletReadyBanner
andItwWalletCardsContainer
when the Wallet Instance status call failedHow to test
api/v1/wallet/wallet-instances/<wallet_instance_id>/status
: you should see the following screenRegression tests: