Files
ReminderOrganizer/CLAUDE.md
Michi 00e9990feb 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>
2026-11-29 15:06:19 +01:00

2.2 KiB
Raw Blame History

ReminderOrganizer – notes for Claude

WPF (.NET 8, net8.0-windows10.0.19041.0), MVVM without a framework (Core/ViewModelBase, RelayCommand), services through ServiceLocator (Microsoft.Extensions.DependencyInjection).

Layout

  • Models/ReminderModels.cs: ReminderTask, Folder, AppData. The recurrence logic (GetNextOccurrence(now), ProcessDue) is pure and tested.
  • Services/: DataService (JSON in %APPDATA%, atomic + serialized), LocalizationService (Locales are EmbeddedResource Locales.<lang>.json), TaskCsv + Core/Csv (import/export), AutostartService (HKCU Run, "exe" --minimized), NotificationService (tray balloon).
  • Anniversaries: ReminderTask.IsAnniversary (stored as JSON "IsBirthday" for older files) + CategoryId → Models/Category.cs (presets birthday/wedding/jubilee/memorial + own ones, text with {0}/{o}). Filter/sort/group rules are in Core/TaskQuery.cs (pure, tested).
  • Core/Theme.cs: the only light/dark palette, used by MainWindow and the dialogs (Theme.Apply(Resources, dark)).
  • MainWindow.xaml: custom chrome (WindowStyle=None). Icons are Segoe MDL2 glyphs or Path geometry, no emojis (they don't follow the theme).
  • Tests/: xUnit project, excluded from the app csproj via Compile Remove.

Rules

  • Every new UI text goes in both Locales/en.json and de.json. The test All_keys_used_in_code_exist checks this.
  • Never write data next to the exe (single-file/Program Files) – always use DataService.DefaultDataDirectory. For screenshots/tests: set the environment variable REMINDER_ORGANIZER_DATA to a temp folder.
  • Credits: "© year Michael Media" + Discord link (sidebar footer, File menu, csproj Company/Copyright).
  • Run dotnet test Tests\ReminderOrganizer.Tests.csproj before each release. release.bat does this automatically.

Graphics

sprite-generator\ = ComfyGen template (_Tools\ComfyGen). App icon: gen generate icon → gen adopt --size 512 icon → convert Assets\Sprites\icon.png to Assets\app.ico (Pillow, sizes 16–256). The csproj and MainWindow pick up Assets\app.ico automatically (window, tray, exe). Without the file, the default icon is used.