chore: migrate old SelectionList to new SelectionListWithSections in MoneyRe…#82662
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
5cf7c35 to
d30d2d0
Compare
zfurtak
left a comment
There was a problem hiding this comment.
Everything looks fine to me 👍
Just take care of CLA check and I left one little comment :)
| <> | ||
| {customHeaderContent} | ||
| <FlashList | ||
| ListHeaderComponent={customListHeaderContent} |
There was a problem hiding this comment.
nitpick, but put it please lower, somewhere next to ListFooterComponent, as it's not an important prop
d30d2d0 to
e79aae3
Compare
|
@dukenv0307 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e79aae32e7
ℹ️ 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".
| canShowProductTrainingTooltip={canShowManagerMcTest} | ||
| headerContent={ | ||
| customListHeaderContent={importContactsButtonComponent} | ||
| customHeaderContent={ |
There was a problem hiding this comment.
Keep import-contacts prompt visible for empty searches
Switching this prop to customHeaderContent makes the ImportContactButton render only in the non-empty branch of BaseSelectionListWithSections (src/components/SelectionList/SelectionListWithSections/BaseSelectionListWithSections.tsx), unlike the previous headerContent behavior. On native, when contacts permission is denied and a non-matching query is entered, showImportContacts suppresses the text-input header message and the list is empty, so the import-contacts guidance disappears entirely in that no-results state.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@grgia yep, the comment was useful and I did change the code.
| onEndReachedThreshold={onEndReachedThreshold} | ||
| onScrollBeginDrag={onScrollBeginDrag} | ||
| scrollEnabled={scrollEnabled} | ||
| onScroll={triggerScrollEvent} |
There was a problem hiding this comment.
Invoke caller onScroll while emitting scroll events
This assignment overwrites the onScroll callback coming from SelectionListWithSections/index.tsx (via useWebSelectionListBehavior) instead of composing both handlers. On web touch devices, that callback is responsible for dismissing the keyboard during user scroll, so after this change scrolling the participants list can leave the keyboard covering results while only tooltip scroll events fire.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Let's check if it works correctly on mWeb app
|
@sharabai can you please check the bot's feedbacks above? Thanks |
412712c to
9fe82d2
Compare
|
@dukenv0307 I've addressed the ai feedback. |
9fe82d2 to
280c9f4
Compare
heyjennahay
left a comment
There was a problem hiding this comment.
Product review not required
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-21.at.10.46.51.movAndroid: mWeb ChromeScreen.Recording.2026-02-21.at.10.35.43.moviOS: HybridAppScreen.Recording.2026-02-21.at.10.45.42.moviOS: mWeb SafariScreen.Recording.2026-02-21.at.10.37.37.movMacOS: Chrome / SafariScreen.Recording.2026-02-21.at.10.31.10.mov |
…MoneyRequestParticipantsSelector
280c9f4 to
b91a8ca
Compare
| if (!isWorkspacesOnly) { | ||
| if ((isPerDiemRequest ? availableOptions.recentReports.filter((report) => report.isPolicyExpenseChat) : availableOptions.recentReports).length > 0) { |
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.3.28-0 🚀
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.3.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.30-3 🚀
|
Explanation of Change
Fixed Issues
$ #65658
PROPOSAL:
Tests
There're multiple flows to test:
Regular web test
Web on Mobile
Mobile test
New Client flow test
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))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-82662.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
macOs-web-82662.mp4