Repository navigation
Keep the search router open when the window is resized - #103577
Conversation
Co-authored-by: Eric Han <eh2077@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
The failing checks are unrelated to this PR, so I didn't push a fix. Analysis: Evidence: This PR only changes Fix in progress: [No QA][Failing Tests on Main] Fix the main typecheck and test failure in the self DM search test fixes this test. Once it merges, merge
|
|
🤖 Web test steps verification results: On dev NewDot web, the search router popover stays open, keeps its typed text, and recenters through several resizes at wide layout, then closes cleanly on click-outside. The browser console couldn't be read directly, so the "no JS console errors" step is backed only by indirect evidence.
|
TestsSame as QA steps
Offline testsSame as QA steps QA Steps
PR Author Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safari |
|
@MelvinBot apply #103577 (comment) to update PR description and mark it ready for review, thx! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppNA Android: mWeb ChromeNA iOS: HybridAppNA iOS: mWeb SafariNA MacOS: Chrome / SafariScreen.Recording.2026-10-13.at.10.35.35.PM.mov |
|
I updated the PR description with the sections from your comment and marked the PR ready for review.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Oh, wait a minute. @MelvinBot please merge with main branch to see if failed checks will be fixed. |
…ayOpenOnResize Co-authored-by: Eric Han <eh2077@users.noreply.github.com>
|
I merged
|
|
🚧 marcochavezf has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 9.5.9-0 🚀
|
|
No help site update needed. This is a bug fix: the search popover now stays open when you resize the browser window, which is what users already expect, and no article describes the old behavior. |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.9-4 🚀
Bundle Size Analysis (Sentry): |








Explanation of Change
The search router popover closed itself on every window resize on wide layouts.
SearchRouterModalsubscribed to theDimensionschangeevent and calledcloseSearchRouter(), so any resize dismissed the popover and lost the typed query.That listener was a workaround from when the popover was pinned to a corner and shifted by the Side Panel offset, so it mispositioned on resize. Since #100831, the popover is centered on the viewport, and its anchor and max height come from
windowHeight, so it repositions itself on re-render. This PR removes the listener and the now-unuseduseEffectandDimensionsimports, so the popover stays open and reflows as the window resizes.AI tests run (by MelvinBot):
npm run typecheck: app config passed. One failure intests/unit/OptionsListUtilsTest.tsxalready exists onmainand is not related to this PR.getSearchRouterPopoverLayoutTest,SearchRouterNavigationTest,SearchRouterUtilsTest,SearchAutocompleteListTest: 101/101 passedFixed Issues
$ #101231
PROPOSAL: #101231 (comment)
Tests
Same as QA steps
Offline tests
Same as QA steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Captured by MelvinBot in a headless dev web build: