-
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-08-01] Back button after clicking on menu gets back to list of workspace on admins channel( works well if not clicked on menu) #22065
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Clicking back button after clicking on menu gets back to list of workspace on admins channel. What is the root cause of that problem?If the user clicks on the workspace name on the report detail page, the navigation will create a new item in the When user click menu, the menu item and workspace initial page are on the same screen in When the user clicks the back button, navigation will iterate App/src/libs/Navigation/Navigation.js Lines 45 to 61 in b0add94
And since fallbackRoute is set, fallbackRoute will be navigated accordingly.App/src/libs/Navigation/Navigation.js Lines 99 to 102 in b0add94
What changes do you think we should make in order to solve the problem?We can modify this line as below. - if (shouldEnforceFallback || (!getActiveRouteIndex(navigationRef.current.getState()) && fallbackRoute)) {
+ if (shouldEnforceFallback || (getActiveRouteIndex(navigationRef.current.getState()) == null && fallbackRoute)) { What alternative solutions did you explore? (Optional)We can remove - onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WORKSPACES)}
+ onBackButtonPress={() => Navigation.goBack()} |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Slammed with bug reports. I'll close the loop on these today. |
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
@mountiny more navigation bugs. I wanted to confirm that we should actually go UP vs BACK in this case? |
I think this is kinda expected but there will be potentially a lot of edge cases in these flows. Essentially we are deeplinking to the workspace settings and the up button should lead to the workspace list and settings basically down the path you would expect in RHP. Browser back should lead to the admin page I assume. I have missed one part of it, asking SWM if they can look into fixing this |
@JmillsExpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@adamgrzybowski what do you think of the proposal above? |
I am afraid that this function never returns a
So we never enter this if now and it is responsible for handling the up button after deep linking. e.g.
Expected: Actual: |
@adamgrzybowski Because 0 is a valid route index, so we should check for |
Yeah but it still breaks the flow described above |
Hey, we made a quick fix with @WoLewicki while investigating issues with those flows. |
@StevenKKC Thanks for the proposal, the navigation reboot has been a project we worked on with SWM so they have more context about the changes, we appreciate your contributions and hopefully you can find some issue with Help Wanted label which you can help us with! |
@JmillsExpensify, @mountiny, @adamgrzybowski Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Should we now close this issue based on the linked quick fix above? I see that's merged. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-2 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-08-01. 🎊 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:
|
Not sure who's kicking off the bug zero checklist above, though that's our todo between now and when the regression period passes. |
@allroundexperts Can you handle the checklist given you have reviewed the PR pleasE? |
Will do that today @mountiny! |
In the meantime, summarizing the payments for this issue:
@mountiny Would you please confirm that this is eligible for the bonus? It was based on the PR alone. Upwork job is here for issue reporter. |
Applied. Thanks. |
@JmillsExpensify so Adam is agency worker so as that I think most of these project issues they work on are handled as internal review so flat $1000 and no urgency bonus. Also Adam in paid differently so he does not have to be in the summary It should be $1000 to @allroundexperts here I believe. Thanks everyone for good work here 🚀 |
Ok thank you for confirming the special situations! Updated the amounts above. @allroundexperts have you submitted via NewDot? I'll check there in any case shortly. Then @priya-zha offer was sent via Upwork. |
Requested now @JmillsExpensify |
Issue reporter is paid out and @allroundexperts is approved for payment via NewDot, so I'm closing this issue out. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The back button after clicking on menu should get back to admins channel
Actual Result:
Back button after clicking on menu gets back to list of workspace on admins channel( works well if not clicked on menu)
Workaround:
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.35-5
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
error-2023-06-07_18.01.26.mp4
Recording.2290.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686140160128449
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: