feat(web): update shared routes and home page for dashboard

This commit is contained in:
kaitranntt
2025-12-07 20:00:01 -05:00
parent 6e2da6458a
commit e078f15297
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -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' };
+3 -1
View File
@@ -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')}
/>