-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[PAID] [$500] Web - Sign in modal - Browser back button takes to previous modal while modal back button closes it #33417
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0135197050c7e9cb4f |
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing back on sign in modal close the whole modal. What is the root cause of that problem?We call dismissModal when pressing the back button instead of goBack App/src/pages/signin/SignInModal.js Line 32 in b966bd4
What changes do you think we should make in order to solve the problem?Call goBack when pressing the back button. or just remove onBackButtonPress because the default value already calls goBack
More information: The issue happens because on the previous commit, they redirect the user to the sign in modal on every nav state change. So, pressing back will loop the user back to the sign in modal. But it's not reproducible anymore after they move the logic to |
upwork id : https://www.upwork.com/freelancers/~01cfa49ce124da3919?s=1110580755107926016 To solve this issue
this is solve the issue |
📣 @rajutkarsh07! 📣
|
Contributor details To solve this issue
this will solve the issue |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Browser back button takes user to the previous modal whereas the modal back button closes the modal What is the root cause of that problem?In here, we're dismissing the sign in modal when clicking on back button, leading to this issue. Previously we go back when clicking on close button in the modal, but that was changed in this PR to fix the issue where you're able to go back from the sign in modal to the "protected route" (after being forced navigate to the sign in modal when trying to accessing the "protected route" directly. What changes do you think we should make in order to solve the problem?We should remove
However, it will cause this issue, we should fix it properly by, when going to the "protected route" via deeplink and being redirected to the sign in modal, we should navigate by "replacing" the current screen, not "pushing" the sign in modal on top of the current protected screen. This will make sure when going back, it will not go back to the protected route because the protected route was already replaced by the sign in modal. We can do this in several ways, one of them is:
We use a param What alternative solutions did you explore? (Optional)Popping current screen before calling |
@bernhardoj Thanks for the proposal. Your RCA is correct
Edit: i think this will cause regression with protected links e.g. https://dev.new.expensify.com:8082/workspace/62041BFC35703E3C |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@rajutkarsh07 Thanks for your interest here. Proposals should follow the proposal templete. Please checkout the contributing guide. |
@tienifr Thanks for the proposal. Your RCA is correct and thanks for brining up the deeplink case. The suggested solution looks good to me. 🎀 👀 🎀 C+ reviewed |
Current assignee @jasperhuangg is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Not overdue. Waiting for assignment |
Same ^ |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Sorry for the delay on this, was OOO, let's move forward with @tienifr's proposal, it makes sense to me. |
This issue has not been updated in over 15 days. @strepanier03, @s77rt, @jasperhuangg, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Anyone seen Melvin lately? The PR was deployed to production long ago |
There must have been a problem, good ping. @strepanier03 Can we retest to verify that this bug was solved and issue payment if it works? |
|
@strepanier03 can you proceed with payments here, thanks! |
This comment was marked as outdated.
This comment was marked as outdated.
@strepanier03 Bump on this, thanks! |
Was OoO yesterday but missed this because it's still set to monthly. Setting to Daily and will put it on the list to get through. |
@strepanier03 Friendly bump on this. Thanks! |
@strepanier03, @s77rt, @jasperhuangg, @tienifr Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@strepanier03 friendly bump on this. It seems we still need to pay out the C+ and PR authors for their work on this issue? |
Yes that's correct |
Will handle this today, I've been out of office all week until now. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.15-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Clicking both the browser back button and clicking the modal back icon should have the same functionality. They both should take user back to previous modal
Actual Result:
Browser back button takes user to the previous modal whereas the modal back button closes the modal
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6322787_1703169313939._1__New_Expensify_-_Google_Chrome_2023-12-21_16-16-54.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: