From 04adcc6aa5037af68217271cb0e3c33fe2938aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 18 Jun 2026 19:15:51 +0200 Subject: [PATCH] feat(settings,measurements): restore module-hub intro and clarify list/insights split MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- messages/de.json | 2 +- messages/en.json | 2 +- messages/es.json | 2 +- messages/fr.json | 2 +- messages/it.json | 2 +- messages/pl.json | 2 +- src/components/settings/modules-section.tsx | 16 ++++++++++++---- 7 files changed, 18 insertions(+), 10 deletions(-) diff --git a/messages/de.json b/messages/de.json index ff302577a..6f1f0195d 100644 --- a/messages/de.json +++ b/messages/de.json @@ -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", diff --git a/messages/en.json b/messages/en.json index 5b51a4331..22cd11dae 100644 --- a/messages/en.json +++ b/messages/en.json @@ -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", diff --git a/messages/es.json b/messages/es.json index af96478e9..eeda31fe0 100644 --- a/messages/es.json +++ b/messages/es.json @@ -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", diff --git a/messages/fr.json b/messages/fr.json index 217d9afe0..91ec14d05 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -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", diff --git a/messages/it.json b/messages/it.json index abb275f53..83ca7fdb9 100644 --- a/messages/it.json +++ b/messages/it.json @@ -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", diff --git a/messages/pl.json b/messages/pl.json index 77c41a83d..4916f3dc7 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -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", diff --git a/src/components/settings/modules-section.tsx b/src/components/settings/modules-section.tsx index 95f1ae25b..f90fff8f7 100644 --- a/src/components/settings/modules-section.tsx +++ b/src/components/settings/modules-section.tsx @@ -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. */} -
+ {/* 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.) */} +

{t("settings.sections.modules.title")}

+

+ {t("settings.sections.modules.description")} +

- {/* Toggleable modules. v1.18.1 (D2) — the explanatory line above the - first card dropped; the per-row labels carry the meaning. */}
+ {/* v1.18.6 — restore the one-line "what this section does" hint. */} +

+ {t("settings.sections.modules.toggleable.description")} +

{(Object.keys(MODULE_REGISTRY) as ModuleKey[]).map((key) => { const def = MODULE_REGISTRY[key];