Snooze notifications, morning summary, ICS import, data folder sync

- Windows toast notifications with snooze (10 min / 1 h / tomorrow) and
  done buttons; balloon fallback; works when Windows starts the app
- Recurring entries snooze via SnoozedUntil without moving their date;
  lead reminders keep the real date
- Morning summary once a day from a chosen hour (pure DailySummary)
- iCalendar import incl. Google birthday calendar, folded lines, UTC,
  alarms, own export round trip, duplicates skipped by UID, undo
- Data folder selectable (location.json pointer), file watcher reloads
  changes from another PC (own writes ignored)
- Themed date picker calendar, WPF tray menu, arrow/Home/End/Space keys
- 90 tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-29 20:37:20 +01:00
parent 7486eebd67
commit 33459bdec7
18 changed files with 1300 additions and 61 deletions

View File

@@ -59,6 +59,33 @@ namespace ReminderOrganizer.Models
set { if (SetProperty(ref _recurrenceType, value)) OnPropertyChanged(nameof(AgeText)); }
}
private DateTime? _snoozedUntil;
/// <summary>Snoozed reminder for recurring entries (the real date stays unchanged).</summary>
public DateTime? SnoozedUntil
{
get => _snoozedUntil;
set => SetProperty(ref _snoozedUntil, value);
}
/// <summary>
/// "Remind me again later": one-off tasks move their date; recurring tasks and anniversaries keep their
/// date (it already moved to the next occurrence) and get an extra reminder at <c>now + delay</c>.
/// </summary>
/// <param name="keepDate">true for a lead ("in 2 days") reminder: the real date must not move.</param>
public void Snooze(DateTime until, bool keepDate = false)
{
if (IsRecurring || keepDate)
{
SnoozedUntil = until;
}
else
{
ReminderDate = until;
IsNotified = false;
IsPreNotified = true; // the lead reminder is long past
}
}
private int _leadDays;
/// <summary>Extra reminder this many days before the date (0 = none).</summary>
public int LeadDays
@@ -242,6 +269,13 @@ namespace ReminderOrganizer.Models
foreach (var task in folder.Tasks)
{
if (task.IsNotified) continue;
// snoozed reminder of a recurring entry: fire once, keep the real date
if (task.SnoozedUntil is DateTime snoozed && snoozed <= now)
{
due.Add(new DueReminder(task, task.ReminderDate, false, task.UpcomingAge));
task.SnoozedUntil = null;
continue;
}
if (task.ReminderDate <= now)
{
due.Add(new DueReminder(task, task.ReminderDate, false, task.UpcomingAge));
@@ -344,6 +378,11 @@ namespace ReminderOrganizer.Models
public double? WindowHeight { get; set; }
public bool WindowMaximized { get; set; }
/// <summary>Morning summary: on/off, hour, last day it was shown.</summary>
public bool DailySummary { get; set; } = true;
public int SummaryHour { get; set; } = 8;
public DateTime? LastSummaryDate { get; set; }
/// <summary>"list", "compact" or "cards".</summary>
public string ViewMode { get; set; } = "list";
/// <summary>Group the list by month (collapsible).</summary>