Skip to content

Six ordered gantt timeline views (−6w through +6w)#17

Merged
snktshrma merged 1 commit into
mainfrom
cursor/gantt-past-views-7dfd
Jun 23, 2026
Merged

Six ordered gantt timeline views (−6w through +6w)#17
snktshrma merged 1 commit into
mainfrom
cursor/gantt-past-views-7dfd

Conversation

@Tanops

@Tanops Tanops commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the old timeline zoom menu (D, 1W, 3W, 6W, ◀3W, ◀6M) with six views in the requested order. Also fixes a bug where the menu stayed stale when the preset count stayed at 6.

Zoom presets (in order)

  1. −6 weeks — last 6 weeks through today
  2. −3 weeks — last 3 weeks through today
  3. −2 wks to +3 wks — 2 weeks back through 3 weeks ahead
  4. +1 week — next week from today
  5. +3 weeks — next 3 weeks
  6. +6 weeks — next 6 weeks

Fixes

  • Zoom buttons rebuild when labels/ranges change (not only when count changes)
  • Vertical menu layout with readable labels instead of cryptic abbreviations

Test plan

  • npm run ci (46 tests)
  • Hard-refresh the app — timeline flyout shows the six new options in order
  • Each view shows the correct date window on the chart axis
  • Past views anchor today on the right; forward views anchor today on the left
Open in Web Open in Cursor 

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-23 15:22 UTC

@cursor cursor Bot changed the title Add last 3 weeks and last 6 months gantt zoom views Reorganize gantt zoom into six ordered timeline views Jun 23, 2026
@cursor cursor Bot changed the title Reorganize gantt zoom into six ordered timeline views Six ordered gantt timeline views (−6w through +6w) Jun 23, 2026
@snktshrma snktshrma marked this pull request as ready for review June 23, 2026 15:09
Add six zoom presets (last 6w, last 3w, 2w back/3w ahead, next week,
next 3w, next 6w) with dynamic gR0/gR1 range. Rebased onto main as a
single linear commit for clean GitHub rebase/merge.

Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
@cursor cursor Bot force-pushed the cursor/gantt-past-views-7dfd branch from 082afb0 to 41af9e1 Compare June 23, 2026 15:19
cursor Bot pushed a commit that referenced this pull request Jun 23, 2026
Drop settings (sun) and hide-sidebar controls, settings popover, floating
reopen button, and collapsible sidebar behavior. Includes gantt view
presets from PR #17. Rebased onto main as a single linear commit.

Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
@snktshrma snktshrma merged commit aa6139c into main Jun 23, 2026
2 checks passed
cursor Bot pushed a commit that referenced this pull request Jun 23, 2026
Drop settings (sun) and hide-sidebar controls, settings popover, floating
reopen button, and collapsible sidebar behavior. Includes gantt view
presets from PR #17. Rebased onto main as a single linear commit.

Co-authored-by: Sanket Sharma <sharma.sanket272@gmail.com>
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.

3 participants