android-test-pilot / active-tests.html
FourLabs-UN2's picture
faça a página de testes ativos
8cd240c verified
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Testes Ativos - Mobile Test Pilot</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#21223a',
secondary: '#ff580f',
}
}
}
}
</script>
</head>
<body class="bg-primary min-h-screen text-white">
<custom-sidebar></custom-sidebar>
<main class="ml-64 p-8">
<div class="max-w-7xl mx-auto">
<div class="flex items-center justify-between mb-8">
<div>
<h1 class="text-3xl font-bold mb-2">Testes Ativos</h1>
<p class="text-gray-300">Monitore e gerencie todos os testes em andamento</p>
</div>
<div class="flex items-center gap-4">
<div class="relative">
<input type="text" placeholder="Buscar teste..." class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 pl-10 text-white focus:border-secondary focus:ring-2 focus:ring-secondary focus:ring-opacity-50">
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"></i>
</div>
<button class="bg-secondary hover:bg-orange-600 text-white px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="filter" class="w-4 h-4"></i>
Filtrar
</button>
</div>
</div>
<!-- Estatísticas -->
<div class="grid grid-cols-4 gap-6 mb-8">
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Total de Testes</p>
<p class="text-2xl font-bold">12</p>
</div>
<div class="w-12 h-12 bg-secondary bg-opacity-20 rounded-full flex items-center justify-center">
<i data-feather="activity" class="text-secondary"></i>
</div>
</div>
</div>
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Em Execução</p>
<p class="text-2xl font-bold text-green-400">8</p>
</div>
<div class="w-12 h-12 bg-green-500 bg-opacity-20 rounded-full flex items-center justify-center">
<i data-feather="play" class="text-green-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Pausados</p>
<p class="text-2xl font-bold text-yellow-400">3</p>
</div>
<div class="w-12 h-12 bg-yellow-500 bg-opacity-20 rounded-full flex items-center justify-center">
<i data-feather="pause" class="text-yellow-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Com Erros</p>
<p class="text-2xl font-bold text-red-400">1</p>
</div>
<div class="w-12 h-12 bg-red-500 bg-opacity-20 rounded-full flex items-center justify-center">
<i data-feather="alert-circle" class="text-red-400"></i>
</div>
</div>
</div>
</div>
<!-- Lista de Testes Ativos -->
<div class="bg-primary rounded-2xl border border-gray-700 p-6 shadow-2xl">
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="border-b border-gray-700">
<th class="text-left py-3 px-4">Teste</th>
<th class="text-left py-3 px-4">Plataforma</th>
<th class="text-left py-3 px-4">Status</th>
<th class="text-left py-3 px-4">Tempo</th>
<th class="text-left py-3 px-4">Progresso</th>
<th class="text-left py-3 px-4">Ações</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-gray-700 hover:bg-gray-800 transition-colors">
<td class="py-4 px-4">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-secondary bg-opacity-20 rounded-lg flex items-center justify-center">
<i data-feather="smartphone" class="text-secondary"></i>
</div>
<div>
<p class="font-semibold">App Banking</p>
<p class="text-sm text-gray-400">v1.2.3</p>
</div>
</div>
</td>
<td class="py-4 px-4">
<span class="bg-green-500 text-white px-2 py-1 rounded-full text-xs">Android</span>
</td>
<td class="py-4 px-4">
<span class="text-green-400 flex items-center gap-2">
<i data-feather="play" class="w-4 h-4"></i>
Executando
</span>
</td>
<td class="py-4 px-4">
<p class="text-sm">45 min</p>
</td>
<td class="py-4 px-4">
<div class="w-32">
<div class="bg-gray-700 rounded-full h-2">
<div class="bg-secondary h-2 rounded-full" style="width: 75%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">75% completo</p>
</div>
</td>
<td class="py-4 px-4">
<div class="flex gap-2">
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Visualizar">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Pausar">
<i data-feather="pause" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Parar">
<i data-feather="square" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="border-b border-gray-700 hover:bg-gray-800 transition-colors">
<td class="py-4 px-4">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-blue-500 bg-opacity-20 rounded-lg flex items-center justify-center">
<i data-feather="shopping-cart" class="text-blue-400"></i>
</div>
<div>
<p class="font-semibold">E-commerce App</p>
<p class="text-sm text-gray-400">v2.0.1</p>
</div>
</div>
</td>
<td class="py-4 px-4">
<span class="bg-blue-500 text-white px-2 py-1 rounded-full text-xs">iOS</span>
</td>
<td class="py-4 px-4">
<span class="text-green-400 flex items-center gap-2">
<i data-feather="play" class="w-4 h-4"></i>
Executando
</span>
</td>
<td class="py-4 px-4">
<p class="text-sm">1h 20min</p>
</td>
<td class="py-4 px-4">
<div class="w-32">
<div class="bg-gray-700 rounded-full h-2">
<div class="bg-secondary h-2 rounded-full" style="width: 60%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">60% completo</p>
</div>
</td>
<td class="py-4 px-4">
<div class="flex gap-2">
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Visualizar">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Pausar">
<i data-feather="pause" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Parar">
<i data-feather="square" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="border-b border-gray-700 hover:bg-gray-800 transition-colors">
<td class="py-4 px-4">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-yellow-500 bg-opacity-20 rounded-lg flex items-center justify-center">
<i data-feather="video" class="text-yellow-400"></i>
</div>
<div>
<p class="font-semibold">Streaming App</p>
<p class="text-sm text-gray-400">v1.5.0</p>
</div>
</div>
</td>
<td class="py-4 px-4">
<span class="bg-green-500 text-white px-2 py-1 rounded-full text-xs">Android</span>
</td>
<td class="py-4 px-4">
<span class="text-yellow-400 flex items-center gap-2">
<i data-feather="pause" class="w-4 h-4"></i>
Pausado
</span>
</td>
<td class="py-4 px-4">
<p class="text-sm">30 min</p>
</td>
<td class="py-4 px-4">
<div class="w-32">
<div class="bg-gray-700 rounded-full h-2">
<div class="bg-secondary h-2 rounded-full" style="width: 25%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">25% completo</p>
</div>
</td>
<td class="py-4 px-4">
<div class="flex gap-2">
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Visualizar">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Continuar">
<i data-feather="play" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Parar">
<i data-feather="square" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="hover:bg-gray-800 transition-colors">
<td class="py-4 px-4">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-red-500 bg-opacity-20 rounded-lg flex items-center justify-center">
<i data-feather="map" class="text-red-400"></i>
</div>
<div>
<p class="font-semibold">Navigation App</p>
<p class="text-sm text-gray-400">v3.1.0</p>
</div>
</div>
</td>
<td class="py-4 px-4">
<span class="bg-red-500 text-white px-2 py-1 rounded-full text-xs">Android</span>
</td>
<td class="py-4 px-4">
<span class="text-red-400 flex items-center gap-2">
<i data-feather="alert-circle" class="w-4 h-4"></i>
Com Erros
</span>
</td>
<td class="py-4 px-4">
<p class="text-sm">15 min</p>
</td>
<td class="py-4 px-4">
<div class="w-32">
<div class="bg-gray-700 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 10%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">10% completo</p>
</div>
</td>
<td class="py-4 px-4">
<div class="flex gap-2">
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Visualizar">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Reiniciar">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="p-2 hover:bg-gray-700 rounded-lg transition-colors" title="Parar">
<i data-feather="square" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Paginação -->
<div class="flex items-center justify-between mt-6 pt-6 border-t border-gray-700">
<p class="text-sm text-gray-400">Mostrando 4 de 12 testes ativos</p>
<div class="flex gap-2">
<button class="px-3 py-1 border border-gray-700 rounded-lg text-gray-400 hover:bg-gray-800">
<i data-feather="chevron-left" class="w-4 h-4"></i>
</button>
<button class="px-3 py-1 bg-secondary text-white rounded-lg">1</button>
<button class="px-3 py-1 border border-gray-700 rounded-lg text-gray-400 hover:bg-gray-800">2</button>
<button class="px-3 py-1 border border-gray-700 rounded-lg text-gray-400 hover:bg-gray-800">3</button>
<button class="px-3 py-1 border border-gray-700 rounded-lg text-gray-400 hover:bg-gray-800">
<i data-feather="chevron-right" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
</div>
</main>
<script src="components/sidebar.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
// Atualizar sidebar para marcar a página ativa
document.addEventListener('DOMContentLoaded', function() {
const sidebar = document.querySelector('custom-sidebar');
if (sidebar) {
const navItems = sidebar.shadowRoot.querySelectorAll('.nav-item');
navItems.forEach(item => {
if (item.querySelector('span').textContent === 'Testes Ativos') {
item.classList.add('active');
} else {
item.classList.remove('active');
}
});
}
});
</script>
</body>
</html>