mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
fix(admin): status-card CTAs use real routes (not #anchor)
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/<slug>` — 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) <noreply@anthropic.com>
This commit is contained in:
1 parent
73965cd1ac
commit
961e2a9a5c
1 file changed
+7
-7
@@ -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",
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user