mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
feat(medications): promote the detail page to a tabbed shell
Make /medications/[id] the canonical full-page home for one medication: a Radix tab strip (Übersicht · Zeitplan · Erinnerung · Bestand · Verlauf · Injektion · Erweitert) with ?tab= URL state, a read-only hero, and a "Vollständig bearbeiten" jump into the wizard for structural edits. Everyday levers move inline into the tabs. Übersicht surfaces the adherence bars, Erinnerung owns notifications + reminder grace, Bestand reads the pen/vial inventory (all medications, calm empty state), Verlauf renders the editable intake history, and Injektion (injectable routes only) carries the existing GLP-1 charts + side-effect log. The ledger, the per-dose window editor and the injection body-map land in the following waves. The legacy /medications/[id]/history route now redirects to ?tab=verlauf for bookmarks and deep links. Tab labels are i18n across six locales.
This commit is contained in:
1 parent
6398cdece5
commit
ac39b9ca34
12 files changed
+986
-324
No files matched your search
@@ -1457,6 +1457,46 @@
|
||||
"back": "Zurück zum Medikament",
|
||||
"subtitle": "Vollständiger Einnahmeverlauf",
|
||||
"plannedSuffix": "geplant"
|
||||
},
|
||||
"tabs": {
|
||||
"uebersicht": "Übersicht",
|
||||
"zeitplan": "Zeitplan",
|
||||
"erinnerung": "Erinnerung",
|
||||
"bestand": "Bestand",
|
||||
"verlauf": "Verlauf",
|
||||
"injektion": "Injektion",
|
||||
"erweitert": "Erweitert"
|
||||
},
|
||||
"shell": {
|
||||
"fullEdit": "Vollständig bearbeiten",
|
||||
"loadFailed": "Dieses Medikament konnte nicht geladen werden.",
|
||||
"tablistLabel": "Medikamenten-Detailbereiche"
|
||||
},
|
||||
"uebersicht": {
|
||||
"complianceTitle": "Therapietreue",
|
||||
"complianceEmpty": "Noch keine Daten zur Therapietreue."
|
||||
},
|
||||
"bestand": {
|
||||
"title": "Bestand",
|
||||
"summary": "{remaining} von {total} Dosen übrig",
|
||||
"itemsTitle": "Pens / Ampullen",
|
||||
"doses": "{remaining} / {total} Dosen",
|
||||
"state": {
|
||||
"ACTIVE": "Ungeöffnet",
|
||||
"IN_USE": "In Gebrauch",
|
||||
"EXPIRED": "Abgelaufen",
|
||||
"USED_UP": "Aufgebraucht"
|
||||
},
|
||||
"empty": "Kein Bestand erfasst.",
|
||||
"emptyHelper": "Erfasse einen Pen oder eine Packung, um verbleibende Dosen und Reichweite zu verfolgen."
|
||||
},
|
||||
"erweitert": {
|
||||
"group": {
|
||||
"lifecycle": "Lebenszyklus",
|
||||
"externalApi": "Externe API",
|
||||
"data": "Daten",
|
||||
"danger": "Gefahrenzone"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logInjectionSiteTitle": "Injektionsstelle erfassen",
|
||||
|
||||
@@ -1457,6 +1457,46 @@
|
||||
"back": "Back to medication",
|
||||
"subtitle": "Full intake history",
|
||||
"plannedSuffix": "planned"
|
||||
},
|
||||
"tabs": {
|
||||
"uebersicht": "Overview",
|
||||
"zeitplan": "Schedule",
|
||||
"erinnerung": "Reminders",
|
||||
"bestand": "Supply",
|
||||
"verlauf": "History",
|
||||
"injektion": "Injection",
|
||||
"erweitert": "Advanced"
|
||||
},
|
||||
"shell": {
|
||||
"fullEdit": "Edit fully",
|
||||
"loadFailed": "This medication could not be loaded.",
|
||||
"tablistLabel": "Medication detail sections"
|
||||
},
|
||||
"uebersicht": {
|
||||
"complianceTitle": "Adherence",
|
||||
"complianceEmpty": "No adherence data yet."
|
||||
},
|
||||
"bestand": {
|
||||
"title": "Supply",
|
||||
"summary": "{remaining} of {total} doses remaining",
|
||||
"itemsTitle": "Pens / vials",
|
||||
"doses": "{remaining} / {total} doses",
|
||||
"state": {
|
||||
"ACTIVE": "Unopened",
|
||||
"IN_USE": "In use",
|
||||
"EXPIRED": "Expired",
|
||||
"USED_UP": "Used up"
|
||||
},
|
||||
"empty": "No supply recorded.",
|
||||
"emptyHelper": "Register a pen or pack to track doses remaining and weeks of supply."
|
||||
},
|
||||
"erweitert": {
|
||||
"group": {
|
||||
"lifecycle": "Lifecycle",
|
||||
"externalApi": "External API",
|
||||
"data": "Data",
|
||||
"danger": "Danger zone"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logInjectionSiteTitle": "Log injection site",
|
||||
|
||||
@@ -1457,6 +1457,46 @@
|
||||
"back": "Volver al medicamento",
|
||||
"subtitle": "Historial completo de tomas",
|
||||
"plannedSuffix": "planificado"
|
||||
},
|
||||
"tabs": {
|
||||
"uebersicht": "Resumen",
|
||||
"zeitplan": "Horario",
|
||||
"erinnerung": "Recordatorios",
|
||||
"bestand": "Existencias",
|
||||
"verlauf": "Historial",
|
||||
"injektion": "Inyección",
|
||||
"erweitert": "Avanzado"
|
||||
},
|
||||
"shell": {
|
||||
"fullEdit": "Editar por completo",
|
||||
"loadFailed": "No se pudo cargar este medicamento.",
|
||||
"tablistLabel": "Secciones de detalle del medicamento"
|
||||
},
|
||||
"uebersicht": {
|
||||
"complianceTitle": "Adherencia",
|
||||
"complianceEmpty": "Aún no hay datos de adherencia."
|
||||
},
|
||||
"bestand": {
|
||||
"title": "Existencias",
|
||||
"summary": "{remaining} de {total} dosis restantes",
|
||||
"itemsTitle": "Plumas / viales",
|
||||
"doses": "{remaining} / {total} dosis",
|
||||
"state": {
|
||||
"ACTIVE": "Sin abrir",
|
||||
"IN_USE": "En uso",
|
||||
"EXPIRED": "Caducado",
|
||||
"USED_UP": "Agotado"
|
||||
},
|
||||
"empty": "No hay existencias registradas.",
|
||||
"emptyHelper": "Registra una pluma o un paquete para hacer seguimiento de las dosis restantes y las semanas de suministro."
|
||||
},
|
||||
"erweitert": {
|
||||
"group": {
|
||||
"lifecycle": "Ciclo de vida",
|
||||
"externalApi": "API externa",
|
||||
"data": "Datos",
|
||||
"danger": "Zona de peligro"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logInjectionSiteTitle": "Registrar sitio de inyección",
|
||||
|
||||
@@ -1457,6 +1457,46 @@
|
||||
"back": "Retour au médicament",
|
||||
"subtitle": "Historique complet des prises",
|
||||
"plannedSuffix": "prévu"
|
||||
},
|
||||
"tabs": {
|
||||
"uebersicht": "Aperçu",
|
||||
"zeitplan": "Horaire",
|
||||
"erinnerung": "Rappels",
|
||||
"bestand": "Stock",
|
||||
"verlauf": "Historique",
|
||||
"injektion": "Injection",
|
||||
"erweitert": "Avancé"
|
||||
},
|
||||
"shell": {
|
||||
"fullEdit": "Modifier entièrement",
|
||||
"loadFailed": "Ce médicament n'a pas pu être chargé.",
|
||||
"tablistLabel": "Sections de détail du médicament"
|
||||
},
|
||||
"uebersicht": {
|
||||
"complianceTitle": "Observance",
|
||||
"complianceEmpty": "Aucune donnée d'observance pour l'instant."
|
||||
},
|
||||
"bestand": {
|
||||
"title": "Stock",
|
||||
"summary": "{remaining} doses restantes sur {total}",
|
||||
"itemsTitle": "Stylos / flacons",
|
||||
"doses": "{remaining} / {total} doses",
|
||||
"state": {
|
||||
"ACTIVE": "Non ouvert",
|
||||
"IN_USE": "En cours",
|
||||
"EXPIRED": "Expiré",
|
||||
"USED_UP": "Épuisé"
|
||||
},
|
||||
"empty": "Aucun stock enregistré.",
|
||||
"emptyHelper": "Enregistrez un stylo ou une boîte pour suivre les doses restantes et l'autonomie."
|
||||
},
|
||||
"erweitert": {
|
||||
"group": {
|
||||
"lifecycle": "Cycle de vie",
|
||||
"externalApi": "API externe",
|
||||
"data": "Données",
|
||||
"danger": "Zone de danger"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logInjectionSiteTitle": "Enregistrer le site d'injection",
|
||||
|
||||
@@ -1457,6 +1457,46 @@
|
||||
"back": "Torna al farmaco",
|
||||
"subtitle": "Cronologia completa delle assunzioni",
|
||||
"plannedSuffix": "pianificato"
|
||||
},
|
||||
"tabs": {
|
||||
"uebersicht": "Panoramica",
|
||||
"zeitplan": "Programma",
|
||||
"erinnerung": "Promemoria",
|
||||
"bestand": "Scorta",
|
||||
"verlauf": "Cronologia",
|
||||
"injektion": "Iniezione",
|
||||
"erweitert": "Avanzate"
|
||||
},
|
||||
"shell": {
|
||||
"fullEdit": "Modifica completa",
|
||||
"loadFailed": "Impossibile caricare questo farmaco.",
|
||||
"tablistLabel": "Sezioni di dettaglio del farmaco"
|
||||
},
|
||||
"uebersicht": {
|
||||
"complianceTitle": "Aderenza",
|
||||
"complianceEmpty": "Ancora nessun dato sull'aderenza."
|
||||
},
|
||||
"bestand": {
|
||||
"title": "Scorta",
|
||||
"summary": "{remaining} dosi rimanenti su {total}",
|
||||
"itemsTitle": "Penne / flaconi",
|
||||
"doses": "{remaining} / {total} dosi",
|
||||
"state": {
|
||||
"ACTIVE": "Non aperto",
|
||||
"IN_USE": "In uso",
|
||||
"EXPIRED": "Scaduto",
|
||||
"USED_UP": "Esaurito"
|
||||
},
|
||||
"empty": "Nessuna scorta registrata.",
|
||||
"emptyHelper": "Registra una penna o una confezione per monitorare le dosi rimanenti e l'autonomia."
|
||||
},
|
||||
"erweitert": {
|
||||
"group": {
|
||||
"lifecycle": "Ciclo di vita",
|
||||
"externalApi": "API esterna",
|
||||
"data": "Dati",
|
||||
"danger": "Zona pericolosa"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logInjectionSiteTitle": "Registra il sito di iniezione",
|
||||
|
||||
@@ -1457,6 +1457,46 @@
|
||||
"back": "Powrót do leku",
|
||||
"subtitle": "Pełna historia przyjęć",
|
||||
"plannedSuffix": "zaplanowane"
|
||||
},
|
||||
"tabs": {
|
||||
"uebersicht": "Przegląd",
|
||||
"zeitplan": "Harmonogram",
|
||||
"erinnerung": "Przypomnienia",
|
||||
"bestand": "Zapas",
|
||||
"verlauf": "Historia",
|
||||
"injektion": "Iniekcja",
|
||||
"erweitert": "Zaawansowane"
|
||||
},
|
||||
"shell": {
|
||||
"fullEdit": "Edytuj w pełni",
|
||||
"loadFailed": "Nie udało się załadować tego leku.",
|
||||
"tablistLabel": "Sekcje szczegółów leku"
|
||||
},
|
||||
"uebersicht": {
|
||||
"complianceTitle": "Przestrzeganie",
|
||||
"complianceEmpty": "Brak danych o przestrzeganiu."
|
||||
},
|
||||
"bestand": {
|
||||
"title": "Zapas",
|
||||
"summary": "Pozostało {remaining} z {total} dawek",
|
||||
"itemsTitle": "Wstrzykiwacze / fiolki",
|
||||
"doses": "{remaining} / {total} dawek",
|
||||
"state": {
|
||||
"ACTIVE": "Nieotwarte",
|
||||
"IN_USE": "W użyciu",
|
||||
"EXPIRED": "Przeterminowane",
|
||||
"USED_UP": "Zużyte"
|
||||
},
|
||||
"empty": "Nie zarejestrowano zapasu.",
|
||||
"emptyHelper": "Zarejestruj wstrzykiwacz lub opakowanie, aby śledzić pozostałe dawki i zapas na tygodnie."
|
||||
},
|
||||
"erweitert": {
|
||||
"group": {
|
||||
"lifecycle": "Cykl życia",
|
||||
"externalApi": "Zewnętrzne API",
|
||||
"data": "Dane",
|
||||
"danger": "Strefa zagrożenia"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logInjectionSiteTitle": "Zarejestruj miejsce iniekcji",
|
||||
|
||||
Reference in new issue
Block a user