-
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-04-29][$250] Share log - Chat icon is highlighted in Settings after returning from share destination #39926
Comments
Triggered auto assignment to @amyevans ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
Not a blocker |
Triggered auto assignment to @alexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01bd717be733d9cef5 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat icon of bottom tab bar is highlighted after sharing the client side logging to a chat. I can reproduce this on prod too. What is the root cause of that problem?The chat icon will be highlighted if the App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Line 88 in 455dce4
App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Lines 66 to 69 in 455dce4
When we open settings, the bottom tab navigator will be: When we press "Share log" and select the chat, it will navigate to the report. App/src/pages/settings/AboutPage/ShareLogList/index.tsx Lines 17 to 18 in 455dce4
Report screen is a central pane, so when we do the navigation, it will find the match bottom tab for report screen and it's HOME (LHN). App/src/libs/Navigation/linkTo.ts Lines 160 to 175 in 455dce4
So, now we have 3 routes in the bottom tab navigator, When we press go back from the report screen, the bottom tab navigator stays unchanged. If we keep press back and arrive at the About page, the root navigator will look like this:
In about page, we set a fallback route to SETTINGS.
If we press back in about page, the fallback route will be used because of this logic. (about page is a central pane) App/src/libs/Navigation/Navigation.ts Lines 223 to 226 in 458de57
So, the central pane is replaced with the fallback route and that is SETTINGS which is a bottom tab navigator. Now, we have nav stack like this:
The reason the chat icon is highlighted is because App/src/libs/Navigation/getTopmostBottomTabRoute.ts Lines 3 to 4 in 458de57
On large screen (web), when you press the browser back button, both the report screen and the bottom tab route (HOME) is removed. What changes do you think we should make in order to solve the problem?We can update App/src/libs/Navigation/getTopmostBottomTabRoute.ts Lines 3 to 4 in 458de57
What alternative solutions did you explore? (Optional)Remove the fallback route from about page back press. This will have the same behavior as WorkspacesListPage. |
@bernhardoj I agree with your RCA, It is correct. Could you help to detail your solution?
|
Updated my proposal. |
@bernhardoj I am confused about your solution. Currently,
|
IMO, When going back from the report screen by clicking the back button. The bottom tab navigator should be updated to [HOME, SETTINGS]. What do you think about that? |
It takes the last route from the found bottom tab navigator, but it takes the first route from the root navigator
Not sure, how do we know when to pop the bottom tab? We can't always pop it when pressing back from the report screen. I think maybe removing the fallback route is the best we can do for now. We previously removed all ROUTES.HOME from fallback here. |
Which is the last route that you mentioned? And also explain why should we do that |
If this is the root state, then the first route is |
@bernhardoj It seems it is the current logic. I am not sure I understand your mean, please help to detail your solution |
I thought you are asking about the current logic, no?
|
@bernhardoj in your proposal, you suggest that:
Please help to detail your solution |
Updated my proposal to include the code. |
@bernhardoj's proposal looks good to me 🎀 👀 🎀 C+ reviewed |
Current assignee @amyevans is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @DylanDylann 🎉 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: @DylanDylann |
Heads up, I will be offline until Tuesday, April 23, 2024, and will not actively watch over this GitHub during that period.If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks! |
I checked in and it looks like this PR was merged yesterday. Now, let's wait for automation to kick in. |
Hmm it was deployed to production already which is when the automation should post, so it seems like that failed. I'll update the title manually - due for payment 7 days after 4/22 so 4/29. |
Thanks! Noted for April 29. |
Payouts due: April 29, 2024
Upwork job is here. |
Closing - the list above has been paid via Upwork. |
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.61-0
Reproducible in staging?: y
Reproducible in production?: new feature
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When returning to Settings page, the profile icon should be highlighted.
Actual Result:
When returning to Settings page, the chat icon is highlighted.
When clicking on profile icon, app reopens the same settings page.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6443177_1712647546277.Screen_Recording_20240409_151204_Chrome.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: