mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
v0.5.4 PR #190 shipped the server cron, ledger, and APNs scaffolding for the daily mood reminder but no surface for the user to opt in, so the feature was dead code regardless of the locale, dispatcher, or APNs fixes. This commit adds: - `MoodReminderCard` in `/settings/notifications` — a single Switch row bound to `users.mood_reminder_enabled`, optimistic on toggle, with a localised toast on save success and an error message on failure. - `applyProfileUpdate` accepts and persists `moodReminderEnabled` through the existing `/api/auth/profile` PUT and `/api/user/profile` PATCH paths so both web and iOS clients share the same validation + audit envelope. - `GET /api/user/profile` now surfaces the current value so the Switch can render the right initial state without a separate endpoint. - Five-locale strings (de/en/es/fr/it/pl) under `notifications.moodReminder.*` for the card title, description, Switch aria label, on/off status text, and toast / error copy.