mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +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": "I tuoi parametri vitali",
|
||||
"loadingLabel": "Caricamento dei tuoi parametri vitali",
|
||||
"loadError": "Al momento non è stato possibile caricare i tuoi parametri vitali.",
|
||||
"building": "Creazione del tuo intervallo abituale — {count} di {target} giorni",
|
||||
"typicalRange": "Abituale per te: {low}–{high}",
|
||||
"fitnessYounger": "Forma cardio di chi ha ~{years} anni in meno",
|
||||
|
||||
Reference in new issue
Block a user