From ce9b5bec29819609702557a20b4698623c28fc32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 5 Jul 2026 20:45:24 +0200 Subject: [PATCH] fix(mental-health): drop the landing rhythm hint and lift page descriptions to foreground The cadence sentence between the page header and the instrument cards reads as clutter once the recall windows live in each instrument's own description. The canonical PageHeader description also moves from the muted tier to foreground: it is content, not meta. --- messages/de.json | 1 - messages/en.json | 1 - messages/es.json | 1 - messages/fr.json | 1 - messages/it.json | 1 - messages/pl.json | 1 - .../mental-health/__tests__/mental-wellbeing.test.tsx | 5 +++-- src/components/mental-health/mental-wellbeing.tsx | 8 -------- src/components/ui/page-header.tsx | 6 ++++-- 9 files changed, 7 insertions(+), 18 deletions(-) diff --git a/messages/de.json b/messages/de.json index 4f46565cf..0afda8c76 100644 --- a/messages/de.json +++ b/messages/de.json @@ -7670,7 +7670,6 @@ "mentalHealth": { "pageTitle": "Check-in zum seelischen Wohlbefinden", "pageDescription": "Vier validierte, freiwillige Selbsttests — PHQ-9 (Stimmung), GAD-7 (Sorgen), WHO-5 (Wohlbefinden) und SCI (Schlaf) — ergänzend zu deinem Stimmungstagebuch. Aussagekräftig ist der Verlauf über die Zeit, nicht ein einzelner Wert.", - "pageRhythmHint": "PHQ-9, GAD-7 und der Wohlbefindens-Check blicken auf die letzten zwei Wochen zurück, der Schlaf-Check auf den letzten Monat — ein Check-in alle zwei bis vier Wochen ist ein guter Rhythmus.", "attributionLabel": "Quelle", "choosePrompt": "Check-in auswählen", "start": "Starten", diff --git a/messages/en.json b/messages/en.json index 3522fef3b..946fff862 100644 --- a/messages/en.json +++ b/messages/en.json @@ -7670,7 +7670,6 @@ "mentalHealth": { "pageTitle": "Mental wellbeing check-in", "pageDescription": "Validated, opt-in self-checks — PHQ-9 (mood), GAD-7 (worry), WHO-5 (well-being) and SCI (sleep) — that sit beside your mood tracking. The value is the trend over time, not any single number.", - "pageRhythmHint": "PHQ-9, GAD-7 and the well-being check look back over the last two weeks; the sleep check asks about the past month. A check-in every two to four weeks is a comfortable rhythm.", "attributionLabel": "Attribution", "choosePrompt": "Choose a check-in", "start": "Start", diff --git a/messages/es.json b/messages/es.json index 65b78e5e9..54bc72f7b 100644 --- a/messages/es.json +++ b/messages/es.json @@ -7670,7 +7670,6 @@ "mentalHealth": { "pageTitle": "Revisión de bienestar mental", "pageDescription": "Cuatro autoevaluaciones validadas y opcionales — PHQ-9 (estado de ánimo), GAD-7 (preocupación), WHO-5 (bienestar) y SCI (sueño) — junto a tu registro de ánimo. Lo valioso es la tendencia en el tiempo, no un único número.", - "pageRhythmHint": "El PHQ-9, el GAD-7 y el test de bienestar se refieren a las últimas dos semanas; el test de sueño pregunta por el último mes. Un check-in cada dos a cuatro semanas es un buen ritmo.", "attributionLabel": "Fuente", "choosePrompt": "Elige una revisión", "start": "Empezar", diff --git a/messages/fr.json b/messages/fr.json index 722bbcb76..ffad926a0 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -7670,7 +7670,6 @@ "mentalHealth": { "pageTitle": "Point sur le bien-être mental", "pageDescription": "Quatre auto-évaluations validées et facultatives — PHQ-9 (humeur), GAD-7 (inquiétude), WHO-5 (bien-être) et SCI (sommeil) — en complément de ton suivi de l'humeur. Ce qui compte, c'est la tendance dans le temps, pas un chiffre isolé.", - "pageRhythmHint": "Le PHQ-9, le GAD-7 et le test de bien-être portent sur les deux dernières semaines ; le test de sommeil porte sur le dernier mois. Un check-in toutes les deux à quatre semaines est un bon rythme.", "attributionLabel": "Source", "choosePrompt": "Choisis un bilan", "start": "Commencer", diff --git a/messages/it.json b/messages/it.json index a9b8176bf..aa5902b27 100644 --- a/messages/it.json +++ b/messages/it.json @@ -7670,7 +7670,6 @@ "mentalHealth": { "pageTitle": "Check-in sul benessere mentale", "pageDescription": "Quattro autovalutazioni validate e facoltative — PHQ-9 (umore), GAD-7 (preoccupazione), WHO-5 (benessere) e SCI (sonno) — accanto al tuo diario dell'umore. Ciò che conta è l'andamento nel tempo, non un singolo numero.", - "pageRhythmHint": "PHQ-9, GAD-7 e il test sul benessere riguardano le ultime due settimane; il test sul sonno chiede dell'ultimo mese. Un check-in ogni due-quattro settimane è un buon ritmo.", "attributionLabel": "Fonte", "choosePrompt": "Scegli un check-in", "start": "Inizia", diff --git a/messages/pl.json b/messages/pl.json index 51ac363d4..fe0d8e170 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -7670,7 +7670,6 @@ "mentalHealth": { "pageTitle": "Sprawdzenie dobrostanu psychicznego", "pageDescription": "Cztery zwalidowane, dobrowolne testy — PHQ-9 (nastrój), GAD-7 (lęk), WHO-5 (samopoczucie) i SCI (sen) — obok Twojego dziennika nastroju. Liczy się trend w czasie, a nie pojedynczy wynik.", - "pageRhythmHint": "PHQ-9, GAD-7 i test samopoczucia dotyczą ostatnich dwóch tygodni; test snu pyta o ostatni miesiąc. Check-in co dwa–cztery tygodnie to dobry rytm.", "attributionLabel": "Źródło", "choosePrompt": "Wybierz sprawdzenie", "start": "Rozpocznij", diff --git a/src/components/mental-health/__tests__/mental-wellbeing.test.tsx b/src/components/mental-health/__tests__/mental-wellbeing.test.tsx index 5268847ee..2187c0453 100644 --- a/src/components/mental-health/__tests__/mental-wellbeing.test.tsx +++ b/src/components/mental-health/__tests__/mental-wellbeing.test.tsx @@ -220,8 +220,9 @@ describe("WHO-5 / SCI on the same infrastructure (v1.27.9)", () => { expect(html).toContain(mh.instrument.gad7); expect(html).toContain(mh.instrument.who5); expect(html).toContain(mh.instrument.sci); - // The rhythm hint states both recall windows honestly. - expect(html).toContain(mh.pageRhythmHint); + // The landing stays lean: no rhythm-hint paragraph between the header + // and the cards (removed on maintainer review of v1.27.10). + expect(html).not.toContain("Rhythmus"); }); it("WHO-5 wizard opens on item 1 with the six-point scale in source order and the recall stem", () => { diff --git a/src/components/mental-health/mental-wellbeing.tsx b/src/components/mental-health/mental-wellbeing.tsx index 267c4e06d..2b0ad486e 100644 --- a/src/components/mental-health/mental-wellbeing.tsx +++ b/src/components/mental-health/mental-wellbeing.tsx @@ -127,14 +127,6 @@ export function MentalWellbeing() { description={t("mentalHealth.pageDescription")} /> - {/* v1.27.6 — one gentle cadence hint; v1.27.9 states each recall - window honestly (PHQ-9 / GAD-7 / WHO-5 look back two weeks, the - SCI asks about the past month). Body prose (foreground), not - another muted description line. */} -

- {t("mentalHealth.pageRhythmHint")} -

-

{t("mentalHealth.choosePrompt")}