feat(timeline): start at today + infinite scroll into the past #65
Reference in New Issue
Block a user
Delete Branch "feature/timeline-past-scroll"
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?
Problem
The timeline had a hard left boundary — once scrolled to the initial left edge, you could not scroll further into the past. The only way to see earlier data was to click the "Previous 4 weeks" toolbar button repeatedly.
Changes
TimelineContext.tsxviewStartchanged fromtoday − 30 days→today(URL?startDate=override still respected)useEffectfallbackTimelineView.tsxhandleContainerScrollnow detects whenscrollLeft < CELL_WIDTH * 40and prepends 120 days to the canvas, mirroring the existing right-edge auto-expansionuseLayoutEffectkeyed onviewStartapplies the exact pixel compensation toscrollLeftin the same paint frame the canvas grows — no visual flashminDate = today − 1825 days): prevents unboundedviewDaysgrowthhandleNavigateToday: now resets totoday(matching the new default)handleNavigateBack: clamped atminDateResult
TimelineContext/TimelineView) now open with today at the left edge and allow smooth continuous scroll into history?startDate=work unchangedVerification
pnpm tsc --noEmit✅pnpm lint✅ (0 errors)/timeline, scroll left, canvas grows into the past without a jump🤖 Generated with Claude Code