Skip to content

Dashboard/API: platform filter for Errors and Overview #445

Closed

Description

@unjica

Summary

Sessions, Events, and Performance already accept and filter by platform (e.g. ios / android / web from React Native SDK init). Errors and Overview do not expose platform, even though clients send it on /ingest/error payloads.

RN / multi-platform apps (e.g. Besedolov) need to filter crash volume by OS without mirroring platform on every event property.

Problem

  1. Errors ingest drops platform — errorSchema accepts it, but create paths never write it; ErrorGroup / ErrorOccurrence have no platform column.
  2. Errors toolbar has env / release / status / search only — no Platform control (unlike Sessions / Events / Performance).
  3. Overview has no platform scope filter.

Deliverables

API / DB

  • Add platform to ErrorOccurrence (source of truth per crash) and optionally denormalize latest/first on ErrorGroup for list/sort consistency with environment / release
  • Persist body.platform from /ingest/error
  • Accept ?platform= on errors list / summary / analytics (exact match, same as events/sessions)
  • Include error-occurrence (or group) platforms in GET /api/filter-options where errors contribute options

Dashboard

  • Add Platform filter to ErrorsListToolbar + wire errors/page.tsx query params
  • Add Platform filter to Overview (toolbar + overview API query), mirroring app/time-range scoping
  • Show platform on error detail / group meta when available

Docs

  • Note React Native should prefer ios / android / web (via Platform.OS) over a single react-native string for chart categories

Out of scope

  • Changing Sessions/Events/Performance (already work)
  • Requiring separate API keys per OS (optional ops approach already documented)

Files (starting points)

  • apps/api/prisma/schema.prisma — ErrorGroup / ErrorOccurrence
  • apps/api/src/routes/ingest.ts — error create
  • Errors list query / summary / analytics libs under apps/api/src/lib/
  • apps/dashboard/app/components/dashboard/ErrorsListToolbar.tsx
  • Overview page + API under apps/dashboard / apps/api

Base branch

develop

Acceptance

  • Ingest with platform: "ios" (etc.) stores the value on the error occurrence/group
  • Errors and Overview toolbars show a Platform dropdown populated from filter-options
  • Filtering by ios / android / web scopes lists and charts like Sessions/Events

Activity

  1. added
    enhancement
    dashboard
    api
    ux
    on Jul 15, 2026
  2. self-assigned this
    on Jul 15, 2026
  3. unjica commented on Jul 15, 2026

    @unjica
    CollaboratorAuthor

    Implemented in #458

  4. added a commit that references this issue on Jul 16, 2026
  5. unjica commented on Jul 16, 2026

    @unjica
    CollaboratorAuthor

    Shipped in #458 (v1.11.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apidashboardenhancementux

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions