File size: 20,232 Bytes
8cd240c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!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>