Repository navigation
[Payment due @Krishna2323] Add paginated tag filters with server-side search #99831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JS00001
merged 67 commits into
Expensify:main
from
ShridharGoel:shridhar/paginated-tag-filters
Sep 22, 2026
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
e5d2738
Add paginated tag filters with server-side search
ShridharGoel a847be2
Remove client-side sorting to fix infinite scroll UX
ShridharGoel b6af9ac
Show cached tags immediately, fetch fresh data in background
ShridharGoel 8c29130
Fix cached data check to avoid loading spinner on remount
ShridharGoel 16b5724
Persist tag filter pagination state in Onyx
ShridharGoel bb0eef2
Show Tag filter when tags are enabled for any policy
ShridharGoel e3419f6
Update tag filter visibility tests
ShridharGoel d0c95ca
Reset pagination state immediately when search query changes
ShridharGoel 0bb24a1
fix: prevent focus loss when searching tags
ShridharGoel 7c90110
Return hasCachedData from hook and register RAM-only pagination key
ShridharGoel a8d1d4d
Bucket new Onyx keys for state export and drop unused type export
ShridharGoel 2701438
Remove unused policyID prop from TagSelector
ShridharGoel 57d968c
Always fetch tag filters on open instead of skipping when cache exists
ShridharGoel 92a8e50
Keep paginated tag filter selections when validating the filter form
ShridharGoel f1962c6
Log tag filter request failures instead of leaving unhandled rejections
ShridharGoel 5243195
Keep the confirm footer visible while loading more tag filter pages
ShridharGoel b44ed4c
Trigger server-side tag search from the text change handler instead o…
ShridharGoel 492bd05
Drop redundant useMemo around tag items now that React Compiler memoi…
ShridharGoel 45dc453
Cancel in-flight tag filter requests when a new search supersedes them
ShridharGoel a0987be
Remove unused policyID param from useAdvancedSearchFilters
ShridharGoel 2dde80a
Update useAdvancedSearchFilters tests for single-arg signature
ShridharGoel 9801a6e
Show full-list spinner only on initial tag filter load
ShridharGoel d283f3d
Track completed tag search with state instead of ref
ShridharGoel fc95bd0
use boolean coercion for tag filter visibility
ShridharGoel 8d783d2
drop noop fallback for debounced search callback
ShridharGoel a01882f
remove redundant useCallback and rename search to searchTags
ShridharGoel 71ee4be
Type OpenSearchTagFiltersPage response locally instead of on shared R…
ShridharGoel 320250e
Scope the tag filter search to the selected workspaces
ShridharGoel efe3a65
Hide the empty-tag option when it does not match the tag search
ShridharGoel 2e3ec4e
Keep selected tags visible when they are not in the current result page
ShridharGoel a6a26d1
Fix the MultiSelectItem import path
ShridharGoel 5e5c370
Merge remote-tracking branch 'origin/main' into shridhar/paginated-ta…
ShridharGoel 4cf871d
Keep search policy tags collection in memory only
ShridharGoel 4791524
Keep tag filter values without validating against incomplete local ta…
ShridharGoel b7a42d8
Fix tag order after clearing search
ShridharGoel fb027dc
Clear stale tag results on new search to prevent list reordering
ShridharGoel dae8d12
Show loading state instead of no results during tag search
ShridharGoel 1b726ac
Suppress no results message during tag search loading
ShridharGoel 26c2551
Show loading spinner during tag search when list is empty
ShridharGoel c9f17e4
Fix CI: remove unused var, defer effect setState, remove stale eslint…
ShridharGoel 099b4d9
Skip tag filter fetch while offline, refetch on reconnect
ShridharGoel 23ba088
Filter cached tags locally when offline
ShridharGoel ede8683
Fix typo: refetches to re-fetches
ShridharGoel a7f5227
Re-fetch active tag search query on reconnect
ShridharGoel af3206a
Center tag search spinner and use local filter when cache complete
ShridharGoel 9b3d8f0
fix(search): tag filter pagination and clear search
ShridharGoel 5fa117c
fix(search): tag filter review and search focus
ShridharGoel e448c84
fix(search): offline tag filter POLICY_TAGS fallback
ShridharGoel 0b0f1dc
Merge origin/main into shridhar/paginated-tag-filters
ShridharGoel 1e01b8b
Update useSearchTagFiltersTest.ts
ShridharGoel 806b91a
Update MultiSelect.tsx
ShridharGoel 9792771
Update useSearchTagFilters.ts
ShridharGoel c8d92db
Address review feedback for paginated tag filters
ShridharGoel 60dee31
Fix React Compiler ref error and spelling
ShridharGoel 8ae4c9c
Fix ESLint and React hooks in effect violations
ShridharGoel b036a00
feat: consume globally sorted tag filters from backend
ShridharGoel d24ad8d
Forward onEndReachedThreshold to tag MultiSelect
ShridharGoel 15f7a38
Append continuation tag filter slices in Onyx
ShridharGoel ed9b7f6
Merge origin/main into shridhar/paginated-tag-filters
ShridharGoel 04e9096
fix(search): resolve post-merge typecheck, jest, and knip failures
ShridharGoel 3c16ae6
refactor(search): pass tag filter results as param instead of Onyx.co…
ShridharGoel 8c76c79
fix(search): tolerate stale FlashList index in selection list keyExtr…
ShridharGoel 49ebc59
fix(search): reset page-loading state when a new tag search supersede…
ShridharGoel c314d38
fix(search): preserve tag pagination metadata offline
ShridharGoel 2eae746
Merge remote-tracking branch 'origin/main' into shridhar/paginated-ta…
ShridharGoel 8eb9d29
Update useSearchTagFiltersTest.ts
ShridharGoel a142284
Address review comments on tag filter search
ShridharGoel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.