i want a dasboard for this data about fca required annual training completion progress
Browse filesCount of Module Name Column Labels
Row Labels completed incomplete not attempted
Adeel Ahsan 12
Adrien Monteiro 12
Alan Willis 12
Aleksandra Orywal 12
Alessia Gigantesco 1 11
Alla Alqadi 12
Amal Jaradat 1 12
Amelie Malta 6 2 4
Andrew McBean 12
Andrew Tetley 12
Annabel Malta 12
Antonio Agresta 12
Arkadii Sidorov 13
Armando Ortiz 12
Arthur Clarkson 12
Arunan Ravi 4 8
Audris Kezi 12
Benjamin Thomas 12
Benoit Riegel 12
Bill Mackway-Jones 12
Caroun Derderian 12
Catarina Malta 10 3
Christopher Stribling 12
Corrado Ninzoli 12
Domenico Fanelli 12
Dominic Brindle 12
Elena Boccaletti 12
Emily Palit 12
Emmanuel Valavanis 12
Essam Alkadomi 12
Fadi Kassis 5 7
Feras Batayneh 12
Florian Josef 12
Garvan Smith 12
Giammarco Campolieti 12
Giueseppe Gambardella 12
Gregory Marbot 12
Gustavo Messerlian 12
Gwen Arnal 12
Hejer Anane 12
Hugh Grindon 12
Ian Wilkins 12
James Crammond 12
Jasper Falk 12
Keith Temperton 12
Linda Amrouche 12
Marc Levy-Walhain 12
Marcelo Calvi 12
Marco Bach 13
Masoud Abdorrezai 12
Matthieu Prevot 12
Maxwell Underhill 12
Meryem Kessler 12
Naouel Souissi 12
Navita Morgan 12
Nicholas Tuite 12
Oliver Espley 12
Osman Khan 12
Ozan Kalemdaroglu 12
Peter Mulhall 12
Ramiro Delfranco 12
Robert Collins 12
Russell Howard 12
Sam Seman 12
Samuel Cooper 12
Sarp Kavrar 12
Serena Irani 12
Simon Kelsey 12
Simon Luther Mead 12
Simon Wise 12
Steve Seman 12
Steven Bennett 12
Taher Shakaa 12
Terry Torrison 12
Thomas Simeon 12
Tiziano Chiappini 12
Tobias Clothier 12
Wasim Ahmad 12
Youssef Sabri 12 - Initial Deployment
- README.md +7 -5
- index.html +470 -18
- prompts.txt +83 -0
|
@@ -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: dataanalysisfslearning
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: red
|
| 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
|
|
@@ -1,19 +1,471 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>FCA Training Dashboard</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
| 9 |
+
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 13 |
+
<style>
|
| 14 |
+
.progress-bar {
|
| 15 |
+
height: 6px;
|
| 16 |
+
border-radius: 3px;
|
| 17 |
+
}
|
| 18 |
+
.progress-completed {
|
| 19 |
+
background-color: #10B981;
|
| 20 |
+
}
|
| 21 |
+
.progress-incomplete {
|
| 22 |
+
background-color: #F59E0B;
|
| 23 |
+
}
|
| 24 |
+
.progress-not-attempted {
|
| 25 |
+
background-color: #EF4444;
|
| 26 |
+
}
|
| 27 |
+
.user-card:hover {
|
| 28 |
+
transform: translateY(-2px);
|
| 29 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 30 |
+
}
|
| 31 |
+
.filter-active {
|
| 32 |
+
background-color: #3B82F6;
|
| 33 |
+
color: white;
|
| 34 |
+
}
|
| 35 |
+
</style>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="bg-gray-50">
|
| 38 |
+
<div class="min-h-screen">
|
| 39 |
+
<!-- Header -->
|
| 40 |
+
<header class="bg-white shadow-sm">
|
| 41 |
+
<div class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8 flex justify-between items-center">
|
| 42 |
+
<div>
|
| 43 |
+
<h1 class="text-2xl font-bold text-gray-900">FCA Training Completion Dashboard</h1>
|
| 44 |
+
<p class="text-gray-500">Annual compliance training progress tracking</p>
|
| 45 |
+
</div>
|
| 46 |
+
<div class="flex items-center space-x-4">
|
| 47 |
+
<div class="relative">
|
| 48 |
+
<input type="text" placeholder="Search employees..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 49 |
+
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
|
| 50 |
+
</div>
|
| 51 |
+
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition flex items-center">
|
| 52 |
+
<i data-feather="download" class="mr-2"></i>
|
| 53 |
+
Export
|
| 54 |
+
</button>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
</header>
|
| 58 |
+
|
| 59 |
+
<!-- Main Content -->
|
| 60 |
+
<main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
|
| 61 |
+
<!-- Summary Cards -->
|
| 62 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
| 63 |
+
<div class="bg-white p-6 rounded-xl shadow-sm">
|
| 64 |
+
<div class="flex justify-between items-start">
|
| 65 |
+
<div>
|
| 66 |
+
<p class="text-gray-500">Completed</p>
|
| 67 |
+
<h3 class="text-3xl font-bold text-gray-900 mt-1">24</h3>
|
| 68 |
+
<p class="text-green-500 text-sm mt-2">+5 from last month</p>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="bg-green-100 p-3 rounded-full">
|
| 71 |
+
<i data-feather="check-circle" class="text-green-600"></i>
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
<div class="bg-white p-6 rounded-xl shadow-sm">
|
| 76 |
+
<div class="flex justify-between items-start">
|
| 77 |
+
<div>
|
| 78 |
+
<p class="text-gray-500">Incomplete</p>
|
| 79 |
+
<h3 class="text-3xl font-bold text-gray-900 mt-1">3</h3>
|
| 80 |
+
<p class="text-yellow-500 text-sm mt-2">-2 from last month</p>
|
| 81 |
+
</div>
|
| 82 |
+
<div class="bg-yellow-100 p-3 rounded-full">
|
| 83 |
+
<i data-feather="alert-circle" class="text-yellow-600"></i>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
</div>
|
| 87 |
+
<div class="bg-white p-6 rounded-xl shadow-sm">
|
| 88 |
+
<div class="flex justify-between items-start">
|
| 89 |
+
<div>
|
| 90 |
+
<p class="text-gray-500">Not Attempted</p>
|
| 91 |
+
<h3 class="text-3xl font-bold text-gray-900 mt-1">58</h3>
|
| 92 |
+
<p class="text-red-500 text-sm mt-2">+3 from last month</p>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="bg-red-100 p-3 rounded-full">
|
| 95 |
+
<i data-feather="x-circle" class="text-red-600"></i>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<!-- Charts -->
|
| 102 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
|
| 103 |
+
<div class="bg-white p-6 rounded-xl shadow-sm">
|
| 104 |
+
<h3 class="text-lg font-semibold mb-4">Completion Status Distribution</h3>
|
| 105 |
+
<div class="h-64">
|
| 106 |
+
<canvas id="pieChart"></canvas>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="bg-white p-6 rounded-xl shadow-sm">
|
| 110 |
+
<h3 class="text-lg font-semibold mb-4">Monthly Progress</h3>
|
| 111 |
+
<div class="h-64">
|
| 112 |
+
<canvas id="lineChart"></canvas>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<!-- Filters -->
|
| 118 |
+
<div class="bg-white p-4 rounded-xl shadow-sm mb-6">
|
| 119 |
+
<div class="flex flex-wrap gap-2">
|
| 120 |
+
<button class="filter-btn px-4 py-2 rounded-full border hover:bg-gray-100" data-filter="all">All</button>
|
| 121 |
+
<button class="filter-btn px-4 py-2 rounded-full border hover:bg-gray-100" data-filter="completed">
|
| 122 |
+
<span class="inline-block w-2 h-2 rounded-full bg-green-500 mr-2"></span>
|
| 123 |
+
Completed
|
| 124 |
+
</button>
|
| 125 |
+
<button class="filter-btn px-4 py-2 rounded-full border hover:bg-gray-100" data-filter="incomplete">
|
| 126 |
+
<span class="inline-block w-2 h-2 rounded-full bg-yellow-500 mr-2"></span>
|
| 127 |
+
Incomplete
|
| 128 |
+
</button>
|
| 129 |
+
<button class="filter-btn px-4 py-2 rounded-full border hover:bg-gray-100" data-filter="not-attempted">
|
| 130 |
+
<span class="inline-block w-2 h-2 rounded-full bg-red-500 mr-2"></span>
|
| 131 |
+
Not Attempted
|
| 132 |
+
</button>
|
| 133 |
+
<button class="filter-btn px-4 py-2 rounded-full border hover:bg-gray-100" data-filter="partial">
|
| 134 |
+
<span class="inline-block w-2 h-2 rounded-full bg-blue-500 mr-2"></span>
|
| 135 |
+
Partial Completion
|
| 136 |
+
</button>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
|
| 140 |
+
<!-- Employee List -->
|
| 141 |
+
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
|
| 142 |
+
<div class="px-6 py-4 border-b flex justify-between items-center">
|
| 143 |
+
<h3 class="text-lg font-semibold">Employee Training Status</h3>
|
| 144 |
+
<div class="text-sm text-gray-500">Showing <span id="showing-count">80</span> of 80 employees</div>
|
| 145 |
+
</div>
|
| 146 |
+
<div class="overflow-x-auto">
|
| 147 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 148 |
+
<thead class="bg-gray-50">
|
| 149 |
+
<tr>
|
| 150 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Employee</th>
|
| 151 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 152 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</th>
|
| 153 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Modules</th>
|
| 154 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
|
| 155 |
+
</tr>
|
| 156 |
+
</thead>
|
| 157 |
+
<tbody class="bg-white divide-y divide-gray-200" id="employee-table">
|
| 158 |
+
<!-- Employee rows will be inserted here by JavaScript -->
|
| 159 |
+
</tbody>
|
| 160 |
+
</table>
|
| 161 |
+
</div>
|
| 162 |
+
<div class="px-6 py-4 border-t flex justify-between items-center">
|
| 163 |
+
<div class="text-sm text-gray-500">Page 1 of 4</div>
|
| 164 |
+
<div class="flex space-x-2">
|
| 165 |
+
<button class="px-3 py-1 border rounded hover:bg-gray-100">Previous</button>
|
| 166 |
+
<button class="px-3 py-1 border rounded bg-blue-600 text-white">1</button>
|
| 167 |
+
<button class="px-3 py-1 border rounded hover:bg-gray-100">2</button>
|
| 168 |
+
<button class="px-3 py-1 border rounded hover:bg-gray-100">3</button>
|
| 169 |
+
<button class="px-3 py-1 border rounded hover:bg-gray-100">Next</button>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
</main>
|
| 174 |
+
</div>
|
| 175 |
+
|
| 176 |
+
<script>
|
| 177 |
+
// Initialize feather icons
|
| 178 |
+
feather.replace();
|
| 179 |
+
|
| 180 |
+
// Sample data (would be replaced with actual data from your source)
|
| 181 |
+
const employeeData = [
|
| 182 |
+
{ name: "Adeel Ahsan", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 183 |
+
{ name: "Adrien Monteiro", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 184 |
+
{ name: "Alan Willis", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 185 |
+
{ name: "Aleksandra Orywal", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 186 |
+
{ name: "Alessia Gigantesco", completed: 1, incomplete: 0, notAttempted: 11 },
|
| 187 |
+
{ name: "Alla Alqadi", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 188 |
+
{ name: "Amal Jaradat", completed: 0, incomplete: 1, notAttempted: 12 },
|
| 189 |
+
{ name: "Amelie Malta", completed: 6, incomplete: 2, notAttempted: 4 },
|
| 190 |
+
{ name: "Andrew McBean", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 191 |
+
{ name: "Andrew Tetley", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 192 |
+
{ name: "Annabel Malta", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 193 |
+
{ name: "Antonio Agresta", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 194 |
+
{ name: "Arkadii Sidorov", completed: 0, incomplete: 0, notAttempted: 13 },
|
| 195 |
+
{ name: "Armando Ortiz", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 196 |
+
{ name: "Arthur Clarkson", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 197 |
+
{ name: "Arunan Ravi", completed: 4, incomplete: 0, notAttempted: 8 },
|
| 198 |
+
{ name: "Audris Kezi", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 199 |
+
{ name: "Benjamin Thomas", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 200 |
+
{ name: "Benoit Riegel", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 201 |
+
{ name: "Bill Mackway-Jones", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 202 |
+
{ name: "Caroun Derderian", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 203 |
+
{ name: "Catarina Malta", completed: 10, incomplete: 0, notAttempted: 3 },
|
| 204 |
+
{ name: "Christopher Stribling", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 205 |
+
{ name: "Corrado Ninzoli", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 206 |
+
{ name: "Domenico Fanelli", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 207 |
+
{ name: "Dominic Brindle", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 208 |
+
{ name: "Elena Boccaletti", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 209 |
+
{ name: "Emily Palit", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 210 |
+
{ name: "Emmanuel Valavanis", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 211 |
+
{ name: "Essam Alkadomi", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 212 |
+
{ name: "Fadi Kassis", completed: 5, incomplete: 0, notAttempted: 7 },
|
| 213 |
+
{ name: "Feras Batayneh", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 214 |
+
{ name: "Florian Josef", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 215 |
+
{ name: "Garvan Smith", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 216 |
+
{ name: "Giammarco Campolieti", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 217 |
+
{ name: "Giueseppe Gambardella", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 218 |
+
{ name: "Gregory Marbot", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 219 |
+
{ name: "Gustavo Messerlian", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 220 |
+
{ name: "Gwen Arnal", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 221 |
+
{ name: "Hejer Anane", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 222 |
+
{ name: "Hugh Grindon", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 223 |
+
{ name: "Ian Wilkins", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 224 |
+
{ name: "James Crammond", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 225 |
+
{ name: "Jasper Falk", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 226 |
+
{ name: "Keith Temperton", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 227 |
+
{ name: "Linda Amrouche", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 228 |
+
{ name: "Marc Levy-Walhain", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 229 |
+
{ name: "Marcelo Calvi", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 230 |
+
{ name: "Marco Bach", completed: 13, incomplete: 0, notAttempted: 0 },
|
| 231 |
+
{ name: "Masoud Abdorrezai", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 232 |
+
{ name: "Matthieu Prevot", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 233 |
+
{ name: "Maxwell Underhill", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 234 |
+
{ name: "Meryem Kessler", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 235 |
+
{ name: "Naouel Souissi", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 236 |
+
{ name: "Navita Morgan", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 237 |
+
{ name: "Nicholas Tuite", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 238 |
+
{ name: "Oliver Espley", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 239 |
+
{ name: "Osman Khan", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 240 |
+
{ name: "Ozan Kalemdaroglu", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 241 |
+
{ name: "Peter Mulhall", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 242 |
+
{ name: "Ramiro Delfranco", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 243 |
+
{ name: "Robert Collins", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 244 |
+
{ name: "Russell Howard", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 245 |
+
{ name: "Sam Seman", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 246 |
+
{ name: "Samuel Cooper", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 247 |
+
{ name: "Sarp Kavrar", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 248 |
+
{ name: "Serena Irani", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 249 |
+
{ name: "Simon Kelsey", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 250 |
+
{ name: "Simon Luther Mead", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 251 |
+
{ name: "Simon Wise", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 252 |
+
{ name: "Steve Seman", completed: 12, incomplete: 0, notAttempted: 0 },
|
| 253 |
+
{ name: "Steven Bennett", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 254 |
+
{ name: "Taher Shakaa", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 255 |
+
{ name: "Terry Torrison", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 256 |
+
{ name: "Thomas Simeon", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 257 |
+
{ name: "Tiziano Chiappini", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 258 |
+
{ name: "Tobias Clothier", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 259 |
+
{ name: "Wasim Ahmad", completed: 0, incomplete: 0, notAttempted: 12 },
|
| 260 |
+
{ name: "Youssef Sabri", completed: 0, incomplete: 0, notAttempted: 12 }
|
| 261 |
+
];
|
| 262 |
+
|
| 263 |
+
// Calculate summary statistics
|
| 264 |
+
let totalCompleted = 0;
|
| 265 |
+
let totalIncomplete = 0;
|
| 266 |
+
let totalNotAttempted = 0;
|
| 267 |
+
|
| 268 |
+
employeeData.forEach(employee => {
|
| 269 |
+
totalCompleted += employee.completed;
|
| 270 |
+
totalIncomplete += employee.incomplete;
|
| 271 |
+
totalNotAttempted += employee.notAttempted;
|
| 272 |
+
});
|
| 273 |
+
|
| 274 |
+
// Update summary cards
|
| 275 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 276 |
+
// Update summary numbers (these would be calculated from your actual data)
|
| 277 |
+
document.querySelectorAll('.text-3xl')[0].textContent = totalCompleted;
|
| 278 |
+
document.querySelectorAll('.text-3xl')[1].textContent = totalIncomplete;
|
| 279 |
+
document.querySelectorAll('.text-3xl')[2].textContent = totalNotAttempted;
|
| 280 |
+
|
| 281 |
+
// Populate employee table
|
| 282 |
+
const tableBody = document.getElementById('employee-table');
|
| 283 |
+
employeeData.forEach(employee => {
|
| 284 |
+
const totalModules = employee.completed + employee.incomplete + employee.notAttempted;
|
| 285 |
+
const completionPercentage = (employee.completed / totalModules) * 100;
|
| 286 |
+
|
| 287 |
+
let statusBadge = '';
|
| 288 |
+
let statusClass = '';
|
| 289 |
+
|
| 290 |
+
if (employee.completed === totalModules) {
|
| 291 |
+
statusBadge = 'Completed';
|
| 292 |
+
statusClass = 'bg-green-100 text-green-800';
|
| 293 |
+
} else if (employee.completed === 0 && employee.incomplete === 0) {
|
| 294 |
+
statusBadge = 'Not Started';
|
| 295 |
+
statusClass = 'bg-red-100 text-red-800';
|
| 296 |
+
} else if (employee.incomplete > 0) {
|
| 297 |
+
statusBadge = 'Incomplete';
|
| 298 |
+
statusClass = 'bg-yellow-100 text-yellow-800';
|
| 299 |
+
} else {
|
| 300 |
+
statusBadge = 'In Progress';
|
| 301 |
+
statusClass = 'bg-blue-100 text-blue-800';
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
const row = document.createElement('tr');
|
| 305 |
+
row.className = 'hover:bg-gray-50';
|
| 306 |
+
row.innerHTML = `
|
| 307 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 308 |
+
<div class="flex items-center">
|
| 309 |
+
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-200 flex items-center justify-center">
|
| 310 |
+
<span class="text-gray-600">${employee.name.charAt(0)}</span>
|
| 311 |
+
</div>
|
| 312 |
+
<div class="ml-4">
|
| 313 |
+
<div class="text-sm font-medium text-gray-900">${employee.name}</div>
|
| 314 |
+
<div class="text-sm text-gray-500">${totalModules} modules</div>
|
| 315 |
+
</div>
|
| 316 |
+
</div>
|
| 317 |
+
</td>
|
| 318 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 319 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${statusClass}">
|
| 320 |
+
${statusBadge}
|
| 321 |
+
</span>
|
| 322 |
+
</td>
|
| 323 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 324 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 325 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: ${completionPercentage}%"></div>
|
| 326 |
+
</div>
|
| 327 |
+
<div class="text-xs text-gray-500 mt-1">${employee.completed}/${totalModules} completed</div>
|
| 328 |
+
</td>
|
| 329 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 330 |
+
<div class="flex space-x-1">
|
| 331 |
+
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">
|
| 332 |
+
${employee.completed} ✓
|
| 333 |
+
</span>
|
| 334 |
+
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800">
|
| 335 |
+
${employee.incomplete} !
|
| 336 |
+
</span>
|
| 337 |
+
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800">
|
| 338 |
+
${employee.notAttempted} ✗
|
| 339 |
+
</span>
|
| 340 |
+
</div>
|
| 341 |
+
</td>
|
| 342 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 343 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3">Remind</button>
|
| 344 |
+
<button class="text-gray-600 hover:text-gray-900">View</button>
|
| 345 |
+
</td>
|
| 346 |
+
`;
|
| 347 |
+
tableBody.appendChild(row);
|
| 348 |
+
});
|
| 349 |
+
|
| 350 |
+
// Initialize charts
|
| 351 |
+
const pieCtx = document.getElementById('pieChart').getContext('2d');
|
| 352 |
+
const pieChart = new Chart(pieCtx, {
|
| 353 |
+
type: 'pie',
|
| 354 |
+
data: {
|
| 355 |
+
labels: ['Completed', 'Incomplete', 'Not Attempted'],
|
| 356 |
+
datasets: [{
|
| 357 |
+
data: [totalCompleted, totalIncomplete, totalNotAttempted],
|
| 358 |
+
backgroundColor: [
|
| 359 |
+
'#10B981',
|
| 360 |
+
'#F59E0B',
|
| 361 |
+
'#EF4444'
|
| 362 |
+
],
|
| 363 |
+
borderWidth: 1
|
| 364 |
+
}]
|
| 365 |
+
},
|
| 366 |
+
options: {
|
| 367 |
+
responsive: true,
|
| 368 |
+
maintainAspectRatio: false,
|
| 369 |
+
plugins: {
|
| 370 |
+
legend: {
|
| 371 |
+
position: 'right',
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
}
|
| 375 |
+
});
|
| 376 |
+
|
| 377 |
+
const lineCtx = document.getElementById('lineChart').getContext('2d');
|
| 378 |
+
const lineChart = new Chart(lineCtx, {
|
| 379 |
+
type: 'line',
|
| 380 |
+
data: {
|
| 381 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
| 382 |
+
datasets: [
|
| 383 |
+
{
|
| 384 |
+
label: 'Completed',
|
| 385 |
+
data: [2, 5, 8, 10, 12, 15, 18, 20, 22, 24, 24, 24],
|
| 386 |
+
borderColor: '#10B981',
|
| 387 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
| 388 |
+
tension: 0.3,
|
| 389 |
+
fill: true
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
label: 'Incomplete',
|
| 393 |
+
data: [10, 8, 6, 5, 4, 4, 3, 3, 3, 3, 3, 3],
|
| 394 |
+
borderColor: '#F59E0B',
|
| 395 |
+
backgroundColor: 'rgba(245, 158, 11, 0.1)',
|
| 396 |
+
tension: 0.3,
|
| 397 |
+
fill: true
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
label: 'Not Attempted',
|
| 401 |
+
data: [80, 75, 70, 65, 60, 55, 50, 45, 40, 35, 30, 25],
|
| 402 |
+
borderColor: '#EF4444',
|
| 403 |
+
backgroundColor: 'rgba(239, 68, 68, 0.1)',
|
| 404 |
+
tension: 0.3,
|
| 405 |
+
fill: true
|
| 406 |
+
}
|
| 407 |
+
]
|
| 408 |
+
},
|
| 409 |
+
options: {
|
| 410 |
+
responsive: true,
|
| 411 |
+
maintainAspectRatio: false,
|
| 412 |
+
plugins: {
|
| 413 |
+
legend: {
|
| 414 |
+
position: 'top',
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
scales: {
|
| 418 |
+
y: {
|
| 419 |
+
beginAtZero: true
|
| 420 |
+
}
|
| 421 |
+
}
|
| 422 |
+
}
|
| 423 |
+
});
|
| 424 |
+
|
| 425 |
+
// Filter functionality
|
| 426 |
+
const filterButtons = document.querySelectorAll('.filter-btn');
|
| 427 |
+
filterButtons.forEach(button => {
|
| 428 |
+
button.addEventListener('click', function() {
|
| 429 |
+
// Remove active class from all buttons
|
| 430 |
+
filterButtons.forEach(btn => btn.classList.remove('filter-active', 'text-white'));
|
| 431 |
+
|
| 432 |
+
// Add active class to clicked button
|
| 433 |
+
this.classList.add('filter-active', 'text-white');
|
| 434 |
+
|
| 435 |
+
const filter = this.dataset.filter;
|
| 436 |
+
let visibleCount = 0;
|
| 437 |
+
|
| 438 |
+
// Filter table rows
|
| 439 |
+
const rows = tableBody.querySelectorAll('tr');
|
| 440 |
+
rows.forEach(row => {
|
| 441 |
+
const statusBadge = row.querySelector('span:first-child').textContent.trim().toLowerCase();
|
| 442 |
+
let showRow = false;
|
| 443 |
+
|
| 444 |
+
if (filter === 'all') {
|
| 445 |
+
showRow = true;
|
| 446 |
+
} else if (filter === 'completed' && statusBadge === 'completed') {
|
| 447 |
+
showRow = true;
|
| 448 |
+
} else if (filter === 'incomplete' && statusBadge === 'incomplete') {
|
| 449 |
+
showRow = true;
|
| 450 |
+
} else if (filter === 'not-attempted' && statusBadge === 'not started') {
|
| 451 |
+
showRow = true;
|
| 452 |
+
} else if (filter === 'partial' && statusBadge === 'in progress') {
|
| 453 |
+
showRow = true;
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
if (showRow) {
|
| 457 |
+
row.style.display = '';
|
| 458 |
+
visibleCount++;
|
| 459 |
+
} else {
|
| 460 |
+
row.style.display = 'none';
|
| 461 |
+
}
|
| 462 |
+
});
|
| 463 |
+
|
| 464 |
+
// Update showing count
|
| 465 |
+
document.getElementById('showing-count').textContent = visibleCount;
|
| 466 |
+
});
|
| 467 |
+
});
|
| 468 |
+
});
|
| 469 |
+
</script>
|
| 470 |
+
</body>
|
| 471 |
</html>
|
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
i want a dasboard for this data about fca required annual training completion progress
|
| 2 |
+
|
| 3 |
+
Count of Module Name Column Labels
|
| 4 |
+
Row Labels completed incomplete not attempted
|
| 5 |
+
Adeel Ahsan 12
|
| 6 |
+
Adrien Monteiro 12
|
| 7 |
+
Alan Willis 12
|
| 8 |
+
Aleksandra Orywal 12
|
| 9 |
+
Alessia Gigantesco 1 11
|
| 10 |
+
Alla Alqadi 12
|
| 11 |
+
Amal Jaradat 1 12
|
| 12 |
+
Amelie Malta 6 2 4
|
| 13 |
+
Andrew McBean 12
|
| 14 |
+
Andrew Tetley 12
|
| 15 |
+
Annabel Malta 12
|
| 16 |
+
Antonio Agresta 12
|
| 17 |
+
Arkadii Sidorov 13
|
| 18 |
+
Armando Ortiz 12
|
| 19 |
+
Arthur Clarkson 12
|
| 20 |
+
Arunan Ravi 4 8
|
| 21 |
+
Audris Kezi 12
|
| 22 |
+
Benjamin Thomas 12
|
| 23 |
+
Benoit Riegel 12
|
| 24 |
+
Bill Mackway-Jones 12
|
| 25 |
+
Caroun Derderian 12
|
| 26 |
+
Catarina Malta 10 3
|
| 27 |
+
Christopher Stribling 12
|
| 28 |
+
Corrado Ninzoli 12
|
| 29 |
+
Domenico Fanelli 12
|
| 30 |
+
Dominic Brindle 12
|
| 31 |
+
Elena Boccaletti 12
|
| 32 |
+
Emily Palit 12
|
| 33 |
+
Emmanuel Valavanis 12
|
| 34 |
+
Essam Alkadomi 12
|
| 35 |
+
Fadi Kassis 5 7
|
| 36 |
+
Feras Batayneh 12
|
| 37 |
+
Florian Josef 12
|
| 38 |
+
Garvan Smith 12
|
| 39 |
+
Giammarco Campolieti 12
|
| 40 |
+
Giueseppe Gambardella 12
|
| 41 |
+
Gregory Marbot 12
|
| 42 |
+
Gustavo Messerlian 12
|
| 43 |
+
Gwen Arnal 12
|
| 44 |
+
Hejer Anane 12
|
| 45 |
+
Hugh Grindon 12
|
| 46 |
+
Ian Wilkins 12
|
| 47 |
+
James Crammond 12
|
| 48 |
+
Jasper Falk 12
|
| 49 |
+
Keith Temperton 12
|
| 50 |
+
Linda Amrouche 12
|
| 51 |
+
Marc Levy-Walhain 12
|
| 52 |
+
Marcelo Calvi 12
|
| 53 |
+
Marco Bach 13
|
| 54 |
+
Masoud Abdorrezai 12
|
| 55 |
+
Matthieu Prevot 12
|
| 56 |
+
Maxwell Underhill 12
|
| 57 |
+
Meryem Kessler 12
|
| 58 |
+
Naouel Souissi 12
|
| 59 |
+
Navita Morgan 12
|
| 60 |
+
Nicholas Tuite 12
|
| 61 |
+
Oliver Espley 12
|
| 62 |
+
Osman Khan 12
|
| 63 |
+
Ozan Kalemdaroglu 12
|
| 64 |
+
Peter Mulhall 12
|
| 65 |
+
Ramiro Delfranco 12
|
| 66 |
+
Robert Collins 12
|
| 67 |
+
Russell Howard 12
|
| 68 |
+
Sam Seman 12
|
| 69 |
+
Samuel Cooper 12
|
| 70 |
+
Sarp Kavrar 12
|
| 71 |
+
Serena Irani 12
|
| 72 |
+
Simon Kelsey 12
|
| 73 |
+
Simon Luther Mead 12
|
| 74 |
+
Simon Wise 12
|
| 75 |
+
Steve Seman 12
|
| 76 |
+
Steven Bennett 12
|
| 77 |
+
Taher Shakaa 12
|
| 78 |
+
Terry Torrison 12
|
| 79 |
+
Thomas Simeon 12
|
| 80 |
+
Tiziano Chiappini 12
|
| 81 |
+
Tobias Clothier 12
|
| 82 |
+
Wasim Ahmad 12
|
| 83 |
+
Youssef Sabri 12
|