mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
feat(reminders): preventive-care surface — wann, was, wo
Add the Vorsorge page and section: an upcoming-reminders list sorted by server-computed next-due, with a create form (measurement-linked or free-text, cadence, notify hour, location) and a per-card Erledigt and delete action. Cards stay neutral-coloured regardless of due state — the status reads through a discreet badge only, never an alarming tint. Copy ships in all six locales.
This commit is contained in:
1 parent
8058d81590
commit
c6045482c3
11 files changed
+826
No files matched your search
@@ -22,6 +22,7 @@ import { dashboardKeys } from "./dashboard";
|
||||
import { insightsKeys } from "./insights";
|
||||
import { integrationKeys } from "./integrations";
|
||||
import { measurementKeys } from "./measurements";
|
||||
import { measurementReminderKeys } from "./measurement-reminders";
|
||||
import { medicationKeys } from "./medications";
|
||||
import { moodKeys } from "./mood";
|
||||
import { settingsKeys } from "./settings";
|
||||
@@ -40,6 +41,7 @@ export const queryKeys = {
|
||||
...workoutKeys,
|
||||
...settingsKeys,
|
||||
...cycleKeys,
|
||||
...measurementReminderKeys,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Query keys — Vorsorge (measurement) reminders (v1.17.1).
|
||||
* Part of the centralized factory; aggregated in `./index.ts`.
|
||||
*/
|
||||
export const measurementReminderKeys = {
|
||||
/**
|
||||
* The owner's Vorsorge reminder list. A create / edit / delete / satisfy
|
||||
* mutation invalidates this root so the section + the dashboard tile
|
||||
* repaint in lockstep.
|
||||
*/
|
||||
measurementReminders: () => ["measurement-reminders"] as const,
|
||||
/** Mutation keys — kept in the factory so no bare array reaches a call site. */
|
||||
measurementReminderCreate: () =>
|
||||
["measurement-reminders", "create"] as const,
|
||||
measurementReminderUpdate: () =>
|
||||
["measurement-reminders", "update"] as const,
|
||||
measurementReminderDelete: () =>
|
||||
["measurement-reminders", "delete"] as const,
|
||||
measurementReminderSatisfy: () =>
|
||||
["measurement-reminders", "satisfy"] as const,
|
||||
};
|
||||
Reference in new issue
Block a user