Anniversary categories (wedding, jubilee, own) and month grouping

- Birthday becomes "anniversary" with a category: birthday, wedding
  anniversary (with Silver/Gold/... names), jubilee, memorial day
- Own categories: Settings > Categories (icon, color, text with {0}/{o})
- Sidebar "Categories" lists anniversaries across folders with counts
- Group by month (any view), groups fold with a click
- Folders named Hochzeit/Wedding migrate yearly tasks once
- Old files keep working (JSON "IsBirthday" maps to IsAnniversary)
- 74 tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-29 15:06:19 +01:00
parent bb6612420d
commit 00e9990feb
22 changed files with 1086 additions and 104 deletions

View File

@@ -14,13 +14,15 @@ namespace ReminderOrganizer
public ReminderTask TaskResult => _viewModel.TaskResult;
public TaskWindow(ReminderTask? existingTask, bool darkMode, bool defaultBirthday = false)
/// <param name="defaultCategory">Opens a new entry as anniversary of this category (null = appointment).</param>
public TaskWindow(ReminderTask? existingTask, bool darkMode,
System.Collections.Generic.IEnumerable<Category> categories, string? defaultCategory = null)
{
InitializeComponent();
Theme.Apply(Resources, darkMode);
var localizationService = (ILocalizationService)ServiceLocator.Services.GetService(typeof(ILocalizationService))!;
_viewModel = new TaskViewModel(localizationService, existingTask, defaultBirthday);
_viewModel = new TaskViewModel(localizationService, existingTask, defaultCategory, categories);
_viewModel.RequestClose += OnRequestClose;
DataContext = _viewModel;