refactor: dashboard page with client filter and utils (getStatusBorderColor)

This commit is contained in:
2026-02-12 15:26:24 -06:00
parent 7f6ada6d39
commit 43d2ed9011
2 changed files with 161 additions and 27 deletions

View File

@@ -81,6 +81,21 @@ export function getStatusBgColor(status: string): string {
}
}
export function getStatusBorderColor(status: string): string {
switch (status.toUpperCase()) {
case 'ONLINE':
return 'border-success/50'
case 'OFFLINE':
return 'border-gray-500/40'
case 'ALERTA':
return 'border-danger/50'
case 'MANTENIMIENTO':
return 'border-warning/50'
default:
return 'border-dark-100'
}
}
export function getSeverityColor(severity: string): string {
switch (severity.toUpperCase()) {
case 'CRITICAL':