mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +00:00
feat(settings): add the Module (what-you-track) hub
Surface a dedicated settings section for enabling and disabling the secondary tracking domains (mood, sleep, glucose, workouts, recovery, labs, achievements, coach, insights, doctor report, cycle). Each row carries an icon, label, and one-line description with a switch bound to the resolved module map on /auth/me; toggling PATCHes /api/auth/me/modules and invalidates the auth/me query so the navigation, Insights pills, and dashboard tiles re-gate live. Core domains (weight, blood pressure, pulse, medications) render as a read-only always-on group. The entry sits right below Account in the settings navigation.
This commit is contained in:
1 parent
dceac65ab8
commit
f50f92902e
14 files changed
+749
No files matched your search
@@ -12,6 +12,7 @@ import { InsightsSection } from "@/components/settings/insights-section";
|
||||
import { IntegrationsSection } from "@/components/settings/integrations-section";
|
||||
import { LayoutSection } from "@/components/settings/layout-section";
|
||||
import { MedicationsSection } from "@/components/settings/medications-section";
|
||||
import { ModulesSection } from "@/components/settings/modules-section";
|
||||
import { MoodSection } from "@/components/settings/mood-section";
|
||||
import { NotificationsSection } from "@/components/settings/notifications-section";
|
||||
import { RemindersSection } from "@/components/settings/reminders-section";
|
||||
@@ -51,6 +52,7 @@ const SECTION_COMPONENTS: Record<
|
||||
() => JSX.Element | null
|
||||
> = {
|
||||
account: AccountSection,
|
||||
modules: ModulesSection,
|
||||
about: AboutSection,
|
||||
ai: AiSection,
|
||||
integrations: IntegrationsSection,
|
||||
|
||||
Reference in new issue
Block a user