feat: [Insights] [Release 1] Top Categories - Add a limit filter to search#80262
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49567cbb43
ℹ️ 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".
…ts-Release-1-Top-Categories-Add-a-limit-filter-to-search
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a794eadccd
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6e2ffc2e4
ℹ️ 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".
|
Do you all agree with the test steps? |
Thanks @tadu for the PR. To me, the mentioned test steps seems fine. @neil-marcellini @trjExpensify 80035-initial-observation-001.mp4 |
|
@neil-marcellini Should we show the expense count as 20 (the limit), and the total of those 20 expenses? Or not show the footer at all unless the user selects the expenses? |
|
The "fix" being to not show the footer when using limit on Reports > Expenses because we don't show it today be default when not using limit. |
|
@trjExpensify It gets shown today by default, which is being fixed in #79178. |
|
Would it be easier to fix it to compute properly so it respects the limit? |
It doesn't show though?
|
|
@trjExpensify Oh yes, it actually starts showing after you have atleast one saved search with a custom column. See the steps here: #78149 |
|
Right, so it doesn't show by default and it doesn't show when you change a couple of filters. It only shows if you save the search. Is that right? If so, then I think for now we don't show it here when limit filter is applied to an "unsaved" search. |
If you have atleast one saved search with a custom column, then the totals footer will always show on Reports > Expenses. It is an existing bug on prod.
Yeah, with the existing behaviour, it doesn't show the footer even for a search-with-limit if the user doesn't have a saved search with a custom column. |
Okay, then I think we're fine to not show it then? |
|
Given that it sounds like it's a fairly specific case when the total footer is shown, I don't think it needs to be a blocker. |
|
Great! Let's fix the conflicts and get it merrrrged! |
neil-marcellini
left a comment
There was a problem hiding this comment.
approved pending merge conflict resolution
…App into feat-Insights-Release-1-Top-Categories-Add-a-limit-filter-to-search
Reviewer Checklist
Screenshots/VideosiOS: HybridAppScreen.Recording.2026-01-27.at.9.23.32.AM.movMacOS: Chrome / SafariScreen.Recording.2026-01-27.at.9.12.50.AM.mov |
|
We don't get "Save search" option when only limit is applied (like |
|
I think you should be able to save the search with that filter like any other. It can be a follow-up if it isn't a quick fix here. |
@trjExpensify In other places like However, I also notice the following gaps when compared to the screenshot here. Seems minor and can be addressed here unless there is a rush to merge:
50262-web-chrome-001.mp4 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.3.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.10-6 🚀
|




Auth PR needs to come before we merge this: https://github.com/Expensify/Auth/pull/19297
Explanation of Change
This PR adds a
limitparameter to the search query language, enabling users to limit the number of results returned from a search query.Fixed Issues
$ #80035
PROPOSAL: #80035 (comment)
Tests
Tests
Precondition: Log in to the app and have some expenses/transactions in the account
Offline tests
Same as 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