You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-08-19] [$250] Refactor provided component to use useSearchSelector hook and remove unused and duplicated code (Task 4) #71061
Across the application, around 15 components serve the same or very similar functionality: search users. These components use the same source of truth, OptionListContextProvider, and use getValidOptions to properly filter and sort options with contact.
Problem
Although the functionality of these components is almost the same, their implementation is the same or differs slightly. There is a lot of code duplication, which leads to situations where users experience different behaviours across these functionalities.
Working on these components (for example, with performance optimizations) is also problematic for developers, as there are many places that should be checked and updated. For example, when we implemented new parameters in getValidOptions there is a need to update all of these components
Solution
To improve code quality and developers’ and users' experience, we’ve implemented the useSearchSelector hook, which will be a single place of truth for all components that provide user searching. These components serve:
options selection
options sorting
options filtering
phone contacts importing
Using that hook will make the user experience more consistent across all components.
Task 4
Refactor listed components to use useSearchSelector hook and remove unused and duplicated code.
Components:
UserSelectPopup
SearchFiltersParticipantsSelector
NewChatPage
Important notes:
you can use InviteReportParticipantsPage as an example of the implementation
you should use context param: CONST.SEARCH_SELECTOR.SEARCH_CONTEXT_GENERAL
you need to ensure all functionalities are working correctly. Especially: selection, filtering, ordering, and inviting new users
After refactoring, we can remove getMemberInviteOptions
changed the title [-]Refactor provided component to use useSearchSelector hook and remove unused and duplicated code (Task 4)[/-][+][$250] Refactor provided component to use useSearchSelector hook and remove unused and duplicated code (Task 4)[/+]on Sep 23, 2025
@mallenexpensify this happened because @mkzie2 is listed on the workspace with an email ending in outlook.com, but in the Vendor Agreements with an email ending in gmail.com.
Activity
[-]Refactor provided component to use useSearchSelector hook and remove unused and duplicated code (Task 4)[/-][+][$250] Refactor provided component to use useSearchSelector hook and remove unused and duplicated code (Task 4)[/+]melvin-bot commentedon Sep 23, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021970467874158935409
melvin-bot commentedon Sep 23, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
External)melvin-bot commentedon Sep 23, 2025
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.186 remaining items
melvin-bot commentedon Aug 21, 2026
NikkiWines commentedon Aug 21, 2026
cc: @mallenexpensify fyi
mallenexpensify commentedon Aug 21, 2026
Payment Summary
Contributor: @mkzie2 due $250 via NewDot
Contributor+: @ZhenjaHorbach due $250 via NewDot
garrettmknight commentedon Sep 2, 2026
$250 approved for @ZhenjaHorbach
twisterdotcom commentedon Sep 30, 2026
$250 approved for @mkzie2 Report ID: R00DHh8IGiXa.
Zapier Logs
Run ID: 00040eee-6d94-ada8-1ea3-e0aecc07fee4SO: https://stackoverflowteams.com/c/expensify/questions/7582
mallenexpensify commentedon Sep 30, 2026
@twisterdotcom 👀 plz
twisterdotcom commentedon Oct 1, 2026
@mallenexpensify this happened because @mkzie2 is listed on the workspace with an email ending in outlook.com, but in the Vendor Agreements with an email ending in gmail.com.
twisterdotcom commentedon Oct 1, 2026
Asking if maybe @arielgreen can fix this: https://expensify.slack.com/archives/C01SKUP7QR0/p1790846884423399
twisterdotcom commentedon Oct 6, 2026
I think we can close as I updated the summary manually above.