Skip to content

fix(dashboard): sort timing phases chronologically in mapTimingPhases - #2988

Merged
mxkaske merged 2 commits into
openstatusHQ:mainfrom
shafiktanbir:patch-1
Oct 25, 2026
Merged

mxkaske merged 2 commits into
openstatusHQ:mainfrom
shafiktanbir:patch-1

Conversation

@shafiktanbir

@shafiktanbir shafiktanbir commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2987

In 6dd5c051 (#2980), mapLatency in apps/dashboard/src/data/metrics.client.ts was updated to sort Tinybird metric buckets chronologically (oldest -> newest) before mapping, while mapTimingPhases passed timestamp: metric.timestamp into ChartAreaTimingPhases without sorting.

This sorts [...(timingPhases.data ?? [])] ascending by new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime() in mapTimingPhases to match mapLatency.

ss
Image

@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown

@shafiktanbir is attempting to deploy a commit to the OpenStatus Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
vercel Bot temporarily deployed to Preview – openstatus-web October 24, 2026 19:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openstatus-status-page October 24, 2026 19:50 Inactive
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openstatus-dashboard Ready Ready Preview Oct 24, 2026 8:01pm UTC
2 Skipped Deployments
Project Deployment Actions Updated
openstatus-status-page Skipped Skipped Oct 24, 2026 8:01pm UTC
openstatus-web Skipped Skipped Oct 24, 2026 8:01pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – openstatus-web October 24, 2026 19:51 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openstatus-status-page October 24, 2026 19:51 Inactive

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 1 file

View guided diff | Re-trigger cubic

This branch was successfully deployed

1 active and 2 inactive deployments
Preview – openstatus-dashboard — 22a8391d Deployed Oct 24, 2026 by vercel[bot]
Preview – openstatus-status-page — 22a8391d Deployed Oct 24, 2026 by vercel[bot]
Preview – openstatus-web — 22a8391d Deployed Oct 24, 2026 by vercel[bot]
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: mapTimingPhases does not sort timing phase buckets chronologically (oldest -> newest)

2 participants