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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user