mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
refactor(insights): tighten the mood page — consolidate subtexts, icon-ify explainers, unify palette
Lay the narrative takeaways two-up instead of a single full-width column so short one-liners (best daypart, logging streak, weekday peak) stop stacking into a long ladder of half-empty rows. Fold the low-density footnotes behind a focusable ring/info explainer icon with a tooltip: the per-pair paired-day/r/q stat under each discovered relation, the per-card paired-day/r line under each mood-correlation scatter, and the false-discovery footer + observational disclaimer that sat as two full-width rows under the discovered-relations list. The trigger is a real button carrying an aria-label so the explanation is keyboard- and screen-reader-reachable, not hover-only. Charts stay Recharts and visually identical — the mood distribution and mood-by-time-of-day charts already share one Dracula band palette (red/orange/yellow/green over the same thresholds, --dracula-fg ticks, --dracula-comment axes, --card/--border tooltips), so the surface palette is already consistent and left untouched. New explainer keys land in all six locales. (cherry picked from commit afc38491ebfae3beed6476a79439d2b87f33f823)
This commit is contained in:
1 parent
9cc739f79d
commit
89d51c5380
11 files changed
+153
-49
No files matched your search
+5
-2
@@ -2558,7 +2558,8 @@
|
||||
"weightTitle": "Stimmung vs. Gewicht",
|
||||
"bloodPressureTitle": "Stimmung vs. Blutdruck",
|
||||
"weightAxis": "Gewicht",
|
||||
"bloodPressureAxis": "Systolisch (mmHg)"
|
||||
"bloodPressureAxis": "Systolisch (mmHg)",
|
||||
"sourceLabel": "Wie das berechnet wurde"
|
||||
},
|
||||
"structuredTagsTitle": "Tag-Auswertung",
|
||||
"inTargetValue": "{pct} %",
|
||||
@@ -2629,7 +2630,9 @@
|
||||
"moodDown": "Höheres {factor} geht in deinen Daten tendenziell mit schlechterer Stimmung am Folgetag einher.",
|
||||
"outcomeUp": "Bessere Stimmung geht in deinen Daten tendenziell mit höherem {factor} am Folgetag einher.",
|
||||
"outcomeDown": "Bessere Stimmung geht in deinen Daten tendenziell mit niedrigerem {factor} am Folgetag einher.",
|
||||
"stat": "{n} gepaarte Tage · r = {r} · q = {q}"
|
||||
"stat": "{n} gepaarte Tage · r = {r} · q = {q}",
|
||||
"statLabel": "Wie das berechnet wurde",
|
||||
"explainerLabel": "Wie das berechnet wurde"
|
||||
}
|
||||
},
|
||||
"derived": {
|
||||
|
||||
+4
-1
@@ -2553,6 +2553,7 @@
|
||||
"strengthWeak": "Weak",
|
||||
"strengthNone": "None",
|
||||
"source": "{n} paired days · r = {r}",
|
||||
"sourceLabel": "How this was computed",
|
||||
"emptyTitle": "Not enough paired data yet",
|
||||
"emptyDescription": "Log mood and this metric on the same days to see a correlation.",
|
||||
"weightTitle": "Mood vs. weight",
|
||||
@@ -2629,7 +2630,9 @@
|
||||
"moodDown": "Higher {factor} tends to go with lower next-day mood in your data.",
|
||||
"outcomeUp": "Higher mood tends to go with higher next-day {factor} in your data.",
|
||||
"outcomeDown": "Higher mood tends to go with lower next-day {factor} in your data.",
|
||||
"stat": "{n} paired days · r = {r} · q = {q}"
|
||||
"stat": "{n} paired days · r = {r} · q = {q}",
|
||||
"statLabel": "How this was computed",
|
||||
"explainerLabel": "How this was computed"
|
||||
}
|
||||
},
|
||||
"derived": {
|
||||
|
||||
+5
-2
@@ -2558,7 +2558,8 @@
|
||||
"weightTitle": "Ánimo vs. peso",
|
||||
"bloodPressureTitle": "Ánimo vs. presión arterial",
|
||||
"weightAxis": "Peso",
|
||||
"bloodPressureAxis": "Sistólica (mmHg)"
|
||||
"bloodPressureAxis": "Sistólica (mmHg)",
|
||||
"sourceLabel": "Cómo se calculó esto"
|
||||
},
|
||||
"structuredTagsTitle": "Desglose de etiquetas",
|
||||
"inTargetValue": "{pct} %",
|
||||
@@ -2629,7 +2630,9 @@
|
||||
"moodDown": "Un mayor {factor} suele coincidir con peor ánimo al día siguiente en tus datos.",
|
||||
"outcomeUp": "Mejor ánimo suele coincidir con un {factor} más alto al día siguiente en tus datos.",
|
||||
"outcomeDown": "Mejor ánimo suele coincidir con un {factor} más bajo al día siguiente en tus datos.",
|
||||
"stat": "{n} días emparejados · r = {r} · q = {q}"
|
||||
"stat": "{n} días emparejados · r = {r} · q = {q}",
|
||||
"statLabel": "Cómo se calculó esto",
|
||||
"explainerLabel": "Cómo se calculó esto"
|
||||
}
|
||||
},
|
||||
"derived": {
|
||||
|
||||
+5
-2
@@ -2558,7 +2558,8 @@
|
||||
"weightTitle": "Humeur vs. poids",
|
||||
"bloodPressureTitle": "Humeur vs. tension artérielle",
|
||||
"weightAxis": "Poids",
|
||||
"bloodPressureAxis": "Systolique (mmHg)"
|
||||
"bloodPressureAxis": "Systolique (mmHg)",
|
||||
"sourceLabel": "Comment ceci est calculé"
|
||||
},
|
||||
"structuredTagsTitle": "Répartition des étiquettes",
|
||||
"inTargetValue": "{pct} %",
|
||||
@@ -2629,7 +2630,9 @@
|
||||
"moodDown": "Un {factor} plus élevé tend à coïncider avec une moins bonne humeur le lendemain dans vos données.",
|
||||
"outcomeUp": "Une meilleure humeur tend à coïncider avec un {factor} plus élevé le lendemain dans vos données.",
|
||||
"outcomeDown": "Une meilleure humeur tend à coïncider avec un {factor} plus bas le lendemain dans vos données.",
|
||||
"stat": "{n} jours appariés · r = {r} · q = {q}"
|
||||
"stat": "{n} jours appariés · r = {r} · q = {q}",
|
||||
"statLabel": "Comment ceci est calculé",
|
||||
"explainerLabel": "Comment ceci est calculé"
|
||||
}
|
||||
},
|
||||
"derived": {
|
||||
|
||||
+5
-2
@@ -2558,7 +2558,8 @@
|
||||
"weightTitle": "Umore vs. peso",
|
||||
"bloodPressureTitle": "Umore vs. pressione sanguigna",
|
||||
"weightAxis": "Peso",
|
||||
"bloodPressureAxis": "Sistolica (mmHg)"
|
||||
"bloodPressureAxis": "Sistolica (mmHg)",
|
||||
"sourceLabel": "Come è stato calcolato"
|
||||
},
|
||||
"structuredTagsTitle": "Analisi etichette",
|
||||
"inTargetValue": "{pct} %",
|
||||
@@ -2629,7 +2630,9 @@
|
||||
"moodDown": "Un {factor} più alto tende a coincidere con un umore peggiore il giorno dopo nei tuoi dati.",
|
||||
"outcomeUp": "Un umore migliore tende a coincidere con un {factor} più alto il giorno dopo nei tuoi dati.",
|
||||
"outcomeDown": "Un umore migliore tende a coincidere con un {factor} più basso il giorno dopo nei tuoi dati.",
|
||||
"stat": "{n} giorni appaiati · r = {r} · q = {q}"
|
||||
"stat": "{n} giorni appaiati · r = {r} · q = {q}",
|
||||
"statLabel": "Come è stato calcolato",
|
||||
"explainerLabel": "Come è stato calcolato"
|
||||
}
|
||||
},
|
||||
"derived": {
|
||||
|
||||
+5
-2
@@ -2558,7 +2558,8 @@
|
||||
"weightTitle": "Nastrój vs. waga",
|
||||
"bloodPressureTitle": "Nastrój vs. ciśnienie krwi",
|
||||
"weightAxis": "Waga",
|
||||
"bloodPressureAxis": "Skurczowe (mmHg)"
|
||||
"bloodPressureAxis": "Skurczowe (mmHg)",
|
||||
"sourceLabel": "Jak to obliczono"
|
||||
},
|
||||
"structuredTagsTitle": "Podział tagów",
|
||||
"inTargetValue": "{pct}%",
|
||||
@@ -2629,7 +2630,9 @@
|
||||
"moodDown": "Wyższy {factor} zwykle wiąże się z gorszym nastrojem następnego dnia w Twoich danych.",
|
||||
"outcomeUp": "Lepszy nastrój zwykle wiąże się z wyższym {factor} następnego dnia w Twoich danych.",
|
||||
"outcomeDown": "Lepszy nastrój zwykle wiąże się z niższym {factor} następnego dnia w Twoich danych.",
|
||||
"stat": "{n} sparowanych dni · r = {r} · q = {q}"
|
||||
"stat": "{n} sparowanych dni · r = {r} · q = {q}",
|
||||
"statLabel": "Jak to obliczono",
|
||||
"explainerLabel": "Jak to obliczono"
|
||||
}
|
||||
},
|
||||
"derived": {
|
||||
|
||||
Reference in new issue
Block a user