diff --git a/management/src/pages/System.jsx b/management/src/pages/System.jsx index 9d7726b..5495ace 100644 --- a/management/src/pages/System.jsx +++ b/management/src/pages/System.jsx @@ -105,6 +105,7 @@ const System = () => { case 'cache': return '⚡'; case 'proxy': return '🌐'; case 'application': return '📱'; + case 'app': return '📱'; case 'logging': return '📋'; case 'monitoring': return '📊'; default: return '📦'; @@ -116,13 +117,33 @@ const System = () => { case 'database': return 'border-l-blue-500'; case 'cache': return 'border-l-yellow-500'; case 'proxy': return 'border-l-green-500'; - case 'application': return 'border-l-purple-500'; + case 'application': case 'app': return 'border-l-purple-500'; case 'logging': return 'border-l-orange-500'; case 'monitoring': return 'border-l-red-500'; default: return 'border-l-gray-500'; } }; + const getStatusColor = (status) => { + switch (status) { + case 'healthy': case 'responding': return 'text-green-600'; + case 'timeout': case 'warning': return 'text-yellow-600'; + case 'unreachable': case 'error': case 'health_check_failed': return 'text-red-600'; + case 'running': case 'Up': return 'text-green-600'; + default: return 'text-gray-600'; + } + }; + + const getStatusIcon = (status) => { + switch (status) { + case 'healthy': case 'responding': return '✅'; + case 'timeout': return '⏱️'; + case 'unreachable': case 'error': return '❌'; + case 'running': case 'Up': return '🟢'; + default: return '⚪'; + } + }; + return (