-
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
[HOLD for payment 2024-01-17] [$500] Web - IOU & Task - User is redirected to previous page when double clicking outside RHP editor #33460
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b870d525be430c1d |
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Double clicking overlay navigates back. What is the root cause of that problem?This happens to all RHP screens. We navigate back on pressing the
Since What changes do you think we should make in order to solve the problem?We should create a state/ref to check if const onPressWrapper = () => {
if (!shouldTriggerOnPress) {
return;
}
onPress();
setShouldTriggerOnPress(false);
}
<PressableWithoutFeedback
onPress={onPressWrapper}
/> What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - IOU & Task - User is redirected to previous page when double clicking outside RHP editor What is the root cause of that problem?The main problem is that when we click on Overlay
What changes do you think we should make in order to solve the problem?We just need to bind the overlay to the navigation state
And we won't be able to reuse the overlay
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - User is redirected to previous page when double clicking outside RHP editor What is the root cause of that problem?When press outside RHP, the overlay is not close immediately, so users can press 2 or even more times on overlay -> navigation.goBack is called many times
What changes do you think we should make in order to solve the problem?We should not create the new state to prevent unnecessary re-renders. Beside, onPress is called async so the state may not be updated before the second call Solution 1: Just create the new ref
Solution 2: We can edit the hook useSingleExecution Currently this hook is not supported on web, we can change it as blow
|
Using |
@thesahindia plz review the proposals above. |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sounds good! @tienifr you are assigned, please feel free to create a PR for us to review 🙂 |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@thesahindia I wonder why I have the same solution but was not selected. The only difference is about using state or ref which is implementation details. There were many proposals that initially proposed using state but then implemented with ref. |
@thesahindia can you please provide details on why @tienifr 's proposal was selected above others that were posted before? Thx |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-01-17. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@blimpich, @mallenexpensify, @thesahindia, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@thesahindia can you please address my question above? @thesahindia can you also plz complete the regression test steps? Contributor: @tienifr paid $500 via Upwork |
@blimpich, @mallenexpensify, @thesahindia, @tienifr Huh... This is 4 days overdue. Who can take care of this? |
For such minor issues I also look for small details. Since @tienifr suggested the correct implementation details I preferred going with them. Also they added the reason for not using the state and it shows they tested things thoroughly. |
Not sure if there's any PR that is responsible for this, I think we can skip the checklist. We don't need to add a test case. It's a normal flow and the expected behaviour is obvious. |
Thanks @thesahindia ! |
$500 approved for @thesahindia |
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:
User stays on the same page
Actual Result:
User is returned to previous page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6323095_1703186404581.bandicam_2023-12-22_00-55-18-770.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: