Fix data loss risk, reminder bugs; theme, credits, tests
- Store tasks in %APPDATA% (single-file extract dir lost data on update),
atomic serialized saves, corrupt-file backup, migration of old tasks.json
- Reminders without description never showed (empty balloon text threw)
- Catch up missed reminders on start; monthly recurrence no longer drifts
- Task dialog: date pick kept 00:00, cancel leaked recurrence changes
- CSV import understands quoted fields written by export
- Confirm before deleting; name folders on create; tasks sorted by date
- Single instance, autostart starts hidden in tray, tray icon disposed
- Theme helper for all dialogs, MDL2/Path icons instead of emojis,
fixed folder selection/badge, localized counts and messages
- Credits (c) Michael Media + Discord link, exe Company/Copyright
- Locales embedded; xUnit tests (24); README, CLAUDE.md, sprite-generator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:08:53 +01:00
|
|
|
|
# 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).
|
2026-11-29 15:06:19 +01:00
|
|
|
|
- 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).
|
Professional redesign: native window, settings, calmer UI
- WindowChrome: resizable, snap layouts, native shadow, DWM rounded
corners; size/position remembered; fade-in after load (no theme flash)
- Menu bar replaced by a settings window (theme system/light/dark,
language, sound, autostart, categories, data, shortcuts, about)
- Shared styles in Themes/Controls.xaml; neutral palette with one accent
applied to Application.Resources (context menus/tooltips themed)
- Rows: To-Do style check left, title + details, relative date right,
actions on hover, visible selection (Enter edits, Del deletes)
- No glow/scale effects; subtle animations (dialogs, snackbar, chevrons)
- Checking a recurring task moves it to the next date (with undo)
- Themed combo box, date picker, check box; neutral dialog headers
- New flat app icon (tools/make_icon.py)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:10:45 +01:00
|
|
|
|
- `Core/Theme.cs`: the only light/dark palette (neutral greys + one accent), applied to **Application.Resources**
|
|
|
|
|
|
(so context menus, tooltips and dialogs follow). Theme mode system/light/dark in settings.
|
|
|
|
|
|
- `Themes/Controls.xaml`: all shared styles (menus, tooltips, scrollbars, combo box, date picker, check box,
|
|
|
|
|
|
buttons `PrimaryButton`/`SubtleButton`/`IconButton`, `Segment`, `ToggleSwitch`, `DoneCheck`). Change looks here, not per window.
|
|
|
|
|
|
- `MainWindow.xaml`: `WindowChrome` (native resize/snap/shadow, DWM rounded corners), no menu bar: settings gear
|
|
|
|
|
|
→ `SettingsWindow`. Row actions appear on hover. Icons are Segoe Fluent/MDL2 glyphs or Path geometry, **no emojis**.
|
|
|
|
|
|
- Design rules: no glow, no scaling on hover, animations only 120–200 ms and only where they carry meaning
|
|
|
|
|
|
(dialog open, snackbar, group chevron, toggle knob, window fade-in).
|
Fix data loss risk, reminder bugs; theme, credits, tests
- Store tasks in %APPDATA% (single-file extract dir lost data on update),
atomic serialized saves, corrupt-file backup, migration of old tasks.json
- Reminders without description never showed (empty balloon text threw)
- Catch up missed reminders on start; monthly recurrence no longer drifts
- Task dialog: date pick kept 00:00, cancel leaked recurrence changes
- CSV import understands quoted fields written by export
- Confirm before deleting; name folders on create; tasks sorted by date
- Single instance, autostart starts hidden in tray, tray icon disposed
- Theme helper for all dialogs, MDL2/Path icons instead of emojis,
fixed folder selection/badge, localized counts and messages
- Credits (c) Michael Media + Discord link, exe Company/Copyright
- Locales embedded; xUnit tests (24); README, CLAUDE.md, sprite-generator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:08:53 +01:00
|
|
|
|
- `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
|
Professional redesign: native window, settings, calmer UI
- WindowChrome: resizable, snap layouts, native shadow, DWM rounded
corners; size/position remembered; fade-in after load (no theme flash)
- Menu bar replaced by a settings window (theme system/light/dark,
language, sound, autostart, categories, data, shortcuts, about)
- Shared styles in Themes/Controls.xaml; neutral palette with one accent
applied to Application.Resources (context menus/tooltips themed)
- Rows: To-Do style check left, title + details, relative date right,
actions on hover, visible selection (Enter edits, Del deletes)
- No glow/scale effects; subtle animations (dialogs, snackbar, chevrons)
- Checking a recurring task moves it to the next date (with undo)
- Themed combo box, date picker, check box; neutral dialog headers
- New flat app icon (tools/make_icon.py)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:10:45 +01:00
|
|
|
|
App icon is drawn, not generated: `py -3.12 tools\make_icon.py <out.png>` (rounded square + Fluent bell), then
|
|
|
|
|
|
save as `Assets\app.png` (256) and `Assets\app.ico` (16–256). Older ComfyUI notes below.
|
|
|
|
|
|
|
Fix data loss risk, reminder bugs; theme, credits, tests
- Store tasks in %APPDATA% (single-file extract dir lost data on update),
atomic serialized saves, corrupt-file backup, migration of old tasks.json
- Reminders without description never showed (empty balloon text threw)
- Catch up missed reminders on start; monthly recurrence no longer drifts
- Task dialog: date pick kept 00:00, cancel leaked recurrence changes
- CSV import understands quoted fields written by export
- Confirm before deleting; name folders on create; tasks sorted by date
- Single instance, autostart starts hidden in tray, tray icon disposed
- Theme helper for all dialogs, MDL2/Path icons instead of emojis,
fixed folder selection/badge, localized counts and messages
- Credits (c) Michael Media + Discord link, exe Company/Copyright
- Locales embedded; xUnit tests (24); README, CLAUDE.md, sprite-generator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:08:53 +01:00
|
|
|
|
`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.
|