[CP Staging] Fix search overlay routing to wrong page#63337
Conversation
|
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android Android: mWeb ChromeScreen.Recording.2025-06-03.at.9.56.56.PM.moviOS: HybridAppScreen.Recording.2025-06-03.at.10.00.43.PM.moviOS: mWeb SafariScreen.Recording.2025-06-03.at.9.55.24.PM.movMacOS: Chrome / SafariScreen.Recording.2025-06-03.at.9.49.45.PM.movScreen.Recording.2025-06-03.at.9.51.05.PM.movMacOS: DesktopScreen.Recording.2025-06-03.at.9.53.23.PM.mov |
|
@mjasikowski Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Fix search overlay routing to wrong page (cherry picked from commit 0c8d981) (cherry-picked to staging by roryabraham)
|
🚀 Cherry-picked to staging by https://github.com/JS00001 in version: 9.1.56-9 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/JS00001 in version: 9.1.58-0 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.58-4 🚀
|
Explanation of Change
When using the search input clear button, if we are on a non-search page, then we cant have active searches, so we can just clear the input and we dont have to update the search params. If we are on the search page, we want to clear the params and reload the query
Fixed Issues
$ #63314
Tests
Open the app
Use CMD+K to search on any page thats NOT search.
Click the "Clear input" button
Ensure the input is cleared and the overlay stays visible and that we stay on the correct page
Navigate to the search page
Enter an input, click enter
Click the clear input button
Ensure the search is cleared & updated
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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/Videosundefined