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

[IMPROVEMENT] Url redirection #4649

Merged
merged 32 commits into from
Sep 15, 2022
Merged

[IMPROVEMENT] Url redirection #4649

merged 32 commits into from
Sep 15, 2022

Conversation

gantunesr
Copy link
Member

@gantunesr gantunesr commented Jul 11, 2022

Description

Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions,
1. What is the reason for the change?
2. What is the improvement/solution?

The description of this PR can be found in,

Screenshots/Recordings

If applicable, add screenshots and/or recordings to visualize the before and after of your change

Use case: General QR code reading
https://user-images.githubusercontent.com/17601467/178322039-92f6b571-97e2-4c9a-b6cb-29e48250515d.MP4

Use Case: Reading address
https://user-images.githubusercontent.com/17601467/178322082-50d46c76-23e9-4e4f-9953-9560f59a2741.MP4

Issue

Detailed in the section above.

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@gantunesr gantunesr requested a review from a team as a code owner July 11, 2022 17:21
@gantunesr gantunesr added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jul 11, 2022
@gantunesr gantunesr added the release-5.5.0 PRs for v5.5.0 release label Jul 12, 2022
Copy link
Contributor

@owencraston owencraston left a comment

Choose a reason for hiding this comment

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

I tested the change and everything seems to be working as expected. NICE ✅. I just left a few comments on the code.

app/components/Views/QRScanner/index.tsx Outdated Show resolved Hide resolved
app/components/Views/QRScanner/index.tsx Outdated Show resolved Hide resolved
app/components/Views/SendFlow/SendTo/index.js Outdated Show resolved Hide resolved
app/components/Views/QRScanner/index.tsx Outdated Show resolved Hide resolved
app/components/Views/QRScanner/index.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@owencraston owencraston left a comment

Choose a reason for hiding this comment

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

🚢 The code looks great. Thanks for implementing those suggestions I made. In my opinion this code is really clear and robust 💪

@gantunesr gantunesr removed the release-5.5.0 PRs for v5.5.0 release label Jul 27, 2022
@gantunesr gantunesr added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jul 27, 2022
@chrisleewilcox chrisleewilcox added QA in Progress QA has started on the feature. and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Aug 22, 2022
Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

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

@gantunesr Testing is done. I left a comment with my test cases here. I am going to swing this back your way. Also, just a heads up in the below bug report when I say "in-app camera" I mean tapping on the camera icon in the top nav on the wallet view.

Issue 1:
This issue has two parts:

A).
When I use the in-app camera to scan an address QR code I am prompted with the modal letting me know that I am about to visit an external link

furthermore, IF I am on a custom network and I were to scan a mainnet address QR code, I am taken to the send flow with a brief error message ” Recipient address is invalid” before the address resolves itself. View at the 28-second mark
B)
When I use the send flow QR code to scan a receive QR code I am prompted with the unrecognized QR modal

to reproduce:
have a production build of the app on device B
while on the wallet view tap on the receive button to open your address QR code
on device A, scan the QR code on device B

If I were to scan an address QR code in production I am able to proceed to the send flow without any issues. If I were to scan the keystone receive QR code I am able to proceed to the send flow with no issues

Issue 2
If I were to scan an invalid QR code using the in-app camera I am NOT prompted with the invalid QR modal

But if I were to scan an invalid QR code by using the camera in the send flow, I am prompted with the correct error message

To reproduce:
Using the in app camera scan: https://www.screencast.com/t/nGFsbbVE

Issue 3
Potential design issue: The Url redirect modal differs from that of the designs. See here

@cortisiko cortisiko added QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed and removed QA in Progress QA has started on the feature. labels Sep 7, 2022
@gantunesr
Copy link
Member Author

@cortisiko

  • Issue 1-A: Fixed in the last commit (c13b578)
  • Issue 1-B: Fixed in the last commit (c13b578)
  • Issue 2: I think we need to consult @holantonela to know what should is the proper behaviour here. From what I understood, the warning modal only shows up in screens that the input should be an address.
  • Issue 3: The component is not developed yet. It will be included in the next iteration.

@gantunesr gantunesr added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed labels Sep 13, 2022
@holantonela
Copy link

holantonela commented Sep 14, 2022

UPDATE

Discussed with Guto offline. We will leave this as it is right now and I opened this ticket for handling during the next iteration #4984

--

Issue 2: I think we need to consult @holantonela to know what should is the proper behaviour here. From what I understood, the warning modal only shows up in screens that the input should be an address.

Good point. We limit the scanning surface data in each camera view BUT i agree that if the QR code is invalid as malformed or unreadable, we should warn users consistently.

Is it doable @gantunesr?

@cortisiko cortisiko added QA Passed A successful QA run through has been done and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Sep 15, 2022
Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

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

@gantunesr This PR is QA passed 🌮 🌮 🌮

Test cases for this PR are covered here & here. I also confirmed that scanning keystone QR codes (keystone account receive QR code && transaction QR codes) are not broken

@gantunesr gantunesr merged commit b345f7e into main Sep 15, 2022
@gantunesr gantunesr deleted the fix/url-redirection branch September 15, 2022 22:25
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-5.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants