Skip to content

Dashboard: Compare periods and releases — explicit better/worse UX #495

Closed

Description

@unjica

Roadmap priority

5

Goal

Provide a dedicated period-comparison experience so developers can answer:

  • Is this better or worse than before?
  • Did the latest deployment improve application health?
  • Are sessions, errors, and adoption increasing or decreasing over time?

Comparisons must remain scoped to the currently selected project, environment, platform, and date range where applicable.

Examples

Time comparisons

Today vs Yesterday
Errors +35%
Sessions +12%
Users +48%
Events −15%

This week vs Last week
Error rate −65%
Sessions +240%
New errors −12

Release comparisons

Release v1.2.4 vs v1.2.3
Error rate −42%
Sessions +28%
Errors −65%
Adoption +35%

Current state

Supported time comparisons

The MVP supports:

Preset Current window Compare window
Today vs Yesterday Calendar today (project TZ or UTC — document in PR) Previous calendar day
This week vs Last week Current week Previous week of equal length
This month vs Last month Current month Previous month of equal length
Custom date-range User-selected range A Range B of equal duration (see Custom ranges)

Release comparisons

Release-vs-release comparisons build on Release Health (#453).

For MVP, release comparisons may compare:

Release comparisons are conceptually separate from time-based comparisons (do not mix “this week vs last week” with “v1.2.4 vs v1.2.3” in one control without clear mode switching).

Release identifiers are arbitrary application-defined strings — no semantic version parsing.

Comparison targets

The MVP supports comparisons for:

Surface Notes
Overview KPIs Expand / unify existing #183 compare UX
Errors Counts, new errors, error rate where defined
Events Counts and related summary KPIs
Sessions Counts, users, related summary KPIs
Releases Health KPIs from #453 (error rate, sessions, adoption, …)

Additional comparison targets may be added later.

Deliverables

Compare mode

  • Add an explicit compare mode to supported dashboard pages
  • Support predefined time comparisons (today / week / month)
  • Support custom date-range comparisons (equal duration only)
  • Support release-vs-previous-release mode where Dashboard: Releases Health page — adoption and regression across versions #453 data is available
  • Preserve existing project and filter scope when entering or switching compare mode

Comparison metrics

  • Show both absolute values and percentage (or pp) changes where applicable
  • Display increases and decreases consistently across all supported metrics (sign, color, arrows)
  • Handle zero-value comparisons gracefully (see Percentage change rules)
  • Clearly indicate when metrics are not comparable (show —, not fake zeros)

Navigation & scope

  • Preserve project, environment, platform, release, and date-range filters when switching comparison modes
  • Maintain compatibility with existing dashboard URLs where possible (document any new query params, e.g. compare=…, compareFrom / compareTo)

UX & quality

  • Loading, empty, and error states
  • Clear visual indicators for increases and decreases
  • Consistent formatting of percentages and metric deltas
  • API and dashboard test coverage for comparison calculations and edge cases

Custom ranges

For MVP, custom comparisons must use ranges of equal duration.

Example:

2026-07-01 → 2026-07-07
vs
2026-06-24 → 2026-06-30

Comparisons between arbitrary unequal durations (e.g. one day vs three months) are out of scope for the MVP.

Percentage change rules

Percentage changes must handle zero-value comparisons gracefully.

From → To Display
0 → 120 sessions New (or equivalent; never ÷0)
120 → 60 sessions −50%
12 → 24 errors +100%
0 → 0 — or 0% — pick one and document it
Missing / incomparable —

Division-by-zero must never be displayed.

Metrics that cannot be calculated reliably should display — rather than misleading values.

For rates already expressed as percentages (e.g. error rate), prefer percentage-point (pp) deltas when comparing rates, and % deltas when comparing absolute counts — stay consistent with Overview health copy where possible.

Technical notes

  • Reuse existing prior-window helpers from Overview / page summaries (compareLabel, equal-length windows) rather than inventing a second semantics.
  • Timezone for “today / yesterday / week / month” must be explicit in the PR (UTC vs project/org preference).
  • Ranking and formatting may improve later without changing the API contract for compare payloads.
  • Results remain scoped to the selected project / workspace (RBAC unchanged).

Related

Out of scope

  • AI-generated trend analysis
  • Predictive analytics
  • Arbitrary-duration comparisons (e.g. one day vs three months)
  • Semantic version parsing for releases
  • Saved comparison presets
  • Cross-project comparisons outside the current workspace selection

Base branch

develop

Suggested acceptance checks

  1. Today vs Yesterday, week vs week, and month vs month comparisons calculate correctly for equal-length windows.
  2. Custom date-range comparisons work only for equal-duration ranges (unequal ranges rejected or blocked in UI).
  3. Absolute values and percentage / pp changes display consistently across supported metrics.
  4. Zero-value comparisons never produce division-by-zero results (New / — as documented).
  5. Release comparisons integrate with Release Health (Dashboard: Releases Health page — adoption and regression across versions #453) previous-release semantics (no semver).
  6. Existing dashboard scope and filters are preserved when entering or switching compare mode.
  7. Empty and no-data states show appropriate messaging; incomparable metrics show —.
  8. Tests cover comparison calculations, zero-value handling, equal-duration enforcement, and scope preservation.

Activity

  1. added
    enhancement
    dashboard
    on Jul 17, 2026
  2. self-assigned this
    on Jul 17, 2026
  3. added
    api
    frontend
    backend
    priority:5
    on Jul 17, 2026
  4. changed the title [-]Compare periods: today/week/month vs previous (and custom ranges)[/-] [+]Dashboard: Compare periods and releases — explicit better/worse UX[/+] on Jul 17, 2026
  5. added a commit that references this issue on Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apibackenddashboardenhancementfrontendpriority:5

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions