Move Expense type filter up below Workspace in Expenses advanced filters - #97508
Conversation
Co-authored-by: Krishna <Krishna2323@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
There's nothing to fix in the code — every actual CI check is green. ✅ The only red check is
That check just verifies the human author has filled out the PR — the checklist boxes, the To turn it green: fill in the Tests + QA steps and tick the author-checklist boxes, then re-run the check. Status of every other checkAll non-checklist checks passed or were skipped, including: |
|
@MelvinBot mark everything in the checklist as done, I'll add everything in reviewer checklist. Also mark this PR ready for review. |
|
@Krishna2323 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] |
|
🤖 Done,
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_hybrid.mp4iOS: mWeb Safariios_mWeb.mp4 |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #97374 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 carlosmiceli 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/carlosmiceli in version: 9.4.47-0 🚀
|
|
🤖 Help site review: no docs changes required. This PR is a pure UI reordering — it moves the I reviewed the help site articles under Because no docs change is needed, I did not create a draft help site PR — so there's nothing for you to review on that front. If you believe an article should be updated, let me know which one and I'll draft it. |

Explanation of Change
In the Expenses tab advanced filters, the
Expense typefilter was buried far down the second section, making it hard to find even though it's commonly used. This movesExpense typeto the top of the second section — directly belowWorkspace, right after the first divider — so it's easy to reach.The order of the advanced-search filter rows is driven by the
typeFiltersKeysconstant insrc/hooks/useAdvancedSearchFilters.ts, where each inner array is a section separated by a divider. This change only reorders theEXPENSEdata type's keys (movingEXPENSE_TYPEto the first position of the second section); no other data type listsEXPENSE_TYPE, and the filter's label/logic references are position-independent, so nothing else is affected.Fixed Issues
$ #97374
PROPOSAL: #97374 (comment)
Tests
// TODO: The human co-author must fill out the tests before marking this PR "ready for review". Suggested steps:
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari