Repository navigation
Fix Copilot account search regressions - #100371
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3a05f4db8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| focused={isVisuallyFocused} | ||
| shouldSyncFocus={!isSearchInputFocused} | ||
| shouldCheckActionAllowedOnPress={false} |
There was a problem hiding this comment.
Prevent Enter from switching an account while search is focused
When the searchable account switcher input has focus, this only stops the menu row from receiving DOM focus; the active ENTER shortcut still captures input events and calls selectItem(focusedIndex). After filtering, the new search effect sets that index to 0, so pressing Enter to finish a query switches to the first matching delegated account (and invokes connect) even without intentionally selecting it. Disable or guard the popover's Enter/arrow selection handlers while the search input is focused.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
This is intentional. The follow-up PR addresses #99974 by keeping arrow-key navigation active while the search input is focused, scrolling the focused result into view, and allowing Enter to select it. Disabling these handlers while the input is focused would reintroduce that regression.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-09-14.at.8.03.23.PM.movScreen.Recording.2026-09-14.at.8.04.21.PM.movAndroid: mWeb ChromeScreen.Recording.2026-09-14.at.8.06.26.PM.moviOS: HybridAppScreen.Recording.2026-09-14.at.8.11.21.PM.moviOS: mWeb SafariScreen.Recording.2026-09-14.at.8.07.47.PM.movMacOS: Chrome / SafariScreen.Recording.2026-09-14.at.8.01.24.PM.mov |
|
Resolved conflicts. |
|
Resolved conflicts. |
|
sorry for the delay, I'll update by tmr |
|
@emkhalid can you fill out QA steps section and add a note that keyboard navigation related issue is a known issue? I'd suggest Test section to refer QA steps, so it seems more convenient QA team, thx! |
Done, can you please review again, thanks! |
|
Resolved conflicts. |
|
@youssef-lr Could you please take a look at this? It is currently waiting for your review and approval. Thanks! |
|
🚧 youssef-lr 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/youssef-lr in version: 9.4.91-0 🚀
|
|
🤖 Yes — help site changes are required. Draft PR: Docs updates for E/A#100371 Copilot list search and label fixes This PR adds a Find member search field to two Copilot surfaces, and neither is described anywhere in
Two articles updated:
I also corrected three UI labels that no longer match the product. I verified each against the live UI in a browser session and against the
Behavior documented, and what I left outDocumented from the diff: the 12-entry threshold ( Left out of scope: both articles call the access levels Full Access and Limited Access, but the UI renders them as Full and Limited. That mismatch is pre-existing and unrelated to this PR, and fixing it rewrites the access-level wording throughout both articles — better as its own pass. Could not assign the docs PR. @emkhalid, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.91-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This PR adds Copilot search to both affected surfaces:
The shared
PopoverMenusearch behavior is opt-in, and the existingSearchBaricon remains enabled by default for current consumers.Fixed Issues
$ #96225
PROPOSAL: #96225 (comment)
Tests
Same as the QA Steps below.
Offline tests
Same as the offline verification included in the QA Steps below.
QA Steps
Preconditions:
Known keyboard issues to be handled separately:
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
iPhone17Pro_Expensify_App_Copilot_Quick_Switcher_Search_Input.mp4
iOS: mWeb Safari
iPhone17Pro_iOS_mWeb_Copilot_Quick_Switcher_Search_Input.mp4
MacOS: Chrome / Safari
macOS_Chrome_Web_Copilot_Quick_Switcher_Search_Input.mp4