[NoQA] Migrated MoneyRequestAccountantSelector.tsx from useOptionsList to usePersonalDetailOptions#87716
Conversation
…ePersonalDetailOptions
|
@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✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c55c9ddda3
ℹ️ 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".
|
No product review needed |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-15.at.21.05.45.movAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-04-15.at.21.37.55.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-04-15.at.20.57.11.mov |
|
@shubham1206agra All goods. Can you resolve the conflict? |
|
@MelvinBot review this PR |
|
Code Review: MoneyRequestAccountantSelector migration to Overall this is a clean refactor — 175 lines deleted, 58 added, and the component is much easier to follow. The migration from 1. const areOptionsInitialized = (personalDetailOptions?.length ?? 0) > 0;The old code used 2. This is fine since it's called inline during render (not passed as a callback), but it re-closes over 3. Expensify email check in if (CONST.EXPENSIFY_EMAILS_OBJECT[searchValue]) {
return translate('messages.errorMessageInvalidEmail');
}This handles the case where excluded Expensify emails produce no results. Ideally this logic would live inside 4. Removed The None of these are blocking. The refactor achieves its goal of simplifying the component and reducing unnecessary data loading. Nice cleanup! 👍 |
|
@hoangzinh All yours |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @mountiny 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.61-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a purely internal refactoring that migrates |
|
@hoangzinh @shubham1206agra Can you please check? |
|
@mountiny This issue cannot stem from this PR. It is the other PR that caused that DB |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.3.61-4 🚀
|
Explanation of Change
Fixed Issues
$ #82190
Tests
Pre-conditions: Make
canUseTrackFlowstrue.Offline tests
Same as Tests
QA Steps
No Tests as QA can't change
canUseTrackFlows.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-04-12.at.1.39.34.PM.mov