From 961e2a9a5c3b3ac274febcc0ef5b90fa5f77c5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 9 May 2026 17:00:18 +0200 Subject: [PATCH] fix(admin): status-card CTAs use real routes (not #anchor) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v1.4.6 status cards linked to `/admin#section-*` anchors that required server-side scroll into the monolithic admin page. With the v1.5 dynamic-route refactor, every section is its own route, so each href now points at `/admin/` — fixes the v1.4.6 T6 honesty problem permanently. Mapping: Users -> /admin/users Integrations -> /admin/integrations Monitoring -> /admin/integrations Backups -> /admin/backups Maintenance -> /admin/reminders Audit log -> /admin/login-overview Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/admin/status-card-grid.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/admin/status-card-grid.tsx b/src/components/admin/status-card-grid.tsx index 47094c43c..19e74a6c8 100644 --- a/src/components/admin/status-card-grid.tsx +++ b/src/components/admin/status-card-grid.tsx @@ -144,7 +144,7 @@ export function buildCards(data: StatusOverview): StatusCardProps[] { { label: "Admins", value: data.users.admins }, { label: "New 7d", value: data.users.newThisWeek }, ], - href: "/admin#section-user-management", + href: "/admin/users", cta: "Manage users", }, { @@ -156,7 +156,7 @@ export function buildCards(data: StatusOverview): StatusCardProps[] { { label: "moodLog", value: data.integrations.moodLog }, { label: "Push", value: data.integrations.webPush }, ], - href: "/admin#section-admin-umami", + href: "/admin/integrations", cta: "Open integrations", }, { @@ -174,7 +174,7 @@ export function buildCards(data: StatusOverview): StatusCardProps[] { }, { label: "Last err", value: fmtRelative(data.monitoring.lastErrorAt) }, ], - href: "/admin#section-admin-glitchtip", + href: "/admin/integrations", cta: "View monitoring", }, { @@ -186,8 +186,8 @@ export function buildCards(data: StatusOverview): StatusCardProps[] { { label: "Users", value: data.backups.backedUpUsers }, { label: "Retain", value: `${data.backups.retentionDays}d` }, ], - href: "/admin#section-system-status", - cta: "Open system status", + href: "/admin/backups", + cta: "Open backups", }, { title: "Maintenance", @@ -207,7 +207,7 @@ export function buildCards(data: StatusOverview): StatusCardProps[] { value: fmtRelative(data.maintenance.lastIdempotencyCleanup), }, ], - href: "/admin#section-admin-reminders", + href: "/admin/reminders", cta: "View jobs", }, { @@ -219,7 +219,7 @@ export function buildCards(data: StatusOverview): StatusCardProps[] { { label: "Last login", value: fmtRelative(data.auditLog.lastLoginAt) }, { label: "—", value: "" }, ], - href: "/admin#section-login-overview", + href: "/admin/login-overview", cta: "Open viewer", }, ];