-
Notifications
You must be signed in to change notification settings - Fork 3k
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-02-07] [$500] Workplace - User is unable to return back to homepage after clicking “here” in Concierge chat #34456
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @grgia ( |
Job added to Upwork: https://www.upwork.com/jobs/~01056d0ac9c53002bf |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is sent back to Connect Bank Account page. Selecting back button on this page leads to a loop which sends user to the Workplace's setting page then immediately back to "Connect Bank Account" What is the root cause of that problem?We're not passing the So it will use the default What changes do you think we should make in order to solve the problem?Pass the
(If we'd like to pop other screens from the stack before going back we can also do that) Or we can make "navigate to home" the default action of What alternative solutions did you explore? (Optional)NA |
Proposal Problem re-statement: The identified issue revolves around users encountering a repetitive loop when attempting to navigate back using the back button, consistently landing them on the "Connect Bank Account" page. This loop takes them through the Workplace's setting page and back to "Connect Bank Account." Root Cause Analysis: The core problem stems from the omission of passing the onClick action for navigating to the home page when users encounter an unauthorized workspace. The Page not found view, responsible for displaying the workspace unauthorized page, lacks the necessary handling for users trying to return home. This absence results in an ongoing loop, creating frustration for the users. Recommended Course of Action: To tackle this issue effectively, it is suggested to include the onClick action for navigating to the home page in The Page not found view. This adjustment ensures that users, upon facing unauthorized access, are promptly redirected to the home page, breaking the loop. |
📣 @okhot! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workplace - User is unable to return back to homepage after clicking “here” in Concierge chat. What is the root cause of that problem?The root cause of this issue is that we call
by default when clicking As we don't pass App/src/libs/Navigation/dismissModal.ts Line 48 in a2864a0
What changes do you think we should make in order to solve the problem?To fix this issue, we can improve
to onLinkPress = undefined,
// if onLinkPress is defined, then return onLinkPress
// if onLinkPress is undefined, then return () => Navigation.goBack(ROUTES.HOME) if linkKey is 'notFound.goBackHome' else return () => Navigation.dismissModal()
onLinkPress={onLinkPress ?? linkKey === 'notFound.goBackHome' ? () => Navigation.goBack(ROUTES.HOME) : () => Navigation.dismissModal()} Can also apply the above improvement at lower level in What alternative solutions did you explore? (Optional)N/A |
what's the offending PR? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing the go back to homepage in reimbursement account page not found view will reopen the bank account page. What is the root cause of that problem?If we follow the navigation step from OP, we will get this navigation stack:
When we press go back to the homepage or simply go back, the 2nd RHP will be unmounted and clear the bank account data. App/src/pages/ReimbursementAccount/ReimbursementAccountPage.js Lines 278 to 287 in a2864a0
This triggers the
App/src/pages/ReimbursementAccount/ReimbursementAccountPage.js Lines 316 to 335 in a2864a0
And because the onyx data is cleared, the navigation logic above is triggered (BankAccountStep !== ValidationStep), making it impossible to leave the page. This has the same root cause as #21401 and also, we shouldn't clear the onyx data on unmount as it raises this issue but was closed as not priority. What changes do you think we should make in order to solve the problem?Dismiss the modal (RHP) before navigating to the concierge chat. I think we can have the same pattern as navigateToAndOpenReport by having a param I'm thinking that if we want to fix it globally, we can dismiss the RHP in Navigation.navigate if the route is a report route |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @hoangzinh |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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-02-07. 🎊 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:
|
@hoangzinh can you update the checklist so that we can get you paid today? :) |
sure @stitesExpensify I will complete the checklist tomorrow. Sorry for late |
@hoangzinh reviewer - $500 paid ✔️ Please complete the checklist |
BugZero Checklist:
Regression Test Proposal
Do we agree 👍 or 👎 |
@hoangzinh, @sonialiap, @grgia, @stitesExpensify, @bernhardoj Whoops! This issue is 2 days overdue. Let's get this updated quick! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.24-4
Reproducible in staging?: Y
Reproducible in production?: No
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 should be directed to home page
Actual Result:
User is sent back to Connect Bank Account page. Selecting back button on this page leads to a loop which sends user to the Workplace's setting page then immediately back to "Connect Bank Account"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6340259_1705070395464.XRecorder_11012024_181231.mp4
Bug6340259_1705070395479.RPReplay_Final1705015564.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: