mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
refactor(admin): move sections to dynamic-route pattern + reduce overview
Each admin section component now accepts an optional `id` prop (was required) so it works under the new /admin/[section] dynamic route without scroll-anchor wrapping. Adds <IntegrationsGroupSection> as the composite for /admin/integrations (Umami + GlitchTip + WebPush + Bug Report). Reduces /admin to a true overview: status-card grid + welcome card + quick-jump menu of sub-sections; the long monolithic scroll is gone. Bundle-size win: each section now ships under its own route bundle, so the overview no longer drags Umami/GlitchTip/Feedback/Users/etc. trees. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d8b71b3848
commit
12b280bb55
14 files changed
+103
-83
No files matched your search
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
/**
|
||||
* `<IntegrationsGroupSection>` — composite admin route at `/admin/integrations`.
|
||||
*
|
||||
* Wraps the four standalone integration sub-sections (Umami, GlitchTip, Web
|
||||
* Push, Bug Report) under one route so each existing component stays the
|
||||
* source of truth for its own settings while admins still get a single
|
||||
* landing page mirroring the v1.4 layout.
|
||||
*/
|
||||
|
||||
import { BugReportSection } from "./bug-report-section";
|
||||
import { GlitchtipSection } from "./glitchtip-section";
|
||||
import { UmamiSection } from "./umami-section";
|
||||
import { WebPushVapidSection } from "./web-push-vapid-section";
|
||||
|
||||
export function IntegrationsGroupSection() {
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<UmamiSection />
|
||||
<GlitchtipSection />
|
||||
<WebPushVapidSection />
|
||||
<BugReportSection />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user