Add SearchForUsers command and use it when searching for members#78743
Add SearchForUsers command and use it when searching for members#78743carlosmiceli merged 17 commits intoExpensify:mainfrom
SearchForUsers command and use it when searching for members#78743Conversation
…ove parameter handling
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.
|
|
Is this ready to review @fedirjh ? |
SearchForUsers command and use it when searching for membersSearchForUsers command and use it when searching for members
This is still awaiting for https://github.com/Expensify/Web-Expensify/pull/49992 to reach prod |
|
Ah, but it could be on hold and I can review on the meantime (also in case other tests fail). |
|
@ChavdaSachin 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] |
SearchForUsers command and use it when searching for membersSearchForUsers command and use it when searching for members
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f32726f069
ℹ️ 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".
|
Does this a need C+ review? |
Yes, we need to test the new command once it's deployed. |
…command across multiple components
SearchForUsers command and use it when searching for membersSearchForUsers command and use it when searching for members
|
This should be ready to polish/review 💪 |
…eVacationDelegateSelectionComponent and DomainAddAdminPage
Good catch, those seem to be implemented recently. For the |
Yeah, did not realize it uses recent reports to float few participants. Reviewing ♻️ |
This comment was marked as resolved.
This comment was marked as resolved.
|
@ChavdaSachin the new command is
It's deployed to production. |
| } | ||
|
|
||
| API.read(policyID ? READ_COMMANDS.SEARCH_FOR_ROOMS_TO_MENTION : READ_COMMANDS.SEARCH_FOR_REPORTS, policyID ? searchForRoomToMentionParams : searchForReportsParams, { | ||
| API.read(policyID ? READ_COMMANDS.SEARCH_FOR_ROOMS_TO_MENTION : READ_COMMANDS.SEARCH_FOR_REPORTS, policyID ? searchForRoomToMentionParams : searchForReportsOrUsersParams, { |
There was a problem hiding this comment.
I guess we need to include SEARCH_FOR_USERS command here right?
… a variable for server command selection
Reviewer Checklist
Screenshots/Videos |
|
🎯 @ChavdaSachin, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #83461. |
|
🚧 @carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Hi @fedirjh Do we need QA for this? |
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.3.26-0 🚀
|
|
@izarutskaya yes, let's wait for @fedirjh to add QA steps 👍 |
|
@izarutskaya QA steps updated 🙇🏼 |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.3.26-8 🚀
|







Explanation of Change
We noticed that the member search input (name/email/phone) is calling SearchForReports on every keystroke. That command also queries reports, which makes sense for things like the chat switcher, but not for pages where we’re only searching for members (e.g. invite new members). We implemented a new command SearchForUsers to query just the personal details for the member search.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/582334
PROPOSAL: https://github.com/Expensify/Expensify/issues/582334#issuecomment-3702930257
Tests
Offline tests
QA Steps
QA Steps
Prerequisites:
1. Workspace Invite Page
SearchForUsers(notSearchForReports)2. Room Invite Page
SearchForUsersis fired in the Network tab3. Invite Report Participants
SearchForUsersin the Network tab4. Money Request - Participants Selector
SearchForUsersin the Network tab5. Money Request - Attendee Selector
SearchForUsersin the Network tab6. Money Request - Accountant Selector
SearchForUsersin the Network tab7. Task Assignee Selector
SearchForUsersin the Network tab8. Vacation Delegate Selection
SearchForUsersin the Network tab9. Add Security Delegate
SearchForUsersin the Network tab10. Domain Add Admin
SearchForUsersin the Network tab11. Assign Company Card
SearchForUsersin the Network tab12. Issue New Expensify Card
SearchForUsersin the Network tab13. Onboarding Workspace Invite
SearchForUsersin Network tabPR 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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari