Repository navigation
feat(settings): search and paging for every admin list - #42
Merged
Merged
Conversation
Connections, PHI rules and Users get an in-memory search box and 25-row pages (shared useListFilter hook). The audit log (live, archive and CSV export) and the AI chat log gain a server-side `q` text search with LIKE wildcards escaped, and the AI chat log pages like the audit log instead of loading 500 rows. Paging, Refresh and Export use the last search run, not unsubmitted text in the box.
|
🎉 This PR is included in version 2.9.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Search and pagination for every list in Settings.
q: user, action, SQL, connection, honoured by live, archive and CSV exportq: user, prompt, query, error, modelNotes
qis trimmed, capped at 200 chars, bound as a parameter;%,_and\are escaped (ESCAPE '\'), so they match literally. A repeated?q=is ignored, not a 500.AUDIT_EXPORTentry.useListFilterreplacesutils/user-search.ts. It resets to page 1 on a new search and clamps the page when the list shrinks.LIKE '%…%'is a table scan. That's fine at admin-only volume, and the audit log is archived after 30 days.Verified
npm run verify: 2,445 tests pass, coverage 100%, 0 lint errors.%/_literal), paging, CSV export withq, and every tab's search box in the browser.🤖 Generated with Claude Code