From ec519bb4a4b49c79091bb42cd4d82fa1f1b865e7 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 16:54:51 -0300 Subject: [PATCH] Feat: adicionar sistema de ajuda com modais explicativos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adicionar ícones de ajuda (❓) para todas as métricas e recursos - Implementar modal de ajuda com conteúdo explicativo detalhado - Criar explicações leigo-friendly para conceitos técnicos - Adicionar ajuda para: Pods, Namespaces, Critical Issues, Overcommit - Explicar recursos: CPU, Memory, Resource Consumption - Detalhar QoS classes: Guaranteed, Burstable, BestEffort - Incluir Top Resource Consumers e QoS Distribution - Melhorar UX com tooltips informativos e design responsivo - Adicionar estilos CSS para ícones e modal de ajuda --- app/static/index.html | 409 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 395 insertions(+), 14 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index cbea0c0..40b390c 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1008,6 +1008,88 @@ border-top: 2px solid #e9ecef; } + /* Help Icon Styles */ + .help-icon { + cursor: pointer; + color: #007bff; + font-size: 1.2rem; + margin-left: 0.5rem; + transition: color 0.2s ease; + } + + .help-icon:hover { + color: #0056b3; + } + + .help-icon-small { + cursor: pointer; + color: #007bff; + font-size: 0.9rem; + margin-left: 0.3rem; + transition: color 0.2s ease; + } + + .help-icon-small:hover { + color: #0056b3; + } + + /* Help Modal Styles */ + .help-modal-content { + max-width: 600px; + } + + .help-content { + line-height: 1.6; + } + + .help-content h3 { + color: #007bff; + margin: 1.5rem 0 1rem 0; + font-size: 1.2rem; + } + + .help-content h4 { + color: #333; + margin: 1rem 0 0.5rem 0; + font-size: 1.1rem; + } + + .help-content p { + margin: 0.5rem 0; + color: #555; + } + + .help-content ul { + margin: 0.5rem 0; + padding-left: 1.5rem; + } + + .help-content li { + margin: 0.3rem 0; + color: #555; + } + + .help-content .highlight { + background: #fff3cd; + padding: 0.2rem 0.4rem; + border-radius: 3px; + font-weight: 500; + } + + .help-content .warning { + background: #f8d7da; + padding: 0.2rem 0.4rem; + border-radius: 3px; + font-weight: 500; + } + + .help-content .success { + background: #d4edda; + padding: 0.2rem 0.4rem; + border-radius: 3px; + font-weight: 500; + } + /* Smart Recommendations Styles */ .validation-details { display: flex; @@ -1303,19 +1385,19 @@
- Pods: + Pods : -
- Namespaces: + Namespaces : -
- Critical Issues: + Critical Issues : -
- Overcommit: + Overcommit : -
@@ -1323,10 +1405,10 @@
-

📊 Resource Consumption

+

📊 Resource Consumption

-

CPU

+

CPU

@@ -1336,7 +1418,7 @@
-

Memory

+

Memory

@@ -1350,7 +1432,7 @@
-

🥇 Top Resource Consumers

+

🥇 Top Resource Consumers

@@ -1358,18 +1440,18 @@
-

⚡ QoS Distribution

+

⚡ QoS Distribution

- Guaranteed: + Guaranteed : 0
- Burstable: + Burstable : 0
- BestEffort: + BestEffort : 0
@@ -1539,9 +1621,24 @@
-
+ -