feat(settings,measurements): restore module-hub intro and clarify list/insights split

The module hub lost its intro line in v1.18.1, so a new user could not
tell that the page drives the navigation, tiles and assessments they
see. Restore the section intro and the toggleable-modules hint (both
strings already in the bundle). Reframe the measurements subtitle from a
metric list to its role — log + full history here, trends and analysis
under Insights — so the two homes for 'look at my data' read as distinct
rather than redundant.
This commit is contained in:
Marc-André Bombeck committed 2026-06-18 19:15:51 +02:00
1 parent ef1fbb8396
commit 04adcc6aa5
7 files changed
+18 -10

No files matched your search

+1 -1
View File
@@ -414,7 +414,7 @@
},
"measurements": {
"title": "Messungen",
"subtitle": "Gewicht, Blutdruck, Puls und mehr",
"subtitle": "Werte erfassen und die vollständige Historie einsehen. Trends und Auswertungen findest du unter Auswertungen.",
"addMeasurement": "Hinzufügen",
"editMeasurement": "Messwert bearbeiten",
"type": "Typ",
+1 -1
View File
@@ -414,7 +414,7 @@
},
"measurements": {
"title": "Measurements",
"subtitle": "Weight, blood pressure, pulse and more",
"subtitle": "Log readings and browse the full history. Trends and analysis live under Insights.",
"addMeasurement": "Add",
"editMeasurement": "Edit measurement",
"type": "Type",
+1 -1
View File
@@ -414,7 +414,7 @@
},
"measurements": {
"title": "Mediciones",
"subtitle": "Peso, tensión arterial, pulso y más",
"subtitle": "Registra lecturas y consulta el historial completo. Las tendencias y los análisis están en Análisis.",
"addMeasurement": "Añadir",
"editMeasurement": "Editar medición",
"type": "Tipo",
+1 -1
View File
@@ -414,7 +414,7 @@
},
"measurements": {
"title": "Mesures",
"subtitle": "Poids, tension artérielle, pouls et plus",
"subtitle": "Saisis tes mesures et consulte l'historique complet. Les tendances et analyses sont dans Analyses.",
"addMeasurement": "Ajouter",
"editMeasurement": "Modifier la mesure",
"type": "Type",
+1 -1
View File
@@ -414,7 +414,7 @@
},
"measurements": {
"title": "Misurazioni",
"subtitle": "Peso, pressione arteriosa, pulsazioni e altro",
"subtitle": "Registra le misurazioni e consulta lo storico completo. Tendenze e analisi sono in Analisi.",
"addMeasurement": "Aggiungi",
"editMeasurement": "Modifica misurazione",
"type": "Tipo",
+1 -1
View File
@@ -414,7 +414,7 @@
},
"measurements": {
"title": "Pomiary",
"subtitle": "Waga, ciśnienie tętnicze, tętno i więcej",
"subtitle": "Zapisuj pomiary i przeglądaj pełną historię. Trendy i analizy znajdziesz w Analizach.",
"addMeasurement": "Dodaj",
"editMeasurement": "Edytuj pomiar",
"type": "Typ",
+12 -4
View File
@@ -118,21 +118,29 @@ export function ModulesSection() {
aria-labelledby="settings-section-modules-title"
className="space-y-6"
>
{/* v1.18.1 (D0) — section blurb dropped for consistent top alignment. */}
<header>
{/* v1.18.6 — restore a short intro line so a new user understands
that this page drives the nav, tiles and assessments they see.
(Dropped in v1.18.1 D0 for top alignment; the orientation cost
outweighed the alignment.) */}
<header className="space-y-1">
<h1 id="settings-section-modules-title" className="sr-only">
{t("settings.sections.modules.title")}
</h1>
<p className="text-muted-foreground text-sm leading-relaxed">
{t("settings.sections.modules.description")}
</p>
</header>
{/* Toggleable modules. v1.18.1 (D2) — the explanatory line above the
first card dropped; the per-row labels carry the meaning. */}
<div className="bg-card border-border rounded-xl border p-4 sm:p-6">
<SettingsCardHeader
icon={Blocks}
title={t("settings.sections.modules.toggleable.title")}
className="mb-2"
/>
{/* v1.18.6 — restore the one-line "what this section does" hint. */}
<p className="text-muted-foreground mb-3 pl-7 text-sm leading-relaxed">
{t("settings.sections.modules.toggleable.description")}
</p>
<div className="divide-border divide-y pl-7">
{(Object.keys(MODULE_REGISTRY) as ModuleKey[]).map((key) => {
const def = MODULE_REGISTRY[key];