Skip to content
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

now all Authenticators handle cancel correctly #676

Merged
merged 6 commits into from
Nov 20, 2023

Conversation

Viterbo
Copy link
Collaborator

@Viterbo Viterbo commented Nov 16, 2023

Fixes #573

Description

When the user cancels any transaction that generates an error that was handled with a error notification but now is a neutral notification. The responsible for verifying whether it's a cancellation or a different error is the Authenticator being used by the user. Therefore, the previous solution was only partially correct because it was not properly implemented across all Authenticators.

Test scenarios

Login using Telos Wallet and start and cancel most of the possible transactions you can do and see if all of them show the correct cancel message. See video

Grabacion.de.pantalla.desde.16-11-23.18.07.19.webm

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have cleaned up the code in the areas my change touches
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have removed any unnecessary console messages
  • I have included all english text to the translation file and/or created a new issue with the required translations for the currently supported languages
  • I have tested for mobile functionality and responsiveness
  • I have added appropriate test coverage

@Viterbo Viterbo linked an issue Nov 16, 2023 that may be closed by this pull request
@Viterbo Viterbo self-assigned this Nov 16, 2023
Copy link

netlify bot commented Nov 16, 2023

Deploy Preview for wallet-develop-mainnet ready!

Name Link
🔨 Latest commit a54db6f
🔍 Latest deploy log https://app.netlify.com/sites/wallet-develop-mainnet/deploys/655b8fbb1a429f0008ebd73c
😎 Deploy Preview https://deploy-preview-676--wallet-develop-mainnet.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 16, 2023

Deploy Preview for wallet-staging ready!

Name Link
🔨 Latest commit a54db6f
🔍 Latest deploy log https://app.netlify.com/sites/wallet-staging/deploys/655b8fbbd04512000824c78a
😎 Deploy Preview https://deploy-preview-676--wallet-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Viterbo Viterbo marked this pull request as ready for review November 16, 2023 21:51
@donnyquixotic donnyquixotic mentioned this pull request Nov 17, 2023
Copy link
Contributor

@donnyquixotic donnyquixotic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Viterbo

on OreId, If I cancel using the red 'x' on sign prompt I receive the correct error notification, if I click the blue text 'cancel' button, I receive the 'OOOPS' 'unknown error' and details are empty '{"error": {} }'. If possible (?), we may want to remove one of the redundant cancel options. If not, at least populating the error details for the second case.

Screenshot_20231117_102535_Gallery.jpg

on WalletConnect, canceling the transaction on 'send' in the MetaMask prompt results in the same 'OOOPs' but the details do indicate 'user rejected'.

Screenshot_20231117_102552_Gallery.jpg

@donnyquixotic donnyquixotic merged commit 449e178 into develop Nov 20, 2023
9 checks passed
@donnyquixotic donnyquixotic deleted the 573-change-cancel-icon-notification-type-2 branch November 20, 2023 17:02
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.

Change cancel icon notification type
2 participants