Repository navigation
Release v1.5.7 — sessions summary KPIs (#189) - #263
Conversation
…-v1.5.6 Sync develop with main after v1.5.6
Expose GET /api/sessions/summary with bounce and crash-free metrics, prior-period compare, and sparklines; render the KPI row on the sessions dashboard. Co-authored-by: Cursor <[email protected]>
Scope crash-free checks to project via ErrorGroup, match bounce event counts per app, and align summary window resolution with open-ended list date filters. Co-authored-by: Cursor <[email protected]>
When the list filter has only an upper bound, KPI totals, prior-period compare, and sparklines now share the same bounded last-7-days window ending at until, matching events and errors summary behavior. Co-authored-by: Cursor <[email protected]>
GET /api/sessions now resolves started_at bounds via the same helper as /sessions/summary, so all-time and to-only filters show matching list totals and KPI counts. Co-authored-by: Cursor <[email protected]>
…ry-kpis-189 Sessions page summary KPIs (#189)
Co-authored-by: Cursor <[email protected]>
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 0ebfadd. Configure here.
| return Prisma.sql`COALESCE( | ||
| NULLIF(TRIM(COALESCE(${a}."user_id", '')), ''), | ||
| NULLIF(TRIM(COALESCE(${a}."anonymous_id", '')), '') | ||
| )`; |
There was a problem hiding this comment.
Users KPI omits session identity
Medium Severity
The sessions summary distinctUsers metric only counts identities from user_id and anonymous_id. Sessions with neither field set are excluded from COUNT(DISTINCT …), so the Users KPI can be far below total sessions even when each row represents a distinct visitor. Events summary in the same milestone falls back to session_id for the same class of metric.
Reviewed by Cursor Bugbot for commit 0ebfadd. Configure here.


Summary
Test plan
pnpm lint && pnpm test && pnpm buildmain→ Railway deployv1.5.7and publish GitHub releaseMade with Cursor