Skip to content

fix: prompt to resume previous task when active task is deleted - #280

Merged
AdamJ merged 2 commits into
mainfrom
fix/resume-task-after-delete-active
Oct 21, 2026
Merged

AdamJ merged 2 commits into
mainfrom
fix/resume-task-after-delete-active

Conversation

@AdamJ

@AdamJ AdamJ commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Deleting the active task left the day with no running task and no way to resume the previous one.
  • handleDeleteTask in Index.tsx now shows a "Resume previous task?" prompt when the deleted task was active and an earlier task exists, offering Resume or Start New Task.
  • New context method reopenTask(taskId) clears a completed task's endTime/duration and makes it current again.

Test plan

  • Start day, add task A, start task B (A auto-closes), delete B → prompt appears, Resume reopens A as active with timer running
  • Same setup, choose "Start New Task" → no task active, Add Task flow available
  • Delete active task when it's the only task of the day → no prompt, falls through to empty-day picker
  • Delete a non-active (already completed) task → no prompt, unaffected

🤖 Generated with Claude Code

AdamJ and others added 2 commits October 21, 2026 10:42
Deleting the active task left no running task and no way to get the
previous one back. Index now shows a resume-or-start-new prompt when
the deleted task was active and an earlier task exists; resuming it
goes through new reopenTask, which clears endTime/duration and makes
it current again.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation frontend labels Oct 21, 2026
@AdamJ AdamJ self-assigned this Oct 21, 2026
@AdamJ AdamJ added this to Timetraked Oct 21, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Timetraked Oct 21, 2026
@AdamJ
AdamJ merged commit d816114 into main Oct 21, 2026
2 checks passed
@AdamJ
AdamJ deleted the fix/resume-task-after-delete-active branch October 21, 2026 14:44
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Timetraked Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation frontend

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant