Skip to content

Events page: per-row trend sparklines (#187)#252

Merged
unjica merged 1 commit into
developfrom
feature/events-row-sparklines-187
Jul 7, 2026
Merged

Events page: per-row trend sparklines (#187)#252
unjica merged 1 commit into
developfrom
feature/events-row-sparklines-187

Conversation

@unjica

@unjica unjica commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add batch fetchSparklinesForEventNames on grouped GET /api/events — one query for all visible event names, bucketed over the active metrics/list window (no N+1)
  • Wire Trend column with MiniSparkline in the grouped events table (mirrors errors Errors page: error types, stacked chart, and sparklines #182 pattern)
  • Unit tests for resolveEventSparklineWindow and sparkline serialization

Approach

Reuses errors sparkline infrastructure (chooseTimeRangeBucket, generateOverviewChartBuckets) but keys series by event name instead of error group id. Sparkline window follows resolveEventCountRangeBounds / metricsUntil enrichment — same window as in-range counts and summary KPIs.

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Bugbot review vs develop — no findings
  • Open Events page with default (all-time) range — Trend column shows 7-day sparklines per row
  • Switch to 24h / 7d / custom range — sparklines rescope to selected window
  • Apply app/environment/platform/release filters — sparklines respect filters
  • Verify empty/low-volume rows show em-dash placeholder

Closes #187

Follow-ups for #188

  • Auto-captured vs Custom badge taxonomy on event names (separate from sparklines; no API changes needed here)

Made with Cursor

Batch-fetch time-bucketed occurrence series per visible event name
using the metrics window, and render them in a new Trend column.

Co-authored-by: Cursor <cursoragent@cursor.com>
@unjica unjica merged commit 6257fe6 into develop Jul 7, 2026
3 checks passed
@unjica unjica deleted the feature/events-row-sparklines-187 branch July 7, 2026 19:48
@unjica unjica added this to the v1.5.0 — Analytics dashboard milestone Jul 7, 2026
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