-
Notifications
You must be signed in to change notification settings - Fork 152
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
fix: disable back action by gesture after accepting terms and conditions #1356
fix: disable back action by gesture after accepting terms and conditions #1356
Conversation
Signed-off-by: fc-santos <[email protected]>
@fc-santos , can you elaborate a bit more on the problem. Is that on iOS, Android, both? is that on Bifold or is that on your own implementation of a wallet using bifold? It seems like getting stuck on a screen by going back seems the problem. |
Signed-off-by: fc-santos <[email protected]>
@cvarjao it's meant to fix this problem (occurs on both Android and iOS): cropped.mp4 |
Signed-off-by: fc-santos <[email protected]>
Signed-off-by: fc-santos <[email protected]>
Quality Gate passedIssues Measures |
I might be missing something, I don't think removing the ability to go back fix the problem, probably a workaround. It shouldn't get stuck as you are seeing. I think that is the problem that needs to be fixed |
@fc-santos adding to what Clecio said, I suspect it has to do with the checkbox no longer existing when you come back to the Terms screen. Not having it checked is probably preventing the user from continuing. Probably better to fix that underlying bug that just preventing back nav. Might be as simple as changing line 23 of
Edit: Or you could simply remove the checkbox. We don't use one in our injected version of the Terms screen. |
@bryce-mcmath I agree that we should do what you suggested, but at the same time do we want to enable the user to go back though? The user has already accepted the conditions, why are allowing it to be accepted again? |
@bryce-mcmath To answer your point about removing the checkbox, it's a legal requirement for us to have it. |
The Pan-Can design team had a discussion on this topic. We've concluded that allowing users to go back to the terms and conditions after already accepting it it is not necessary. So removing the back gesture is not a usability or UX concern. |
@fc-santos I think generally we should prefer native-style functionality where possible as it may frustrate users if they sometimes can back nav and sometimes can't. Also, increasing the amount of custom navigation mechanics might end up as tech debt. But for this specific case, I think it's fine if we make both changes - we fix the checkbox bug, and we also prevent the back nav. That's good with me 👍 |
@bryce-mcmath we have analyzed more the behaviour and our team agreed in the end on allowing the users to go back. I can add the check to display the checkbox so users are not stuck on the terms after moving back from the create pin screen. I’ll push the changes tomorrow. |
Sounds good! Thanks for keeping us in the loop! 🤝 |
@bryce-mcmath this PR can be closed and point at this new PR : #1367 |
Closing as per @fc-santos request. New one create #1367. |
Summary of Changes
This PR fixes a bug where after accepting the Terms & Conditions the user is able to go back from the PINCreate Screen and then is stuck on Terms & Conditions Screen. Only killing app gets the user back on the PINCreate screen.
Screenshots, videos, or gifs
N/A
Breaking change guide
N/A
Related Issues
N/A
Pull Request Checklist
Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.
Signed-off-by
line (we use the DCO GitHub app to enforce this)If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!
Pro Tip 🤓