feat: add prescription refills column to planner table and email (#207)

- Add 6th column 'Prescription refills' to frontend Planner table
- Add matching column to backend planner email (HTML + plaintext)
- Show remaining refills for meds with prescription tracking, '–' otherwise
- Add backend translations for new column header (EN + DE)
- Add frontend i18n keys for prescription refills column
- Update planner tests with medications table schema

Closes #203
This commit is contained in:
Daniel Volz
2026-02-14 20:21:09 +01:00
committed by GitHub
parent 6ff0ad2745
commit 150be1e114
6 changed files with 78 additions and 3 deletions
+6
View File
@@ -167,11 +167,13 @@ type TranslationKeys = {
medication: string;
usage: string;
needed: string;
prescriptionRefills: string;
available: string;
status: string;
};
statusEnough: string;
statusEmpty: string;
prescriptionNotApplicable: string;
};
// Common
common: {
@@ -286,11 +288,13 @@ const translations: Record<Language, TranslationKeys> = {
medication: "Medication",
usage: "Usage",
needed: "Blisters needed",
prescriptionRefills: "Prescription refills",
available: "Available",
status: "Status",
},
statusEnough: "✓ Enough",
statusEmpty: "✗ Empty",
prescriptionNotApplicable: "",
},
common: {
pill: "pill",
@@ -405,11 +409,13 @@ const translations: Record<Language, TranslationKeys> = {
medication: "Medikament",
usage: "Verbrauch",
needed: "Blister benötigt",
prescriptionRefills: "Rezept-Nachfüllungen",
available: "Verfügbar",
status: "Status",
},
statusEnough: "✓ Ausreichend",
statusEmpty: "✗ Leer",
prescriptionNotApplicable: "",
},
common: {
pill: "Tablette",