feat(medications): scale efficacy y-axis and reach older doses

- Efficacy target chart: replace the implicit zero-based y-axis with a
  padded data-range domain so a small relative trend fills the plot
  instead of compressing into the top band.
- Add a "% since start" chart mode that reindexes the target series to a
  percentage of the start-anchored baseline; the absolute reference band
  is hidden in that mode.
- Intake history tab: toggle between the trailing 90-day dose ledger and
  the full paginated intake history so older doses stay reachable.
This commit is contained in:
Marc-André Bombeck committed 2026-07-17 17:17:54 +02:00
1 parent 546c5c7d8f
commit b11ecca8d2
10 files changed
+254 -52

No files matched your search

+8 -2
View File
@@ -1403,7 +1403,10 @@
"confirmAction": "Löschen",
"toast": "Einnahme gelöscht",
"failed": "Einnahme konnte nicht gelöscht werden."
}
},
"viewRecent90": "Letzte 90 Tage",
"viewAll": "Komplette Historie",
"viewToggleLabel": "Verlaufsbereich"
},
"verlauf": {
"loading": "Verlauf wird geladen…",
@@ -1806,7 +1809,10 @@
"subtitle": "Was mit den Zielwerten deiner Medikamente zeitlich zusammenfällt – nur ein Zusammenhang, kein Urteil.",
"link": "Wirkung öffnen",
"empty": "Noch nicht genug Daten, um deine Medikamente mit ihren Zielwerten in Beziehung zu setzen."
}
},
"scaleAbsolute": "Absolut",
"scalePercentSinceStart": "% seit Start",
"scaleToggleLabel": "Diagrammskala"
}
},
"charts": {
+8 -2
View File
@@ -1403,7 +1403,10 @@
"confirmAction": "Delete",
"toast": "Intake deleted",
"failed": "Could not delete the intake."
}
},
"viewRecent90": "Last 90 days",
"viewAll": "Full history",
"viewToggleLabel": "History range"
},
"verlauf": {
"loading": "Loading history…",
@@ -1806,7 +1809,10 @@
"subtitle": "What lines up with the measurements your medications target — association only, never a verdict.",
"link": "Open the effect view",
"empty": "Not enough data yet to relate your medications to their target measurements."
}
},
"scaleAbsolute": "Absolute",
"scalePercentSinceStart": "% since start",
"scaleToggleLabel": "Chart scale"
}
},
"charts": {
+8 -2
View File
@@ -1403,7 +1403,10 @@
"confirmAction": "Eliminar",
"toast": "Toma eliminada",
"failed": "No se pudo eliminar la toma."
}
},
"viewRecent90": "Últimos 90 días",
"viewAll": "Historial completo",
"viewToggleLabel": "Rango del historial"
},
"verlauf": {
"loading": "Cargando historial …",
@@ -1806,7 +1809,10 @@
"subtitle": "Lo que coincide con las mediciones que persiguen tus medicamentos: solo asociación, nunca un veredicto.",
"link": "Abrir la vista de efecto",
"empty": "Aún no hay suficientes datos para relacionar tus medicamentos con sus mediciones objetivo."
}
},
"scaleAbsolute": "Absoluto",
"scalePercentSinceStart": "% desde el inicio",
"scaleToggleLabel": "Escala del gráfico"
}
},
"charts": {
+8 -2
View File
@@ -1403,7 +1403,10 @@
"confirmAction": "Supprimer",
"toast": "Prise supprimée",
"failed": "Impossible de supprimer la prise."
}
},
"viewRecent90": "90 derniers jours",
"viewAll": "Historique complet",
"viewToggleLabel": "Plage de l'historique"
},
"verlauf": {
"loading": "Chargement de l'historique …",
@@ -1806,7 +1809,10 @@
"subtitle": "Ce qui coïncide avec les mesures visées par vos médicaments — association seulement, jamais un verdict.",
"link": "Ouvrir la vue Effet",
"empty": "Pas encore assez de données pour relier vos médicaments à leurs mesures cibles."
}
},
"scaleAbsolute": "Absolu",
"scalePercentSinceStart": "% depuis le début",
"scaleToggleLabel": "Échelle du graphique"
}
},
"charts": {
+8 -2
View File
@@ -1403,7 +1403,10 @@
"confirmAction": "Elimina",
"toast": "Assunzione eliminata",
"failed": "Impossibile eliminare l’assunzione."
}
},
"viewRecent90": "Ultimi 90 giorni",
"viewAll": "Storico completo",
"viewToggleLabel": "Intervallo dello storico"
},
"verlauf": {
"loading": "Caricamento cronologia …",
@@ -1806,7 +1809,10 @@
"subtitle": "Ciò che coincide con le misurazioni a cui mirano i tuoi farmaci: solo associazione, mai un verdetto.",
"link": "Apri la vista Effetto",
"empty": "Ancora non ci sono dati sufficienti per collegare i tuoi farmaci alle loro misurazioni obiettivo."
}
},
"scaleAbsolute": "Assoluto",
"scalePercentSinceStart": "% dall'inizio",
"scaleToggleLabel": "Scala del grafico"
}
},
"charts": {
+8 -2
View File
@@ -1403,7 +1403,10 @@
"confirmAction": "Usuń",
"toast": "Przyjęcie usunięte",
"failed": "Nie udało się usunąć przyjęcia."
}
},
"viewRecent90": "Ostatnie 90 dni",
"viewAll": "Pełna historia",
"viewToggleLabel": "Zakres historii"
},
"verlauf": {
"loading": "Wczytywanie historii …",
@@ -1806,7 +1809,10 @@
"subtitle": "Co zbiega się w czasie z pomiarami, na które celują Twoje leki — tylko powiązanie, nigdy werdykt.",
"link": "Otwórz widok działania",
"empty": "Za mało danych, aby powiązać Twoje leki z docelowymi pomiarami."
}
},
"scaleAbsolute": "Bezwzględne",
"scalePercentSinceStart": "% od początku",
"scaleToggleLabel": "Skala wykresu"
}
},
"charts": {