Skip to content

fix(web): sync calendar timezone hint before day redirect - #5235

Open
tyler-dane wants to merge 2 commits into
mainfrom
cursor/day-column-stress-hint-sync-0084
Open

tyler-dane wants to merge 2 commits into
mainfrom
cursor/day-column-stress-hint-sync-0084

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Shard 4 E2E: day view keeps calendar column labels clipped with many visible columns (expected 12 columns, got 1). Playwright uses timezoneId: UTC; stress fixtures use 12 Denver calendars with events on Denver civil today. Intermittent after #5229: passed on #5234 head 2ffa64f6d, failed on 4179b5b0f when UTC civil day is Nov 12 but events are Nov 11 Denver.

Root cause: redirectToToday / loadTodayData() ran with browser UTC before the calendar timezone hint applied (query fetch vs useLayoutEffect vs pressing d on week).

Fix: Sync pickCalendarTimeZoneHint when calendars resolve (calendarsQueryOptions) and again from TanStack cache inside loadTodayData() so /day redirects use Denver today.

Verify

Unit tests: syncCalendarTimeZoneHintFromCalendars, stress getDayViewCalendars mismatch cases, loadTodayData cached-hint boundary.

CI failure context: run 43170656067, job 131022930946, started 2026-11-12T06:48:06Z.

Note

#5232 macOS hint parity is separate; this PR is web-only for merge-queue shard 4.

Open in Web Open in Cursor 

@github-actions

Copy link
Copy Markdown
Contributor

Boot bundle: 576.8 KB gzip (+0.0 KB vs main)

cursoragent and others added 2 commits November 12, 2026 07:17
Apply the primary calendar zone as soon as the calendars query resolves so
redirectToToday uses Denver civil day before day view column picking runs.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Week stress E2E can press d before CalendarTimeZoneHintSync runs; syncing
from the calendars query cache in loadTodayData closes that race.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/day-column-stress-hint-sync-0084 branch from d56ae83 to ee44b96 Compare November 12, 2026 07:17

This branch has not been deployed

No deployments
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.

2 participants