Repository navigation
feat(dashboard): client-side list sort and pagination (#418) - #432
Merged
Merged
Conversation
Sort and page changes on sessions, errors, and events refetch table rows via SWR while keeping summary charts server-rendered and the URL as source of truth. Co-authored-by: Cursor <[email protected]>
Route client list fetches through a same-origin telemetry proxy so httpOnly session cookies authenticate, sync list state on browser back/forward, skip mount revalidation flash, and restore sessions filter submit. Co-authored-by: Cursor <[email protected]>
Include hidden sort/order fields in client-mode filter forms and show ErrorState when SWR refetches fail instead of stale rows. Co-authored-by: Cursor <[email protected]>
Client list refetches now stamp a fresh metricsUntil anchor for unselected time ranges, and ErrorState stays visible during SWR retries instead of showing stale rows. Co-authored-by: Cursor <[email protected]>
Restrict the client API proxy to a single safe path segment and preserve internal list params like metricsUntil and view when navigating with the browser back button. Co-authored-by: Cursor <[email protected]>
Reset listParams when initialListParams changes from a filter or time-range navigation, and base patchListQuery on the fresh server params instead of stale client state. Co-authored-by: Cursor <[email protected]>
…nges Merge live list params into toolbar navigation so pushState sort/page state survives pagination and time-range updates after client-side list changes. Co-authored-by: Cursor <[email protected]>
Preserve sessions chart page on bucket changes, skip duplicate history entries when sort is unchanged, and omit API-only params from client-side URL updates. Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d5ad0d1. Configure here.
Use liveUrlParams for event-name drill-down links so API-only keys stay out of shareable URLs, and show a refresh banner instead of replacing the table when SWR refetch fails with cached data. Co-authored-by: Cursor <[email protected]>
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.

Summary
history.replaceState.Test plan
pnpm lint && pnpm test && pnpm buildCloses #418
Made with Cursor