From 72cd21352c7c27f6066c1721ba7659b45c87d4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 7 Aug 2026 16:36:31 +0200 Subject: [PATCH] refactor(mental-wellbeing): shorten the intro and drop the mood-history link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The intro listed all four instruments with their subject in brackets and then explained itself, which ran to two lines on a desktop header and five or six on a phone — a paragraph to read before reaching the four cards that say the same thing. It keeps its opening claim and the one caveat that matters, and loses the enumeration the cards below already carry: one line on desktop in all six languages, measured at 1280 and 1440. The pointer to mood history at the foot of the page is gone. The link on the mood page pointing here stays, because that direction earns its keep: someone logging a mood may not know the screeners exist, while someone who came here for a screener knows where their diary is. --- messages/de.json | 3 +-- messages/en.json | 3 +-- messages/es.json | 3 +-- messages/fr.json | 3 +-- messages/it.json | 3 +-- messages/pl.json | 3 +-- .../mental-health/mental-wellbeing.tsx | 19 +++++-------------- 7 files changed, 11 insertions(+), 26 deletions(-) diff --git a/messages/de.json b/messages/de.json index 06e3486e0..f6f5cad7d 100644 --- a/messages/de.json +++ b/messages/de.json @@ -8589,8 +8589,7 @@ }, "mentalHealth": { "pageTitle": "Seelisches 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.", - "moodLink": "Deinen Stimmungsverlauf ansehen", + "pageDescription": "Vier validierte, freiwillige Selbsttests — aussagekräftig ist der Verlauf, nicht ein einzelner Wert.", "attributionLabel": "Quelle", "attributionShow": "Quelle und Lizenz für {instrument}", "choosePrompt": "Check-in auswählen", diff --git a/messages/en.json b/messages/en.json index e98bbac76..c4ca0124b 100644 --- a/messages/en.json +++ b/messages/en.json @@ -8589,8 +8589,7 @@ }, "mentalHealth": { "pageTitle": "Mental wellbeing", - "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.", - "moodLink": "View your mood history", + "pageDescription": "Four validated, voluntary self-checks — the trend over time says more than any single score.", "attributionLabel": "Attribution", "attributionShow": "Source and licence for {instrument}", "choosePrompt": "Choose a check-in", diff --git a/messages/es.json b/messages/es.json index 04f190b8e..cae29080d 100644 --- a/messages/es.json +++ b/messages/es.json @@ -8589,8 +8589,7 @@ }, "mentalHealth": { "pageTitle": "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.", - "moodLink": "Ver tu historial de estado de ánimo", + "pageDescription": "Cuatro autoevaluaciones validadas y voluntarias: cuenta la evolución, no un valor aislado.", "attributionLabel": "Fuente", "attributionShow": "Fuente y licencia de {instrument}", "choosePrompt": "Elige una revisión", diff --git a/messages/fr.json b/messages/fr.json index 789eeac87..f7904933b 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -8589,8 +8589,7 @@ }, "mentalHealth": { "pageTitle": "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é.", - "moodLink": "Voir ton historique d'humeur", + "pageDescription": "Quatre auto-évaluations validées et facultatives : l’évolution compte plus qu’un score isolé.", "attributionLabel": "Source", "attributionShow": "Source et licence pour {instrument}", "choosePrompt": "Choisis un bilan", diff --git a/messages/it.json b/messages/it.json index 7d96bcfa8..a45b72862 100644 --- a/messages/it.json +++ b/messages/it.json @@ -8589,8 +8589,7 @@ }, "mentalHealth": { "pageTitle": "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.", - "moodLink": "Vedi il tuo andamento dell'umore", + "pageDescription": "Quattro autovalutazioni validate e facoltative: conta l’andamento, non il singolo punteggio.", "attributionLabel": "Fonte", "attributionShow": "Fonte e licenza di {instrument}", "choosePrompt": "Scegli un check-in", diff --git a/messages/pl.json b/messages/pl.json index ee147d4e3..d39b0a380 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -8589,8 +8589,7 @@ }, "mentalHealth": { "pageTitle": "Dobrostan psychiczny", - "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.", - "moodLink": "Zobacz historię swojego nastroju", + "pageDescription": "Cztery zwalidowane, dobrowolne testy — liczy się przebieg w czasie, nie pojedynczy wynik.", "attributionLabel": "Źródło", "attributionShow": "Źródło i licencja: {instrument}", "choosePrompt": "Wybierz sprawdzenie", diff --git a/src/components/mental-health/mental-wellbeing.tsx b/src/components/mental-health/mental-wellbeing.tsx index 702865322..b33f3902f 100644 --- a/src/components/mental-health/mental-wellbeing.tsx +++ b/src/components/mental-health/mental-wellbeing.tsx @@ -28,9 +28,7 @@ * the page someone arrives at to take stock. */ import { useMemo, useState } from "react"; -import Link from "next/link"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; -import { ArrowRight } from "lucide-react"; import { useTranslations } from "@/lib/i18n/context"; import { apiGet, apiPost } from "@/lib/api/api-fetch"; @@ -179,18 +177,11 @@ export function MentalWellbeing() { )} - {/* 2026-07-17 UX/IA audit M9 — mood tracking, this screener surface, - and the mood insights page form one mental-health domain but used - to be three unconnected islands. A quiet pointer to mood history, - mirroring the one added on `/mood` pointing back here. */} - - {t("mentalHealth.moodLink")} -