File size: 28,407 Bytes
14f81e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Automation Workflow Dashboard</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .animate-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        .workflow-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .workflow-card {
            transition: all 0.3s ease;
        }
        .log-entry {
            border-left: 3px solid #3b82f6;
        }
        .log-entry.error {
            border-left: 3px solid #ef4444;
        }
        .log-entry.success {
            border-left: 3px solid #10b981;
        }
        .log-entry.warning {
            border-left: 3px solid #f59e0b;
        }
    </style>
</head>
<body class="bg-gray-50">
    <div class="min-h-screen">
        <!-- Header -->
        <header class="bg-white shadow-sm">
            <div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
                <div class="flex items-center space-x-4">
                    <div class="bg-blue-600 p-2 rounded-lg">
                        <i class="fas fa-robot text-white text-2xl"></i>
                    </div>
                    <h1 class="text-2xl font-bold text-gray-900">Automation Workflow Dashboard</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="relative">
                        <div class="flex items-center space-x-2">
                            <span class="h-3 w-3 rounded-full bg-green-500 animate-pulse"></span>
                            <span class="text-sm font-medium text-gray-700">Running</span>
                        </div>
                    </div>
                    <button class="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg text-sm font-medium text-gray-700 transition">
                        <i class="fas fa-cog mr-2"></i>Settings
                    </button>
                </div>
            </div>
        </header>

        <!-- Main Content -->
        <main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
            <!-- Stats Overview -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Processed Today</p>
                            <p class="mt-1 text-3xl font-semibold text-gray-900">24</p>
                        </div>
                        <div class="bg-blue-100 p-3 rounded-full">
                            <i class="fas fa-envelope-open-text text-blue-600"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Password Resets</p>
                            <p class="mt-1 text-3xl font-semibold text-gray-900">15</p>
                        </div>
                        <div class="bg-green-100 p-3 rounded-full">
                            <i class="fas fa-key text-green-600"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">SIP Changes</p>
                            <p class="mt-1 text-3xl font-semibold text-gray-900">9</p>
                        </div>
                        <div class="bg-purple-100 p-3 rounded-full">
                            <i class="fas fa-ethernet text-purple-600"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-500">Errors</p>
                            <p class="mt-1 text-3xl font-semibold text-gray-900">2</p>
                        </div>
                        <div class="bg-red-100 p-3 rounded-full">
                            <i class="fas fa-exclamation-triangle text-red-600"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Workflow Cards -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
                <!-- Email Listener Card -->
                <div class="workflow-card bg-white rounded-lg shadow overflow-hidden">
                    <div class="bg-blue-600 px-4 py-3 flex items-center">
                        <i class="fas fa-envelope text-white mr-3"></i>
                        <h3 class="text-lg font-medium text-white">Email Listener</h3>
                    </div>
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex-1">
                                <p class="text-sm text-gray-500">Status</p>
                                <p class="font-medium">Active</p>
                            </div>
                            <div class="flex-1">
                                <p class="text-sm text-gray-500">Protocol</p>
                                <p class="font-medium">IMAP</p>
                            </div>
                        </div>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-blue-500 rounded-full mr-2"></div>
                                <p class="text-sm">Monitoring: support@company.com</p>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-blue-500 rounded-full mr-2"></div>
                                <p class="text-sm">Triggers: "Reset" or "IP 192.168."</p>
                            </div>
                        </div>
                        <div class="mt-6 pt-4 border-t border-gray-200">
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition">
                                <i class="fas fa-sync-alt mr-2"></i>Test Connection
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Password Reset Workflow Card -->
                <div class="workflow-card bg-white rounded-lg shadow overflow-hidden">
                    <div class="bg-green-600 px-4 py-3 flex items-center">
                        <i class="fas fa-key text-white mr-3"></i>
                        <h3 class="text-lg font-medium text-white">Password Reset</h3>
                    </div>
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex-1">
                                <p class="text-sm text-gray-500">Last Run</p>
                                <p class="font-medium">2 min ago</p>
                            </div>
                            <div class="flex-1">
                                <p class="text-sm text-gray-500">Method</p>
                                <p class="font-medium">PowerShell</p>
                            </div>
                        </div>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
                                <p class="text-sm">Extracts username from sender</p>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
                                <p class="text-sm">Generates 16-char password</p>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
                                <p class="text-sm">Sends reply with new password</p>
                            </div>
                        </div>
                        <div class="mt-6 pt-4 border-t border-gray-200">
                            <button class="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md transition">
                                <i class="fas fa-play mr-2"></i>Run Manually
                            </button>
                        </div>
                    </div>
                </div>

                <!-- SIP Port Change Workflow Card -->
                <div class="workflow-card bg-white rounded-lg shadow overflow-hidden">
                    <div class="bg-purple-600 px-4 py-3 flex items-center">
                        <i class="fas fa-network-wired text-white mr-3"></i>
                        <h3 class="text-lg font-medium text-white">SIP Port Change</h3>
                    </div>
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="flex-1">
                                <p class="text-sm text-gray-500">Last Run</p>
                                <p class="font-medium">15 min ago</p>
                            </div>
                            <div class="flex-1">
                                <p class="text-sm text-gray-500">Current Port</p>
                                <p class="font-medium">50601</p>
                            </div>
                        </div>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
                                <p class="text-sm">Web UI automation</p>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
                                <p class="text-sm">Toggles between 5060/50601</p>
                            </div>
                            <div class="flex items-center">
                                <div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
                                <p class="text-sm">Requires admin credentials</p>
                            </div>
                        </div>
                        <div class="mt-6 pt-4 border-t border-gray-200">
                            <button class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-md transition">
                                <i class="fas fa-exchange-alt mr-2"></i>Toggle Port Now
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Recent Activity -->
            <div class="bg-white shadow rounded-lg overflow-hidden mb-8">
                <div class="px-6 py-4 border-b border-gray-200">
                    <h3 class="text-lg font-medium text-gray-900">Recent Activity</h3>
                </div>
                <div class="divide-y divide-gray-200">
                    <div class="p-6">
                        <div class="flex items-start">
                            <div class="flex-shrink-0">
                                <div class="bg-blue-100 p-2 rounded-full">
                                    <i class="fas fa-envelope text-blue-600"></i>
                                </div>
                            </div>
                            <div class="ml-4 flex-1">
                                <div class="flex items-center justify-between">
                                    <p class="text-sm font-medium text-gray-900">New email processed</p>
                                    <p class="text-sm text-gray-500">2 minutes ago</p>
                                </div>
                                <p class="text-sm text-gray-500">From: jsmith@company.com | Subject: Reset password</p>
                                <div class="mt-2 log-entry success pl-4 py-2 bg-gray-50 rounded">
                                    <p class="text-sm">Triggered Password Reset workflow for user 'jsmith'</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="p-6">
                        <div class="flex items-start">
                            <div class="flex-shrink-0">
                                <div class="bg-green-100 p-2 rounded-full">
                                    <i class="fas fa-key text-green-600"></i>
                                </div>
                            </div>
                            <div class="ml-4 flex-1">
                                <div class="flex items-center justify-between">
                                    <p class="text-sm font-medium text-gray-900">Password reset completed</p>
                                    <p class="text-sm text-gray-500">1 minute ago</p>
                                </div>
                                <p class="text-sm text-gray-500">User: jsmith | New password: Kx8#pL29!qW4mZ7b</p>
                                <div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
                                    <p class="text-sm">Reply email sent to jsmith@company.com</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="p-6">
                        <div class="flex items-start">
                            <div class="flex-shrink-0">
                                <div class="bg-purple-100 p-2 rounded-full">
                                    <i class="fas fa-network-wired text-purple-600"></i>
                                </div>
                            </div>
                            <div class="ml-4 flex-1">
                                <div class="flex items-center justify-between">
                                    <p class="text-sm font-medium text-gray-900">SIP Port changed</p>
                                    <p class="text-sm text-gray-500">15 minutes ago</p>
                                </div>
                                <p class="text-sm text-gray-500">From: 5060 to 50601 | Initiated by network@company.com</p>
                                <div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
                                    <p class="text-sm">Web UI automation completed successfully</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Configuration Section -->
            <div class="bg-white shadow rounded-lg overflow-hidden">
                <div class="px-6 py-4 border-b border-gray-200">
                    <h3 class="text-lg font-medium text-gray-900">Configuration</h3>
                </div>
                <div class="p-6">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <h4 class="text-md font-medium text-gray-900 mb-4">IMAP Settings</h4>
                            <div class="space-y-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Server</label>
                                    <input type="text" value="imap.company.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Port</label>
                                    <input type="number" value="993" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Username</label>
                                    <input type="text" value="automation@company.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                            </div>
                        </div>
                        <div>
                            <h4 class="text-md font-medium text-gray-900 mb-4">Active Directory</h4>
                            <div class="space-y-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Server</label>
                                    <input type="text" value="dc01.company.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Domain</label>
                                    <input type="text" value="COMPANY" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Admin Account</label>
                                    <input type="text" value="automation_admin" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="mt-6 pt-6 border-t border-gray-200 flex justify-end">
                        <button class="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg text-sm font-medium text-gray-700 transition mr-3">
                            Cancel
                        </button>
                        <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg text-sm font-medium text-white transition">
                            Save Changes
                        </button>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // Simulate real-time updates
        function simulateActivity() {
            const activityLog = document.querySelector('.divide-y');
            const now = new Date();
            const timeString = now.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
            
            // Randomly select a workflow to simulate
            const workflows = ['email', 'password', 'sip'];
            const selectedWorkflow = workflows[Math.floor(Math.random() * workflows.length)];
            
            let newEntry;
            
            if (selectedWorkflow === 'email') {
                const subjects = ['Reset password', 'IP 192.168.1.1', 'Urgent: Need access'];
                const senders = ['asmith@company.com', 'network@company.com', 'jdoe@company.com'];
                const subject = subjects[Math.floor(Math.random() * subjects.length)];
                const sender = senders[Math.floor(Math.random() * senders.length)];
                
                newEntry = document.createElement('div');
                newEntry.className = 'p-6';
                newEntry.innerHTML = `
                    <div class="flex items-start">
                        <div class="flex-shrink-0">
                            <div class="bg-blue-100 p-2 rounded-full">
                                <i class="fas fa-envelope text-blue-600"></i>
                            </div>
                        </div>
                        <div class="ml-4 flex-1">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium text-gray-900">New email processed</p>
                                <p class="text-sm text-gray-500">${timeString}</p>
                            </div>
                            <p class="text-sm text-gray-500">From: ${sender} | Subject: ${subject}</p>
                            <div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
                                <p class="text-sm">Processing rules for email content...</p>
                            </div>
                        </div>
                    </div>
                `;
            } 
            else if (selectedWorkflow === 'password') {
                const users = ['bsmith', 'jwilson', 'kjackson'];
                const passwords = ['Xk9#pL29!qW4mZ7b', 'Pw8$mL29!qX4nZ7c', 'Kx8#pL29!qW4mZ7b'];
                const user = users[Math.floor(Math.random() * users.length)];
                const password = passwords[Math.floor(Math.random() * passwords.length)];
                
                newEntry = document.createElement('div');
                newEntry.className = 'p-6';
                newEntry.innerHTML = `
                    <div class="flex items-start">
                        <div class="flex-shrink-0">
                            <div class="bg-green-100 p-2 rounded-full">
                                <i class="fas fa-key text-green-600"></i>
                            </div>
                        </div>
                        <div class="ml-4 flex-1">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium text-gray-900">Password reset completed</p>
                                <p class="text-sm text-gray-500">${timeString}</p>
                            </div>
                            <p class="text-sm text-gray-500">User: ${user} | New password: ${password}</p>
                            <div class="mt-2 log-entry success pl-4 py-2 bg-gray-50 rounded">
                                <p class="text-sm">Reply email sent to ${user}@company.com</p>
                            </div>
                        </div>
                    </div>
                `;
            } 
            else {
                const ports = ['5060', '50601'];
                const currentPort = ports[Math.floor(Math.random() * ports.length)];
                const newPort = currentPort === '5060' ? '50601' : '5060';
                
                newEntry = document.createElement('div');
                newEntry.className = 'p-6';
                newEntry.innerHTML = `
                    <div class="flex items-start">
                        <div class="flex-shrink-0">
                            <div class="bg-purple-100 p-2 rounded-full">
                                <i class="fas fa-network-wired text-purple-600"></i>
                            </div>
                        </div>
                        <div class="ml-4 flex-1">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium text-gray-900">SIP Port changed</p>
                                <p class="text-sm text-gray-500">${timeString}</p>
                            </div>
                            <p class="text-sm text-gray-500">From: ${currentPort} to ${newPort} | Initiated by network@company.com</p>
                            <div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
                                <p class="text-sm">Web UI automation completed successfully</p>
                            </div>
                        </div>
                    </div>
                `;
            }
            
            // Prepend the new entry
            activityLog.prepend(newEntry);
            
            // Limit to 10 entries
            if (activityLog.children.length > 10) {
                activityLog.removeChild(activityLog.lastChild);
            }
        }
        
        // Simulate activity every 5-15 seconds
        setInterval(simulateActivity, Math.random() * 10000 + 5000);
        
        // Add click handlers for buttons
        document.querySelectorAll('.workflow-card button').forEach(button => {
            button.addEventListener('click', function() {
                const card = this.closest('.workflow-card');
                const header = card.querySelector('div:first-child');
                
                // Add visual feedback
                card.classList.add('opacity-75');
                setTimeout(() => {
                    card.classList.remove('opacity-75');
                }, 1000);
                
                // Add to activity log
                const now = new Date();
                const timeString = now.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
                const activityLog = document.querySelector('.divide-y');
                
                const newEntry = document.createElement('div');
                newEntry.className = 'p-6';
                newEntry.innerHTML = `
                    <div class="flex items-start">
                        <div class="flex-shrink-0">
                            <div class="bg-yellow-100 p-2 rounded-full">
                                <i class="fas fa-bolt text-yellow-600"></i>
                            </div>
                        </div>
                        <div class="ml-4 flex-1">
                            <div class="flex items-center justify-between">
                                <p class="text-sm font-medium text-gray-900">Manual trigger</p>
                                <p class="text-sm text-gray-500">${timeString}</p>
                            </div>
                            <p class="text-sm text-gray-500">${header.textContent.trim()} workflow initiated manually</p>
                            <div class="mt-2 log-entry warning pl-4 py-2 bg-gray-50 rounded">
                                <p class="text-sm">Processing workflow steps...</p>
                            </div>
                        </div>
                    </div>
                `;
                
                activityLog.prepend(newEntry);
                
                // Limit to 10 entries
                if (activityLog.children.length > 10) {
                    activityLog.removeChild(activityLog.lastChild);
                }
            });
        });
    </script>
<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=ricwan/ecta" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>