Migrate useSearchSelector.base.ts from useOptionsList to usePersonalDetailOptions (part 3) - #92868
Conversation
…etailOptions (part 3)
|
@hoangzinh 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] |
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.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87ab6eaabf
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const {searchTerm, debouncedSearchTerm, setSearchTerm, availableOptions, selectedOptions, toggleSelection, areOptionsInitialized} = usePersonalDetailSearchSelector({ | ||
| selectionMode: CONST.SEARCH_SELECTOR.SELECTION_MODE_MULTI, | ||
| includeUserToInvite: true, | ||
| excludeLogins: excludedUsers, | ||
| includeRecentReports: true, | ||
| shouldInitialize: didScreenTransitionEnd, | ||
| }); |
There was a problem hiding this comment.
Normalize phone searches before using the personal-detail selector
When this page is migrated to usePersonalDetailSearchSelector, phone searches are passed through as the raw typed text; that selector's matching only checks text and login, and unlike the old useSearchSelector path it does not first convert formatted phone input with getSearchValueForPhoneOrEmail. For a known user whose display name is shown, searching a formatted phone number like (555) 123-4567 no longer matches their +15551234567 login and can instead show an optimistic invite for the same person with a generated accountID. This affects phone-number invite/selection flows; please normalize the search term in the new selector path or before calling it.
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-06-09.at.22.10.49.movAndroid: mWeb ChromeScreen.Recording.2026-06-09.at.22.06.53.moviOS: HybridAppScreen.Recording.2026-06-09.at.22.27.27.moviOS: mWeb SafariScreen.Recording.2026-06-09.at.22.16.55.movMacOS: Chrome / SafariScreen.Recording.2026-06-09.at.22.01.34.mov |
|
@mountiny all yours |
|
🚧 @mountiny 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/mountiny in version: 9.4.2-0 🚀
Bundle Size Analysis (Sentry): |
Help site review: No changes requiredI reviewed the changes in this PR against the help site files under WhyThis is a pure internal refactor with no user-facing impact:
The affected flows — inviting members to a group chat, assigning an Expensify Card, and assigning a company card — keep the same UI, labels, options, and behavior. There are no new features, renamed tabs/settings, changed buttons, or altered user-facing copy that would need to be reflected in a help article. Since no behavior changed, there's no draft help site PR to open. @shubham1206agra, if you believe a specific flow's documented behavior did change, let me know which article and I'll draft the update. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.4-1 🚀
Bundle Size Analysis (Sentry): |
Help site review — no docs changes requiredI reviewed the changes in this PR against the help site articles under Conclusion: No help site updates are needed. Why: This is a pure internal refactor. It migrates the member-invite search flows from the Since nothing in the public, documented behavior changed, no draft docs PR was created and there is nothing to review on the help site side. @shubham1206agra, if you believe a documented behavior did change here, let me know what it is and I'll draft the corresponding help site PR. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.4-3 🚀
|
Explanation of Change
Fixed Issues
$ #82191
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.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
Screen.Recording.2026-06-07.at.7.40.59.AM.mov
Screen.Recording.2026-06-07.at.7.43.00.AM.mov