Skip to content

feat: Compare periods and releases (#495) - #594

Merged
unjica merged 7 commits into
developfrom
feat/495-compare-periods
Jul 19, 2026
Merged

unjica merged 7 commits into
developfrom
feat/495-compare-periods

Conversation

@unjica

@unjica unjica commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Closes the compare-periods MVP for #495 (milestone v1.17.x — Performance Intelligence): shared UTC calendar presets (Today vs Yesterday / week / month), equal-duration custom ranges (compare / compareFrom / compareTo), and unified New / — delta formatting.
  • Adds a shared CompareModeControl on Overview, Errors, Events, and Sessions; API summary endpoints honor compare modes; Releases shows New for 0→N vs previous release (Dashboard: Releases Health page — adoption and regression across versions #453 semantics, no semver).
  • Timezone: calendar presets use UTC day / ISO-week / month boundaries (documented in compare-windows.ts and this PR).

Test plan

  • Overview: switch Today vs Yesterday / week / month and confirm KPI window + charts + deltas update together
  • Errors / Events / Sessions: compare control changes summary deltas; scope filters (app/env/platform/release) preserved
  • Custom: compare=custom without bounds falls back to prior period; with equal-duration compareFrom/compareTo compares correctly; unequal duration returns 400
  • Zero-baseline counts show New (not ÷0); incomparable rates show —
  • Releases row deltas show New / — / % / pp vs previous historical release
  • pnpm lint && pnpm test && pnpm build

Notes / follow-ups

  • Custom equal-range picker UI is still URL-param based (hint in the control); full date-range picker can land later.
  • List tables keep the page’s range/from/to filters when calendar compare overrides summary KPIs (intentional MVP: filters preserved; KPI strip follows compare mode).
  • Performance page summary API accepts compare params; dedicated control can be added with the same component later.

Closes #495

Made with Cursor

unjica and others added 2 commits July 19, 2026 04:23
Unify prior-period comparisons with calendar presets (UTC), equal-duration
custom ranges, and New/— delta formatting on Overview, Errors, Events,
Sessions, and Releases for v1.17 Performance Intelligence.

Co-authored-by: Cursor <[email protected]>
Address Bugbot findings: applySummaryCompare on all summary endpoints,
align Overview charts with calendar compare windows, and soft-fallback
incomplete custom compare ranges to the prior period.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Resolved
unjica and others added 2 commits July 19, 2026 11:23
Resolve CHANGELOG Unreleased conflict by keeping both compare-periods and milestone email entries.

Co-authored-by: Cursor <[email protected]>
Wire applySummaryCompare into errors/events/sessions analytics so charts match KPI compare windows, and pass the API compareLabel into OverviewMetricsSection.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Resolved
Expand errors summary/analytics filter.range to the compare window so list bounds cannot clip KPIs/charts, and forward metricsSince/Until on issue links for calendar compare modes.

Co-authored-by: Cursor <[email protected]>
Forward compare params on View all / list deep links, use metrics window only for KPI-aligned issue links, and keep paginated list drill-downs on the page range.

Co-authored-by: Cursor <[email protected]>
@unjica

unjica commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator Author

bugbot run

@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.

✅ Bugbot reviewed your changes and found no new issues!

2 issues from previous reviews remain unresolved.

Fix All in Cursor

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 8c8773e. Configure here.

…tats

Use each summary window's until as the compare anchor (not wall-clock now), and format overview stat-card deltas as New when rising from a zero baseline.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 7544f78 into develop Jul 19, 2026
8 of 9 checks passed
@unjica
unjica deleted the feat/495-compare-periods branch July 19, 2026 09:45
@unjica unjica mentioned this pull request Jul 19, 2026
2 of 7 tasks
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: Compare periods and releases — explicit better/worse UX

1 participant