-
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 2023-09-27] [$1000] Clicking back button takes user to LHN instead of previous page #23758
Comments
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The app's current navigation behavior takes the user to the Left Hand Navigation (LHN) when the back button is clicked, after moving to a specific room from the workspace settings page. The expected behavior is to navigate the user back to the previous page, the workspace settings in this case. What is the root cause of that problem?The React Navigation library, which we use for handling navigation in the app, navigates back to an existing screen if it already exists in the stack when an action of type NAVIGATE is fired. This behavior is inconsistent with our app's user flow in this instance, causing the user to be directed to the LHN instead of the workspace settings page. App/src/libs/Navigation/linkTo.js Lines 62 to 76 in 975146f
What changes do you think we should make in order to solve the problem?To align the navigation behavior with the expected user flow, we can adjust how we handle NAVIGATE actions in our navigation actions handler. If none of the existing conditions (e.g., navigating to the report screen, deep linking into one of the RHP flows, etc.) are met and the action type is still NAVIGATE, we can set the action type to PUSH. This will ensure a new instance of the screen is added to the navigation stack, maintaining the user's navigational context. Here's the adjusted part of the code:
By doing so, if the user navigates to a specific room from the workspace settings, with this proposed change, they will be navigated to a new instance of that specific room even if an instance of that room already exists in the navigation stack. When they press the back button, they will return to the workspace settings page, aligning the behavior with user expectations. Result: New.Expensify.-.Google.Chrome.2023-07-28.11-29-51.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Different behavior of pressing the back button in announce and admin room after going it from the workspace page. What is the root cause of that problem?The navigation actually works as expected. When we do steps 2-5, here is how the navigation stack looks like:
On pressing back (step 6), the admin report screen is popped out and will show the workspace page now.
Now, when we go to the announce room (step 7), both Workspace and ReportDetails will be popped out from the stack.
This is because NAVIGATE action will go to the existing page on the stack instead of pushing it. So, when we press back (step 8), we will be brought to the LHN. What changes do you think we should make in order to solve the problem?When we press "Go to admin room", it should pop both ReportDetails and Workspace from the stack and push the admin room to the stack, so the stack looks like this. So, on going back, it will go to the announce room. To achieve it, we should replace App/src/pages/workspace/WorkspaceInitialPage.js Lines 104 to 108 in 975146f
This is how the stack looks like on pressing each button: Pressing the button will basically close the RHP. This won't achieve the expected behavior, but I think this is how the navigation should be done. If the user want to go to the workspace page again, they need to press the room header again. |
Will look at this tomorrow |
@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I was able to reproduce this |
Job added to Upwork: https://www.upwork.com/jobs/~019b545eb8a3cbf0e4 |
Triggered auto assignment to @anmurali ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik ( |
I don't know why this is assigned to me and @muttmuure in BZ. I am unassigning myself. |
@muttmuure @robertKozik this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
PR is ready cc: @mananjadhav |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 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 2023-09-27. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Regression period ends today |
just waiting for payment |
Based on our fix, I think the Navigation was working as expected, but we changed the expected behavior. I don't think we have an offending PR, but we should add regression test for this one. The QA Steps from the PR look good to me here. What do you think @danieldoglas? @muttmuure Can you please post a payout summary and do the payout for the contributors? I will be raising my request on NewDot. Also I think this is eligible for timelines bonus. We decided this put this on hold, and asked to start the PR in this comment. |
agreed |
This comment was marked as outdated.
This comment was marked as outdated.
C+ @mananjadhav - $1500 |
$1,500 payment approved for @mananjadhav based on BZ summary. |
@muttmuure did we do the payout for @bernhardoj and @Nathan-Mulugeta? If yes then we are good to close this one out. |
Payment has not been processed yet. |
Everyone has been paid |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should take user back to workspace settings page just as it does on step 6
Actual Result:
The app takes users back to the LHN if the user went to the workspace settings page through a specific room (let's say the "Admin Room") and then click the back button, it takes them directly to the LHN. Similarly, if users navigate to the workspace settings page from "Announce Room" header then went back to the announce room through the three dots menu and then click the back button, they are also redirected to the LHN. But if user came from the announce room header to the workspace settings > clicked three dots > then went to the admin room and clicked the back button the app takes user back to the workspace settings page.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.46-1
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
Notes/Photos/Videos: Any additional supporting documentation
Screen_Recording_20230727_094617_New.Expensify.mp4
az_recorder_20230727_155539.2.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690441099091969
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: