mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
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>
27 lines
816 B
TypeScript
27 lines
816 B
TypeScript
"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>
|
|
);
|
|
}
|