Fix deploy blockers from filters after introducing Bottom Tab Navigator#89082
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@bernhardoj 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: 90f9d66449
ℹ️ 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".
| if (lastSyncedQuerySig === querySig) { | ||
| return; |
There was a problem hiding this comment.
Re-sync filters when form values change for same query
This guard skips all updates when the query signature is unchanged, but formValues can change independently of the URL because useFilterFormValues is derived from async Onyx data (personal details, reports, policy tags/categories) and buildFilterFormValuesFromQuery() filters against those collections. In cold-load/deeplink flows, the first sync can write an incomplete form; after those collections hydrate, this early return blocks the follow-up updateAdvancedFilters(..., true), leaving SEARCH_ADVANCED_FILTERS_FORM stale and causing active pills/advanced-filter values to remain missing until the URL query changes.
Useful? React with 👍 / 👎.
|
@borys3kk who should be reviewing the code on this? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-04-28.16.56.01.movAndroid: mWeb Chrome2026-04-28.16.57.23.moviOS: HybridApp2026-04-28.16.56.01.moviOS: mWeb Safari2026-04-28.16.57.23.movMacOS: Chrome / Safari2026-04-28.16.50.31.mov2026-04-28.16.51.55.mov2026-04-28.16.53.07.mov |
…ter-pills-problems Fix deploy blockers from filters after introducing Bottom Tab Navigator (cherry picked from commit 5dbc329) (cherry-picked to staging by arosiclair)
|
✋ 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 to staging by https://github.com/arosiclair in version: 9.3.64-9 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a bug fix for filter pill display (race condition in |
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.64-10 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Fixes the first Search filter pill missing after Advanced Filters → Save → View Results.
useSearchFilterSyncused a per-component ref so a remount (triggered bySearchActionsBarSwitchflipping duringstartTransition) reset the guard and clobbered freshOnyx.mergewrites with stale URL values. Moved the guard to a module-levellastSyncedQuerySigthat survives remounts.Fixed Issues
$ #88946 (Android & iOS - Spend - Date quick filter is missing when Date filter is applied)
$ #89013 (Filters-Filter chip is still shown in Spend after tapping Reset filters)
$ #89055 (iOS - Spend - The withdrawn filter pill does't appear when selecting the first option)
PROPOSAL:
Tests
$ #88946 and $ #89055
$ #89013
Prerequisite: above test steps should be done (or any other "Expenses"/advanced filters are applied)
Offline tests
QA Steps
Same as tests.
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-native-pills.mov
iOS: mWeb Safari
Screen.Recording.2026-04-28.at.13.34.23.mov
MacOS: Chrome / Safari
Screen.Recording.2026-04-28.at.13.35.16.mov