Files
HealthLog/src/components/settings/vorsorge-section.tsx
T
Marc-André Bombeck 43d9610f03 refactor(settings): fold Labs, Vorsorge, and Illness into the shell
Promote the three per-module customise surfaces from standalone
ModuleSettingsFrame pages to first-class Settings sections. They now
render inside the Settings shell — same left nav, heading, and chrome as
account / ai / integrations / notifications — instead of their own
back-button-and-title frame outside it.

Add labs, illness, and vorsorge to the slug registry (after mood) and to
SETTINGS_SECTIONS with FlaskConical / Thermometer / CalendarCheck icons.
labs and illness gate on their toggleable modules; vorsorge has no
module, so its entry is always shown. Three thin section components wrap
the existing LabsSettings / IllnessSettings / VorsorgeSettings content,
mirroring MedicationsSection / CoachSection.

Delete the three standalone /settings/{labs,vorsorge,illness} routes so
the wrench deep links resolve through the dynamic [section] route, and
drop ModuleSettingsFrame now that nothing renders it. Add the section
title / subtitle / description keys across all six locales and remove the
dead per-module *.settings.* blocks the old pages consumed.
2026-06-19 21:06:25 +02:00

23 lines
727 B
TypeScript

"use client";
/**
* v1.18.7 — Settings → Vorsorge.
*
* The preventive-care reminders customise surface (list view, order,
* individual reminders) was a standalone `ModuleSettingsFrame` page at
* `/settings/vorsorge`; it now renders as a first-class Settings section.
* The shell supplies the page chrome (left nav, heading, subtitle) so this
* body is the preventive-care cards only. Preventive-care reminders are not
* a toggleable module, so this entry carries no `moduleGate` (always shown).
*/
import { VorsorgeSettings } from "@/components/measurement-reminders/vorsorge-settings";
export function VorsorgeSection() {
return (
<div className="space-y-6">
<VorsorgeSettings />
</div>
);
}