feat(web): scroll-revealed timeline axis overlay #1390
Loading…
Reference in a new issue
No description provided.
Delete branch "ui/timeline-axis-overlay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
pr-16 sm:pr-24gutter removed from the timeline section, OnThisDay carousel and AppShell desktop controls row — photos use full width.prefers-reduced-motionaware) after 1.8s idle. Hover / keyboard focus / drag on the rail reveal and hold it.timelineAxisMomentum.ts+ 10 unit tests covering notch-vs-flick, drift, jump classification and window boundaries.Testing
npm run check: 0 errors (20 pre-existing unrelated warnings)npm run test:unit: 331 passed (43 files), incl. 10 newtimelineAxisMomentum.spec.tstestsThe axis overlay is hidden until meaningful scroll (aria-hidden + pointer-events-none), so both scroll-stability tests timed out resolving getByRole('scrollbar'). Reveal it the way a user does: two 400px wheel notches 120ms apart accumulate past the 320px reveal threshold while staying under the >1200px programmatic-jump classifier, then wait with toBeVisible. A single wheel event cannot reveal the axis at all: the momentum accumulator adopts the first scroll observation as its baseline (a coalesced wheel produces exactly one scroll event), so the counted gesture starts with the second event. The jump specs assert unchanged scroll/pin behavior; only the reveal step is new. Extra day fetches triggered by the test-2 gesture drain through its existing pendingDayRequests poll.