Skip to content

feat: persist trace filters in URL search params#1079

Open
Harshith1702 wants to merge 1 commit into
BlazeUp-AI:mainfrom
Harshith1702:Harshith1702-patch-2
Open

feat: persist trace filters in URL search params#1079
Harshith1702 wants to merge 1 commit into
BlazeUp-AI:mainfrom
Harshith1702:Harshith1702-patch-2

Conversation

@Harshith1702
Copy link
Copy Markdown

Purpose / Description

Persists trace list filters (search, traceType, ide) in URL query params so filters survive page refreshes and shared links.

Fixes

Closes #874

Approach

  • Added useSearchParams and usePathname to hydrate filter state from URL params
  • Synced filter changes back to the URL using router.replace
  • Added debounced updates for the search input to avoid noisy URL updates while typing
  • Preserved existing filtering behavior while enabling shareable filtered views

How Has This Been Tested?

  • Verified filters persist after page refresh
  • Verified URLs like ?ide=cursor&traceType=mcp open the correctly filtered view
  • Verified search input updates URL without creating noisy history entries

Checklist

  • All commits are signed off (git commit -s) per the DCO
  • You have a descriptive commit message with a short title (first line, max 50 chars)
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (N/A - no visual UI changes)

Updated state initialization to use search parameters and added URL update functionality for filters.
@github-actions github-actions Bot added the new contributor Pull request from a first-time contributor label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new contributor Pull request from a first-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persist trace filters in URL search params

1 participant