Files
agendula/app
Jean-Luc Makiolaandmakiolaj 4cd9e397cd
Beta — Codeberg pre-release / detect (push) Successful in 8s
Beta — Codeberg pre-release / beta (push) Skipped
Moving a past start or due later brings its default reminders (#121) (#133)
A one-off task saved with a start of "now" (the "Default start to today" setting, or the picker's default time) leaves out the "at start" default, since it would ring at once. Moving that start later afterwards never brought it back: the task already had a start, so the edit didn't count as gaining one.

`StoredReminders.withDefaults` now also brings a date's defaults when that date moves and all of its defaults had already rung at the old date (checked with `ReminderPlanner.triggerAt`, so all-day dates go by their calendar day). Only when:
- the task is one-off and has reminders of its own, none from that date — a task with no reminders keeps following the planner's defaults, and one with reminders turned off stays off;
- the date really moved — flipping all-day on the same day doesn't count.

Applies to start and due alike. The editor passes the loaded all-day flag so a kind switch is told apart from a move.

Deviation from the issue: creating a task with a future start already took the start default (checked on the emulator); what the reporter hit is editing a task saved with a start of "now". Known trade-off: a reminder from a date removed by hand comes back if that date is moved after its default would have rung — stored data can't tell the two apart.

Closes #121

Co-authored-by: Jean-Luc Makiola <business@jeanlucmakiola.de>
Reviewed-on: https://codeberg.org/jlmakiola/agendula/pulls/133
2026-11-02 20:58:47 +01:00
..
2026-10-28 17:57:59 +01:00
2026-10-26 20:41:58 +01:00