Conversation
|
@ZhenjaHorbach 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-06-22.16.24.17.movAndroid: mWeb Chrome2026-06-22.16.21.33.moviOS: HybridApp2026-06-22.16.24.17.moviOS: mWeb Safari2026-06-22.16.21.33.movMacOS: Chrome / Safari2026-06-22.16.20.09.mov |
|
🚧 @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.17-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. I reviewed the changes in this PR against the help site files under The changes touch only:
There is no change to user-facing behavior, UI, feature names, tab names, settings labels, or buttons — the search advanced filters (including the @TMisiukiewicz, let me know if you'd like me to take a closer look at any specific help article. |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀
|
Explanation of Change
useFilterFormValuesprecomputed all reports viareportsSelector, projecting every report down to{reportID}. For a 100k-report account this cost ~1.5s on every report-collection change: the selector ran an O(n) projection + allocation, and Onyx then deep-compared the projected map to decide on a re-render — two O(n) passes.The only downstream consumer of that data is
buildFilterFormValuesFromQuery'sin:filter, which does a keyed existence lookup (reports?.[key]?.reportID) for the handful of report IDs typed into the query. Onyx already holds the merged collection in memory, so the projection bought nothing.This PR drops the selector and subscribes to
ONYXKEYS.COLLECTION.REPORTdirectly, eliminating the ~1.5s. The hook now re-renders when reports change, but each re-render only walksflatFilters(cheap) and the hook is mounted in a single place (SearchAdvancedFiltersButton). The now-deadreportsSelectorfunction/export and its unit + perf tests were removed.Part of the 100k-reports performance work (no dedicated issue).
Fixed Issues
$ #94170
PROPOSAL:
Tests
No tests needed, pure refactor
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: mWeb Safari
MacOS: Chrome / Safari