Errors page summary KPIs, in-range counts, and release filter (#181)#235
Merged
Conversation
Closes the highest-impact data gap for the errors mockup by exposing /api/errors/summary, scoping list counts to the active window, and wiring KPI + release controls in the dashboard. Co-authored-by: Cursor <cursoragent@cursor.com>
Apply last_seen bounds to summary error groups so date-filtered lists match headline totals, and scope event counts to sessions with matching search hits when q is active so error rate stays consistent. Co-authored-by: Cursor <cursoragent@cursor.com>
When the aggregate join has no row for a listed group, Count should reflect windowed totals only—not fall back to lifetime occurrences. 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 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e3410ce. Configure here.
Pass metricsUntil from the dashboard when no date range is selected so parallel list and summary requests use the same 7-day bounds instead of independent new Date() anchors. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jul 7, 2026
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
GET /api/errors/summarywith KPI metrics (total errors, affected users, error rate, unique/resolved groups) and prior-period comparison.occurrences_in_range(aligned with summary window when no explicit date range is set)./dashboard/errors.Fixes #181
Test plan
pnpm lint && pnpm test && pnpm build/dashboard/errors— KPI row shows with prior-period deltasMade with Cursor