From e078f152976661c410ca0a8cd502a6bd3b56e056 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sun, 7 Dec 2025 20:00:01 -0500 Subject: [PATCH] feat(web): update shared routes and home page for dashboard --- src/web-server/shared-routes.ts | 5 ++++- ui/src/pages/home.tsx | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/web-server/shared-routes.ts b/src/web-server/shared-routes.ts index 7a11fd63..fc7d768b 100644 --- a/src/web-server/shared-routes.ts +++ b/src/web-server/shared-routes.ts @@ -154,7 +154,10 @@ function checkSymlinkStatus(): { valid: boolean; message: string } { if (validLinks === linkTypes.length) { return { valid: true, message: 'Symlinks active' }; } else if (validLinks > 0) { - return { valid: false, message: `Symlinks partially configured (${validLinks}/${linkTypes.length})` }; + return { + valid: false, + message: `Symlinks partially configured (${validLinks}/${linkTypes.length})`, + }; } return { valid: false, message: 'Symlinks not configured' }; diff --git a/ui/src/pages/home.tsx b/ui/src/pages/home.tsx index fd34fa3f..2c28ca53 100644 --- a/ui/src/pages/home.tsx +++ b/ui/src/pages/home.tsx @@ -117,7 +117,9 @@ export function HomePage() { value={overview?.health ? `${overview.health.passed}/${overview.health.total}` : '-'} icon={Activity} color={ - overview?.health ? HEALTH_COLORS[overview.health.status as keyof typeof HEALTH_COLORS] : undefined + overview?.health + ? HEALTH_COLORS[overview.health.status as keyof typeof HEALTH_COLORS] + : undefined } onClick={() => navigate('/health')} />