mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
feat(insights): add load, error, and empty states to the vitals dashboard
Render a skeleton row matching the resolved tile height while the derived batch loads so the grid reserves its final footprint with no layout shift. Hide the section heading until there is content (or a skeleton placeholder) under it, removing the stranded-heading layout shift on empty data. Surface an inline error message plus a Retry that refetches the shared batch query when the batch fails, instead of the whole surface silently vanishing. Mark the tiles container aria-busy while loading and aria-live polite, matching the insights a11y pattern.
This commit is contained in:
1 parent
786454ee2f
commit
5ae7aa7570
8 files changed
+214
-30
No files matched your search
@@ -2526,6 +2526,8 @@
|
||||
},
|
||||
"vitals": {
|
||||
"sectionTitle": "Deine Vitalwerte",
|
||||
"loadingLabel": "Vitalwerte werden geladen",
|
||||
"loadError": "Deine Vitalwerte konnten gerade nicht geladen werden.",
|
||||
"building": "Typischer Bereich entsteht — {count} von {target} Tagen",
|
||||
"typicalRange": "Typisch für dich: {low}–{high}",
|
||||
"fitnessYounger": "Ausdauer wie ~{years} J. jünger",
|
||||
|
||||
Reference in new issue
Block a user