Skip to content

feat(tasks): add pomodoro to an existing task from the dialog - #31

Merged
MegaBadCoder merged 1 commit into
mainfrom
feat/add-pomodoro-to-existing-task
Aug 16, 2026
Merged

feat(tasks): add pomodoro to an existing task from the dialog#31
MegaBadCoder merged 1 commit into
mainfrom
feat/add-pomodoro-to-existing-task

Conversation

@MegaBadCoder

Copy link
Copy Markdown
Owner

Summary

  • Task detail shows a Помодоро switch even when the task has no config
  • On → PUT /tasks/:id/pomodoro-config (creates config; round count fits durationMinutes)
  • Off → DELETE the config
  • Dialog reads optimistic isPomodoroTask on selectedTask

Test plan

  • Open a non-pomodoro task → switch on → settings appear, timer play works
  • 60-minute task → 2×25 rounds
  • Task with no duration → 4×25
  • Switch off → pomodoro section collapses, badge gone from the list
  • Overdue task stays read-only (no switch)

Made with Cursor

The detail switch PUT/DELETEs pomodoro-config. Round count is chosen so
the computed total is closest to the task's durationMinutes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@MegaBadCoder
MegaBadCoder merged commit 973317d into main Aug 16, 2026
3 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.

1 participant