diff --git a/frontend-internal/src/routes/audit/+page.svelte b/frontend-internal/src/routes/audit/+page.svelte index c47480e..7ad0613 100644 --- a/frontend-internal/src/routes/audit/+page.svelte +++ b/frontend-internal/src/routes/audit/+page.svelte @@ -353,49 +353,49 @@ } /** - * Obtener color de badge según tipo de acción (solo escala de grises) + * Obtener color de badge según tipo de acción */ function getActionColor(action: string): string { - if (action.includes('delete')) return 'bg-gray-800 text-white'; - if (action.includes('update')) return 'bg-gray-600 text-white'; - if (action.includes('login') || action.includes('logout')) return 'bg-gray-400 text-white'; - if (action.includes('create')) return 'bg-gray-300 text-gray-800'; - return 'bg-gray-200 text-gray-700'; + if (action.includes('delete')) return 'bg-red-600 text-white'; + if (action.includes('update')) return 'bg-blue-600 text-white'; + if (action.includes('login') || action.includes('logout')) return 'bg-indigo-600 text-white'; + if (action.includes('create')) return 'bg-green-600 text-white'; + return 'bg-gray-600 text-white'; } /** - * Obtener color de severidad (escala de grises) + * Obtener color de severidad */ function getSeverityColor(severity: string): string { switch(severity?.toLowerCase()) { case 'critical': - return 'bg-gray-900 text-white'; + return 'bg-red-600 text-white'; case 'high': - return 'bg-gray-700 text-white'; + return 'bg-orange-600 text-white'; case 'medium': - return 'bg-gray-500 text-white'; + return 'bg-yellow-500 text-white'; case 'low': - return 'bg-gray-300 text-gray-800'; + return 'bg-blue-600 text-white'; default: - return 'bg-gray-200 text-gray-700'; + return 'bg-gray-600 text-white'; } } /** - * Obtener color de estado (escala de grises) + * Obtener color de estado */ function getStatusColor(status: string): string { switch(status?.toLowerCase()) { case 'active': case 'open': - return 'bg-gray-800 text-white'; + return 'bg-blue-600 text-white'; case 'resolved': case 'closed': - return 'bg-gray-400 text-white'; + return 'bg-green-600 text-white'; case 'investigating': - return 'bg-gray-600 text-white'; + return 'bg-yellow-500 text-white'; default: - return 'bg-gray-200 text-gray-700'; + return 'bg-gray-600 text-white'; } } @@ -525,31 +525,31 @@
@@ -418,7 +418,7 @@ {#if threat.affected_ips.length > 0}