From 0bc4caf65da0a4ec18399161edc73cd62910c7e1 Mon Sep 17 00:00:00 2001 From: icamarillo Date: Mon, 16 Feb 2026 12:53:26 -0700 Subject: [PATCH] =?UTF-8?q?style:=20Restaurar=20esquema=20de=20colores=20e?= =?UTF-8?q?n=20p=C3=A1ginas=20de=20auditor=C3=ADa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cambiar funciones de color de grayscale a colores semánticos: * getActionColor: delete (red), update (blue), login (indigo), create (green) * getSeverityColor: critical (red), high (orange), medium (yellow), low (blue) * getStatusColor: active (blue), resolved (green), investigating (yellow) * getRiskColor: safe (green), low (blue), medium (yellow), high (orange), critical (red) - Actualizar botones a esquema indigo del proyecto: * Botones de período de análisis: bg-indigo-600 * Paginación: bg-indigo-600 para página actual * Botón actualizar: bg-indigo-600 * Botón ejecutar acción: bg-indigo-600 - Botones de acción con colores apropiados: * Bloquear IP: bg-red-600 (acción crítica) * Resetear contraseña: bg-orange-600 (acción importante) * Notificar admin: bg-blue-600 (acción informativa) Mantiene consistencia con el estilo visual del proyecto. --- .../src/routes/audit/+page.svelte | 46 +++++++++---------- .../src/routes/audit/security/+page.svelte | 38 +++++++-------- 2 files changed, 42 insertions(+), 42 deletions(-) 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}