fix: Filters counter is displayed despite no filter being applied#81659
fix: Filters counter is displayed despite no filter being applied#81659jasperhuangg merged 5 commits intoExpensify:mainfrom
Conversation
|
@abzokhattab 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
App/src/components/Search/SearchPageHeader/SearchFiltersBar.tsx
Lines 768 to 770 in f2876e0
Because hasReportFields is computed from searchAdvancedFiltersForm, the report-field count still reflects unsaved edits even though the rest of the hidden filter logic now uses filterFormValues (applied query). This means a user can edit a report-field filter in Advanced Filters and back out without saving, yet the Filters counter still appears—contradicting the intended behavior of only showing counts for applied filters. Consider deriving hasReportFields from filterFormValues (or the query) so report-field changes only count after the search is applied.
ℹ️ 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".
|
Can you please check the ai comment .. i think its a valid point ... and lets fix the eslint pipleine @daledah |
|
@abzokhattab i updated |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-10.at.18.17.11.movAndroid: mWeb ChromeScreen.Recording.2026-02-10.at.18.26.57.moviOS: HybridAppScreen.Recording.2026-02-10.at.18.17.11.moviOS: mWeb SafariScreen.Recording.2026-02-10.at.18.26.57.movMacOS: Chrome / SafariScreen.Recording.2026-02-10.at.18.14.38.mov |
|
@jasperhuangg this PR is ready for merge |
jasperhuangg
left a comment
There was a problem hiding this comment.
@heyjennahay all yours for the product review, thanks!
|
Can you please take a look at this when you have a moment @heyjennahay |
|
@Expensify/product-pr can anyone take over on this review? |
There was a problem hiding this comment.
Thanks for the bump @jasperhuangg and @abzokhattab
Bug fix, no product review required
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @jasperhuangg 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/jasperhuangg in version: 9.3.23-2 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.23-3 🚀
|
Explanation of Change
Fixed Issues
$ #79857
PROPOSAL: #79857 (comment)
Tests
Offline tests
Same as tests
QA Steps
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.mov
Android: mWeb Chrome
android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-10.at.01.34.23.mov