Skip to content

Keep Daily day transitions on the horizontal axis - #396

Merged
cameronapak merged 1 commit into
mainfrom
fix/daily-day-pill-animation
Oct 8, 2026
Merged

cameronapak merged 1 commit into
mainfrom
fix/daily-day-pill-animation

Conversation

@cameronapak

Copy link
Copy Markdown
Owner

Summary

Daily day switches keep the active pill inside the calendar strip and move it only on the horizontal axis, even when the outline is scrolled.

Changes

  1. Day transitions avoid scroll-sensitive shared-layout projection by handing the current horizontal offset to the destination pill.
  2. Async navigation is latest-wins and discards stale, cancelled, reduced-motion, and paged-away handoffs.
  3. The subheader opens at its natural measured height so day remounts do not collapse or bounce the calendar band.

Screenshots

Flow

flowchart LR
  A[Click day] --> B[Get or create day]
  B --> C[Guard latest request]
  C --> D[Measure painted x delta]
  D --> E[Open destination]
  E --> F[Run x-only tween]
  F --> G[Clear on end or cancel]
Loading

Test plan

  • bunx playwright test e2e/week-calendar.spec.ts --workers=1 - 13 passed
  • bun run typecheck && bun run typecheck:test && bun run typecheck:worker
  • bun run lint && bun run fmt:check && bun run check:docs && git diff --check
  • bun run check:changeset

@pullfrog

pullfrog Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Pullfrog  | Review this ➔

@cameronapak
cameronapak merged commit aa1dc01 into main Oct 8, 2026
1 check passed
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