Overview: KPI compare, sparklines, and latency (#183)#272
Merged
Conversation
Align the overview page with the v1.5.0 dashboard mockup by exposing compare sparklines, optional Node $request latency/Apdex, and a top-errors / recent-sessions grid. Co-authored-by: Cursor <cursoragent@cursor.com>
Apply started_at and event created_at upper bounds so sessions outside the metrics window no longer appear in sparklines and volume charts. Co-authored-by: Cursor <cursoragent@cursor.com>
Add metricsTopErrorGroups so the grid matches recent sessions when the time picker is unselected, while paginated error lists keep the list window. Co-authored-by: Cursor <cursoragent@cursor.com>
Rank top errors by in-window occurrence counts and bound environment-filtered session totals to the same started_at and event window as sparklines. Co-authored-by: Cursor <cursoragent@cursor.com>
Bound environment-filtered session EXISTS to the metrics window and omit Apdex sparkline points when buckets have no request samples. Co-authored-by: Cursor <cursoragent@cursor.com>
Apply per-window environment/release EXISTS in summary scalars and sparklines so headline counts match filtered list totals. Co-authored-by: Cursor <cursoragent@cursor.com>
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 8970071. Configure here.
Skip compare deltas when the prior window has no timed $request rows and use null avg-response sparkline buckets instead of zero. Co-authored-by: Cursor <cursoragent@cursor.com>
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
$requestduration data existsGET /api/overviewwithkpiSparklines,requestMetrics, andrecentSessionsCloses #183
Test plan
pnpm lint && pnpm test && pnpm build/dashboard/overviewwith a project that has errors, events, and sessions — verify KPI sparklines and compare toggle$requestevents withduration_ms— verify avg response and Apdex KPIs appearMade with Cursor