Repository navigation
[Payment due @Krishna2323] Add paginated tag filters with server-side search - #99831
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2701438b95
ℹ️ 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".
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
|
⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai. |
| if (isOffline) { | ||
| // When offline, update the search query so TagSelector can filter cached results locally | ||
| setSearchTagFiltersPagination(false, '', query); | ||
| return; | ||
| } | ||
|
|
There was a problem hiding this comment.
NAB. can the offline branch of searchTags keep stateRef.current.hasMore and nextCursor instead of false, ''?
For this edge case:
Open the tag filter in a workspace with more than 200 tags, go offline, type a letter and clear it, then go back online: only the first 200 tags stay, with no scrolling for more until you close and reopen the filter.
There was a problem hiding this comment.
Updated, thanks
grgia
left a comment
There was a problem hiding this comment.
NAB, @ShridharGoel please let me know what you think about https://github.com/Expensify/App/pull/99831/changes#r4070255769
|
@ShridharGoel conflicts! |
Preserve hasMore and nextCursor so reconnect does not treat partial results as a complete cache.
…g-filters # Conflicts: # src/components/Search/FilterComponents/MultiSelect.tsx
|
reviewing |
|
A few comments @ShridharGoel then, this is looking good |
|
Lets |
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.4.92-0 🚀
|
|
🤖 Yes — help site changes are required. Draft PR created: Docs updates for E/A#99831 Tag filter pagination and server-side tag search What changed for membersThis PR changes three things a member can observe in the Tag filter on the Spend page, and none of them were documented:
Code evidence
What the docs PR doesOne file:
I checked every other help site article that mentions tags or filters. None of them describe how the Tag filter loads its options, so no other files needed changes. Labels and feature names (Spend, Filters, Tag, No tag, Workspace) were verified against @ShridharGoel, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
Deploy Blocker #102009 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.92-8 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Payment issue created: #102152 |
Explanation of Change
This PR makes the tag filter show all the available tags via scrolling and searching options. Earlier, tags filter showed only a limited set of tags initially and the user had to scroll in the expenses list to load more expenses, after which more tags showed up in the tags filter.
We are now using a light-weight collection for storing the tags for the filter.
How it works:
When the Tag filter shows:
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/657334
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests.
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
Screen.Recording.2026-08-30.at.8.48.20.PM.mov