Birthday entry type, relative dates, list/compact/cards views

- Task dialog: Appointment | Birthday switch. Birthday = name + "19.03." or
  "19.03.1986" (no time), live preview with weekday, age and days left
- Birthday folders open the birthday form; yearly tasks in such folders are
  migrated once
- Birthdays show "19. Maerz" instead of date + time; every task shows
  "in 15 days" / "3 days ago" (red when overdue)
- View switch: list, compact (one line), cards (calendar tiles), persisted
- ICS: birthdays as all-day events
- 59 tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-29 14:42:16 +01:00
parent 693d79019a
commit bb6612420d
28 changed files with 985 additions and 176 deletions

View File

@@ -14,13 +14,13 @@ namespace ReminderOrganizer
public ReminderTask TaskResult => _viewModel.TaskResult;
public TaskWindow(ReminderTask? existingTask, bool darkMode)
public TaskWindow(ReminderTask? existingTask, bool darkMode, bool defaultBirthday = false)
{
InitializeComponent();
Theme.Apply(Resources, darkMode);
var localizationService = (ILocalizationService)ServiceLocator.Services.GetService(typeof(ILocalizationService))!;
_viewModel = new TaskViewModel(localizationService, existingTask);
_viewModel = new TaskViewModel(localizationService, existingTask, defaultBirthday);
_viewModel.RequestClose += OnRequestClose;
DataContext = _viewModel;