mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Introduce a shared SettingsSectionFrame (the settings twin of the admin renderer's SectionFrame) that emits the canonical visible heading + subheading, and route all 19 settings sections through it. Every settings page now shows a real h1 + subtitle in the reference Übersicht style instead of an invisible sr-only title; the section bodies drop their own headings and off-style intro paragraphs (the explanatory copy folds into the frame subtitle). - Route the admin About page through SectionFrame so it carries the same visible heading as every other admin section. - Rename the AI settings section from KI-Auswertung to KI-Anbieter across six locales: the page configures the provider and key, not an analysis. - Add a heading-block spacer to the settings and admin sidebars so the first menu item lines up with the top of the first card. - Remove the always-on core-domains card from Module: a tracking area that can't be turned off doesn't need listing. - Move the proactive-coach control out of Benachrichtigungen into Coach. - Move admin module availability out of the Coach section into its own page: it gates every module, not just the coach. - Give the Layout Insights editor a proper Insights heading. Adds settings.sections.<slug>.subtitle and the new admin keys across all six locales; removes the now-unused module core-domain strings.
37 lines
1.7 KiB
TypeScript
37 lines
1.7 KiB
TypeScript
"use client";
|
|
|
|
import { ThresholdsEditorSection } from "@/components/settings/thresholds-editor-section";
|
|
|
|
/**
|
|
* `<ThresholdsSection>` — route-level wrapper for `/settings/thresholds`
|
|
* (the "Targets" / "Zielwerte" page).
|
|
*
|
|
* v1.8.7.1 — Targets and Sources are two separate settings pages again.
|
|
* This page owns only the per-metric target-range editor
|
|
* (`/api/user/thresholds`); the source-priority ladders moved back onto
|
|
* their own `/settings/sources` page (`<SourcesSection>`). The two were
|
|
* merged into one "Targets & Sources" page in v1.4.34 IW-D, but the
|
|
* combined surface ran long and the two editors drive distinct mutation
|
|
* flows, so each concern is self-contained on its own page.
|
|
*
|
|
* Visual structure on this page:
|
|
* 1. Section heading + subtitle — supplied by the shared
|
|
* `<SettingsSectionFrame>` in the route (v1.18.6 W9).
|
|
* 2. `<ThresholdsEditorSection>` — per-metric range inputs. The editor
|
|
* card keeps its own affordance row (icon, reset-all button).
|
|
*
|
|
* v1.4.16 phase B6: file renamed from the historic
|
|
* `thresholds-settings-section.tsx` (`<ThresholdsSettingsSection>`)
|
|
* so the filename + default export match the slug — every other
|
|
* section in `src/components/settings/` follows the
|
|
* `<slug>-section.tsx` `<SlugSection>` convention. The inner editor
|
|
* card was simultaneously moved out of `thresholds-section.tsx`
|
|
* (where it used to live as `<ThresholdsSection>`) into
|
|
* `thresholds-editor-section.tsx` (`<ThresholdsEditorSection>`) so
|
|
* the names stop clashing.
|
|
*/
|
|
export function ThresholdsSection() {
|
|
// Per-metric threshold ranges; the heading is supplied by the route frame.
|
|
return <ThresholdsEditorSection id="thresholds" />;
|
|
}
|