Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +1232 -19
- prompts.txt +2 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: efficiente-admin
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,1232 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Efficient Data Integration</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
|
| 12 |
+
}
|
| 13 |
+
.sidebar {
|
| 14 |
+
transition: all 0.3s ease;
|
| 15 |
+
}
|
| 16 |
+
.sidebar-collapsed {
|
| 17 |
+
width: 70px;
|
| 18 |
+
}
|
| 19 |
+
.sidebar-collapsed .nav-text {
|
| 20 |
+
display: none;
|
| 21 |
+
}
|
| 22 |
+
.sidebar-collapsed .logo-text {
|
| 23 |
+
display: none;
|
| 24 |
+
}
|
| 25 |
+
.sidebar-collapsed .nav-item {
|
| 26 |
+
justify-content: center;
|
| 27 |
+
}
|
| 28 |
+
.file-drop-area {
|
| 29 |
+
border: 2px dashed #cbd5e0;
|
| 30 |
+
transition: all 0.3s ease;
|
| 31 |
+
}
|
| 32 |
+
.file-drop-area.active {
|
| 33 |
+
border-color: #3b82f6;
|
| 34 |
+
background-color: #f0f7ff;
|
| 35 |
+
}
|
| 36 |
+
.chart-container {
|
| 37 |
+
height: 300px;
|
| 38 |
+
}
|
| 39 |
+
.notification {
|
| 40 |
+
animation: slideIn 0.5s forwards;
|
| 41 |
+
}
|
| 42 |
+
@keyframes slideIn {
|
| 43 |
+
from { transform: translateX(100%); opacity: 0; }
|
| 44 |
+
to { transform: translateX(0); opacity: 1; }
|
| 45 |
+
}
|
| 46 |
+
.progress-bar {
|
| 47 |
+
transition: width 0.3s ease;
|
| 48 |
+
}
|
| 49 |
+
.toggle-checkbox:checked {
|
| 50 |
+
right: 0;
|
| 51 |
+
border-color: #3b82f6;
|
| 52 |
+
}
|
| 53 |
+
.toggle-checkbox:checked + .toggle-label {
|
| 54 |
+
background-color: #3b82f6;
|
| 55 |
+
}
|
| 56 |
+
.code-block {
|
| 57 |
+
font-family: 'Courier New', Courier, monospace;
|
| 58 |
+
background-color: #1e293b;
|
| 59 |
+
color: #f8fafc;
|
| 60 |
+
padding: 1rem;
|
| 61 |
+
border-radius: 0.5rem;
|
| 62 |
+
overflow-x: auto;
|
| 63 |
+
}
|
| 64 |
+
</style>
|
| 65 |
+
</head>
|
| 66 |
+
<body class="bg-gray-50 font-sans">
|
| 67 |
+
<!-- Login Screen (Initial View) -->
|
| 68 |
+
<div id="login-screen" class="min-h-screen flex items-center justify-center gradient-bg p-4">
|
| 69 |
+
<div class="bg-white rounded-xl shadow-2xl p-8 w-full max-w-md">
|
| 70 |
+
<div class="text-center mb-8">
|
| 71 |
+
<img src="https://via.placeholder.com/150x50?text=Efficient" alt="Efficient Logo" class="h-12 mx-auto mb-4">
|
| 72 |
+
<h1 class="text-2xl font-bold text-gray-800">Integração de Dados</h1>
|
| 73 |
+
<p class="text-gray-600 mt-2">Faça login para acessar o painel de administração</p>
|
| 74 |
+
</div>
|
| 75 |
+
<form id="login-form" class="space-y-6">
|
| 76 |
+
<div>
|
| 77 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">E-mail</label>
|
| 78 |
+
<input type="email" id="email" required class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition">
|
| 79 |
+
</div>
|
| 80 |
+
<div>
|
| 81 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Senha</label>
|
| 82 |
+
<input type="password" id="password" required class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition">
|
| 83 |
+
</div>
|
| 84 |
+
<div class="flex items-center justify-between">
|
| 85 |
+
<div class="flex items-center">
|
| 86 |
+
<input type="checkbox" id="remember" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
|
| 87 |
+
<label for="remember" class="ml-2 block text-sm text-gray-700">Lembrar-me</label>
|
| 88 |
+
</div>
|
| 89 |
+
<a href="#" class="text-sm text-blue-600 hover:text-blue-800">Esqueceu a senha?</a>
|
| 90 |
+
</div>
|
| 91 |
+
<button type="submit" class="w-full gradient-bg text-white py-3 px-4 rounded-lg font-medium hover:opacity-90 transition flex items-center justify-center">
|
| 92 |
+
<i class="fas fa-sign-in-alt mr-2"></i> Entrar
|
| 93 |
+
</button>
|
| 94 |
+
</form>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<!-- Main Application (Hidden Initially) -->
|
| 99 |
+
<div id="app-container" class="hidden min-h-screen flex">
|
| 100 |
+
<!-- Sidebar -->
|
| 101 |
+
<div id="sidebar" class="sidebar bg-white shadow-md flex flex-col h-screen">
|
| 102 |
+
<div class="p-4 border-b border-gray-200 flex items-center">
|
| 103 |
+
<button id="toggle-sidebar" class="text-gray-500 hover:text-gray-700 mr-3">
|
| 104 |
+
<i class="fas fa-bars"></i>
|
| 105 |
+
</button>
|
| 106 |
+
<div class="flex items-center">
|
| 107 |
+
<img src="https://via.placeholder.com/40?text=E" alt="Logo" class="h-8 w-8">
|
| 108 |
+
<span class="logo-text ml-2 font-bold text-gray-800">Efficient</span>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
<nav class="flex-1 overflow-y-auto py-4">
|
| 112 |
+
<div class="px-4 space-y-1">
|
| 113 |
+
<a href="#" id="nav-import" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg bg-blue-50 text-blue-700">
|
| 114 |
+
<i class="fas fa-file-import mr-3 text-blue-600"></i>
|
| 115 |
+
<span class="nav-text">Importar Dados</span>
|
| 116 |
+
</a>
|
| 117 |
+
<a href="#" id="nav-dashboard" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-600 hover:bg-gray-100">
|
| 118 |
+
<i class="fas fa-chart-bar mr-3 text-gray-500"></i>
|
| 119 |
+
<span class="nav-text">Dashboard</span>
|
| 120 |
+
</a>
|
| 121 |
+
<a href="#" id="nav-api" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-600 hover:bg-gray-100">
|
| 122 |
+
<i class="fas fa-plug mr-3 text-gray-500"></i>
|
| 123 |
+
<span class="nav-text">Integração API</span>
|
| 124 |
+
</a>
|
| 125 |
+
<a href="#" id="nav-ai" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-600 hover:bg-gray-100">
|
| 126 |
+
<i class="fas fa-robot mr-3 text-gray-500"></i>
|
| 127 |
+
<span class="nav-text">Agentes de IA</span>
|
| 128 |
+
</a>
|
| 129 |
+
<a href="#" id="nav-logs" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-600 hover:bg-gray-100">
|
| 130 |
+
<i class="fas fa-clipboard-list mr-3 text-gray-500"></i>
|
| 131 |
+
<span class="nav-text">Logs de Atividade</span>
|
| 132 |
+
</a>
|
| 133 |
+
</div>
|
| 134 |
+
</nav>
|
| 135 |
+
<div class="p-4 border-t border-gray-200">
|
| 136 |
+
<div class="flex items-center">
|
| 137 |
+
<img src="https://via.placeholder.com/40" alt="User" class="h-10 w-10 rounded-full">
|
| 138 |
+
<div class="ml-3">
|
| 139 |
+
<p class="text-sm font-medium text-gray-700">Admin User</p>
|
| 140 |
+
<p class="text-xs text-gray-500">admin@efficient.com</p>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
<button id="logout-btn" class="mt-4 w-full flex items-center justify-center text-sm text-gray-600 hover:text-gray-900">
|
| 144 |
+
<i class="fas fa-sign-out-alt mr-2"></i>
|
| 145 |
+
<span class="nav-text">Sair</span>
|
| 146 |
+
</button>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
|
| 150 |
+
<!-- Main Content -->
|
| 151 |
+
<div class="flex-1 overflow-auto h-screen">
|
| 152 |
+
<!-- Workspace Selector -->
|
| 153 |
+
<div class="bg-white shadow-sm py-3 px-6 border-b border-gray-200">
|
| 154 |
+
<div class="flex items-center justify-between">
|
| 155 |
+
<div class="flex items-center space-x-4">
|
| 156 |
+
<div>
|
| 157 |
+
<label for="company-select" class="block text-xs font-medium text-gray-500 mb-1">EMPRESA</label>
|
| 158 |
+
<select id="company-select" class="text-sm font-medium text-gray-800 bg-transparent border-0 focus:ring-0 focus:border-gray-300">
|
| 159 |
+
<option>Empresa A</option>
|
| 160 |
+
<option>Empresa B</option>
|
| 161 |
+
<option>Empresa C</option>
|
| 162 |
+
<option>+ Adicionar nova empresa</option>
|
| 163 |
+
</select>
|
| 164 |
+
</div>
|
| 165 |
+
<div class="text-sm text-gray-500">
|
| 166 |
+
<span>Última atualização: hoje às 14:30</span>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
<div>
|
| 170 |
+
<button class="text-sm text-blue-600 hover:text-blue-800 flex items-center">
|
| 171 |
+
<i class="fas fa-cog mr-1"></i> Configurações
|
| 172 |
+
</button>
|
| 173 |
+
</div>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<!-- Header -->
|
| 178 |
+
<header class="bg-white shadow-sm py-4 px-6 flex items-center justify-between">
|
| 179 |
+
<h2 id="page-title" class="text-xl font-semibold text-gray-800">Importar Dados</h2>
|
| 180 |
+
<div class="flex items-center space-x-4">
|
| 181 |
+
<button class="p-2 text-gray-500 hover:text-gray-700 rounded-full hover:bg-gray-100">
|
| 182 |
+
<i class="fas fa-bell"></i>
|
| 183 |
+
</button>
|
| 184 |
+
<button class="p-2 text-gray-500 hover:text-gray-700 rounded-full hover:bg-gray-100">
|
| 185 |
+
<i class="fas fa-question-circle"></i>
|
| 186 |
+
</button>
|
| 187 |
+
</div>
|
| 188 |
+
</header>
|
| 189 |
+
|
| 190 |
+
<!-- Import Data Section -->
|
| 191 |
+
<div id="import-section" class="p-6">
|
| 192 |
+
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 193 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Upload de Arquivos</h3>
|
| 194 |
+
<div id="file-drop-area" class="file-drop-area border-2 border-dashed rounded-lg p-8 text-center cursor-pointer mb-4">
|
| 195 |
+
<div class="flex flex-col items-center justify-center">
|
| 196 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-3"></i>
|
| 197 |
+
<p class="text-gray-600 mb-1">Arraste e solte seu arquivo aqui</p>
|
| 198 |
+
<p class="text-sm text-gray-500 mb-4">ou</p>
|
| 199 |
+
<button id="browse-btn" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition">
|
| 200 |
+
Selecione o arquivo
|
| 201 |
+
</button>
|
| 202 |
+
</div>
|
| 203 |
+
<input type="file" id="file-input" class="hidden" accept=".csv, .xlsx, .json">
|
| 204 |
+
</div>
|
| 205 |
+
<div class="text-sm text-gray-500">
|
| 206 |
+
<p>Formatos suportados: CSV, XLSX, JSON</p>
|
| 207 |
+
<p>Tamanho máximo: 10MB</p>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
<div id="file-processing" class="hidden bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 212 |
+
<div class="flex items-center justify-between mb-4">
|
| 213 |
+
<div>
|
| 214 |
+
<h4 class="font-medium text-gray-800" id="processing-filename">processando arquivo.csv</h4>
|
| 215 |
+
<p class="text-sm text-gray-500">Validando dados...</p>
|
| 216 |
+
</div>
|
| 217 |
+
<div class="text-right">
|
| 218 |
+
<span id="processing-percentage" class="font-medium">0%</span>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 222 |
+
<div id="progress-bar" class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
|
| 226 |
+
<div id="validation-results" class="hidden bg-white rounded-xl shadow-sm p-6">
|
| 227 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Resultados da Validação</h3>
|
| 228 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
|
| 229 |
+
<div class="bg-blue-50 rounded-lg p-4">
|
| 230 |
+
<p class="text-sm text-blue-600 font-medium mb-1">Total de Colaboradores</p>
|
| 231 |
+
<p id="total-employees" class="text-2xl font-bold text-blue-800">0</p>
|
| 232 |
+
</div>
|
| 233 |
+
<div class="bg-red-50 rounded-lg p-4">
|
| 234 |
+
<p class="text-sm text-red-600 font-medium mb-1">Erros Encontrados</p>
|
| 235 |
+
<p id="total-errors" class="text-2xl font-bold text-red-800">0</p>
|
| 236 |
+
</div>
|
| 237 |
+
<div class="bg-green-50 rounded-lg p-4">
|
| 238 |
+
<p class="text-sm text-green-600 font-medium mb-1">Total de Gestores</p>
|
| 239 |
+
<p id="total-managers" class="text-2xl font-bold text-green-800">0</p>
|
| 240 |
+
</div>
|
| 241 |
+
<div class="bg-yellow-50 rounded-lg p-4">
|
| 242 |
+
<p class="text-sm text-yellow-600 font-medium mb-1">Funcionários Demitidos</p>
|
| 243 |
+
<p id="total-dismissed" class="text-2xl font-bold text-yellow-800">0</p>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
|
| 247 |
+
<div class="mb-6">
|
| 248 |
+
<h4 class="font-medium text-gray-800 mb-2">Detalhes dos Erros</h4>
|
| 249 |
+
<div class="overflow-x-auto">
|
| 250 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 251 |
+
<thead class="bg-gray-50">
|
| 252 |
+
<tr>
|
| 253 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Linha</th>
|
| 254 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Campo</th>
|
| 255 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Erro</th>
|
| 256 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor</th>
|
| 257 |
+
</tr>
|
| 258 |
+
</thead>
|
| 259 |
+
<tbody id="error-details" class="bg-white divide-y divide-gray-200">
|
| 260 |
+
<!-- Errors will be populated here -->
|
| 261 |
+
</tbody>
|
| 262 |
+
</table>
|
| 263 |
+
</div>
|
| 264 |
+
</div>
|
| 265 |
+
|
| 266 |
+
<div class="flex justify-end space-x-3">
|
| 267 |
+
<button id="cancel-import" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition">
|
| 268 |
+
Cancelar
|
| 269 |
+
</button>
|
| 270 |
+
<button id="confirm-import" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition flex items-center">
|
| 271 |
+
<i class="fas fa-check-circle mr-2"></i> Confirmar Importação
|
| 272 |
+
</button>
|
| 273 |
+
</div>
|
| 274 |
+
</div>
|
| 275 |
+
</div>
|
| 276 |
+
|
| 277 |
+
<!-- Dashboard Section -->
|
| 278 |
+
<div id="dashboard-section" class="hidden p-6">
|
| 279 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
|
| 280 |
+
<div class="bg-white rounded-xl shadow-sm p-6 col-span-2">
|
| 281 |
+
<div class="flex items-center justify-between mb-4">
|
| 282 |
+
<h3 class="text-lg font-medium text-gray-800">Visão Geral</h3>
|
| 283 |
+
<div class="flex items-center space-x-2">
|
| 284 |
+
<span class="text-sm text-gray-500">Período:</span>
|
| 285 |
+
<select class="text-sm border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 286 |
+
<option>Últimos 7 dias</option>
|
| 287 |
+
<option>Últimos 30 dias</option>
|
| 288 |
+
<option selected>Últimos 90 dias</option>
|
| 289 |
+
<option>Este ano</option>
|
| 290 |
+
</select>
|
| 291 |
+
</div>
|
| 292 |
+
</div>
|
| 293 |
+
<div class="chart-container">
|
| 294 |
+
<canvas id="imports-chart"></canvas>
|
| 295 |
+
</div>
|
| 296 |
+
</div>
|
| 297 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
| 298 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Últimas Importações</h3>
|
| 299 |
+
<div class="space-y-4">
|
| 300 |
+
<div class="flex items-start">
|
| 301 |
+
<div class="bg-green-100 p-2 rounded-full mr-3">
|
| 302 |
+
<i class="fas fa-check-circle text-green-600"></i>
|
| 303 |
+
</div>
|
| 304 |
+
<div>
|
| 305 |
+
<p class="text-sm font-medium text-gray-800">Importação concluída</p>
|
| 306 |
+
<p class="text-xs text-gray-500">Hoje, 10:42 AM</p>
|
| 307 |
+
<p class="text-xs text-gray-500">245 registros</p>
|
| 308 |
+
</div>
|
| 309 |
+
</div>
|
| 310 |
+
<div class="flex items-start">
|
| 311 |
+
<div class="bg-yellow-100 p-2 rounded-full mr-3">
|
| 312 |
+
<i class="fas fa-exclamation-triangle text-yellow-600"></i>
|
| 313 |
+
</div>
|
| 314 |
+
<div>
|
| 315 |
+
<p class="text-sm font-medium text-gray-800">Importação com erros</p>
|
| 316 |
+
<p class="text-xs text-gray-500">Ontem, 3:15 PM</p>
|
| 317 |
+
<p class="text-xs text-gray-500">12 erros encontrados</p>
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
<div class="flex items-start">
|
| 321 |
+
<div class="bg-blue-100 p-2 rounded-full mr-3">
|
| 322 |
+
<i class="fas fa-file-import text-blue-600"></i>
|
| 323 |
+
</div>
|
| 324 |
+
<div>
|
| 325 |
+
<p class="text-sm font-medium text-gray-800">Nova importação iniciada</p>
|
| 326 |
+
<p class="text-xs text-gray-500">Ontem, 9:30 AM</p>
|
| 327 |
+
<p class="text-xs text-gray-500">arquivo_funcionarios.xlsx</p>
|
| 328 |
+
</div>
|
| 329 |
+
</div>
|
| 330 |
+
</div>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
|
| 334 |
+
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 335 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Estatísticas de Colaboradores</h3>
|
| 336 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
|
| 337 |
+
<div class="bg-indigo-50 rounded-lg p-4">
|
| 338 |
+
<p class="text-sm text-indigo-600 font-medium mb-1">Total Ativos</p>
|
| 339 |
+
<p class="text-2xl font-bold text-indigo-800">1,245</p>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="bg-purple-50 rounded-lg p-4">
|
| 342 |
+
<p class="text-sm text-purple-600 font-medium mb-1">Novos (30 dias)</p>
|
| 343 |
+
<p class="text-2xl font-bold text-purple-800">42</p>
|
| 344 |
+
</div>
|
| 345 |
+
<div class="bg-pink-50 rounded-lg p-4">
|
| 346 |
+
<p class="text-sm text-pink-600 font-medium mb-1">Demitidos (30 dias)</p>
|
| 347 |
+
<p class="text-2xl font-bold text-pink-800">18</p>
|
| 348 |
+
</div>
|
| 349 |
+
<div class="bg-cyan-50 rounded-lg p-4">
|
| 350 |
+
<p class="text-sm text-cyan-600 font-medium mb-1">Taxa de Rotatividade</p>
|
| 351 |
+
<p class="text-2xl font-bold text-cyan-800">1.45%</p>
|
| 352 |
+
</div>
|
| 353 |
+
</div>
|
| 354 |
+
<div class="chart-container">
|
| 355 |
+
<canvas id="employees-chart"></canvas>
|
| 356 |
+
</div>
|
| 357 |
+
</div>
|
| 358 |
+
|
| 359 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
| 360 |
+
<div class="flex items-center justify-between mb-4">
|
| 361 |
+
<h3 class="text-lg font-medium text-gray-800">Atividade Recente</h3>
|
| 362 |
+
<button class="text-sm text-blue-600 hover:text-blue-800">Ver todos</button>
|
| 363 |
+
</div>
|
| 364 |
+
<div class="overflow-x-auto">
|
| 365 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 366 |
+
<thead class="bg-gray-50">
|
| 367 |
+
<tr>
|
| 368 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data/Hora</th>
|
| 369 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ação</th>
|
| 370 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Usuário</th>
|
| 371 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Detalhes</th>
|
| 372 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 373 |
+
</tr>
|
| 374 |
+
</thead>
|
| 375 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 376 |
+
<tr>
|
| 377 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023 10:42</td>
|
| 378 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Importação de dados</td>
|
| 379 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">admin@efficient.com</td>
|
| 380 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">245 registros</td>
|
| 381 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 382 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Concluído</span>
|
| 383 |
+
</td>
|
| 384 |
+
</tr>
|
| 385 |
+
<tr>
|
| 386 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14/06/2023 15:15</td>
|
| 387 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Importação de dados</td>
|
| 388 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">admin@efficient.com</td>
|
| 389 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12 erros encontrados</td>
|
| 390 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 391 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Com erros</span>
|
| 392 |
+
</td>
|
| 393 |
+
</tr>
|
| 394 |
+
<tr>
|
| 395 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14/06/2023 09:30</td>
|
| 396 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Início de importação</td>
|
| 397 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">admin@efficient.com</td>
|
| 398 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">arquivo_funcionarios.xlsx</td>
|
| 399 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 400 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Em andamento</span>
|
| 401 |
+
</td>
|
| 402 |
+
</tr>
|
| 403 |
+
</tbody>
|
| 404 |
+
</table>
|
| 405 |
+
</div>
|
| 406 |
+
</div>
|
| 407 |
+
</div>
|
| 408 |
+
|
| 409 |
+
<!-- API Integration Section -->
|
| 410 |
+
<div id="api-section" class="hidden p-6">
|
| 411 |
+
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 412 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Configuração do Webhook</h3>
|
| 413 |
+
<div class="space-y-6">
|
| 414 |
+
<div>
|
| 415 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">URL do Webhook</label>
|
| 416 |
+
<div class="flex">
|
| 417 |
+
<input type="text" value="https://api.efficient.com/webhook/12345" readonly class="flex-1 px-4 py-2 border border-gray-300 rounded-l-lg focus:ring-blue-500 focus:border-blue-500 bg-gray-50">
|
| 418 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-r-lg hover:bg-blue-700 transition">
|
| 419 |
+
<i class="fas fa-copy"></i>
|
| 420 |
+
</button>
|
| 421 |
+
</div>
|
| 422 |
+
<p class="mt-1 text-sm text-gray-500">Esta é sua URL exclusiva para receber dados</p>
|
| 423 |
+
</div>
|
| 424 |
+
|
| 425 |
+
<div>
|
| 426 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Chave de API</label>
|
| 427 |
+
<div class="flex">
|
| 428 |
+
<input type="text" value="effic_12345_secret_67890" readonly class="flex-1 px-4 py-2 border border-gray-300 rounded-l-lg focus:ring-blue-500 focus:border-blue-500 bg-gray-50">
|
| 429 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-r-lg hover:bg-blue-700 transition">
|
| 430 |
+
<i class="fas fa-copy"></i>
|
| 431 |
+
</button>
|
| 432 |
+
<button class="ml-2 px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">
|
| 433 |
+
<i class="fas fa-redo"></i> Regenerar
|
| 434 |
+
</button>
|
| 435 |
+
</div>
|
| 436 |
+
<p class="mt-1 text-sm text-gray-500">Mantenha esta chave em segredo</p>
|
| 437 |
+
</div>
|
| 438 |
+
|
| 439 |
+
<div>
|
| 440 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Status do Webhook</label>
|
| 441 |
+
<div class="flex items-center">
|
| 442 |
+
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 443 |
+
<input type="checkbox" id="webhook-toggle" checked class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
|
| 444 |
+
<label for="webhook-toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
|
| 445 |
+
</div>
|
| 446 |
+
<span class="text-sm font-medium text-gray-700">Ativo</span>
|
| 447 |
+
</div>
|
| 448 |
+
</div>
|
| 449 |
+
</div>
|
| 450 |
+
</div>
|
| 451 |
+
|
| 452 |
+
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 453 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Documentação da API</h3>
|
| 454 |
+
<div class="mb-6">
|
| 455 |
+
<h4 class="font-medium text-gray-800 mb-2">Autenticação</h4>
|
| 456 |
+
<p class="text-sm text-gray-600 mb-3">Todas as requisições devem incluir o cabeçalho de autenticação:</p>
|
| 457 |
+
<div class="bg-gray-800 rounded-lg p-4 text-sm text-gray-200 font-mono overflow-x-auto">
|
| 458 |
+
<p>Authorization: Bearer <sua_chave_de_api></p>
|
| 459 |
+
</div>
|
| 460 |
+
</div>
|
| 461 |
+
|
| 462 |
+
<div class="mb-6">
|
| 463 |
+
<h4 class="font-medium text-gray-800 mb-2">Estrutura do JSON</h4>
|
| 464 |
+
<p class="text-sm text-gray-600 mb-3">Exemplo de payload para envio de dados de funcionários:</p>
|
| 465 |
+
<div class="bg-gray-800 rounded-lg p-4 text-sm text-gray-200 font-mono overflow-x-auto">
|
| 466 |
+
<pre>{
|
| 467 |
+
"funcionario": {
|
| 468 |
+
"id": "12345",
|
| 469 |
+
"nome": "João Silva",
|
| 470 |
+
"email": "joao.silva@empresa.com",
|
| 471 |
+
"cargo": "Analista",
|
| 472 |
+
"status": "ativo",
|
| 473 |
+
"gestor": "Maria Costa",
|
| 474 |
+
"data_demissao": null
|
| 475 |
+
}
|
| 476 |
+
}</pre>
|
| 477 |
+
</div>
|
| 478 |
+
</div>
|
| 479 |
+
|
| 480 |
+
<div class="mb-6">
|
| 481 |
+
<h4 class="font-medium text-gray-800 mb-2">Campos Obrigatórios</h4>
|
| 482 |
+
<div class="overflow-x-auto">
|
| 483 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 484 |
+
<thead class="bg-gray-50">
|
| 485 |
+
<tr>
|
| 486 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Campo</th>
|
| 487 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tipo</th>
|
| 488 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Obrigatório</th>
|
| 489 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Descrição</th>
|
| 490 |
+
</tr>
|
| 491 |
+
</thead>
|
| 492 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 493 |
+
<tr>
|
| 494 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">funcionario.id</td>
|
| 495 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">String</td>
|
| 496 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sim</td>
|
| 497 |
+
<td class="px-6 py-4 text-sm text-gray-500">Identificador único do funcionário</td>
|
| 498 |
+
</tr>
|
| 499 |
+
<tr>
|
| 500 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">funcionario.nome</td>
|
| 501 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">String</td>
|
| 502 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sim</td>
|
| 503 |
+
<td class="px-6 py-4 text-sm text-gray-500">Nome completo do funcionário</td>
|
| 504 |
+
</tr>
|
| 505 |
+
<tr>
|
| 506 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">funcionario.email</td>
|
| 507 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">String</td>
|
| 508 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sim</td>
|
| 509 |
+
<td class="px-6 py-4 text-sm text-gray-500">E-mail corporativo</td>
|
| 510 |
+
</tr>
|
| 511 |
+
<tr>
|
| 512 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">funcionario.status</td>
|
| 513 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">String</td>
|
| 514 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sim</td>
|
| 515 |
+
<td class="px-6 py-4 text-sm text-gray-500">ativo/inativo</td>
|
| 516 |
+
</tr>
|
| 517 |
+
</tbody>
|
| 518 |
+
</table>
|
| 519 |
+
</div>
|
| 520 |
+
</div>
|
| 521 |
+
|
| 522 |
+
<div>
|
| 523 |
+
<h4 class="font-medium text-gray-800 mb-2">Testando a Integração</h4>
|
| 524 |
+
<p class="text-sm text-gray-600 mb-3">Você pode testar sua integração enviando uma requisição POST para a URL do webhook com os dados de exemplo.</p>
|
| 525 |
+
<p class="text-sm text-gray-600 mb-3">Resposta esperada em caso de sucesso:</p>
|
| 526 |
+
<div class="bg-gray-800 rounded-lg p-4 text-sm text-gray-200 font-mono overflow-x-auto mb-4">
|
| 527 |
+
<pre>{
|
| 528 |
+
"status": "success",
|
| 529 |
+
"message": "Dados recebidos e processados com sucesso",
|
| 530 |
+
"employee_id": "12345"
|
| 531 |
+
}</pre>
|
| 532 |
+
</div>
|
| 533 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition flex items-center">
|
| 534 |
+
<i class="fas fa-bolt mr-2"></i> Testar Conexão
|
| 535 |
+
</button>
|
| 536 |
+
</div>
|
| 537 |
+
</div>
|
| 538 |
+
</div>
|
| 539 |
+
|
| 540 |
+
<!-- AI Agents Section -->
|
| 541 |
+
<div id="ai-section" class="hidden p-6">
|
| 542 |
+
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 543 |
+
<h3 class="text-lg font-medium text-gray-800 mb-6">Configuração dos Agentes de IA</h3>
|
| 544 |
+
|
| 545 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 546 |
+
<!-- Leadership Agent -->
|
| 547 |
+
<div class="bg-indigo-50 rounded-xl p-6">
|
| 548 |
+
<div class="flex items-center justify-between mb-4">
|
| 549 |
+
<h4 class="text-md font-medium text-indigo-800 flex items-center">
|
| 550 |
+
<i class="fas fa-user-tie mr-2"></i> Agente de Liderança
|
| 551 |
+
</h4>
|
| 552 |
+
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 553 |
+
<input type="checkbox" id="leadership-toggle" checked class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
|
| 554 |
+
<label for="leadership-toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-indigo-600 cursor-pointer"></label>
|
| 555 |
+
</div>
|
| 556 |
+
</div>
|
| 557 |
+
|
| 558 |
+
<div class="space-y-4">
|
| 559 |
+
<div>
|
| 560 |
+
<label class="block text-sm font-medium text-indigo-700 mb-1">Modelo de IA</label>
|
| 561 |
+
<select class="w-full px-4 py-2 border border-indigo-200 rounded-lg focus:ring-indigo-500 focus:border-indigo-500 bg-white">
|
| 562 |
+
<option>GPT-4</option>
|
| 563 |
+
<option>GPT-3.5</option>
|
| 564 |
+
<option selected>Claude 2</option>
|
| 565 |
+
<option>Llama 2</option>
|
| 566 |
+
</select>
|
| 567 |
+
</div>
|
| 568 |
+
|
| 569 |
+
<div>
|
| 570 |
+
<label class="block text-sm font-medium text-indigo-700 mb-1">Temperatura</label>
|
| 571 |
+
<input type="range" min="0" max="1" step="0.1" value="0.7" class="w-full h-2 bg-indigo-200 rounded-lg appearance-none cursor-pointer">
|
| 572 |
+
<div class="flex justify-between text-xs text-indigo-600">
|
| 573 |
+
<span>Preciso</span>
|
| 574 |
+
<span>Criativo</span>
|
| 575 |
+
</div>
|
| 576 |
+
</div>
|
| 577 |
+
|
| 578 |
+
<div>
|
| 579 |
+
<label class="block text-sm font-medium text-indigo-700 mb-1">Instruções</label>
|
| 580 |
+
<textarea class="w-full px-4 py-2 border border-indigo-200 rounded-lg focus:ring-indigo-500 focus:border-indigo-500 bg-white h-32" placeholder="Adicione instruções específicas para o agente...">Você é um assistente de liderança especializado em gestão de pessoas. Responda de forma profissional, fornecendo insights baseados em dados e melhores práticas de RH. Mantenha um tom encorajador e orientado para soluções.</textarea>
|
| 581 |
+
</div>
|
| 582 |
+
|
| 583 |
+
<div>
|
| 584 |
+
<label class="block text-sm font-medium text-indigo-700 mb-1">Script de Integração</label>
|
| 585 |
+
<div class="code-block">
|
| 586 |
+
<pre><script src="https://chat.efficient.com/agent.js?id=lead_12345"></script>
|
| 587 |
+
<div id="efficient-chat" data-agent="lead_12345" data-company="Empresa A"></div></pre>
|
| 588 |
+
</div>
|
| 589 |
+
<button class="mt-2 px-3 py-1 bg-indigo-600 text-white text-sm rounded hover:bg-indigo-700 transition flex items-center">
|
| 590 |
+
<i class="fas fa-copy mr-1"></i> Copiar Script
|
| 591 |
+
</button>
|
| 592 |
+
</div>
|
| 593 |
+
</div>
|
| 594 |
+
</div>
|
| 595 |
+
|
| 596 |
+
<!-- Employee Agent -->
|
| 597 |
+
<div class="bg-purple-50 rounded-xl p-6">
|
| 598 |
+
<div class="flex items-center justify-between mb-4">
|
| 599 |
+
<h4 class="text-md font-medium text-purple-800 flex items-center">
|
| 600 |
+
<i class="fas fa-users mr-2"></i> Agente de Colaboradores
|
| 601 |
+
</h4>
|
| 602 |
+
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 603 |
+
<input type="checkbox" id="employee-toggle" checked class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
|
| 604 |
+
<label for="employee-toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-purple-600 cursor-pointer"></label>
|
| 605 |
+
</div>
|
| 606 |
+
</div>
|
| 607 |
+
|
| 608 |
+
<div class="space-y-4">
|
| 609 |
+
<div>
|
| 610 |
+
<label class="block text-sm font-medium text-purple-700 mb-1">Modelo de IA</label>
|
| 611 |
+
<select class="w-full px-4 py-2 border border-purple-200 rounded-lg focus:ring-purple-500 focus:border-purple-500 bg-white">
|
| 612 |
+
<option>GPT-4</option>
|
| 613 |
+
<option selected>GPT-3.5</option>
|
| 614 |
+
<option>Claude 2</option>
|
| 615 |
+
<option>Llama 2</option>
|
| 616 |
+
</select>
|
| 617 |
+
</div>
|
| 618 |
+
|
| 619 |
+
<div>
|
| 620 |
+
<label class="block text-sm font-medium text-purple-700 mb-1">Temperatura</label>
|
| 621 |
+
<input type="range" min="0" max="1" step="0.1" value="0.5" class="w-full h-2 bg-purple-200 rounded-lg appearance-none cursor-pointer">
|
| 622 |
+
<div class="flex justify-between text-xs text-purple-600">
|
| 623 |
+
<span>Preciso</span>
|
| 624 |
+
<span>Criativo</span>
|
| 625 |
+
</div>
|
| 626 |
+
</div>
|
| 627 |
+
|
| 628 |
+
<div>
|
| 629 |
+
<label class="block text-sm font-medium text-purple-700 mb-1">Instruções</label>
|
| 630 |
+
<textarea class="w-full px-4 py-2 border border-purple-200 rounded-lg focus:ring-purple-500 focus:border-purple-500 bg-white h-32" placeholder="Adicione instruções específicas para o agente...">Você é um assistente para colaboradores da empresa. Responda perguntas sobre benefícios, políticas, procedimentos e cultura organizacional de forma clara e acessível. Seja empático e paciente, especialmente com questões sensíveis.</textarea>
|
| 631 |
+
</div>
|
| 632 |
+
|
| 633 |
+
<div>
|
| 634 |
+
<label class="block text-sm font-medium text-purple-700 mb-1">Script de Integração</label>
|
| 635 |
+
<div class="code-block">
|
| 636 |
+
<pre><script src="https://chat.efficient.com/agent.js?id=emp_67890"></script>
|
| 637 |
+
<div id="efficient-chat" data-agent="emp_67890" data-company="Empresa A"></div></pre>
|
| 638 |
+
</div>
|
| 639 |
+
<button class="mt-2 px-3 py-1 bg-purple-600 text-white text-sm rounded hover:bg-purple-700 transition flex items-center">
|
| 640 |
+
<i class="fas fa-copy mr-1"></i> Copiar Script
|
| 641 |
+
</button>
|
| 642 |
+
</div>
|
| 643 |
+
</div>
|
| 644 |
+
</div>
|
| 645 |
+
</div>
|
| 646 |
+
|
| 647 |
+
<div class="mt-6 bg-white border border-gray-200 rounded-xl p-6">
|
| 648 |
+
<h4 class="text-md font-medium text-gray-800 mb-4">Pré-visualização do Chat</h4>
|
| 649 |
+
<div class="border border-gray-200 rounded-lg p-4 h-64 overflow-y-auto bg-gray-50">
|
| 650 |
+
<div class="flex mb-4">
|
| 651 |
+
<div class="bg-indigo-100 p-3 rounded-lg max-w-xs">
|
| 652 |
+
<p class="text-sm text-gray-800">Olá! Como posso te ajudar hoje?</p>
|
| 653 |
+
</div>
|
| 654 |
+
</div>
|
| 655 |
+
<div class="flex mb-4 justify-end">
|
| 656 |
+
<div class="bg-blue-100 p-3 rounded-lg max-w-xs">
|
| 657 |
+
<p class="text-sm text-gray-800">Quais são os benefícios para novos colaboradores?</p>
|
| 658 |
+
</div>
|
| 659 |
+
</div>
|
| 660 |
+
<div class="flex mb-4">
|
| 661 |
+
<div class="bg-indigo-100 p-3 rounded-lg max-w-md">
|
| 662 |
+
<p class="text-sm text-gray-800">Na nossa empresa, os benefícios incluem plano de saúde, vale-refeição, gympass, participação nos lucros e auxílio home office. Posso te dar mais detalhes sobre algum específico?</p>
|
| 663 |
+
</div>
|
| 664 |
+
</div>
|
| 665 |
+
</div>
|
| 666 |
+
<div class="mt-4 flex">
|
| 667 |
+
<input type="text" placeholder="Digite sua mensagem..." class="flex-1 px-4 py-2 border border-gray-300 rounded-l-lg focus:ring-blue-500 focus:border-blue-500">
|
| 668 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-r-lg hover:bg-blue-700 transition">
|
| 669 |
+
<i class="fas fa-paper-plane"></i>
|
| 670 |
+
</button>
|
| 671 |
+
</div>
|
| 672 |
+
</div>
|
| 673 |
+
</div>
|
| 674 |
+
</div>
|
| 675 |
+
|
| 676 |
+
<!-- Activity Logs Section -->
|
| 677 |
+
<div id="logs-section" class="hidden p-6">
|
| 678 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
| 679 |
+
<div class="flex items-center justify-between mb-6">
|
| 680 |
+
<h3 class="text-lg font-medium text-gray-800">Logs de Atividade</h3>
|
| 681 |
+
<div class="flex items-center space-x-3">
|
| 682 |
+
<div class="relative">
|
| 683 |
+
<input type="text" placeholder="Buscar..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
|
| 684 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 685 |
+
</div>
|
| 686 |
+
<select class="text-sm border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 687 |
+
<option>Todos os tipos</option>
|
| 688 |
+
<option>Importações</option>
|
| 689 |
+
<option>API</option>
|
| 690 |
+
<option>Configurações</option>
|
| 691 |
+
</select>
|
| 692 |
+
<select class="text-sm border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 693 |
+
<option>Últimos 7 dias</option>
|
| 694 |
+
<option>Últimos 30 dias</option>
|
| 695 |
+
<option selected>Últimos 90 dias</option>
|
| 696 |
+
<option>Este ano</option>
|
| 697 |
+
</select>
|
| 698 |
+
</div>
|
| 699 |
+
</div>
|
| 700 |
+
|
| 701 |
+
<div class="overflow-x-auto">
|
| 702 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 703 |
+
<thead class="bg-gray-50">
|
| 704 |
+
<tr>
|
| 705 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data/Hora</th>
|
| 706 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tipo</th>
|
| 707 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ação</th>
|
| 708 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Usuário</th>
|
| 709 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Detalhes</th>
|
| 710 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">IP</th>
|
| 711 |
+
</tr>
|
| 712 |
+
</thead>
|
| 713 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 714 |
+
<tr>
|
| 715 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023 10:42</td>
|
| 716 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 717 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Importação</span>
|
| 718 |
+
</td>
|
| 719 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Dados importados</td>
|
| 720 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">admin@efficient.com</td>
|
| 721 |
+
<td class="px-6 py-4 text-sm text-gray-500">245 registros processados</td>
|
| 722 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">192.168.1.1</td>
|
| 723 |
+
</tr>
|
| 724 |
+
<tr>
|
| 725 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14/06/2023 15:15</td>
|
| 726 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 727 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">API</span>
|
| 728 |
+
</td>
|
| 729 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Webhook recebido</td>
|
| 730 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">sistema@cliente.com</td>
|
| 731 |
+
<td class="px-6 py-4 text-sm text-gray-500">Atualização de status</td>
|
| 732 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">201.28.93.12</td>
|
| 733 |
+
</tr>
|
| 734 |
+
<tr>
|
| 735 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14/06/2023 09:30</td>
|
| 736 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 737 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Importação</span>
|
| 738 |
+
</td>
|
| 739 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Arquivo carregado</td>
|
| 740 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">admin@efficient.com</td>
|
| 741 |
+
<td class="px-6 py-4 text-sm text-gray-500">arquivo_funcionarios.xlsx</td>
|
| 742 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">192.168.1.1</td>
|
| 743 |
+
</tr>
|
| 744 |
+
<tr>
|
| 745 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13/06/2023 16:45</td>
|
| 746 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 747 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Configuração</span>
|
| 748 |
+
</td>
|
| 749 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Chave de API regenerada</td>
|
| 750 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">admin@efficient.com</td>
|
| 751 |
+
<td class="px-6 py-4 text-sm text-gray-500">Nova chave gerada</td>
|
| 752 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">192.168.1.1</td>
|
| 753 |
+
</tr>
|
| 754 |
+
</tbody>
|
| 755 |
+
</table>
|
| 756 |
+
</div>
|
| 757 |
+
|
| 758 |
+
<div class="flex items-center justify-between mt-6">
|
| 759 |
+
<div class="text-sm text-gray-500">
|
| 760 |
+
Mostrando 1 a 4 de 24 registros
|
| 761 |
+
</div>
|
| 762 |
+
<div class="flex space-x-1">
|
| 763 |
+
<button class="px-3 py-1 border border-gray-300 rounded text-gray-700 hover:bg-gray-100">
|
| 764 |
+
<i class="fas fa-angle-left"></i>
|
| 765 |
+
</button>
|
| 766 |
+
<button class="px-3 py-1 border border-blue-500 bg-blue-50 text-blue-600 rounded">1</button>
|
| 767 |
+
<button class="px-3 py-1 border border-gray-300 rounded text-gray-700 hover:bg-gray-100">2</button>
|
| 768 |
+
<button class="px-3 py-1 border border-gray-300 rounded text-gray-700 hover:bg-gray-100">3</button>
|
| 769 |
+
<button class="px-3 py-1 border border-gray-300 rounded text-gray-700 hover:bg-gray-100">
|
| 770 |
+
<i class="fas fa-angle-right"></i>
|
| 771 |
+
</button>
|
| 772 |
+
</div>
|
| 773 |
+
</div>
|
| 774 |
+
</div>
|
| 775 |
+
</div>
|
| 776 |
+
</div>
|
| 777 |
+
</div>
|
| 778 |
+
|
| 779 |
+
<!-- Notification Container -->
|
| 780 |
+
<div id="notification-container" class="fixed bottom-4 right-4 space-y-3 z-50"></div>
|
| 781 |
+
|
| 782 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 783 |
+
<script>
|
| 784 |
+
// DOM Elements
|
| 785 |
+
const loginScreen = document.getElementById('login-screen');
|
| 786 |
+
const appContainer = document.getElementById('app-container');
|
| 787 |
+
const loginForm = document.getElementById('login-form');
|
| 788 |
+
const logoutBtn = document.getElementById('logout-btn');
|
| 789 |
+
const toggleSidebar = document.getElementById('toggle-sidebar');
|
| 790 |
+
const sidebar = document.getElementById('sidebar');
|
| 791 |
+
const navImport = document.getElementById('nav-import');
|
| 792 |
+
const navDashboard = document.getElementById('nav-dashboard');
|
| 793 |
+
const navApi = document.getElementById('nav-api');
|
| 794 |
+
const navAI = document.getElementById('nav-ai');
|
| 795 |
+
const navLogs = document.getElementById('nav-logs');
|
| 796 |
+
const importSection = document.getElementById('import-section');
|
| 797 |
+
const dashboardSection = document.getElementById('dashboard-section');
|
| 798 |
+
const apiSection = document.getElementById('api-section');
|
| 799 |
+
const aiSection = document.getElementById('ai-section');
|
| 800 |
+
const logsSection = document.getElementById('logs-section');
|
| 801 |
+
const pageTitle = document.getElementById('page-title');
|
| 802 |
+
const fileDropArea = document.getElementById('file-drop-area');
|
| 803 |
+
const fileInput = document.getElementById('file-input');
|
| 804 |
+
const browseBtn = document.getElementById('browse-btn');
|
| 805 |
+
const fileProcessing = document.getElementById('file-processing');
|
| 806 |
+
const processingFilename = document.getElementById('processing-filename');
|
| 807 |
+
const processingPercentage = document.getElementById('processing-percentage');
|
| 808 |
+
const progressBar = document.getElementById('progress-bar');
|
| 809 |
+
const validationResults = document.getElementById('validation-results');
|
| 810 |
+
const totalEmployees = document.getElementById('total-employees');
|
| 811 |
+
const totalErrors = document.getElementById('total-errors');
|
| 812 |
+
const totalManagers = document.getElementById('total-managers');
|
| 813 |
+
const totalDismissed = document.getElementById('total-dismissed');
|
| 814 |
+
const errorDetails = document.getElementById('error-details');
|
| 815 |
+
const cancelImport = document.getElementById('cancel-import');
|
| 816 |
+
const confirmImport = document.getElementById('confirm-import');
|
| 817 |
+
const notificationContainer = document.getElementById('notification-container');
|
| 818 |
+
const companySelect = document.getElementById('company-select');
|
| 819 |
+
|
| 820 |
+
// Login Simulation
|
| 821 |
+
loginForm.addEventListener('submit', function(e) {
|
| 822 |
+
e.preventDefault();
|
| 823 |
+
const email = document.getElementById('email').value;
|
| 824 |
+
const password = document.getElementById('password').value;
|
| 825 |
+
|
| 826 |
+
// Simple validation
|
| 827 |
+
if (email && password) {
|
| 828 |
+
// Simulate login processing
|
| 829 |
+
showNotification('Login realizado com sucesso!', 'success');
|
| 830 |
+
|
| 831 |
+
// Hide login screen and show app after delay
|
| 832 |
+
setTimeout(() => {
|
| 833 |
+
loginScreen.classList.add('hidden');
|
| 834 |
+
appContainer.classList.remove('hidden');
|
| 835 |
+
|
| 836 |
+
// Initialize charts
|
| 837 |
+
initCharts();
|
| 838 |
+
}, 1000);
|
| 839 |
+
} else {
|
| 840 |
+
showNotification('Por favor, preencha todos os campos.', 'error');
|
| 841 |
+
}
|
| 842 |
+
});
|
| 843 |
+
|
| 844 |
+
// Logout
|
| 845 |
+
logoutBtn.addEventListener('click', function() {
|
| 846 |
+
appContainer.classList.add('hidden');
|
| 847 |
+
loginScreen.classList.remove('hidden');
|
| 848 |
+
showNotification('Você saiu do sistema.', 'info');
|
| 849 |
+
});
|
| 850 |
+
|
| 851 |
+
// Toggle Sidebar
|
| 852 |
+
toggleSidebar.addEventListener('click', function() {
|
| 853 |
+
sidebar.classList.toggle('sidebar-collapsed');
|
| 854 |
+
});
|
| 855 |
+
|
| 856 |
+
// Company Select Change
|
| 857 |
+
companySelect.addEventListener('change', function() {
|
| 858 |
+
if (this.value === '+ Adicionar nova empresa') {
|
| 859 |
+
showNotification('Redirecionando para criação de nova empresa...', 'info');
|
| 860 |
+
setTimeout(() => {
|
| 861 |
+
this.selectedIndex = 0;
|
| 862 |
+
}, 2000);
|
| 863 |
+
} else {
|
| 864 |
+
showNotification(`Empresa alterada para: ${this.value}`, 'success');
|
| 865 |
+
}
|
| 866 |
+
});
|
| 867 |
+
|
| 868 |
+
// Navigation
|
| 869 |
+
navImport.addEventListener('click', function(e) {
|
| 870 |
+
e.preventDefault();
|
| 871 |
+
setActiveNav(navImport);
|
| 872 |
+
showSection(importSection, 'Importar Dados');
|
| 873 |
+
});
|
| 874 |
+
|
| 875 |
+
navDashboard.addEventListener('click', function(e) {
|
| 876 |
+
e.preventDefault();
|
| 877 |
+
setActiveNav(navDashboard);
|
| 878 |
+
showSection(dashboardSection, 'Dashboard');
|
| 879 |
+
});
|
| 880 |
+
|
| 881 |
+
navApi.addEventListener('click', function(e) {
|
| 882 |
+
e.preventDefault();
|
| 883 |
+
setActiveNav(navApi);
|
| 884 |
+
showSection(apiSection, 'Integração API');
|
| 885 |
+
});
|
| 886 |
+
|
| 887 |
+
navAI.addEventListener('click', function(e) {
|
| 888 |
+
e.preventDefault();
|
| 889 |
+
setActiveNav(navAI);
|
| 890 |
+
showSection(aiSection, 'Agentes de IA');
|
| 891 |
+
});
|
| 892 |
+
|
| 893 |
+
navLogs.addEventListener('click', function(e) {
|
| 894 |
+
e.preventDefault();
|
| 895 |
+
setActiveNav(navLogs);
|
| 896 |
+
showSection(logsSection, 'Logs de Atividade');
|
| 897 |
+
});
|
| 898 |
+
|
| 899 |
+
function setActiveNav(activeNav) {
|
| 900 |
+
// Remove active class from all nav items
|
| 901 |
+
[navImport, navDashboard, navApi, navAI, navLogs].forEach(nav => {
|
| 902 |
+
nav.classList.remove('bg-blue-50', 'text-blue-700');
|
| 903 |
+
nav.classList.add('text-gray-600', 'hover:bg-gray-100');
|
| 904 |
+
|
| 905 |
+
// Update icons color
|
| 906 |
+
const icon = nav.querySelector('i');
|
| 907 |
+
icon.classList.remove('text-blue-600');
|
| 908 |
+
icon.classList.add('text-gray-500');
|
| 909 |
+
});
|
| 910 |
+
|
| 911 |
+
// Add active class to clicked nav
|
| 912 |
+
activeNav.classList.add('bg-blue-50', 'text-blue-700');
|
| 913 |
+
activeNav.classList.remove('text-gray-600', 'hover:bg-gray-100');
|
| 914 |
+
|
| 915 |
+
// Update icon color
|
| 916 |
+
const activeIcon = activeNav.querySelector('i');
|
| 917 |
+
activeIcon.classList.add('text-blue-600');
|
| 918 |
+
activeIcon.classList.remove('text-gray-500');
|
| 919 |
+
}
|
| 920 |
+
|
| 921 |
+
function showSection(section, title) {
|
| 922 |
+
// Hide all sections
|
| 923 |
+
[importSection, dashboardSection, apiSection, aiSection, logsSection].forEach(sec => {
|
| 924 |
+
sec.classList.add('hidden');
|
| 925 |
+
});
|
| 926 |
+
|
| 927 |
+
// Show selected section
|
| 928 |
+
section.classList.remove('hidden');
|
| 929 |
+
|
| 930 |
+
// Update page title
|
| 931 |
+
pageTitle.textContent = title;
|
| 932 |
+
}
|
| 933 |
+
|
| 934 |
+
// File Upload Handling
|
| 935 |
+
browseBtn.addEventListener('click', function() {
|
| 936 |
+
fileInput.click();
|
| 937 |
+
});
|
| 938 |
+
|
| 939 |
+
fileInput.addEventListener('change', function() {
|
| 940 |
+
if (this.files.length) {
|
| 941 |
+
handleFiles(this.files);
|
| 942 |
+
}
|
| 943 |
+
});
|
| 944 |
+
|
| 945 |
+
// Drag and Drop
|
| 946 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 947 |
+
fileDropArea.addEventListener(eventName, preventDefaults, false);
|
| 948 |
+
});
|
| 949 |
+
|
| 950 |
+
function preventDefaults(e) {
|
| 951 |
+
e.preventDefault();
|
| 952 |
+
e.stopPropagation();
|
| 953 |
+
}
|
| 954 |
+
|
| 955 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 956 |
+
fileDropArea.addEventListener(eventName, highlight, false);
|
| 957 |
+
});
|
| 958 |
+
|
| 959 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 960 |
+
fileDropArea.addEventListener(eventName, unhighlight, false);
|
| 961 |
+
});
|
| 962 |
+
|
| 963 |
+
function highlight() {
|
| 964 |
+
fileDropArea.classList.add('active');
|
| 965 |
+
}
|
| 966 |
+
|
| 967 |
+
function unhighlight() {
|
| 968 |
+
fileDropArea.classList.remove('active');
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
fileDropArea.addEventListener('drop', function(e) {
|
| 972 |
+
const dt = e.dataTransfer;
|
| 973 |
+
const files = dt.files;
|
| 974 |
+
|
| 975 |
+
if (files.length) {
|
| 976 |
+
handleFiles(files);
|
| 977 |
+
}
|
| 978 |
+
});
|
| 979 |
+
|
| 980 |
+
function handleFiles(files) {
|
| 981 |
+
const file = files[0];
|
| 982 |
+
const validTypes = ['text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/json'];
|
| 983 |
+
|
| 984 |
+
// Check file type
|
| 985 |
+
if (!validTypes.includes(file.type) &&
|
| 986 |
+
!file.name.endsWith('.csv') &&
|
| 987 |
+
!file.name.endsWith('.xlsx') &&
|
| 988 |
+
!file.name.endsWith('.json')) {
|
| 989 |
+
showNotification('Formato de arquivo não suportado. Use CSV, XLSX ou JSON.', 'error');
|
| 990 |
+
return;
|
| 991 |
+
}
|
| 992 |
+
|
| 993 |
+
// Check file size (10MB max)
|
| 994 |
+
if (file.size > 10 * 1024 * 1024) {
|
| 995 |
+
showNotification('O arquivo é muito grande. Tamanho máximo: 10MB.', 'error');
|
| 996 |
+
return;
|
| 997 |
+
}
|
| 998 |
+
|
| 999 |
+
// Show processing UI
|
| 1000 |
+
fileProcessing.classList.remove('hidden');
|
| 1001 |
+
processingFilename.textContent = file.name;
|
| 1002 |
+
|
| 1003 |
+
// Simulate file processing with progress
|
| 1004 |
+
let progress = 0;
|
| 1005 |
+
const interval = setInterval(() => {
|
| 1006 |
+
progress += Math.floor(Math.random() * 10) + 5;
|
| 1007 |
+
if (progress > 100) progress = 100;
|
| 1008 |
+
|
| 1009 |
+
processingPercentage.textContent = `${progress}%`;
|
| 1010 |
+
progressBar.style.width = `${progress}%`;
|
| 1011 |
+
|
| 1012 |
+
if (progress === 100) {
|
| 1013 |
+
clearInterval(interval);
|
| 1014 |
+
setTimeout(() => {
|
| 1015 |
+
processFileComplete(file);
|
| 1016 |
+
}, 500);
|
| 1017 |
+
}
|
| 1018 |
+
}, 200);
|
| 1019 |
+
}
|
| 1020 |
+
|
| 1021 |
+
function processFileComplete(file) {
|
| 1022 |
+
fileProcessing.classList.add('hidden');
|
| 1023 |
+
|
| 1024 |
+
// Simulate validation results
|
| 1025 |
+
const employeeCount = Math.floor(Math.random() * 500) + 100;
|
| 1026 |
+
const errorCount = Math.floor(Math.random() * 20);
|
| 1027 |
+
const managerCount = Math.floor(employeeCount * 0.15);
|
| 1028 |
+
const dismissedCount = Math.floor(employeeCount * 0.05);
|
| 1029 |
+
|
| 1030 |
+
totalEmployees.textContent = employeeCount;
|
| 1031 |
+
totalErrors.textContent = errorCount;
|
| 1032 |
+
totalManagers.textContent = managerCount;
|
| 1033 |
+
totalDismissed.textContent = dismissedCount;
|
| 1034 |
+
|
| 1035 |
+
// Populate error details
|
| 1036 |
+
errorDetails.innerHTML = '';
|
| 1037 |
+
if (errorCount > 0) {
|
| 1038 |
+
for (let i = 0; i < errorCount; i++) {
|
| 1039 |
+
const errors = [
|
| 1040 |
+
{ field: 'E-mail', error: 'Formato inválido' },
|
| 1041 |
+
{ field: 'Data de Admissão', error: 'Data futura' },
|
| 1042 |
+
{ field: 'Cargo', error: 'Campo vazio' },
|
| 1043 |
+
{ field: 'Departamento', error: 'Valor não encontrado' },
|
| 1044 |
+
{ field: 'Gestor', error: 'Referência inválida' }
|
| 1045 |
+
];
|
| 1046 |
+
|
| 1047 |
+
const randomError = errors[Math.floor(Math.random() * errors.length)];
|
| 1048 |
+
const row = Math.floor(Math.random() * employeeCount) + 1;
|
| 1049 |
+
|
| 1050 |
+
const tr = document.createElement('tr');
|
| 1051 |
+
tr.innerHTML = `
|
| 1052 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${row}</td>
|
| 1053 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${randomError.field}</td>
|
| 1054 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${randomError.error}</td>
|
| 1055 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${Math.random() > 0.5 ? 'N/A' : 'Valor inválido'}</td>
|
| 1056 |
+
`;
|
| 1057 |
+
errorDetails.appendChild(tr);
|
| 1058 |
+
}
|
| 1059 |
+
} else {
|
| 1060 |
+
const tr = document.createElement('tr');
|
| 1061 |
+
tr.innerHTML = `
|
| 1062 |
+
<td colspan="4" class="px-6 py-4 text-center text-sm text-gray-500">Nenhum erro encontrado</td>
|
| 1063 |
+
`;
|
| 1064 |
+
errorDetails.appendChild(tr);
|
| 1065 |
+
}
|
| 1066 |
+
|
| 1067 |
+
validationResults.classList.remove('hidden');
|
| 1068 |
+
showNotification('Arquivo processado com sucesso!', 'success');
|
| 1069 |
+
}
|
| 1070 |
+
|
| 1071 |
+
cancelImport.addEventListener('click', function() {
|
| 1072 |
+
validationResults.classList.add('hidden');
|
| 1073 |
+
showNotification('Importação cancelada.', 'info');
|
| 1074 |
+
});
|
| 1075 |
+
|
| 1076 |
+
confirmImport.addEventListener('click', function() {
|
| 1077 |
+
validationResults.classList.add('hidden');
|
| 1078 |
+
showNotification('Dados importados com sucesso!', 'success');
|
| 1079 |
+
});
|
| 1080 |
+
|
| 1081 |
+
// Notification System
|
| 1082 |
+
function showNotification(message, type) {
|
| 1083 |
+
const notification = document.createElement('div');
|
| 1084 |
+
notification.className = `notification p-4 rounded-lg shadow-lg flex items-start max-w-xs ${getNotificationClass(type)}`;
|
| 1085 |
+
|
| 1086 |
+
const icon = document.createElement('i');
|
| 1087 |
+
icon.className = `mr-3 mt-0.5 ${getNotificationIcon(type)}`;
|
| 1088 |
+
|
| 1089 |
+
const messageDiv = document.createElement('div');
|
| 1090 |
+
messageDiv.className = 'flex-1';
|
| 1091 |
+
messageDiv.textContent = message;
|
| 1092 |
+
|
| 1093 |
+
const closeBtn = document.createElement('button');
|
| 1094 |
+
closeBtn.className = 'ml-2 text-gray-500 hover:text-gray-700';
|
| 1095 |
+
closeBtn.innerHTML = '<i class="fas fa-times"></i>';
|
| 1096 |
+
closeBtn.addEventListener('click', () => {
|
| 1097 |
+
notification.remove();
|
| 1098 |
+
});
|
| 1099 |
+
|
| 1100 |
+
notification.appendChild(icon);
|
| 1101 |
+
notification.appendChild(messageDiv);
|
| 1102 |
+
notification.appendChild(closeBtn);
|
| 1103 |
+
|
| 1104 |
+
notificationContainer.appendChild(notification);
|
| 1105 |
+
|
| 1106 |
+
// Auto-remove after 5 seconds
|
| 1107 |
+
setTimeout(() => {
|
| 1108 |
+
notification.remove();
|
| 1109 |
+
}, 5000);
|
| 1110 |
+
}
|
| 1111 |
+
|
| 1112 |
+
function getNotificationClass(type) {
|
| 1113 |
+
const classes = {
|
| 1114 |
+
'success': 'bg-green-100 text-green-800',
|
| 1115 |
+
'error': 'bg-red-100 text-red-800',
|
| 1116 |
+
'info': 'bg-blue-100 text-blue-800',
|
| 1117 |
+
'warning': 'bg-yellow-100 text-yellow-800'
|
| 1118 |
+
};
|
| 1119 |
+
return classes[type] || classes['info'];
|
| 1120 |
+
}
|
| 1121 |
+
|
| 1122 |
+
function getNotificationIcon(type) {
|
| 1123 |
+
const icons = {
|
| 1124 |
+
'success': 'fas fa-check-circle text-green-500',
|
| 1125 |
+
'error': 'fas fa-exclamation-circle text-red-500',
|
| 1126 |
+
'info': 'fas fa-info-circle text-blue-500',
|
| 1127 |
+
'warning': 'fas fa-exclamation-triangle text-yellow-500'
|
| 1128 |
+
};
|
| 1129 |
+
return icons[type] || icons['info'];
|
| 1130 |
+
}
|
| 1131 |
+
|
| 1132 |
+
// Initialize Charts
|
| 1133 |
+
function initCharts() {
|
| 1134 |
+
// Imports Chart
|
| 1135 |
+
const importsCtx = document.getElementById('imports-chart').getContext('2d');
|
| 1136 |
+
new Chart(importsCtx, {
|
| 1137 |
+
type: 'line',
|
| 1138 |
+
data: {
|
| 1139 |
+
labels: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun'],
|
| 1140 |
+
datasets: [{
|
| 1141 |
+
label: 'Importações',
|
| 1142 |
+
data: [12, 19, 8, 15, 22, 18],
|
| 1143 |
+
backgroundColor: 'rgba(59, 130, 246, 0.1)',
|
| 1144 |
+
borderColor: 'rgba(59, 130, 246, 1)',
|
| 1145 |
+
borderWidth: 2,
|
| 1146 |
+
tension: 0.4,
|
| 1147 |
+
fill: true
|
| 1148 |
+
}]
|
| 1149 |
+
},
|
| 1150 |
+
options: {
|
| 1151 |
+
responsive: true,
|
| 1152 |
+
maintainAspectRatio: false,
|
| 1153 |
+
plugins: {
|
| 1154 |
+
legend: {
|
| 1155 |
+
display: false
|
| 1156 |
+
}
|
| 1157 |
+
},
|
| 1158 |
+
scales: {
|
| 1159 |
+
y: {
|
| 1160 |
+
beginAtZero: true
|
| 1161 |
+
}
|
| 1162 |
+
}
|
| 1163 |
+
}
|
| 1164 |
+
});
|
| 1165 |
+
|
| 1166 |
+
// Employees Chart
|
| 1167 |
+
const employeesCtx = document.getElementById('employees-chart').getContext('2d');
|
| 1168 |
+
new Chart(employeesCtx, {
|
| 1169 |
+
type: 'bar',
|
| 1170 |
+
data: {
|
| 1171 |
+
labels: ['Ativos', 'Novos', 'Demitidos', 'Férias', 'Licença'],
|
| 1172 |
+
datasets: [{
|
| 1173 |
+
label: 'Funcionários',
|
| 1174 |
+
data: [1245, 42, 18, 32, 9],
|
| 1175 |
+
backgroundColor: [
|
| 1176 |
+
'rgba(99, 102, 241, 0.7)',
|
| 1177 |
+
'rgba(16, 185, 129, 0.7)',
|
| 1178 |
+
'rgba(239, 68, 68, 0.7)',
|
| 1179 |
+
'rgba(245, 158, 11, 0.7)',
|
| 1180 |
+
'rgba(59, 130, 246, 0.7)'
|
| 1181 |
+
],
|
| 1182 |
+
borderColor: [
|
| 1183 |
+
'rgba(99, 102, 241, 1)',
|
| 1184 |
+
'rgba(16, 185, 129, 1)',
|
| 1185 |
+
'rgba(239, 68, 68, 1)',
|
| 1186 |
+
'rgba(245, 158, 11, 1)',
|
| 1187 |
+
'rgba(59, 130, 246, 1)'
|
| 1188 |
+
],
|
| 1189 |
+
borderWidth: 1
|
| 1190 |
+
}]
|
| 1191 |
+
},
|
| 1192 |
+
options: {
|
| 1193 |
+
responsive: true,
|
| 1194 |
+
maintainAspectRatio: false,
|
| 1195 |
+
plugins: {
|
| 1196 |
+
legend: {
|
| 1197 |
+
display: false
|
| 1198 |
+
}
|
| 1199 |
+
},
|
| 1200 |
+
scales: {
|
| 1201 |
+
y: {
|
| 1202 |
+
beginAtZero: true
|
| 1203 |
+
}
|
| 1204 |
+
}
|
| 1205 |
+
}
|
| 1206 |
+
});
|
| 1207 |
+
}
|
| 1208 |
+
|
| 1209 |
+
// Initialize app with Import section active
|
| 1210 |
+
if (appContainer.classList.contains('hidden') === false) {
|
| 1211 |
+
setActiveNav(navImport);
|
| 1212 |
+
initCharts();
|
| 1213 |
+
}
|
| 1214 |
+
|
| 1215 |
+
// Copy script buttons for AI agents
|
| 1216 |
+
document.querySelectorAll('.code-block + button').forEach(button => {
|
| 1217 |
+
button.addEventListener('click', function() {
|
| 1218 |
+
const codeBlock = this.previousElementSibling;
|
| 1219 |
+
const code = codeBlock.querySelector('pre').textContent;
|
| 1220 |
+
navigator.clipboard.writeText(code)
|
| 1221 |
+
.then(() => {
|
| 1222 |
+
showNotification('Script copiado para a área de transferência!', 'success');
|
| 1223 |
+
})
|
| 1224 |
+
.catch(err => {
|
| 1225 |
+
showNotification('Falha ao copiar o script.', 'error');
|
| 1226 |
+
console.error('Failed to copy: ', err);
|
| 1227 |
+
});
|
| 1228 |
+
});
|
| 1229 |
+
});
|
| 1230 |
+
</script>
|
| 1231 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=diego1carmo/efficiente-admin" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1232 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
faça uma melhoria importante, mantenha todas as regras porem adicione uma area na parte superior onde o usuario pode selecionar a empresa (uma especie de workspace) que ele vai fazer a integração os dados devem ser ligados a empresa em questão. Adicone tambem uma nova funcionalidade no menu queria um agentes de IA, ao acessar pagina deve existir a configuração para configurar o agente de ia para empresa devemos ter um agente de liderança e um agente de colaboradores, no detalhe da tela do agente deve ser possivel modificar os parametros e ver o script que deve ser usado para adicionar o agente a outra aplicação web(o script para add chat com a instrução)
|
| 2 |
+
faça uma melhoria importante, mantenha todas as regras porem adicione uma area na parte superior onde o usuario pode selecionar a empresa (uma especie de workspace) que ele vai fazer a integração os dados devem ser ligados a empresa em questão. Adicone tambem uma nova funcionalidade no menu queria um agentes de IA, ao acessar pagina deve existir a configuração para configurar o agente de ia para empresa devemos ter um agente de liderança e um agente de colaboradores, no detalhe da tela do agente deve ser possivel modificar os parametros e ver o script que deve ser usado para adicionar o agente a outra aplicação web(o script para add chat com a instrução)
|