refactor: add dedicated ExpenseReportSearchView#94822
Conversation
…rt-view # Conflicts: # src/components/Search/index.tsx
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.
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
| ); | ||
| } else if (isExpenseReportType) { | ||
| searchListContent = ( | ||
| <ExpenseReportSearchView |
There was a problem hiding this comment.
Nit: The ExpenseReportSearchView and ExpenseFlatSearchView invocations share 16 of 18 identical prop assignments. I think we should consider extracting the common props into a shared object and spreading it onto each view.
There was a problem hiding this comment.
@VickyStash @TMisiukiewicz Yeah maybe something to follow up on
There was a problem hiding this comment.
@mountiny @BartekObudzinski should be back on Monday and can work on this follow-up
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-07-01.at.23.25.47.mov |
daledah
left a comment
There was a problem hiding this comment.
There's only one minor comment remaining. Other than that, the changes LGTM.
|
OOO until next week 👋 If anything comes up, I've asked the callstack team to keep an eye on things. Thanks! |
|
|
||
| ExpenseReportSearchView.displayName = 'ExpenseReportSearchView'; |
There was a problem hiding this comment.
| ExpenseReportSearchView.displayName = 'ExpenseReportSearchView'; |
# Conflicts: # src/components/Search/index.tsx
| ); | ||
| } else if (isExpenseReportType) { | ||
| searchListContent = ( | ||
| <ExpenseReportSearchView |
There was a problem hiding this comment.
@VickyStash @TMisiukiewicz Yeah maybe something to follow up on
|
✋ 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.4.27-1 🚀
|
|
🤖 Help site review: no docs changes required I reviewed the changes in this PR against Expensify's help site content under Conclusion: No help site updates are needed, so I did not create a draft docs PR. Why: This is a purely internal refactor. It adds a dedicated
If a user-visible change to the Search experience is intended (new labels, new grouping options, changed flows), let me know and I'll scope the specific articles that would need updating. |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.4.27-2 🚀
Bundle Size Analysis (Sentry): |




Explanation of Change
This adds a dedicated
ExpenseReportSearchViewfor the expense-report search type (the report view, no group-by), composing the shareduseSearchListViewStatehook andSearchListViewLayoutchrome overBaseSearchList(the same pattern asExpenseFlatSearchView). The router now dispatches the expense-report type to it instead of the legacySearchListshell.Reports render
ExpenseReportListItemrows. Selection is tracked at the child-transaction level (plus empty reports), so the selection counts flatten each report's transactions rather than counting the report rows. Report rows do not animate their exit (only grouped expenses do).Fixed Issues
$ #95033
Tests
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.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.2026-07-01.at.11.49.57.mov
Android: mWeb Chrome
iOS: Native
flow-1-chat.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-07-01.at.10.59.50.mov