mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
fix(ui): workout header stacking, chart-shell inset parity, silent retarget failure
WorkoutDetailHeader held three columns at every width, wrapping the long-format date to 4-5 lines beside a text-2xl duration at 360px; stack below sm with duration moving under the title block. Same pass drops a stray text-[11px] muted hint below the size floor. The intraday pulse chart and the VO2/cardio-fitness link card carried a static p-4 shell with no md:p-6 step, and the intraday loading state was a raw pulse div instead of the Skeleton primitive under-reserving the chart height — both now match the card inset contract used elsewhere. Same one-line fix on the insights hero shell (sm-stepped inset instead of the standard md-stepped one) and the glucose advanced panel's 3-up grid at a 320px fold. The medication efficacy tab's retarget control failed saves silently — no toast, no inline alert, an unhandled rejection escaping past the disabled-button reset. Surface a toast on failure. Also swaps the level-shift date off a raw toISOString slice onto the locale formatter, and the primary-target tag off bare muted text onto the Badge component the rest of the app uses for this kind of marker. The caffeine card collapsed its 280px skeleton to nothing on every nutrients-page visit for an account with no logged caffeine; a 60s staleTime (already the convention on the sibling insights queries) keeps the flash to once per session. The efficacy chart's dynamic- import fallback was the full card-chrome ChartSkeleton nested inside its own Card, snapping ~100px when the real bare chart mounted — swap for a plain Skeleton sized to the actual chart.
This commit is contained in:
1 parent
5532a42ff6
commit
07f161bf25
13 files changed
+75
-42
No files matched your search
+2
-1
@@ -1809,7 +1809,8 @@
|
||||
"label": "Nicht der richtige Messwert?",
|
||||
"placeholder": "Verfolgen anhand…",
|
||||
"apply": "Übernehmen",
|
||||
"reset": "Auf Standard zurücksetzen"
|
||||
"reset": "Auf Standard zurücksetzen",
|
||||
"error": "Diese Änderung konnte nicht gespeichert werden. Bitte erneut versuchen."
|
||||
},
|
||||
"beforeAfter": {
|
||||
"summary": "Ø {before} davor → Ø {after} seitdem – eine Veränderung von {delta}.",
|
||||
|
||||
+2
-1
@@ -1809,7 +1809,8 @@
|
||||
"label": "Not the right measurement?",
|
||||
"placeholder": "Track against…",
|
||||
"apply": "Apply",
|
||||
"reset": "Reset to default"
|
||||
"reset": "Reset to default",
|
||||
"error": "Could not save that change. Try again."
|
||||
},
|
||||
"beforeAfter": {
|
||||
"summary": "Ø {before} before → Ø {after} since — a change of {delta}.",
|
||||
|
||||
+2
-1
@@ -1809,7 +1809,8 @@
|
||||
"label": "¿No es la medición correcta?",
|
||||
"placeholder": "Seguir según…",
|
||||
"apply": "Aplicar",
|
||||
"reset": "Restablecer al valor predeterminado"
|
||||
"reset": "Restablecer al valor predeterminado",
|
||||
"error": "No se pudo guardar ese cambio. Inténtalo de nuevo."
|
||||
},
|
||||
"beforeAfter": {
|
||||
"summary": "Ø {before} antes → Ø {after} desde entonces: un cambio de {delta}.",
|
||||
|
||||
+2
-1
@@ -1809,7 +1809,8 @@
|
||||
"label": "Ce n'est pas la bonne mesure ?",
|
||||
"placeholder": "Suivre selon…",
|
||||
"apply": "Appliquer",
|
||||
"reset": "Réinitialiser par défaut"
|
||||
"reset": "Réinitialiser par défaut",
|
||||
"error": "Impossible d'enregistrer cette modification. Réessaie."
|
||||
},
|
||||
"beforeAfter": {
|
||||
"summary": "Ø {before} avant → Ø {after} depuis — un écart de {delta}.",
|
||||
|
||||
+2
-1
@@ -1809,7 +1809,8 @@
|
||||
"label": "Non è la misurazione giusta?",
|
||||
"placeholder": "Monitora in base a…",
|
||||
"apply": "Applica",
|
||||
"reset": "Ripristina predefinito"
|
||||
"reset": "Ripristina predefinito",
|
||||
"error": "Impossibile salvare questa modifica. Riprova."
|
||||
},
|
||||
"beforeAfter": {
|
||||
"summary": "Ø {before} prima → Ø {after} da allora — una variazione di {delta}.",
|
||||
|
||||
+2
-1
@@ -1809,7 +1809,8 @@
|
||||
"label": "To nie ten pomiar?",
|
||||
"placeholder": "Śledź według…",
|
||||
"apply": "Zastosuj",
|
||||
"reset": "Przywróć domyślne"
|
||||
"reset": "Przywróć domyślne",
|
||||
"error": "Nie udało się zapisać tej zmiany. Spróbuj ponownie."
|
||||
},
|
||||
"beforeAfter": {
|
||||
"summary": "Ø {before} przedtem → Ø {after} od tego czasu — zmiana o {delta}.",
|
||||
|
||||
Reference in new issue
Block a user