-
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
Search - Status bar is not preserved and selection is cleared when going from Inbox to Search #47670
Comments
Triggered auto assignment to @alexpensify ( |
Triggered auto assignment to @marcaaron ( |
We think that this bug might be related to #wave-collect - Release 1 |
👋 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:
|
@luacmartins Is this a bug? |
Not deploy blocker worthy IMO. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The status bar selected item isn't preserved after switching to another bottom tab. This only happens on the small screen. What is the root cause of that problem?When we press the search bottom tab, we call App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Lines 91 to 95 in 44a7516
Lines 297 to 312 in 44a7516
This works well on large screen, but not on small screen. When we go to the search page, the nav stack looks like this: Both the search bottom tab and central pane holds the search query (q) params. When we change the status to paid, for example, the query params is only updated to the search central pane. App/src/components/Search/SearchStatusBar.tsx Line 137 in 44a7516
On the large screen, when we go back to home, the nav stack becomes:
But on the small screen, going back to home will pop the search central pane out. App/src/libs/Navigation/linkTo/index.ts Lines 180 to 184 in 44a7516
So, when we switch back to the search page, What changes do you think we should make in order to solve the problem?We need to update the bottom tab params too when selecting the status. App/src/components/Search/SearchStatusBar.tsx Line 137 in 44a7516
We need to update
|
I'm also interested in whether this is really a bug? the act of navigating to another screen changes a lot of things and we do reset some things in Search. |
This is intended. Closing this issue. |
Maybe we can at least persists the selected status bar so it's consistent between web and small screen. web.mp4 |
I think the idea is to always reset the user. They can use saved searches (coming in v2.3) to navigate to any custom filters they have if they want to. |
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: v9.0.22-5
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh1681@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
App will open Outstanding tab with the selection preserved when going from Search to Inbox and back to Search.
Actual Result:
App opens All tab with the selection cleared when going from Search to Inbox and back to Search.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6576455_1724099303763.ScreenRecording_08-20-2024_04-20-02_1.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: