Skip to content

Independent date editing for projects, tasks, and subtasks#16

Merged
snktshrma merged 12 commits into
mainfrom
cursor/task-subtask-priority-7dfd
Jun 23, 2026
Merged

Independent date editing for projects, tasks, and subtasks#16
snktshrma merged 12 commits into
mainfrom
cursor/task-subtask-priority-7dfd

Conversation

@Tanops

@Tanops Tanops commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Rolls back the sort-by-start-date and parent/subtask date coupling changes that were causing confusing behavior when editing dates manually.

Each project, task, and subtask now owns its own start and end dates. You can extend or shorten either date independently via the detail sheet, bar quick menu, or gantt resize handles.

Overdue and due-today bars now show their real start date through today (instead of collapsing to a fixed today box), so the left resize ear can change the start date on the chart.

What changed

  • Removed sort-by-start-date from bar menus and detail sheets
  • Removed automatic parent↔subtask date expand/clip when dates are edited
  • Removed syncTaskDates so changing start no longer forces end (and vice versa)
  • Fixed overdue/due-today gantt bars so left-edge drag updates the start date visually and in data
  • Kept parent task own size in detail sheet (not rolled up from subtasks)
  • Kept Save button on detail pop-ups
  • Kept Enter to add subtasks without clicking Add
  • Kept clickable project chart background to open project detail
  • Kept dragging a parent task bar (move, not resize) shifts the whole subtree together

Display behavior

  • Parent task bars use their own dates on the gantt (not rolled up from subtasks)
  • Projects still roll up dates across descendant leaves for the summary bar
  • Overdue / due-today open bars span from their start through today so resize ears are usable
  • Gantt left/right ear drags still keep start ≤ end during a drag; form edits are fully independent

Test plan

  • npm run ci (45 tests)
  • Drag left ear on overdue and due-today task bars to change start date
  • Edit start/end on project, task, and subtask via detail sheet — each field changes independently
  • Edit start/end via bar right-click menu
  • Resize gantt bars with left/right ears
  • Drag parent task bar — subtree moves together; resize parent — children unchanged
  • Save button, Enter-to-add-subtask, and project chart background click still work
Open in Web Open in Cursor 

Parent tasks now keep their own editable size instead of showing a
rolled-up subtask point total. Gantt spans use the task's own window
as the floor and only expand outward when subtasks fall outside it.
Changing a parent task's dates clips subtasks that exceed the new
bounds. Projects continue to roll up across all leaves.

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

github-actions Bot commented Jun 22, 2026

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

cursoragent and others added 10 commits June 22, 2026 16:24
Tasks with subtasks now always render using their own dates/size on the
gantt. Changing a subtask's dates no longer expands or shrinks the
parent bar. Parent resize only updates subtasks when the window
narrows (clip to explicit start/due), not when extending.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Subtasks are shortened to end on the parent task's due date when they
run past it, including on direct subtask edits and gantt drags. Parent
start changes no longer affect subtasks, and subtasks are never extended
when they already end before the parent.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Parent tasks now grow on the gantt (and update their stored start/due)
when a subtask is enlarged or moved outside the task window. The parent
never shrinks when subtasks move inward. Narrowing the parent due date
still clips subtasks that extend past it.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Bind the subtask input keydown handler after each detail render so Enter
reliably calls addChild, and refocus the input after adding for rapid entry.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Save flushes pending title, comment, and subtask input edits, persists to
the server, shows brief confirmation, and closes the sheet.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Each project row gets a light wash over its timeline span. Clicking empty
chart space inside that area opens the project detail sheet and focuses
the new-task input. Task bars and controls remain fully interactive.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Task row containers were intercepting clicks before they reached the project
background layer. Grow rows now pass through pointer events, the click
target spans the full project block, and project header clicks focus the
new-task input.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Projects and tasks now show a Sort by start date action at the bottom of
the quick bar menu. It reorders tasks and subtasks within the project by
effective start (explicit start, else due-derived), with undated items last.
Project summary bars also open the quick menu on right-click.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Places Sort by start date in the Tasks/Subtasks header row (as shown in
the design mockup) in addition to the bar quick menu. Refreshes the open
detail sheet after sorting.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
Roll back sort-by-start-date and automatic parent/subtask date
expand/clip behavior that fought manual edits. Each project, task,
and subtask now owns its start and end dates; only dragging a parent
bar still shifts the whole subtree. Also remove syncTaskDates so
start and end fields no longer snap together when edited separately.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
@cursor cursor Bot changed the title Prioritize parent task size and dates over subtasks Independent date editing for projects, tasks, and subtasks Jun 22, 2026
Stop collapsing late/today task bars to a fixed today box in barGeom.
Bars now render from their real start through today so the left resize
ear moves with the start date during gantt drags.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
@snktshrma
snktshrma marked this pull request as ready for review June 23, 2026 15:09
@snktshrma
snktshrma merged commit e7306b7 into main Jun 23, 2026
2 checks 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.

3 participants