Skip to content

feat(dashboard): Releases Health page — adoption and regressions (#453) - #568

Merged
unjica merged 16 commits into
developfrom
feat/453-releases-health
Jul 18, 2026
Merged

unjica merged 16 commits into
developfrom
feat/453-releases-health

Conversation

@unjica

@unjica unjica commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Implements Dashboard: Releases Health page — adoption and regression across versions #453 Release Health: GET /api/releases/summary aggregates sessions, active users, events, errors, adoption share, and error rate per release (including an explicit Unknown bucket).
  • Enables /dashboard/releases (nav + Quick Action), with environment/platform/date-range filters, sort by recency/adoption/errors/error rate, vs-previous-release deltas (Unknown excluded from comparison chain), and deep links to Issues/Events/Sessions.
  • Adds release=__unknown__ end-to-end (URL allow-list, list/overview filters with TRIM matching, Unknown option in release pickers) so deep links never rely on an empty release= param.

Test plan

  • Open /dashboard/releases — nav is enabled (not Coming soon)
  • With 2+ known releases in sample data, table shows KPIs + adoption shares; Unknown included in denominator
  • Release with events/errors but zero sessions shows 0% adoption and — error rate
  • Sort by recency / adoption / error count / error rate (no semver assumptions)
  • Known-release links open Issues/Events/Sessions with release= and other scope preserved
  • Unknown bucket links use release=__unknown__
  • Empty project shows empty state; API failure shows error state
  • pnpm lint && pnpm test && pnpm build (already green locally)

Closes #453

Made with Cursor

Add /api/releases/summary aggregation and enable the Releases nav surface so teams can compare adoption and regressions across versions, including an explicit Unknown bucket and deep links via release=__unknown__.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Dismissed
Comment thread apps/api/src/lib/release-key.ts Resolved
Comment thread apps/api/src/lib/release-key.ts Resolved
Treat null, blank/whitespace, and literal __unknown__ as Unknown in
isUnknownReleaseKey, SQL match/normalize, and Prisma where so Release
Health deep links stay consistent with Issues/Events/Sessions scopes.

Co-authored-by: Cursor <[email protected]>
Align Sessions/Overview `__unknown__` matching with Release Health so
sessions that resolve to a known release via events are not counted as Unknown.

Co-authored-by: Cursor <[email protected]>
Align Sessions/Overview release= event attribution with Release Health so
deep-link session counts match adoption KPIs when Session.release is blank.

Co-authored-by: Cursor <[email protected]>
unjica and others added 2 commits July 18, 2026 17:07
Sessions/Events/Issues/Performance now use a valid URL metricsUntil for open-ended KPI windows so deep links match the Releases table the user just viewed.

Co-authored-by: Cursor <[email protected]>
Unblocks the dashboard build after Release Health deep links pass metricsUntil into the errors page.

Co-authored-by: Cursor <[email protected]>
buildDashboardNavTabHref now reuses the scoped list allow-list so
range/from/to/metricsUntil survive Issues/Events/Sessions tab changes
after Release Health deep links.

Co-authored-by: Cursor <[email protected]>
Filter GET forms only forwarded range/from/to, so Apply after a Release
Health deep link dropped the KPI anchor and re-anchored windows to now.

Co-authored-by: Cursor <[email protected]>
When platform and release are both scoped, Sessions/Overview event-release
EXISTS clauses now constrain e.platform like Release Health, so deep-link
session counts match the Releases table across platforms.

Co-authored-by: Cursor <[email protected]>
unjica and others added 3 commits July 18, 2026 17:48
Prefer liveUrlParams for Issues detail metricsUntil, forward URL metricsUntil
into GET /api/overview for open-ended ranges, and style Releases vs-previous
deltas by semantic direction (higher sessions good; higher errors bad).

Co-authored-by: Cursor <[email protected]>
Write the SSR KPI anchor into the URL on open-ended ranges (and strip it on
bounded presets) so Overview/list nav, Apply, and issue detail links share the
same window instead of re-anchoring to now.

Co-authored-by: Cursor <[email protected]>
Use shared COALESCE(session, latest known event) matching so blank/sentinel
session releases and multi-release sessions deep-link consistently, and SQL
groupBy when Overview filters by release.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Resolved
unjica and others added 2 commits July 18, 2026 18:36
Load scoped occurrence ids via releaseFilterMatchSql (tenant-joined) so
release=__unknown__ includes null/blank rows matching detail KPIs.

Co-authored-by: Cursor <[email protected]>
Always query raw Events via buildEventWhereSql / releaseFilterMatchSql so
release=__unknown__ and TRIM matching match summary KPIs and Release Health.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/lib/overview-stats.ts Resolved
When release= is set, count distinct session identities using the same
COALESCE(session, latest known event) attribution as session KPIs and
Release Health so the two headline metrics stay in sync.

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 f429531. Configure here.

Comment thread apps/api/src/routes/api.ts Resolved
Open-ended Overview KPIs use metricsSince/metricsUntil, but active-issue
hrefs only passed range, so issue detail re-anchored to now (or the Issues
~7d path). Forward the exact window and honor it on GET /api/errors/:id.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 935355e into develop Jul 18, 2026
9 of 12 checks passed
@unjica
unjica deleted the feat/453-releases-health branch July 18, 2026 17:51
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.

Dashboard: Releases Health page — adoption and regression across versions

2 participants