[Ideal-nav] Fix navigate to search tab#46970
Conversation
| return; | ||
| } | ||
| interceptAnonymousUser(() => { | ||
| const currentSearchParams = getCurrentSearchParams(); |
There was a problem hiding this comment.
Oops, it seems getCurrentSearchParams has never been used in our app
There was a problem hiding this comment.
It was used in search but we are still working on this feature. I think the guys refactored the current state of search so it's not used but it's rather a temporary situation.
|
@DylanDylann @luacmartins it should be ready for review. |
dangrous
left a comment
There was a problem hiding this comment.
This makes sense to me, but I'd love to have @luacmartins take a look as well since he's much more familiar with the search project
|
@DylanDylann all yours! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-08-08.at.16.34.07.movMacOS: DesktopScreen.Recording.2024-08-08.at.16.36.45.mov |
|
🎯 @DylanDylann, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #47047. |
| return lastSearchCentralPaneRoute.params as AuthScreensParamList[typeof SCREENS.SEARCH.CENTRAL_PANE]; | ||
| } | ||
|
|
||
| if (lastSearchBottomTabRoute) { |
There was a problem hiding this comment.
@adamgrzybowski NAB: I don't see any case which this code block is triggered
There was a problem hiding this comment.
Have you tried to run this on mobile?
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
FYI I believe this was deployed to prod yesterday, from this checklist - #47219 |
| Navigation.navigate(route); | ||
| }, [activeWorkspaceID, selectedTab]); | ||
|
|
||
| const navigateToSearch = useCallback(() => { |
There was a problem hiding this comment.
NAB but a super edge case occurs when a double click on web platforms causes selection to persist on other tabs. This required us to clear the selection manually and this was addressed in #54993
Details
@DylanDylann found a problem similar to the one solved by this PR.
If the user opens the search page and selects a status, it should be remembered if the user goes to another tab and back to the search tab.
Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
androidWeb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
iosWeb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4