Skip to content

Align dashboard trend dates with Vercel - #30

Merged
thebuilder merged 2 commits into
mainfrom
feat/vercel-date-range-parity
Jul 20, 2026
Merged

Align dashboard trend dates with Vercel#30
thebuilder merged 2 commits into
mainfrom
feat/vercel-date-range-parity

Conversation

@thebuilder

@thebuilder thebuilder commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • preserve Vercel-style rolling hour boundaries for multi-day presets instead of expanding them to local midnights
  • use daily granularity for 7-day trends while keeping Last 24 hours hourly
  • restore rolling preset URLs without changing their instants
  • reject invalid URL timezones instead of crashing the dashboard

Known API limitation

The public aggregate endpoint has no timezone parameter, so daily values are UTC-bucketed and may differ from Vercel's private timezone-aware dashboard. The requested Jul 13 through Jul 20 window is still sent unchanged and returns eight supported-API date buckets; no points are hidden or relabelled.

Verification

  • corepack pnpm --dir src/TheBuilder.WebAnalytics/Client test (136 passed)
  • corepack pnpm --dir src/TheBuilder.WebAnalytics/Client check
  • corepack pnpm --dir src/TheBuilder.WebAnalytics/Client build
  • rtk dotnet test tests/TheBuilder.WebAnalytics.Tests/TheBuilder.WebAnalytics.Tests.csproj '-p:UmbracoVersion=18.*' (163 passed)

Expand multi-day presets to the local calendar days touched by the rolling selection and use daily trend buckets for short multi-day ranges. Canonicalize existing shared URLs and keep the date picker end date inclusive.
Keep multi-day presets on the client-local hour boundaries Vercel requests while using daily trend granularity. Add frontend and upstream-query regressions for the Jul 13 through Jul 20 window.
@thebuilder thebuilder changed the title Align dashboard date ranges with Vercel Align dashboard trend dates with Vercel Jul 20, 2026
@thebuilder
thebuilder merged commit 41fee7b into main Jul 20, 2026
5 checks passed
@thebuilder
thebuilder deleted the feat/vercel-date-range-parity branch July 20, 2026 15:22
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.

1 participant