Skip to content

Release v1.5.7 — sessions summary KPIs (#189) - #263

Merged
unjica merged 7 commits into
mainfrom
release/v1.5.7-changelog
Jul 7, 2026
Merged

unjica merged 7 commits into
mainfrom
release/v1.5.7-changelog

Conversation

@unjica

@unjica unjica commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Release v1.5.7 for the v1.5.0 analytics milestone
  • Ships sessions page summary KPIs with prior-period compare and sparklines (#262, #189)

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Merge to main → Railway deploy
  • Tag v1.5.7 and publish GitHub release
  • Update milestone and sync develop

Made with Cursor

unjica and others added 7 commits July 7, 2026 22:39
…-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]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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 0ebfadd. Configure here.

return Prisma.sql`COALESCE(
NULLIF(TRIM(COALESCE(${a}."user_id", '')), ''),
NULLIF(TRIM(COALESCE(${a}."anonymous_id", '')), '')
)`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0ebfadd. Configure here.

@unjica
unjica merged commit 4e85ed8 into main Jul 7, 2026
4 checks passed
@unjica
unjica deleted the release/v1.5.7-changelog branch July 7, 2026 21:06
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