useSearchSelector hook and remove useless code v3#73908
Conversation
…move useless code""
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.
|
|
@allroundexperts 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] |
|
LGTM |
|
@allroundexperts Friendly bump. |
|
No product considerations, removing my review |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-29.at.3.12.46.AM.movAndroid: mWeb ChromeScreen.Recording.2025-10-29.at.3.09.50.AM.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2025-10-29.at.3.06.50.AM.movMacOS: Chrome / SafariScreen.Recording.2025-10-29.at.2.54.46.AM.movMacOS: DesktopScreen.Recording.2025-10-29.at.3.04.01.AM.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.2.60-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.2.60-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.2.60-0 🚀
|
|
@nkdengineer seems like this caused a regression - #75418 |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.2.60-2 🚀
|
| const newSelectedOptions: MemberForList[] = []; | ||
| if (firstRenderRef.current) { | ||
| // We only want to add the saved selected user on first render | ||
| firstRenderRef.current = false; | ||
| Object.entries(invitedEmailsToAccountIDsDraft ?? {}).forEach(([login, accountID]) => { | ||
| if (login in detailsMap) { | ||
| newSelectedOptions.push({...detailsMap[login], isSelected: true}); | ||
| } else { | ||
| const optimisticOption = getUserToInviteOption({ | ||
| searchValue: login, | ||
| }); | ||
| if (optimisticOption) { | ||
| optimisticOption.accountID = Number(accountID); | ||
| const memberOption = formatMemberForList({ | ||
| ...optimisticOption, | ||
| accountID: Number(accountID), | ||
| isSelected: true, | ||
| }); | ||
| newSelectedOptions.push(memberOption); | ||
| } | ||
| } |
Explanation of Change
Fixed Issues
$ #71057
#72586
#72523
#72516
#73874
#73875
PROPOSAL: #71057 (comment)
Tests
Track and budget expensesOffline 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))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
android-mweb-resize.mp4
iOS: Native
ios-resize.mp4
iOS: mWeb Safari
ios-mweb-resize.mp4
MacOS: Chrome / Safari
bug-resize.mp4
MacOS: Desktop
desktop-resize.mp4