mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
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.
23 lines
683 B
TypeScript
23 lines
683 B
TypeScript
"use client";
|
|
|
|
/**
|
|
* v1.18.7 — Settings → Labor.
|
|
*
|
|
* The labs customise surface (list view, sort order, biomarker management)
|
|
* was a standalone `ModuleSettingsFrame` page at `/settings/labs`; it now
|
|
* renders as a first-class Settings section. The shell supplies the page
|
|
* chrome (left nav, heading, subtitle) so this body is the labs cards only —
|
|
* the same pattern the other module-gated sections (Medikamente, Coach,
|
|
* Stimmung) follow. The nav entry is module-gated on `labs`.
|
|
*/
|
|
|
|
import { LabsSettings } from "@/components/labs/labs-settings";
|
|
|
|
export function LabsSection() {
|
|
return (
|
|
<div className="space-y-6">
|
|
<LabsSettings />
|
|
</div>
|
|
);
|
|
}
|