mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
feat(admin): module availability matrix
Add an operator-side toggle matrix to the admin assistant section that flips each toggleable module on or off server-wide via PATCH /api/admin/settings/module-availability. Mirrors the assistant-flags matrix: one neutral toggle per module, optimistic flip with a revert on failure, and an authMe invalidation so the resolved module map re-gates the session immediately. New admin.modules.* labels across all six locales; core domains never appear.
This commit is contained in:
1 parent
5d55347dd0
commit
4a1971c0dd
9 files changed
+155
No files matched your search
@@ -29,6 +29,7 @@ import { FeedbackInboxSection } from "@/components/admin/feedback-inbox-section"
|
||||
import { GeneralSettingsSection } from "@/components/admin/general-settings-section";
|
||||
import { IntegrationsGroupSection } from "@/components/admin/integrations-group-section";
|
||||
import { LoginOverviewSection } from "@/components/admin/login-overview-section";
|
||||
import { ModuleAvailabilitySection } from "@/components/admin/module-availability-section";
|
||||
import { RemindersSection } from "@/components/admin/reminders-section";
|
||||
import { ServicesSection } from "@/components/admin/services-section";
|
||||
import { SystemStatusSection } from "@/components/admin/system-status-section";
|
||||
@@ -105,6 +106,7 @@ export function AdminSectionRenderer({
|
||||
subtitle={t("admin.section.assistant.subtitle")}
|
||||
>
|
||||
<AssistantSection />
|
||||
<ModuleAvailabilitySection />
|
||||
<AiServerKeySection />
|
||||
</SectionFrame>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user