Skip to content

Errors page summary KPIs, in-range counts, and release filter (#181)#235

Merged
unjica merged 4 commits into
developfrom
feature/errors-summary-kpis-181
Jul 7, 2026
Merged

Errors page summary KPIs, in-range counts, and release filter (#181)#235
unjica merged 4 commits into
developfrom
feature/errors-summary-kpis-181

Conversation

@unjica

@unjica unjica commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds GET /api/errors/summary with KPI metrics (total errors, affected users, error rate, unique/resolved groups) and prior-period comparison.
  • Scopes error list Count to occurrences_in_range (aligned with summary window when no explicit date range is set).
  • Adds Release filter to the errors list API and dashboard toolbar; filter options now union event and error-occurrence releases.
  • Renders a summary KPI row on /dashboard/errors.

Fixes #181

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Open /dashboard/errors — KPI row shows with prior-period deltas
  • Change date range — summary and Count column update together
  • Filter by release — list and summary both narrow
  • With no date range — summary shows "Last 7 days" and counts match that window

Made with Cursor

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>
Comment thread apps/api/src/lib/errors-page-summary.ts
Comment thread apps/api/src/lib/errors-page-summary.ts
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>
Comment thread apps/api/src/lib/errors-list-query.ts Outdated
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread apps/dashboard/app/dashboard/errors/page.tsx
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>
@unjica unjica merged commit 7808f78 into develop Jul 7, 2026
3 checks passed
@unjica unjica deleted the feature/errors-summary-kpis-181 branch July 7, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant