Evolução da plataforma: dashboard com gráficos, notificações, relatórios automáticos, ícones Lucide local e melhorias gerais
- Dashboard com 5 gráficos Chart.js (execuções, status, custo, agentes, pipelines) - Sistema de notificações com polling, badge e Browser Notification API - Relatórios MD automáticos para execuções de agentes e pipelines (data/reports/) - Lucide local (v0.475.0) com nomes de ícones atualizados e refreshIcons centralizado - Correção de ícones icon-only (padding CSS sobrescrito por btn-sm) - Cards de agentes e pipelines com botões alinhados na base (flex column) - Terminal com busca, download, cópia e auto-scroll toggle - Histórico com export CSV, retry, paginação e truncamento de texto - Webhooks com edição e teste inline - Duplicação de agentes e export/import JSON - Rate limiting, CORS, correlação de requests e health check no backend - Escrita atômica em JSON (temp + rename) e store de notificações - Tema claro/escuro com toggle e persistência em localStorage - Atalhos de teclado 1-9 para navegação entre seções
This commit is contained in:
@@ -447,6 +447,8 @@ textarea {
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: fadeInUp 0.3s ease both;
|
||||
}
|
||||
|
||||
@@ -461,6 +463,7 @@ textarea {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.agent-card-top {
|
||||
@@ -529,6 +532,7 @@ textarea {
|
||||
gap: 8px;
|
||||
padding: 12px 20px;
|
||||
border-top: 1px solid var(--border-primary);
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.badge {
|
||||
@@ -664,7 +668,7 @@ textarea {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
.btn.btn-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
@@ -679,6 +683,7 @@ textarea {
|
||||
.btn-sm.btn-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
@@ -1967,6 +1972,7 @@ tbody tr:hover td {
|
||||
flex: 1;
|
||||
padding: 24px 32px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.section {
|
||||
@@ -3395,6 +3401,10 @@ tbody tr:hover td {
|
||||
color: #8b5cf6;
|
||||
}
|
||||
|
||||
#history-list {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.history-card {
|
||||
background-color: var(--bg-card);
|
||||
border: 1px solid var(--border-primary);
|
||||
@@ -3406,6 +3416,8 @@ tbody tr:hover td {
|
||||
transition: all 0.2s;
|
||||
animation: fadeInUp 0.2s ease both;
|
||||
margin-bottom: 8px;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.history-card:hover {
|
||||
@@ -3419,6 +3431,7 @@ tbody tr:hover td {
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.history-card-identity {
|
||||
@@ -3435,6 +3448,7 @@ tbody tr:hover td {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.history-card-task {
|
||||
@@ -3443,6 +3457,7 @@ tbody tr:hover td {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.history-card-info {
|
||||
@@ -4022,3 +4037,210 @@ tbody tr:hover td {
|
||||
display: block;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
--bg-primary: #f5f6f8;
|
||||
--bg-secondary: #ffffff;
|
||||
--bg-tertiary: #eef0f4;
|
||||
--bg-card: #ffffff;
|
||||
--bg-card-hover: #f8f9fb;
|
||||
--bg-input: #eef0f4;
|
||||
--text-primary: #1a1d23;
|
||||
--text-secondary: #4a5068;
|
||||
--text-tertiary: #7c8298;
|
||||
--border-color: #dde0e9;
|
||||
--border-light: #e8ebf0;
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
|
||||
--shadow-md: 0 4px 12px rgba(0,0,0,0.08);
|
||||
--shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
[data-theme="light"] .sidebar { background: #ffffff; border-right: 1px solid var(--border-color); }
|
||||
[data-theme="light"] .sidebar .nav-item:hover,
|
||||
[data-theme="light"] .sidebar .nav-item.active { background: #eef0f4; }
|
||||
[data-theme="light"] .header { background: #ffffff; border-bottom: 1px solid var(--border-color); }
|
||||
[data-theme="light"] .card { background: #ffffff; border: 1px solid var(--border-color); }
|
||||
[data-theme="light"] .modal-content { background: #ffffff; border: 1px solid var(--border-color); }
|
||||
[data-theme="light"] .terminal-output { background: #1e1e2e; color: #cdd6f4; }
|
||||
[data-theme="light"] .input,
|
||||
[data-theme="light"] .select,
|
||||
[data-theme="light"] textarea { background: #eef0f4; border-color: #dde0e9; color: #1a1d23; }
|
||||
[data-theme="light"] .badge { opacity: 0.9; }
|
||||
[data-theme="light"] .table th { background: #eef0f4; }
|
||||
[data-theme="light"] .table td { border-color: #e8ebf0; }
|
||||
[data-theme="light"] .metrics-card { background: #ffffff; border: 1px solid var(--border-color); }
|
||||
|
||||
body, .sidebar, .header, .card, .modal-content, .input, .select, textarea, .metrics-card {
|
||||
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
||||
}
|
||||
|
||||
.theme-icon-dark { display: none; }
|
||||
.theme-icon-light { display: block; }
|
||||
[data-theme="light"] .theme-icon-dark { display: block; }
|
||||
[data-theme="light"] .theme-icon-light { display: none; }
|
||||
|
||||
.charts-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
.charts-row--triple { grid-template-columns: repeat(3, 1fr); }
|
||||
.chart-container {
|
||||
background: var(--bg-card);
|
||||
border-radius: 12px;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--border-color);
|
||||
position: relative;
|
||||
height: 300px;
|
||||
}
|
||||
.charts-row--triple .chart-container {
|
||||
height: auto;
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.charts-row--triple .chart-container canvas {
|
||||
max-height: 200px;
|
||||
align-self: center;
|
||||
}
|
||||
.chart-container canvas {
|
||||
max-height: calc(100% - 2.5rem);
|
||||
}
|
||||
.chart-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
.chart-header h3 {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
margin: 0;
|
||||
}
|
||||
.select-sm {
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
border-radius: 6px;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
@media (max-width: 1024px) {
|
||||
.charts-row, .charts-row--triple { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.notification-wrapper { position: relative; }
|
||||
.notification-badge {
|
||||
position: absolute; top: -4px; right: -4px;
|
||||
background: var(--danger); color: white;
|
||||
font-size: 0.625rem; font-weight: 700;
|
||||
min-width: 18px; height: 18px; border-radius: 9px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
padding: 0 4px; pointer-events: none;
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
.notification-panel {
|
||||
position: absolute; top: calc(100% + 8px); right: 0;
|
||||
width: 380px; max-height: 480px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--shadow-lg);
|
||||
z-index: 1000;
|
||||
display: flex; flex-direction: column; overflow: hidden;
|
||||
}
|
||||
.notification-panel-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0.75rem 1rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.notification-panel-header h3 { font-size: 0.8125rem; font-weight: 600; margin: 0; }
|
||||
.notification-panel-actions { display: flex; gap: 0.25rem; }
|
||||
.notification-list { flex: 1; overflow-y: auto; max-height: 380px; }
|
||||
.notification-item {
|
||||
display: flex; gap: 0.75rem; padding: 0.75rem 1rem;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
cursor: pointer; transition: background 0.15s;
|
||||
}
|
||||
.notification-item:hover { background: var(--bg-tertiary); }
|
||||
.notification-item.unread { background: rgba(99, 102, 241, 0.05); }
|
||||
.notification-item-icon {
|
||||
flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
|
||||
display: flex; align-items: center; justify-content: center; font-size: 14px;
|
||||
}
|
||||
.notification-item-icon.success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
|
||||
.notification-item-icon.error { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
|
||||
.notification-item-icon.info { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
|
||||
.notification-item-content { flex: 1; min-width: 0; }
|
||||
.notification-item-title { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }
|
||||
.notification-item-message { font-size: 0.75rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.notification-item-time { font-size: 0.6875rem; color: var(--text-tertiary); margin-top: 2px; }
|
||||
.notification-empty { padding: 2rem; text-align: center; color: var(--text-tertiary); font-size: 0.8125rem; }
|
||||
|
||||
.terminal-action-toolbar {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0.5rem 0.75rem;
|
||||
background: var(--bg-tertiary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-bottom: none;
|
||||
border-radius: 8px 8px 0 0;
|
||||
}
|
||||
.terminal-toolbar-left, .terminal-toolbar-right { display: flex; align-items: center; gap: 0.25rem; }
|
||||
.terminal-toggle-label {
|
||||
display: flex; align-items: center; gap: 0.375rem;
|
||||
font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; user-select: none;
|
||||
}
|
||||
.terminal-toggle-label input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); }
|
||||
.terminal-search-bar {
|
||||
display: flex; align-items: center; gap: 0.5rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color); border-top: none;
|
||||
}
|
||||
.terminal-search-bar .input--sm { flex: 1; max-width: 300px; }
|
||||
.terminal-search-count { font-size: 0.75rem; color: var(--text-tertiary); min-width: 40px; text-align: center; }
|
||||
.terminal-search-highlight { background: rgba(250, 204, 21, 0.4); border-radius: 2px; }
|
||||
.terminal-search-highlight.active { background: rgba(250, 204, 21, 0.8); }
|
||||
|
||||
.skeleton-pulse {
|
||||
background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card-hover) 50%, var(--bg-tertiary) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
||||
border-radius: 6px;
|
||||
}
|
||||
@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
|
||||
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.report-content {
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
padding: 1.5rem;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.report-markdown {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.7;
|
||||
color: var(--text-primary);
|
||||
tab-size: 2;
|
||||
}
|
||||
|
||||
.report-toast {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.report-toast:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user