-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
392 lines (377 loc) · 19.7 KB
/
dashboard.html
File metadata and controls
392 lines (377 loc) · 19.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>Dashboard | Onboarding</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/css/styles.css">
<link rel="stylesheet" href="/css/variables.css">
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/layout.css">
<link rel="stylesheet" href="/css/components.css">
<link rel="stylesheet" href="/css/animations.css">
<link rel="stylesheet" href="/css/dashboard.css">
<link rel="stylesheet" href="/css/navbar.css">
<link rel="stylesheet" href="/css/sidebar.css">
<link rel="stylesheet" href="/css/activity-feed.css">
<link rel="stylesheet" href="/css/hacker-console.css">
<script type="module" src="/js/app-dashboard.js"></script>
</head>
<body>
<div class="app-layout" x-data="dashboard" x-cloak>
<main class="main-content">
<div class="dashboard-header">
<div class="header-content">
<h1 class="dashboard-title">Analytics Overview</h1>
<p class="dashboard-subtitle">Real-time training progress insights</p>
</div>
<div class="header-meta">
<div class="live-indicator">
<span class="live-dot"></span>
<span>Live</span>
</div>
</div>
</div>
<div class="metrics-row">
<div class="metric-card metric-trainees">
<div class="metric-glow"></div>
<div class="metric-icon">
<svg width="28" height="28" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"/>
</svg>
</div>
<div class="metric-content">
<div class="metric-value" x-text="$store.app.trainees.length">0</div>
<div class="metric-label">Active Trainees</div>
</div>
<div class="metric-chart">
<svg viewBox="0 0 60 30" class="mini-chart">
<polyline fill="none" stroke="url(#cyan-gradient)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" points="0,25 10,20 20,22 30,15 40,18 50,10 60,12"/>
<defs>
<linearGradient id="cyan-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#00d4ff" stop-opacity="0.3"/>
<stop offset="100%" stop-color="#00d4ff"/>
</linearGradient>
</defs>
</svg>
</div>
</div>
<div class="metric-card metric-progress">
<div class="metric-glow"></div>
<div class="metric-icon">
<svg width="28" height="28" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/>
</svg>
</div>
<div class="metric-content">
<div class="metric-value"><span x-text="getAverageProgress()">0</span><span class="metric-unit">%</span></div>
<div class="metric-label">Avg. Completion</div>
</div>
<div class="metric-ring">
<svg viewBox="0 0 36 36">
<circle cx="18" cy="18" r="15" fill="none" stroke="rgba(124,58,237,0.2)" stroke-width="3"/>
<circle cx="18" cy="18" r="15" fill="none" stroke="url(#violet-ring)" stroke-width="3" stroke-linecap="round"
:stroke-dasharray="progressRingDasharray()"
transform="rotate(-90 18 18)"/>
<defs>
<linearGradient id="violet-ring" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#7c3aed"/>
<stop offset="100%" stop-color="#00d4ff"/>
</linearGradient>
</defs>
</svg>
</div>
</div>
<div class="metric-card metric-completed">
<div class="metric-glow"></div>
<div class="metric-icon">
<svg width="28" height="28" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<div class="metric-content">
<div class="metric-value" x-text="getCompletedTasksCount()">0</div>
<div class="metric-label">Tasks Done</div>
</div>
<div class="metric-badge">
<span x-text="totalTasksLabel()">/ 0</span>
</div>
</div>
<div class="metric-card metric-active">
<div class="metric-glow"></div>
<div class="metric-icon">
<svg width="28" height="28" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z"/>
</svg>
</div>
<div class="metric-content">
<div class="metric-value" x-text="getInProgressCount()">0</div>
<div class="metric-label">In Progress</div>
</div>
<div class="metric-pulse">
<span></span>
<span></span>
</div>
</div>
</div>
<div class="charts-grid">
<div class="chart-card chart-donut">
<div class="chart-header">
<h3 class="chart-title">Status Distribution</h3>
<div class="chart-actions">
<span class="chart-period">All Time</span>
</div>
</div>
<div class="donut-container">
<svg viewBox="0 0 200 200" class="donut-chart">
<circle cx="100" cy="100" r="70" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="24"/>
<circle cx="100" cy="100" r="70" fill="none" stroke="#10b981" stroke-width="24"
:stroke-dasharray="donutDasharray('done')"
:stroke-dashoffset="0"
transform="rotate(-90 100 100)"
class="donut-segment done"/>
<circle cx="100" cy="100" r="70" fill="none" stroke="#f59e0b" stroke-width="24"
:stroke-dasharray="donutDasharray('in_progress')"
:stroke-dashoffset="donutOffset(['done'])"
transform="rotate(-90 100 100)"
class="donut-segment progress"/>
<circle cx="100" cy="100" r="70" fill="none" stroke="#ef4444" stroke-width="24"
:stroke-dasharray="donutDasharray('blocked')"
:stroke-dashoffset="donutOffset(['done', 'in_progress'])"
transform="rotate(-90 100 100)"
class="donut-segment blocked"/>
<circle cx="100" cy="100" r="70" fill="none" stroke="#6b7280" stroke-width="24"
:stroke-dasharray="donutDasharray('pending')"
:stroke-dashoffset="donutOffset(['done', 'in_progress', 'blocked'])"
transform="rotate(-90 100 100)"
class="donut-segment pending"/>
<text x="100" y="95" text-anchor="middle" class="donut-center-value" x-text="statusPercentLabel('done')">0%</text>
<text x="100" y="115" text-anchor="middle" class="donut-center-label">Completed</text>
</svg>
<div class="donut-legend">
<div class="legend-row">
<span class="legend-color done"></span>
<span class="legend-text">Done</span>
<span class="legend-value" x-text="statusPercentLabel('done')">0%</span>
</div>
<div class="legend-row">
<span class="legend-color progress"></span>
<span class="legend-text">In Progress</span>
<span class="legend-value" x-text="statusPercentLabel('in_progress')">0%</span>
</div>
<div class="legend-row">
<span class="legend-color blocked"></span>
<span class="legend-text">Blocked</span>
<span class="legend-value" x-text="statusPercentLabel('blocked')">0%</span>
</div>
<div class="legend-row">
<span class="legend-color pending"></span>
<span class="legend-text">Pending</span>
<span class="legend-value" x-text="statusPercentLabel('pending')">0%</span>
</div>
</div>
</div>
</div>
<div class="chart-card chart-trainees-progress">
<div class="chart-header">
<h3 class="chart-title">Trainee Progress</h3>
<a href="/trainees.html" class="chart-link">View All →</a>
</div>
<div class="trainees-progress-list">
<template x-for="trainee in $store.app.trainees.slice(0, 5)" :key="trainee.id">
<div class="trainee-progress-row">
<div class="trainee-avatar-sm" x-text="getInitials(trainee.name)"></div>
<div class="trainee-progress-info">
<div class="trainee-progress-header">
<span class="trainee-progress-name" x-text="trainee.name">Name</span>
<span class="trainee-progress-value" x-text="traineeProgressLabel(trainee.id)">0%</span>
</div>
<div class="trainee-progress-track">
<div class="trainee-progress-fill" :style="traineeProgressStyle(trainee.id)"></div>
</div>
</div>
</div>
</template>
<div class="empty-state-sm" x-show="$store.app.trainees.length === 0">
<p>No trainees yet</p>
</div>
</div>
</div>
<div class="chart-card chart-outcomes">
<div class="chart-header">
<h3 class="chart-title">Interview Outcomes</h3>
<a href="/interview-board.html" class="chart-link">View Board →</a>
</div>
<div class="outcomes-container">
<div class="outcome-stat outcome-hired">
<div class="outcome-icon">
<svg width="24" height="24" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<div class="outcome-data">
<div class="outcome-value" x-text="getHiredCandidatesCount()">0</div>
<div class="outcome-label">Hired</div>
</div>
</div>
<div class="outcome-stat outcome-rejected">
<div class="outcome-icon">
<svg width="24" height="24" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<div class="outcome-data">
<div class="outcome-value" x-text="getRejectedCandidatesCount()">0</div>
<div class="outcome-label">Rejected</div>
</div>
</div>
<div class="outcome-stat outcome-pending">
<div class="outcome-icon">
<svg width="24" height="24" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<div class="outcome-data">
<div class="outcome-value" x-text="getPendingDecisionsCount()">0</div>
<div class="outcome-label">Pending</div>
</div>
</div>
</div>
<div class="outcomes-bar">
<div class="outcomes-bar-segment hired" :style="'width: ' + getOutcomePercent('hired') + '%'" x-show="getHiredCandidatesCount() > 0"></div>
<div class="outcomes-bar-segment rejected" :style="'width: ' + getOutcomePercent('rejected') + '%'" x-show="getRejectedCandidatesCount() > 0"></div>
<div class="outcomes-bar-segment pending" :style="'width: ' + getOutcomePercent('pending') + '%'" x-show="getPendingDecisionsCount() > 0"></div>
</div>
</div>
<div class="chart-card chart-recent-interviews">
<div class="chart-header">
<h3 class="chart-title">Recent Interviews</h3>
<a href="/interview-board.html" class="chart-link">View All →</a>
</div>
<div class="recent-interviews-list">
<template x-for="interview in getRecentInterviews()" :key="interview.id">
<div class="recent-interview-row">
<div class="interview-candidate-avatar" x-text="getCandidateInitials(interview.candidate_id)">??</div>
<div class="recent-interview-info">
<div class="recent-interview-header">
<span class="recent-interview-candidate" x-text="getCandidateName(interview.candidate_id)">Candidate</span>
<span class="recent-interview-decision" :class="'decision-' + (interview.decision || 'pending')" x-text="formatDecisionShort(interview.decision)">?</span>
</div>
<div class="recent-interview-meta">
<span class="recent-interview-stage" x-text="getInterviewStageName(interview.stage_id)">Stage</span>
<span class="recent-interview-score" x-show="interview.overall_score" x-text="'Score: ' + interview.overall_score"></span>
</div>
</div>
</div>
</template>
<div class="empty-state-sm" x-show="interviews.length === 0">
<p>No interviews yet</p>
</div>
</div>
</div>
</div>
<div class="quick-stats">
<div class="quick-stat">
<div class="quick-stat-icon weeks">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="$store.app.weeks.length">0</div>
<div class="quick-stat-label">Training Weeks</div>
</div>
</div>
<div class="quick-stat">
<div class="quick-stat-icon tasks">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="$store.app.tasks.length">0</div>
<div class="quick-stat-label">Total Tasks</div>
</div>
</div>
<div class="quick-stat">
<div class="quick-stat-icon mentors">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="$store.app.mentors.length">0</div>
<div class="quick-stat-label">Mentors</div>
</div>
</div>
<div class="quick-stat">
<div class="quick-stat-icon blocked">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="getBlockedCount()">0</div>
<div class="quick-stat-label">Blocked Tasks</div>
</div>
</div>
</div>
<!-- Interview Pipeline Stats -->
<div class="section-header">
<h2>Interview Pipeline</h2>
<a href="/interview-board.html" class="chart-link">View Board →</a>
</div>
<div class="quick-stats">
<div class="quick-stat">
<div class="quick-stat-icon" style="background: rgba(20, 184, 166, 0.15); color: #14b8a6;">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="getActiveCandidatesCount()">0</div>
<div class="quick-stat-label">Active Candidates</div>
</div>
</div>
<div class="quick-stat">
<div class="quick-stat-icon" style="background: rgba(16, 185, 129, 0.15); color: #10b981;">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="getCompletedInterviewsCount()">0</div>
<div class="quick-stat-label">Interviews Done</div>
</div>
</div>
<div class="quick-stat">
<div class="quick-stat-icon" style="background: rgba(245, 158, 11, 0.15); color: #f59e0b;">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value" x-text="getScheduledInterviewsCount()">0</div>
<div class="quick-stat-label">Scheduled</div>
</div>
</div>
<div class="quick-stat">
<div class="quick-stat-icon" style="background: rgba(124, 58, 237, 0.15); color: #7c3aed;">
<svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>
</svg>
</div>
<div class="quick-stat-content">
<div class="quick-stat-value"><span x-text="getInterviewPassRate()">0</span><span style="font-size: 0.75rem; opacity: 0.7;">%</span></div>
<div class="quick-stat-label">Pass Rate</div>
</div>
</div>
</div>
</main>
</div>
</body>
</html>