Skip to content

Gantt timeline views (1W/3W/6W) and week navigation#5

Draft
Tanops wants to merge 2 commits into
mainfrom
cursor/gantt-timeline-views-nav-2073
Draft

Gantt timeline views (1W/3W/6W) and week navigation#5
Tanops wants to merge 2 commits into
mainfrom
cursor/gantt-timeline-views-nav-2073

Conversation

@Tanops

@Tanops Tanops commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds three distinct Gantt timeline view ranges and arrow-based week navigation.

Changes

  • View options: Replaced the previous Day/Week/3W/6W zoom presets with three week-based views only — 1 week, 3 weeks, and 6 weeks (default: 3 weeks). Controls are in the existing timeline flyout (1W / 3W / 6W buttons).
  • Extended timeline: The scrollable chart now includes 42 days of history before today, so users can navigate into past weeks.
  • Week navigation: Added ‹ / › arrow buttons at the bottom of the chart that pan the timeline one week at a time while keeping the current view range (e.g. staying in 3-week view while moving forward/backward).

Implementation notes

  • navTimeline(dir) scrolls by anchoring on the day nearest the left viewport edge and shifting ±7 days, clamped to the timeline bounds.
  • Scroll position is preserved across re-renders; initial load positions today at the left edge.
  • Navigation arrows are fixed over the chart (outside the horizontal scroller) so they stay visible while the grid moves.

Testing

  • npm test — all 26 tests pass
Open in Web Open in Cursor 

cursoragent and others added 2 commits July 7, 2026 13:40
- Replace Day/Week zoom presets with three week-based views: 1, 3, and 6 weeks
- Extend the scrollable timeline 42 days into the past so users can navigate backward
- Add left/right arrow controls that pan one week at a time without changing the view range
- Default to the 3-week view; preserve scroll position across re-renders

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Co-authored-by: Tanops <Tanops@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://Summon-RnD.github.io/task-manager/pr-preview/pr-5/

Built to branch gh-pages at 2026-07-07 13:41 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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