Skip to content

feat: add postpone button for overdue one-time tasks#126

Open
syyam wants to merge 1 commit into
vishal2376:masterfrom
syyam:feature/postpone-task
Open

feat: add postpone button for overdue one-time tasks#126
syyam wants to merge 1 commit into
vishal2376:masterfrom
syyam:feature/postpone-task

Conversation

@syyam

@syyam syyam commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Closes #91

Overdue one-time tasks now show a postpone button (↺ icon) alongside the existing delete button. Tapping it:

  • Moves the task to today if it was in the past
  • Moves the task to tomorrow if it is already scheduled for today

Repeated tasks are excluded — they manage their own occurrence schedule and should not be rescheduled this way. Completed tasks also hide the button since there is nothing to postpone.

Changes

File Change
TaskListAction.kt Added PostponeTask(taskId: Int)
TaskListViewModel.kt Handler updates task.date; skips repeated tasks
TaskComponent.kt Renders the postpone IconButton for eligible tasks
HomeScreen.kt Passes onPostpone lambda; shows "Task postponed" snackbar
strings.xml Added postpone_task string

Test plan

  • An overdue task shows postpone + delete buttons
  • Tapping postpone moves the task to today (or tomorrow if today's)
  • Snackbar confirms the action
  • Repeated tasks show no postpone button
  • Completed tasks show no postpone button

Overdue one-time tasks now show a postpone button next to the existing
delete button. Tapping it reschedules the task to today if it was
in the past, or to tomorrow if it is already due today. Repeated tasks
are excluded since they manage their own occurrence schedule.

Closes vishal2376#91
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.

Option to postpone the task

1 participant