diff --git a/messages/de.json b/messages/de.json index 04042b5e4..66c41c8b7 100644 --- a/messages/de.json +++ b/messages/de.json @@ -6692,6 +6692,10 @@ "illness": { "title": "Krankheitstagebuch", "subtitle": "Ein rückblickendes Protokoll deiner Krankheits- und Beschwerde-Episoden.", + "settings": { + "viewDescription": "Wähle, ob Episoden als Karten oder als kompakte Liste erscheinen.", + "orderDescription": "Ziehe deine Episoden in die gewünschte Reihenfolge." + }, "customize": "Krankheitstagebuch anpassen", "newEpisode": "Neue Episode", "logDay": "Tag erfassen", diff --git a/messages/en.json b/messages/en.json index 77ba786cb..6961ab325 100644 --- a/messages/en.json +++ b/messages/en.json @@ -6692,6 +6692,10 @@ "illness": { "title": "Illness journal", "subtitle": "A retrospective log of your illness and condition episodes.", + "settings": { + "viewDescription": "Choose whether episodes show as cards or as a compact list.", + "orderDescription": "Drag your episodes into the order you want to see them in." + }, "customize": "Customize illness journal", "newEpisode": "New episode", "logDay": "Log a day", diff --git a/messages/es.json b/messages/es.json index bf960df41..0b1de3bf0 100644 --- a/messages/es.json +++ b/messages/es.json @@ -6692,6 +6692,10 @@ "illness": { "title": "Diario de enfermedad", "subtitle": "Un registro retrospectivo de tus episodios de enfermedad y dolencias.", + "settings": { + "viewDescription": "Elige si los episodios se muestran como tarjetas o como lista compacta.", + "orderDescription": "Arrastra tus episodios al orden en que quieres verlos." + }, "customize": "Personalizar diario de enfermedad", "newEpisode": "Nuevo episodio", "logDay": "Registrar un día", diff --git a/messages/fr.json b/messages/fr.json index f10b70a3e..62ef954af 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -6692,6 +6692,10 @@ "illness": { "title": "Journal de maladie", "subtitle": "Un suivi rétrospectif de vos épisodes de maladie et d'affections.", + "settings": { + "viewDescription": "Choisis si les épisodes s'affichent en cartes ou en liste compacte.", + "orderDescription": "Fais glisser tes épisodes dans l'ordre où tu veux les voir." + }, "customize": "Personnaliser le journal de maladie", "newEpisode": "Nouvel épisode", "logDay": "Enregistrer un jour", diff --git a/messages/it.json b/messages/it.json index ff1db744a..97c154aa7 100644 --- a/messages/it.json +++ b/messages/it.json @@ -6692,6 +6692,10 @@ "illness": { "title": "Diario delle malattie", "subtitle": "Un registro retrospettivo dei tuoi episodi di malattia e disturbi.", + "settings": { + "viewDescription": "Scegli se gli episodi appaiono come schede o come elenco compatto.", + "orderDescription": "Trascina i tuoi episodi nell'ordine in cui vuoi vederli." + }, "customize": "Personalizza diario delle malattie", "newEpisode": "Nuovo episodio", "logDay": "Registra un giorno", diff --git a/messages/pl.json b/messages/pl.json index 48a9ed697..c741b7a4b 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -6692,6 +6692,10 @@ "illness": { "title": "Dziennik chorób", "subtitle": "Retrospektywny zapis Twoich epizodów chorób i dolegliwości.", + "settings": { + "viewDescription": "Wybierz, czy epizody mają być wyświetlane jako karty czy zwarta lista.", + "orderDescription": "Przeciągnij epizody w kolejność, w jakiej chcesz je widzieć." + }, "customize": "Dostosuj dziennik chorób", "newEpisode": "Nowy epizod", "logDay": "Zapisz dzień", diff --git a/src/components/illness/illness-settings.tsx b/src/components/illness/illness-settings.tsx index 7b33496f3..d6952bc5e 100644 --- a/src/components/illness/illness-settings.tsx +++ b/src/components/illness/illness-settings.tsx @@ -6,8 +6,18 @@ * Reached from the wrench beside the page's "hinzufügen" button. Lets the * user reorder conditions/episodes + pick the card-vs-list page view. Order * + view persist client-side via `useModuleListPrefs("illness")`. + * + * v1.18.9 — restructured onto the canonical Settings pattern: each block is a + * `` with a `` (neutral icon + `text-lg` + * title + a short muted description), matching the Stimmung / Medikamente + * sections rather than the bespoke bare-`
` headings it carried + * before. */ +import { Eye, ListOrdered } from "lucide-react"; + import { Skeleton } from "@/components/ui/skeleton"; +import { SettingsCard } from "@/components/settings/settings-card"; +import { SettingsCardHeader } from "@/components/settings/_card-header"; import { useTranslations, useFormatters } from "@/lib/i18n/context"; import { ModuleViewToggle } from "@/components/module-list/module-view-toggle"; import { @@ -37,23 +47,22 @@ export function IllnessSettings() { })); return ( -
-
-
-

- {t("moduleList.viewHeading")} -

- -
-

- {t("moduleList.viewDescription")} -

-
+
+ + } + /> + -
-

- {t("moduleList.reorder.heading")} -

+ + {isLoading ? (
{Array.from({ length: 3 }, (_, i) => ( @@ -63,7 +72,7 @@ export function IllnessSettings() { ) : ( )} -
+
); }