Refactor provided component to use useSearchSelector hook and remove unused and duplicated code (Task 2)#71482
Conversation
…unused and duplicated code (Task 2)
Codecov Report❌ Patch coverage is
... and 10 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@daledah please, read task description and check if you applied this part
You should modify Please ensure that in test steps these are covered:
|
no. this is clearly a bug |
|
@sosek108 Thanks for the clarification! I'll update the PR soon. |
|
@daledah Please fix merge conflicts. |
|
@daledah new conflicts |
|
@daledah could you please verify that As description states it should be removed. If you cannot remove, please state why |
|
@sosek108 Currently there's only one usage of App/tests/perf-test/OptionsListUtils.perf-test.ts Lines 114 to 117 in b5c0991 App/tests/unit/OptionsListUtilsTest.tsx Lines 1259 to 1269 in b5c0991 I think it's fine to remove this util and replace the tests with the actual call instead: App/src/libs/OptionsListUtils/index.ts Lines 2033 to 2050 in b5c0991 What are your thoughts on this? |
|
@sosek108 Friendly bump on #71482 (comment) |
|
@daledah I think that we can remove tests that test function. I'm pretty sure that |
|
I updated! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp71482-android-hybrid.mp4Android: mWeb Chrome71482-android-chrome.mp4iOS: HybridApp71482-ios-hybrid.mp4iOS: mWeb Safari71482-ios-safari.mp4MacOS: Chrome / Safari71482-web.mp4MacOS: Desktop71482-desktop.mp4 |
|
✋ 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/pecanoro in version: 9.2.41-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.2.41-6 🚀
|




Explanation of Change
Refactor the provided component to use the
useSearchSelectorhook and remove unused and duplicated code.Components:
BaseShareLogListFixed Issues
$ #71059
PROPOSAL:
Tests
Offline tests
QA Steps
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
Android: Native
Screen.Recording.2025-10-13.at.02.10.21.mp4
Android: mWeb Chrome
Screen.Recording.2025-10-13.at.02.25.51.mov
iOS: Native
Screen.Recording.2025-10-13.at.02.27.10.mov
iOS: mWeb Safari
Screen.Recording.2025-10-13.at.02.28.24.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-10-13.at.02.29.25.mp4
MacOS: Desktop
Screen.Recording.2025-10-13.at.02.30.55.mp4