[CP staging] fix: property override bug in useSearchSelector#86099
Conversation
|
@ZhenjaHorbach From this proposal I think it's not ours. Also our PR doesn't modify any pagination logics. |
As I remember, we had an issue where the pagination didn't work |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d845be1c5c
ℹ️ 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".
| countryCode, | ||
| reportAttributesDerived: reportAttributesDerived?.reports, | ||
| allPolicyTags, | ||
| ...getValidOptionsConfig, |
There was a problem hiding this comment.
Prevent self-DM override from surfacing a dead-end option
Placing ...getValidOptionsConfig after the built-in defaults makes MoneyRequestParticipantsSelector's includeSelfDM: true override take effect in the general context. That exposes the Personal/self-DM row in non-split money-request flows, but selecting it is a dead end: toggleSelection() does not persist selections in single-select mode (src/hooks/useSearchSelector.base.ts:403-407), and addSingleParticipant() intentionally skips onFinish() for option.isSelfDM (src/pages/iou/request/MoneyRequestParticipantsSelector.tsx:174-176), so the user stays on the picker with no Next button to continue. This regresses single-participant request/share/send flows whenever the self-DM option is shown.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
We just need to move includeSelfDM to the bottom here below ...getValidOptionsConfig so let's do that 🙏
|
@mkzie2 |
But I think it's not a deploy blocker |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari2026-03-23.18.22.10.mov |
|
@ZhenjaHorbach Do you have a steps to repro this? |
Like on the video
|
|
@ZhenjaHorbach I can't repro Screen.Recording.2026-03-23.at.23.36.22.mov |
Did you try with a new account? |
Same result. |
Interesting Could you update the branch to the latest version of main to be sure, please? |
|
Okay 2026-03-23.18.28.41.mov |
| countryCode, | ||
| reportAttributesDerived: reportAttributesDerived?.reports, | ||
| allPolicyTags, | ||
| ...getValidOptionsConfig, |
There was a problem hiding this comment.
We just need to move includeSelfDM to the bottom here below ...getValidOptionsConfig so let's do that 🙏
|
@NikkiWines I'm not sure I understand your requested changes, the RCA of the issue is that the default |
|
🚧 @NikkiWines 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
(cherry picked from commit f66174c) (cherry-picked to staging by grgia)
|
🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.3.42-3 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.3.42-3 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.43-3 🚀
|

Explanation of Change
Fixed Issues
$ #86088
$ #86097
PROPOSAL:
Tests
Test 1
Test 2
Offline tests
QA Steps
Test 1
Test 2
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Screen.Recording.2026-03-23.at.21.15.15.mp4