Skip to content

feat: platform/release filters and analytics gaps (#445–#457) - #458

Merged
unjica merged 22 commits into
developfrom
feature/445-457-platform-release-gaps
Jul 16, 2026
Merged

unjica merged 22 commits into
developfrom
feature/445-457-platform-release-gaps

Conversation

@unjica

@unjica unjica commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements issues #445–#452 and #454–#457 (skips #453 Releases page).

  • Persist platform on error groups/occurrences; Errors Platform filter
  • Persist Session environment + release; SDK sends release on sessions; filters prefer session columns
  • Overview Platform + Release scope filters
  • Table columns: Sessions Platform; Events Release + First seen; Errors Release / users / sessions affected
  • Error detail: sessions affected, fingerprint, trend sparkline, clickable session links
  • First/last seen scoped to release/platform filters
  • React Native docs: Platform.OS → ios/android/web + release / environment

Migration

pnpm --filter api exec prisma migrate deploy
  • 20260715220000_error_platform_session_env_release

Test plan

  • pnpm lint && pnpm --filter api test && pnpm --filter dashboard test && pnpm --filter api build && pnpm --filter dashboard build
  • Errors: filter by platform after ingest with platform: "ios"
  • Overview: Platform + Release selects scope KPIs
  • Sessions: Platform column; env/release filters use session fields
  • Error detail: sessions affected, fingerprint, sparkline, session link

Made with Cursor

Persist error platform and session environment/release; wire Errors and
Overview filters; expose list/detail columns, scoped first/last seen,
session links, and React Native docs for Platform.OS + release.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Resolved
Align session KPI window scope with session env/release columns, order
errors by scoped first/last seen when filtered, clear unused filterOptions
init, and rebuild telemetry-core dist for session release.

Co-authored-by: Cursor <[email protected]>
When both filters are set, require a single matching event (or both
session columns) instead of ANDing per-field EXISTS fallbacks.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Resolved
Comment thread apps/api/src/routes/api.ts Resolved
unjica and others added 8 commits July 16, 2026 01:10
Pass platform and release into overview timeseries, session duration, and unselected metrics window so charts match KPI filters.

Co-authored-by: Cursor <[email protected]>
Sessions pair used the unscoped fast path unless environment was set; active users omitted platform/release from event filters.

Co-authored-by: Cursor <[email protected]>
Pass platform/release into top-event metadata lookup, constrain error-group occurrence filters to the metrics window, and preserve scope on active-issue hrefs.

Co-authored-by: Cursor <[email protected]>
When platform or release filters are active, page and sort error groups by in-window occurrence aggregates instead of lifetime ErrorGroup fields.

Co-authored-by: Cursor <[email protected]>
Align platform/release Overview pagination with Issues membership so groups whose last_seen moved outside the window stay out of the list.

Co-authored-by: Cursor <[email protected]>
Platform/release Overview membership follows in-window matching occurrences so KPI and list totals stay aligned across platforms.

Co-authored-by: Cursor <[email protected]>
When platform or release is set, active incidents use in-window matching occurrences instead of fingerprint last_seen.

Co-authored-by: Cursor <[email protected]>
Require platform/release matches inside the time window for Errors list membership, and rank Active incidents by in-window scoped occurrence counts.

Co-authored-by: Cursor <[email protected]>
unjica and others added 2 commits July 16, 2026 01:48
Errors summary membership now requires platform/release matches inside the selected range instead of lifetime EXISTS plus last_seen.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/lib/errors-list-query.ts Resolved
When platform or release filters are active, derive scoped first/last seen from occurrences inside the selected window instead of all-time matches.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/lib/errors-list-query.ts Resolved
Comment thread apps/api/src/lib/errors-list-query.ts Resolved
Use occurrenceCountRange for platform/release membership when the list range is unbounded, drop lifetime first/last seen fallbacks, and keep those filters on the aggregate list path.

Co-authored-by: Cursor <[email protected]>
unjica and others added 4 commits July 16, 2026 02:24
Forward list scope into GET /errors/:id so first/last seen, impact, sparkline, and occurrences match Issues/Overview drill-down; preserve range on detail links and avoid lifetime first/last seen fallbacks.

Co-authored-by: Cursor <[email protected]>
Do not apply the Issues ~7d metrics window when drilling down from Overview with range=none, so scoped detail totals match the list row.

Co-authored-by: Cursor <[email protected]>
Pass metricsUntil from Issues list links so detail uses the ~7d metrics window; Overview range=none drills stay unbounded to match list totals.

Co-authored-by: Cursor <[email protected]>
When range=none drills have no metrics window, align the trend sparkline with Overview’s recent chart span instead of a fixed 24h fallback.

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

Comment thread apps/api/src/routes/api.ts Resolved
unjica and others added 3 commits July 16, 2026 12:04
When platform/release filters are active on an unselected Overview range, page error groups and active issues from the metrics window (~30d) instead of epoch→now so list counts match KPIs; Overview error detail uses the same ~30d span.

Co-authored-by: Cursor <[email protected]>
Use the same sampled metrics window as Overview KPIs for range=none/all drills, and pass app/environment through so the window stays in scope.

Co-authored-by: Cursor <[email protected]>
Scope Overview events pagination to the metrics window when platform/release is set, and include range/from/to on active-issue hrefs so error detail uses the same window as the cards.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit b794cff into develop Jul 16, 2026
5 of 6 checks passed
@unjica
unjica deleted the feature/445-457-platform-release-gaps branch July 16, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api API service (apps/api) dashboard Dashboard app (apps/dashboard) enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant