-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1011 lines (880 loc) · 57.6 KB
/
index.html
File metadata and controls
1011 lines (880 loc) · 57.6 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
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
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tudonum Product Execution Dashboard</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Chart.js -->
<!-- jsPDF for PDF Export -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<!-- html2canvas for capturing dashboard -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<!-- Google Fonts -->
<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=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
}
.gradient-bg {
background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
}
.gradient-success {
background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
}
.gradient-warning {
background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
}
.gradient-danger {
background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}
.logo-header {
height: 140px;
width: auto;
margin-right: 30px;
}
@media (max-width: 768px) {
.logo-header {
height: 80px;
margin-right: 0;
margin-bottom: 1rem;
}
}
.card-shadow {
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.progress-bar {
transition: width 1s ease-in-out;
}
@media print {
.no-print {
display: none;
}
}
.status-badge {
display: inline-flex;
align-items: center;
padding: 0.5rem 1rem;
border-radius: 9999px;
font-weight: 600;
font-size: 0.875rem;
}
.badge-critical {
background-color: #fee2e2;
color: #991b1b;
}
.badge-high {
background-color: #fef3c7;
color: #92400e;
}
.badge-medium {
background-color: #dbeafe;
color: #1e40af;
}
.badge-low {
background-color: #d1fae5;
color: #065f46;
}
.repo-card {
transition: transform 0.2s, box-shadow 0.2s;
}
.repo-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.insight-card {
border-left: 4px solid;
padding-left: 1.5rem;
}
.insight-product {
border-color: #2563EB;
}
.insight-technology {
border-color: #3b82f6;
}
.insight-engineering {
border-color: #10b981;
}
#pin-overlay {
position: fixed;
inset: 0;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
z-index: 9999;
align-items: center;
justify-content: center;
padding: 1rem;
}
.pin-card {
width: 100%;
max-width: 420px;
background: #ffffff;
border-radius: 1rem;
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
padding: 2rem;
}
.pin-input {
width: 100%;
border: 1px solid #d1d5db;
border-radius: 0.75rem;
padding: 0.75rem 1rem;
font-size: 1rem;
outline: none;
}
.pin-input:focus {
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
</style>
</head>
<body class="bg-gray-50 overflow-hidden">
<div id="pin-overlay" aria-modal="true" role="dialog" style="display: flex;">
<div class="pin-card">
<h2 class="text-2xl font-bold text-gray-900 mb-2">Enter PIN</h2>
<p class="text-sm text-gray-600 mb-6">This dashboard is protected. Enter the PIN to continue.</p>
<form id="pin-form" class="space-y-4">
<input id="pin-input" type="password" inputmode="numeric" autocomplete="off" class="pin-input" placeholder="Enter PIN" required />
<p id="pin-error" class="text-sm text-red-600 hidden">Incorrect PIN. Please try again.</p>
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 rounded-xl transition">
Unlock Dashboard
</button>
</form>
</div>
</div>
<div id="protected-content" class="hidden">
<!-- Header -->
<div class="gradient-bg text-white py-12">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center gap-8">
<div class="flex flex-col md:flex-row items-center gap-6 flex-1 text-center md:text-left">
<img src="logo.png" alt="Tudonum Logo" class="logo-header flex-shrink-0">
<div class="flex-1">
<h1 class="text-3xl md:text-5xl font-black mb-3">TUDONUM</h1>
<h2 class="text-xl md:text-3xl font-bold mb-2">Product Execution Intelligence Dashboard</h2>
<p class="text-base md:text-xl opacity-90 mb-3">Strategic Roadmap & Sprint Tracking</p>
<p class="text-xs md:text-sm opacity-75">Authored By <a href="https://tudotechlab.com/" target="_blank" rel="noopener noreferrer" class="underline">Tudo Tech Lab</a></p>
</div>
</div>
<div class="text-center md:text-right no-print flex-shrink-0">
<div class="bg-white/20 backdrop-blur-sm rounded-lg p-4">
<p class="text-sm mb-2">Last Updated</p>
<p class="text-2xl font-bold" id="last-updated">Loading...</p>
</div>
</div>
</div>
</div>
</div>
<!-- Export Buttons -->
<div class="container mx-auto px-4 -mt-6 mb-8 no-print">
<div class="flex gap-4 justify-end">
<button onclick="exportToPDF()" class="bg-white text-blue-600 px-6 py-3 rounded-lg font-semibold shadow-lg hover:shadow-xl transition flex items-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
</svg>
Download PDF
</button>
<button onclick="window.print()" class="bg-white text-blue-600 px-6 py-3 rounded-lg font-semibold shadow-lg hover:shadow-xl transition flex items-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z"></path>
</svg>
Print Report
</button>
</div>
</div>
<div class="container mx-auto px-4 pb-16">
<!-- Executive Summary -->
<div class="mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-6 flex items-center gap-3">
<span class="text-4xl">📊</span>
Executive Summary
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6" id="executive-cards">
<!-- Cards will be dynamically inserted -->
</div>
<div class="mt-6 bg-white rounded-xl p-6 card-shadow">
<div class="flex items-start gap-4">
<span class="text-4xl">💡</span>
<div>
<h3 class="text-xl font-bold text-gray-800 mb-2">Strategic Headline</h3>
<p class="text-gray-600 text-lg" id="headline-text">Loading...</p>
</div>
</div>
</div>
</div>
<!-- Sprint Tracking & Leadership Signals -->
<div class="mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-6 flex items-center gap-3">
<span class="text-4xl">🎯</span>
<span>Current Sprint: <span id="sprint-title-name">Loading...</span></span>
</h2>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Sprint Progress (1/3) -->
<div class="bg-white rounded-xl p-6 card-shadow">
<h3 class="text-xl font-bold text-gray-800 mb-4">Sprint Progress</h3>
<div style="max-height: 280px; margin: 0 auto;">
<canvas id="sprintChart"></canvas>
</div>
<div class="mt-4 space-y-2" id="sprint-stats"></div>
</div>
<!-- Critical Path Items (1/3) -->
<div class="bg-white rounded-xl p-6 card-shadow">
<h3 class="text-xl font-bold text-gray-800 mb-4">Critical Path Items</h3>
<div class="space-y-3 overflow-y-auto" style="max-height: 500px;" id="critical-path"></div>
</div>
<!-- Leadership Signals (1/3) -->
<div class="bg-white rounded-xl p-6 card-shadow">
<h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center gap-2">
<span class="text-2xl">🎤</span>
Leadership Signals
</h3>
<div class="space-y-4 overflow-y-auto" style="max-height: 500px;" id="leadership-insights-compact">
<!-- Compact leadership insights will be inserted here -->
</div>
</div>
</div>
</div>
<!-- Repository Performance -->
<div class="mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-6 flex items-center gap-3">
<span class="text-4xl">⚡</span>
Repository & Team Performance
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Repository cards container -->
<div id="repo-cards" class="contents">
<!-- Repository cards will be dynamically inserted -->
</div>
<!-- Comparative Analysis as 6th widget -->
<div class="repo-card bg-white rounded-xl p-6 card-shadow">
<div class="flex items-start justify-between mb-4">
<div>
<h3 class="text-lg font-bold text-gray-800">COMPARATIVE ANALYSIS</h3>
<p class="text-sm text-gray-500">Progress across all repos</p>
</div>
<span class="text-3xl">📊</span>
</div>
<div style="height: 320px;">
<canvas id="repoComparisonChart"></canvas>
</div>
</div>
</div>
</div>
<!-- Strategic Roadmap -->
<div class="mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-6 flex items-center gap-3">
<span class="text-4xl">🗺️</span>
Strategic Roadmap Progress
</h2>
<div class="bg-white rounded-xl p-6 card-shadow">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6" id="strategic-modules">
<!-- Module cards will be dynamically inserted -->
</div>
</div>
</div>
<!-- Engineering Team Updates -->
<div class="mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-6 flex items-center gap-3">
<span class="text-4xl">🛠️</span>
Engineering Team Updates
</h2>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- This Week Completed -->
<div class="bg-white rounded-xl p-6 card-shadow">
<h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center gap-2">
<span class="text-2xl">✅</span>
This Week Completed
</h3>
<div class="space-y-3 overflow-y-auto" style="max-height: 450px;" id="week-completed">
<!-- Completed items will be dynamically inserted -->
</div>
</div>
<!-- Next 7 Days Plan -->
<div class="bg-white rounded-xl p-6 card-shadow">
<h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center gap-2">
<span class="text-2xl">📅</span>
Next 7 Days Plan
</h3>
<div class="space-y-3 overflow-y-auto" style="max-height: 450px;" id="next-week-plan">
<!-- Plan items will be dynamically inserted -->
</div>
</div>
<!-- Blockers & Risks -->
<div class="bg-white rounded-xl p-6 card-shadow">
<h3 class="text-xl font-bold text-gray-800 mb-4 flex items-center gap-2">
<span class="text-2xl">🚨</span>
Blockers & Risks
</h3>
<div class="space-y-3 overflow-y-auto" style="max-height: 450px;" id="blockers-list">
<!-- Blocker cards will be dynamically inserted -->
</div>
</div>
</div>
</div>
<!-- Future Plans -->
<div class="mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-6 flex items-center gap-3">
<span class="text-4xl">🚀</span>
Future Plans (Long-Term Vision)
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="future-plans">
<!-- Future plan cards will be dynamically inserted -->
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4 text-center">
<p class="text-lg font-semibold mb-2">Tudonum Product Execution Intelligence</p>
<p class="text-sm opacity-75">Authored By <a href="https://tudotechlab.com/" target="_blank" rel="noopener noreferrer" class="underline">Tudo Tech Lab</a></p>
<p class="text-sm opacity-75 mt-2">© 2026 Tudonum - All Rights Reserved</p>
<p class="text-xs opacity-50 mt-4">Dashboard v1.0.0 - Generated for Board-Level Strategic Review</p>
</div>
</footer>
</div>
<script>
const PIN_SALT = 'ttl-dashboard-v1';
const DASHBOARD_PIN_HASH = 'f5f66ebfd45cc8c0eaf44f8e5feea6a64995bc4c07670c4e3f776a0f57cc0c19';
const SESSION_UNLOCK_KEY = 'tudonum_dashboard_unlocked';
async function hashPin(pin) {
const encoded = new TextEncoder().encode(`${PIN_SALT}:${pin}`);
const digest = await crypto.subtle.digest('SHA-256', encoded);
const bytes = Array.from(new Uint8Array(digest));
return bytes.map((value) => value.toString(16).padStart(2, '0')).join('');
}
function unlockDashboard() {
const pinOverlay = document.getElementById('pin-overlay');
pinOverlay.style.display = 'none';
document.getElementById('protected-content').classList.remove('hidden');
document.body.classList.remove('overflow-hidden');
loadDashboard();
}
function initializePinProtection() {
const isUnlocked = sessionStorage.getItem(SESSION_UNLOCK_KEY) === 'true';
const pinForm = document.getElementById('pin-form');
const pinInput = document.getElementById('pin-input');
const pinError = document.getElementById('pin-error');
if (isUnlocked) {
unlockDashboard();
return;
}
pinInput.focus();
pinForm.addEventListener('submit', async (event) => {
event.preventDefault();
const enteredHash = await hashPin(pinInput.value);
if (enteredHash === DASHBOARD_PIN_HASH) {
sessionStorage.setItem(SESSION_UNLOCK_KEY, 'true');
pinError.classList.add('hidden');
unlockDashboard();
return;
}
pinError.classList.remove('hidden');
pinInput.value = '';
pinInput.focus();
});
}
// Embedded data for local file:// protocol support
const EMBEDDED_DATA = {"meta":{"generated_at":"2026-03-04T19:00:00Z","author":"Tudo Tech Lab","title":"","dashboard_version":"1.0.0"},"current_sprint":{"name":"20th Ramzan Launch","start_date":"2026-02-04","end_date":"2026-03-19","days_remaining":5,"total_days":25},"executive_summary":{"strategic_completion":48,"sprint_completion":72,"launch_readiness":"ON TRACK","confidence_level":"High","status_color":"success","headline":"Explosive velocity. 8 AI features fully built across 3 repos. Ride hailing 45% complete (backend APIs + admin + web booking). 140+ commits this week. Command Center annexure-a synced. 5 days to launch."},"sprint_tracking":{"total_tasks":63,"completed":45,"in_progress":12,"pending":6,"completion_percentage":72,"on_track":true,"risk_assessment":"Massive acceleration. AI features fully built across all 3 repos (8 services + toggle system). Ride hailing ~45% complete with full backend APIs, admin pages, and web booking flow. 5 days remaining - focus on integration testing, deployment, and mobile.","critical_path":["Merge annexure-a branches to staging/production across all repos","Complete Food Delivery frontend ordering flow","Integration testing for AI features + ride hailing end-to-end","Update services accessibility and display behavior on web app","Complete Wallet UI testing and compliance clearance","Android core flows completion"]},"strategic_roadmap":{"total_phases":6,"phases_in_progress":2,"phases_completed":1,"completion_percentage":48,"modules":{"infrastructure":{"status":"completed","progress":100,"notes":"Django backend, PostgreSQL + PostGIS, Docker complete. RBAC, Franchise architecture, SuperAdmin, and Command Center added."},"professional_services":{"status":"in_progress","progress":84,"notes":"Backend complete with KM pricing. Basic Info API resolved. New service categories seeded (events, insurance, legal). Frontend booking in progress."},"food_delivery":{"status":"in_progress","progress":75,"notes":"Restaurant registration API fixes in progress. Food vendor registration steps on web. User food delivery screens actively developed."},"ride_hailing":{"status":"in_progress","progress":45,"notes":"Backend complete on annexure-a: 13 models, 22 API endpoints (customer booking, driver management, live tracking, SOS, fare estimation). Admin has 9 ride management pages (overview, trips, drivers, vehicle categories, pricing, promo codes, SOS alerts). Web React has full customer booking flow, live tracking page, ride history, and complete driver dashboard (3 pages + sidebar). Design complete."},"wallet_payments":{"status":"in_progress","progress":100,"notes":"Backend complete. Wallet UI development completed and in testing phase. Compliance/licensing approval still pending."},"admin_dashboard":{"status":"in_progress","progress":88,"notes":"Tudonum Command Center with 62+ pages. AI Services management page (8 AI service cards + feature toggle panel). 9 Ride management pages (overview, trips, drivers, vehicles, pricing, promos, SOS). RBAC + Franchise + service toggles + country config. Help Center. Analytics (10 pages). Finance (5 pages). Deployed on Vercel."},"ai_features":{"status":"in_progress","progress":60,"notes":"8 AI features fully built: description gen, menu AI, dietary tags, smart replies, review analysis, support chatbot, pricing advisor, NLP search. Backend ai_services app complete with OpenAI gpt-4o-mini. Admin has full AI Services management page with toggle panel. Web React has AI hooks + floating support chat widget. Feature toggle system live across all 3 repos."},"mobile_apps":{"status":"in_progress","progress":28,"notes":"Android resumed in android_app_2026: auth, services, support, vendor screens done. iOS still paused (33 days)."}}},"repository_performance":{"tudonum_backend":{"commits_last_2_weeks":64,"total_commits":861,"total_files":984,"lines_of_code":55332,"api_endpoints":305,"status":"active","health":"excellent","progress":85,"velocity":"high","last_commit":"today","key_work":["305+ API endpoints across 22+ Django apps incl. ai_services + ride","AI Services: 8 endpoints (OpenAI gpt-4o-mini) + feature toggle system","Ride Hailing: 22 endpoints (customer, driver, admin) on annexure-a","Annexure-A: SuperAdmin APIs + country rules + RBAC + finance views"],"team_members":5,"branches_active":14},"tudonum_web_react":{"commits_last_2_weeks":134,"total_commits":134,"total_files":1450,"lines_of_code":62041,"components":688,"status":"active","health":"excellent","progress":85,"velocity":"high","last_commit":"today","key_work":["134 commits across 25 branches - explosive velocity","AI: 8 service hooks + floating support chat + food delivery AI integration","Ride Hailing: full booking flow, live tracking, driver dashboard (3 pages)","Franchise toggles, Wallet UI, Google Maps, Help Center, role switching"],"team_members":7,"branches_active":25},"tudonum_admin_dashboard":{"commits_last_2_weeks":10,"total_commits":24,"total_files":264,"lines_of_code":20993,"pages":62,"status":"active","health":"excellent","progress":83,"velocity":"high","last_commit":"this week","key_work":["62+ pages: AI Services (8 cards + toggles), Ride Mgmt (9 pages)","RBAC + Franchise + service toggles + country config + analytics","Finance (5 pages), Help Center, Support tickets, User management","React migration complete, Vercel deployed, 3 contributors"],"team_members":3,"branches_active":6},"tudonum_ios_app":{"commits_last_2_weeks":0,"total_commits":2,"total_files":395,"lines_of_code":29398,"screens":30,"status":"stagnant","health":"critical","progress":45,"velocity":"stopped","last_commit":"33 days ago","key_work":["395 tracked files (29K LOC)","30+ screens with UIKit","Booking/Payment flows 60-70%","No activity since Jan 30"],"team_members":0,"branches_active":2},"android_app_2026":{"commits_last_2_weeks":2,"total_commits":4,"total_files":344,"lines_of_code":8500,"packages":12,"status":"active","health":"good","progress":48,"velocity":"medium","last_commit":"2 days ago","key_work":["Fresh repo - auth, signup, OTP flows complete","Services load screen + vendor dashboard done","Customer support & FAQ module completed","Active development by 1 dedicated developer"],"team_members":1,"branches_active":2}},"future_plans":[{"category":"Phase 2: Market Expansion (2026-2027)","timeline":"2026-2027","icon":"🌍","priority":"High","features":["Sprint-3+ service categories activation (26+ total categories)","Qatar and UAE market entry","Tudo Coin on-chain deployment (Q4 2026) - ERC-20 on Polygon/Base L2","Credit & BNPL system rollout","Multi-country regulatory compliance (EU GDPR, MiCA, GCC SCA)"]},{"category":"Tudo Wallet & Financial OS","timeline":"2026-2027","icon":"💳","priority":"High","features":["Multi-ledger architecture (Fiat, Tudo Points, Tudo Coins, Crypto, Escrow, Credit)","AI-based financial intelligence (Trust, Reliability, Credit, Corridor Risk scores)","Global remittance engine & FX platform","Unified checkout with AI-driven asset optimization","KYC/AML tiering system (Tier 0-3)"]},{"category":"TudoVerse - Virtual Countries","timeline":"2027-2028","icon":"🏢","priority":"High","features":["Phase 2: Economic zones, Government desks, Investor floors","Sector buildings for all 13 service groups","Virtual office subscriptions ($49-$299/month)","Real-time business meetings and service bookings","Phase 3 (2028+): Public spaces, AR/VR immersion, Virtual expos"]},{"category":"Communication & Social Platform","timeline":"2026-2027","icon":"💬","priority":"Medium","features":["Tudo Chat: Business messaging with payments, appointments, AI assistant","Tudo Social: Posts, Reels, Stories, Live Streaming with 'Book Now' integration","Fame Connect: Celebrity interactions ($10-$5,000) with 70-80% revenue share","Content monetization with Tudo Coin tipping","Tudo Browser: AI-powered web browser with shopping assistant"]},{"category":"Phase 3: Maturity & AI Excellence (2027-2028)","timeline":"2027-2028","icon":"🤖","priority":"High","features":["Full 26+ service categories operational across all markets","Saudi Arabia market entry","AI Module Marketplace (Pricing AI, Marketing AI, Operations AI, Smart City AI)","Advanced Tudo AI Assistant (ChatGPT-level, 10+ languages, multi-modal)","Tudo ERP & CRM SaaS expansion ($89-$999/month tiers)"]},{"category":"Marketplace & Trading Platform","timeline":"2027","icon":"📊","priority":"Medium","features":["Classifieds: Vehicles (EV-focus), Real Estate, Hotel & Travel, Matrimonial","Stock Trading Platform with AI Trading Assistant","Jobs & Recruitment marketplace with AI-powered matching","Cryptocurrency trading integration","Digital resume builder and employer branding tools"]},{"category":"Infrastructure & EV Fleet Expansion","timeline":"2026-2028","icon":"⚡","priority":"High","features":["Pakistan: 80% EV, 20% hybrid fleet deployment","GCC & Europe: 100% EV fleet","Charging infrastructure & battery optimization","Carbon-aware routing algorithms","AI Data Center expansion (Oman primary, regional redundancy)"]},{"category":"Phase 4: Innovation Layer (2028+)","timeline":"2028+","icon":"🚀","priority":"Medium","features":["Digital Hospital Ecosystem (4-phase medical services roadmap)","Digital Educational Excellence platform","TudoVerse public spaces & virtual trade shows","Developer Ecosystem & API Platform with revenue sharing","White-label Tudo AI for enterprises & governments"]},{"category":"ESG & Sustainability","timeline":"2026-2028","icon":"🌱","priority":"Medium","features":["Green AI data centers (Solar + Wind power)","Carbon-aware operations & Net Zero alignment","Vision 2040 (Oman) & Net Zero 2050 (EU, GCC) compliance","CO₂ reduction tracking per booking","Smart City integration (Traffic, mobility, employment analytics)"]}],"this_week_completed":[{"date":"This Week","repo":"Multi-Repo","achievement":"8 AI features built end-to-end: backend (OpenAI), admin toggles, web React hooks + chat widget"},{"date":"This Week","repo":"Multi-Repo","achievement":"Ride Hailing: 22 backend APIs + 9 admin pages + web booking flow + driver dashboard"},{"date":"This Week","repo":"Admin","achievement":"Command Center: 62+ pages - AI Services, Ride Mgmt, Analytics, Finance, Help Center"},{"date":"This Week","repo":"Frontend","achievement":"Wallet UI completed + Google Maps + role switching + Help Center + service availability"},{"date":"This Week","repo":"Backend","achievement":"Annexure-A: ai_services app, ride app, help_center, support, RBAC middleware, finance views"},{"date":"This Week","repo":"Android","achievement":"Services load screen, customer support & FAQ, vendor dashboard screens"},{"date":"This Week","repo":"UI/UX","achievement":"Rider hailing design completed, mobile screen alignment in progress"}],"next_7_days_plan":[{"priority":"P0","task":"Merge annexure-a branches to staging across all 3 repos","owner":"CPO + Backend","days":"1-2"},{"priority":"P0","task":"Integration testing: AI features + ride hailing end-to-end","owner":"Full Team","days":"2-3"},{"priority":"P0","task":"Complete Food Delivery frontend ordering flow","owner":"Dev 3","days":"3-4"},{"priority":"P0","task":"Update services accessibility and display behavior on web app","owner":"Dev 2","days":"2-3"},{"priority":"P0","task":"Complete Wallet UI testing and QA signoff","owner":"Frontend Team","days":"2-3"},{"priority":"P1","task":"Android: Continue building core screens and flows","owner":"Umaid","days":"5"},{"priority":"P1","task":"Restaurant registration module API completion","owner":"Backend Team","days":"2-3"},{"priority":"P2","task":"Mobile screen alignment with web portal (UI/UX)","owner":"UI/UX Team","days":"3-5"}],"blockers_and_risks":[{"severity":"high","category":"Mobile - iOS","issue":"iOS app stalled 33 days - zero contributors assigned","impact":"iOS market unserved at launch. Risk building in mobile launches.","mitigation":"Make GO/NO-GO decision on iOS. If GO, assign developer immediately."},{"severity":"medium","category":"Compliance","issue":"Wallet backend awaiting licensing approval (UI now ready)","impact":"Wallet UI complete but payments can't go live without compliance clearance.","mitigation":"Escalate to legal. Explore Stripe direct as interim solution."},{"severity":"medium","category":"Franchise Integration","issue":"Services accessibility and display behavior pending update on web app","impact":"Admin + backend toggles live. Web app display update needed to complete integration.","mitigation":"Scheduled alongside Web React development. Not blocking current sprint."},{"severity":"low","category":"Ride Hailing","issue":"Backend + Admin + Web built but annexure-a needs merge to production","impact":"45% complete. Needs merge + integration testing before launch.","mitigation":"Annexure-a merge planned. Core booking + driver flows ready. MVP viable."},{"severity":"low","category":"Migration","issue":"Web React migration ongoing - old Next.js app pending deprecation","impact":"Dual codebase maintenance until cutover.","mitigation":"23 active branches show strong progress. Cutover planned post-sprint."},{"severity":"low","category":"AI Features","issue":"8 AI features built but on annexure-a branch - needs merge + testing","impact":"Fully functional AI system ready but not yet in production.","mitigation":"Merge annexure-a to staging. OpenAI API key + toggle config needed for deployment."}],"leadership_insights":{"product":{"role":"CPO","insight":"Strategically prioritizing admin dashboard (Command Center) to offload configuration work to ops team - freeing developers to focus purely on building logic. Countries, services, and franchise configurations now manageable by ops. Transitioning towards a highly scalable architecture."},"technology":{"role":"CTO","insight":"AI services layer complete with OpenAI integration and feature toggle system. Ride hailing APIs fully built on annexure-a (22 endpoints). Microservices detachment and annexure-a merge to production are the final push items."},"engineering":{"role":"Engineering Lead","insight":"Massive output: 8 AI features, 22 ride endpoints, 62+ admin pages built in one sprint. Annexure-a coordination across 3 repos shows mature execution. 140+ commits this week. Focus now on merge, integration testing, and deployment."}},"charts_data":{"overall_progress_donut":{"completed":48,"remaining":52},"repo_comparison":[{"name":"Backend","progress":85,"status":"excellent"},{"name":"Web React","progress":85,"status":"excellent"},{"name":"Admin","progress":88,"status":"excellent"},{"name":"iOS","progress":45,"status":"critical"},{"name":"Android","progress":48,"status":"good"}],"sprint_velocity":[{"week":"Week 1-2","commits":44,"features":6},{"week":"Week 3","commits":64,"features":8},{"week":"Week 4 (Current)","commits":140,"features":12}],"sprint_burndown":{"total_story_points":210,"completed":151,"remaining":59,"ideal_remaining":42}},"key_metrics":{"total_commits_all_repos":1025,"active_developers":15,"lines_of_code":"~260,000","api_endpoints":"335+","countries_supported":5,"verticals_live":1,"verticals_in_progress":3,"verticals_not_started":0}};
let dashboardData = null;
// Load data and initialize dashboard
async function loadDashboard() {
try {
// Try loading from external file first (for GitHub Pages)
const response = await fetch('dashboard_data.json');
if (!response.ok) throw new Error('Failed to fetch');
dashboardData = await response.json();
console.log('Loaded from external JSON file');
} catch (error) {
// Fallback to embedded data (for local file:// protocol)
console.log('Using embedded data for local file system');
dashboardData = EMBEDDED_DATA;
}
renderDashboard();
}
function renderDashboard() {
if (!dashboardData) return;
// Update last updated time
const lastUpdated = new Date(dashboardData.meta.generated_at);
document.getElementById('last-updated').textContent = lastUpdated.toLocaleDateString('en-US', {
month: 'short',
day: 'numeric',
year: 'numeric',
hour: '2-digit',
minute: '2-digit'
});
renderExecutiveSummary();
renderSprintTracking();
renderRepositoryPerformance();
renderStrategicRoadmap();
renderFuturePlans();
renderThisWeekCompleted();
renderNextWeekPlan();
renderBlockersAndRisks();
renderLeadershipInsights();
renderCharts();
}
function renderExecutiveSummary() {
const summary = dashboardData.executive_summary;
const sprint = dashboardData.current_sprint;
const cards = [
{
title: 'Strategic Progress',
subtitle: '(vs Comprehensive Booklet)',
value: `${summary.strategic_completion}%`,
icon: '🎯',
color: 'from-blue-500 to-blue-600'
},
{
title: 'Current Sprint',
subtitle: sprint.name,
value: `${summary.sprint_completion}%`,
icon: '⚡',
color: 'from-blue-600 to-blue-700'
},
{
title: 'Sprint Days Left',
subtitle: `${sprint.total_days}-Day Sprint`,
value: sprint.days_remaining,
icon: '⏰',
color: 'from-orange-500 to-orange-600'
},
{
title: 'Launch Readiness',
subtitle: summary.confidence_level + ' Confidence',
value: summary.launch_readiness,
icon: '🚀',
color: summary.status_color === 'warning' ? 'from-yellow-500 to-orange-500' : 'from-green-500 to-green-600'
}
];
const cardsHTML = cards.map(card => `
<div class="bg-gradient-to-br ${card.color} rounded-xl p-6 text-white card-shadow">
<div class="flex items-center justify-between mb-3">
<span class="text-4xl">${card.icon}</span>
<span class="text-5xl font-black opacity-20">↗</span>
</div>
<p class="text-sm font-semibold opacity-90 mb-1">${card.title}</p>
${card.subtitle ? `<p class="text-xs opacity-75 mb-2">${card.subtitle}</p>` : ''}
<p class="text-3xl font-black">${card.value}</p>
</div>
`).join('');
document.getElementById('executive-cards').innerHTML = cardsHTML;
document.getElementById('headline-text').textContent = summary.headline;
}
function renderSprintTracking() {
const sprint = dashboardData.sprint_tracking;
const currentSprint = dashboardData.current_sprint;
// Update sprint title
document.getElementById('sprint-title-name').textContent = `${currentSprint.name} (${currentSprint.total_days}-Day Sprint)`;
// Sprint statistics
const statsHTML = `
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<span class="font-semibold text-gray-700">Completed</span>
<span class="font-bold text-green-600">${sprint.completed} tasks</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<span class="font-semibold text-gray-700">In Progress</span>
<span class="font-bold text-blue-600">${sprint.in_progress} tasks</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded-lg">
<span class="font-semibold text-gray-700">Pending</span>
<span class="font-bold text-orange-600">${sprint.pending} tasks</span>
</div>
<div class="p-4 ${sprint.on_track ? 'bg-green-50 border-green-200' : 'bg-red-50 border-red-200'} border-2 rounded-lg">
<p class="font-semibold ${sprint.on_track ? 'text-green-800' : 'text-red-800'} mb-2">
${sprint.on_track ? '✅ On Track' : '⚠️ Risk Building in Mobile Launches'}
</p>
<p class="text-sm text-gray-600">${sprint.risk_assessment}</p>
</div>
`;
document.getElementById('sprint-stats').innerHTML = statsHTML;
// Critical path
const criticalPathHTML = sprint.critical_path.map((item, index) => `
<div class="flex items-start gap-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition">
<span class="flex-shrink-0 w-8 h-8 rounded-full bg-blue-600 text-white flex items-center justify-center font-bold text-sm">${index + 1}</span>
<p class="text-gray-700 pt-1">${item}</p>
</div>
`).join('');
document.getElementById('critical-path').innerHTML = criticalPathHTML;
// Sprint chart
const ctx = document.getElementById('sprintChart');
new Chart(ctx, {
type: 'doughnut',
data: {
labels: ['Completed', 'In Progress', 'Pending'],
datasets: [{
data: [sprint.completed, sprint.in_progress, sprint.pending],
backgroundColor: ['#10b981', '#3b82f6', '#f59e0b'],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'bottom',
labels: {
boxWidth: 12,
padding: 10,
font: {
size: 11
}
}
}
}
}
});
}
function renderRepositoryPerformance() {
const repos = dashboardData.repository_performance;
const getStatusColor = (status) => {
const colors = {
'active': 'from-green-500 to-green-600',
'moderate': 'from-blue-500 to-blue-600',
'stagnant': 'from-yellow-500 to-orange-500',
'dead': 'from-red-500 to-red-600'
};
return colors[status] || 'from-gray-500 to-gray-600';
};
const getHealthEmoji = (health) => {
const emojis = {
'excellent': '🚀',
'good': '✅',
'warning': '⚠️',
'critical': '🚨'
};
return emojis[health] || '❓';
};
const cardsHTML = Object.entries(repos).map(([name, repo]) => `
<div class="repo-card bg-white rounded-xl p-6 card-shadow">
<div class="flex items-start justify-between mb-4">
<div>
<h3 class="text-lg font-bold text-gray-800">${name.replace('tudonum_', '').replace(/_/g, ' ').toUpperCase()}</h3>
<p class="text-sm text-gray-500">${repo.total_commits} total commits</p>
</div>
<span class="text-3xl">${getHealthEmoji(repo.health)}</span>
</div>
<div class="mb-4">
<div class="flex justify-between items-center mb-2">
<span class="text-sm font-semibold text-gray-600">Progress</span>
<span class="text-sm font-bold text-blue-600">${repo.progress}%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-3">
<div class="bg-gradient-to-r ${getStatusColor(repo.status)} h-3 rounded-full progress-bar" style="width: ${repo.progress}%"></div>
</div>
</div>
<div class="space-y-2 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-600">Last 2 Weeks</span>
<span class="font-semibold">${repo.commits_last_2_weeks} commits</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-600">Velocity</span>
<span class="font-semibold capitalize ${repo.velocity === 'high' ? 'text-green-600' : repo.velocity === 'stopped' ? 'text-red-600' : 'text-blue-600'}">${repo.velocity}</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-600">Last Commit</span>
<span class="font-semibold">${repo.last_commit}</span>
</div>
</div>
<div class="border-t pt-4">
<p class="text-xs text-gray-500 font-semibold mb-2">Recent Work:</p>
<ul class="space-y-1">
${repo.key_work.slice(0, 3).map(work => `
<li class="text-xs text-gray-600 flex items-start gap-2">
<span class="text-blue-500 mt-0.5">▸</span>
<span>${work}</span>
</li>
`).join('')}
</ul>
</div>
</div>
`).join('');
document.getElementById('repo-cards').innerHTML = cardsHTML;
// Repository comparison chart (horizontal bars)
const chartData = dashboardData.charts_data.repo_comparison;
const ctx = document.getElementById('repoComparisonChart');
new Chart(ctx, {
type: 'bar',
data: {
labels: chartData.map(r => r.name),
datasets: [{
label: 'Progress %',
data: chartData.map(r => r.progress),
backgroundColor: chartData.map(r => {
if (r.status === 'excellent') return '#10b981';
if (r.status === 'good') return '#3b82f6';
if (r.status === 'warning') return '#f59e0b';
return '#ef4444';
}),
borderRadius: 6,
borderWidth: 0
}]
},
options: {
indexAxis: 'y', // This makes the bar chart horizontal
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
beginAtZero: true,
max: 100,
ticks: {
callback: function(value) {
return value + '%';
},
font: {
size: 10
}
},
grid: {
color: '#f3f4f6'
}
},
y: {
ticks: {
font: {
size: 11,
weight: '600'
}
},
grid: {
display: false
}
}
},
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return 'Progress: ' + context.parsed.x + '%';
}
}
}
}
}
});
}
function renderStrategicRoadmap() {
const modules = dashboardData.strategic_roadmap.modules;
const getStatusColor = (status) => {
const colors = {
'completed': 'bg-green-100 text-green-800 border-green-300',
'in_progress': 'bg-blue-100 text-blue-800 border-blue-300',
'not_started': 'bg-gray-100 text-gray-800 border-gray-300',
'blocked': 'bg-red-100 text-red-800 border-red-300'
};
return colors[status] || 'bg-gray-100 text-gray-800';
};
const getStatusIcon = (status) => {
const icons = {
'completed': '✅',
'in_progress': '🔄',
'not_started': '⏸️',
'blocked': '🚫'
};
return icons[status] || '❓';
};
const modulesHTML = Object.entries(modules).map(([key, module]) => `
<div class="border-2 ${getStatusColor(module.status)} rounded-lg p-4">
<div class="flex items-center justify-between mb-3">
<h4 class="font-bold text-sm uppercase">${key.replace(/_/g, ' ')}</h4>
<span class="text-2xl">${getStatusIcon(module.status)}</span>
</div>
<div class="mb-3">
<div class="w-full bg-gray-200 rounded-full h-2 mb-1">
<div class="bg-gradient-to-r from-blue-600 to-blue-700 h-2 rounded-full" style="width: ${module.progress}%"></div>
</div>
<p class="text-xs font-bold text-right">${module.progress}%</p>
</div>
<p class="text-xs text-gray-600">${module.notes}</p>
</div>
`).join('');
document.getElementById('strategic-modules').innerHTML = modulesHTML;
}
function renderFuturePlans() {
const futurePlans = dashboardData.future_plans;
const getPriorityBadge = (priority) => {
const colors = {
'High': 'bg-red-100 text-red-700 border-red-200',
'Medium': 'bg-yellow-100 text-yellow-700 border-yellow-200',
'Low': 'bg-blue-100 text-blue-700 border-blue-200'
};
return colors[priority] || 'bg-gray-100 text-gray-700 border-gray-200';
};
const html = futurePlans.map(plan => `
<div class="bg-white rounded-xl p-6 card-shadow border-l-4 border-blue-500 hover:shadow-xl transition">
<div class="flex items-start justify-between mb-4">
<div class="flex items-center gap-3">
<span class="text-4xl">${plan.icon}</span>
<div>
<h3 class="text-lg font-bold text-gray-800">${plan.category}</h3>
<p class="text-sm text-gray-500">${plan.timeline}</p>
</div>
</div>
<span class="px-3 py-1 text-xs font-semibold border rounded-full ${getPriorityBadge(plan.priority)}">${plan.priority}</span>
</div>
<ul class="space-y-2">
${plan.features.map(feature => `
<li class="flex items-start gap-2 text-sm text-gray-700">
<span class="text-blue-500 mt-1">▸</span>
<span>${feature}</span>
</li>
`).join('')}
</ul>
</div>
`).join('');
document.getElementById('future-plans').innerHTML = html;
}
function renderThisWeekCompleted() {
const completed = dashboardData.this_week_completed;
const html = completed.map(item => `
<div class="p-3 bg-green-50 border-l-4 border-green-500 rounded-lg">
${item.date ? `<p class="text-xs font-bold text-green-800 mb-1">${item.date} - ${item.repo}</p>` : ''}
<p class="text-xs text-gray-700">${item.achievement || item.note}</p>
${item.status ? `<p class="text-xs text-orange-600 font-semibold mt-1">${item.status}</p>` : ''}
</div>
`).join('');
document.getElementById('week-completed').innerHTML = html;
}
function renderNextWeekPlan() {
const plan = dashboardData.next_7_days_plan;
const getPriorityColor = (priority) => {
const colors = {
'P0': 'bg-red-100 text-red-800',
'P1': 'bg-orange-100 text-orange-800',
'P2': 'bg-blue-100 text-blue-800'
};
return colors[priority] || 'bg-gray-100 text-gray-800';
};
const html = plan.map(item => `
<div class="p-3 bg-gray-50 border-l-4 border-blue-500 rounded-lg">
<div class="flex items-center gap-2 mb-1">
<span class="px-2 py-0.5 text-xs font-bold rounded ${getPriorityColor(item.priority)}">${item.priority}</span>
<span class="text-xs text-gray-500">Days ${item.days}</span>
</div>
<p class="text-xs font-semibold text-gray-800 mb-1">${item.task}</p>
<p class="text-xs text-gray-600">👤 ${item.owner}</p>
</div>
`).join('');
document.getElementById('next-week-plan').innerHTML = html;
}
function renderBlockersAndRisks() {
const blockers = dashboardData.blockers_and_risks;
const getSeverityColor = (severity) => {
const colors = {
'critical': 'border-red-500',
'high': 'border-orange-500',
'medium': 'border-yellow-500',
'low': 'border-blue-500'
};
return colors[severity] || 'border-gray-500';
};
const getSeverityBadge = (severity) => {
const badges = {
'critical': 'bg-red-100 text-red-800',
'high': 'bg-orange-100 text-orange-800',
'medium': 'bg-yellow-100 text-yellow-800',
'low': 'bg-blue-100 text-blue-800'
};
return badges[severity] || 'bg-gray-100 text-gray-800';
};
const html = blockers.map(blocker => `
<div class="border-l-4 ${getSeverityColor(blocker.severity)} bg-gray-50 rounded-lg p-3">
<div class="flex items-center gap-2 mb-2">
<span class="px-2 py-0.5 text-xs font-bold rounded ${getSeverityBadge(blocker.severity)}">${blocker.severity.toUpperCase()}</span>
<span class="text-lg">${blocker.severity === 'critical' ? '🚨' : blocker.severity === 'high' ? '⚠️' : '📌'}</span>
</div>
<p class="text-xs font-bold text-gray-800 mb-1">${blocker.category}</p>
<p class="text-xs text-gray-700 mb-2">${blocker.issue}</p>
<p class="text-xs text-green-700"><strong>Fix:</strong> ${blocker.mitigation}</p>
</div>
`).join('');
document.getElementById('blockers-list').innerHTML = html;
}
function renderLeadershipInsights() {
const insights = dashboardData.leadership_insights;
const insightTypes = [
{ key: 'product', icon: '🎯', color: 'border-blue-500' },
{ key: 'technology', icon: '⚙️', color: 'border-blue-600' },
{ key: 'engineering', icon: '🔧', color: 'border-green-500' }
];
const html = insightTypes.map(type => {
const insight = insights[type.key];
// Truncate to first 2 sentences for compact view
const shortInsight = insight.insight.split('. ').slice(0, 2).join('. ') + (insight.insight.split('. ').length > 2 ? '.' : '');
return `
<div class="border-l-4 ${type.color} bg-gray-50 rounded-lg p-4">
<div class="flex items-center gap-2 mb-2">
<span class="text-xl">${type.icon}</span>
<h4 class="text-sm font-bold text-gray-800">${insight.role}</h4>
</div>
<p class="text-xs text-gray-700 leading-relaxed">${shortInsight}</p>
</div>
`;
}).join('');
document.getElementById('leadership-insights-compact').innerHTML = html;
}
function renderCharts() {
// Charts removed - Analytics & Trends section deleted per user request
// Only Sprint chart and Comparative Analysis chart remain in other sections
}
// Export to PDF
async function exportToPDF() {
const { jsPDF } = window.jspdf;
const pdf = new jsPDF('p', 'mm', 'a4');
// Add title page
pdf.setFontSize(24);
pdf.setFont(undefined, 'bold');
pdf.text('TUDONUM', 105, 40, { align: 'center' });
pdf.setFontSize(18);
pdf.text('Product Execution Intelligence Dashboard', 105, 55, { align: 'center' });
pdf.setFontSize(14);
pdf.setFont(undefined, 'normal');
pdf.text('20th Ramzan Launch - Strategic Sprint Tracking', 105, 70, { align: 'center' });
pdf.setFontSize(12);
pdf.text('Authored By: Tudo Tech Lab', 105, 90, { align: 'center' });
pdf.text('https://tudotechlab.com/', 105, 98, { align: 'center' });
const date = new Date().toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
});
pdf.text(`Generated: ${date}`, 105, 115, { align: 'center' });
// Add note
pdf.setFontSize(10);
pdf.setTextColor(100);
pdf.text('For detailed charts and interactive data, please view the online dashboard.', 105, 270, { align: 'center' });
// Add executive summary on second page
pdf.addPage();
pdf.setFontSize(16);
pdf.setFont(undefined, 'bold');
pdf.setTextColor(0);
pdf.text('Executive Summary', 20, 20);
pdf.setFontSize(11);
pdf.setFont(undefined, 'normal');
let yPos = 35;
pdf.text(`Strategic Progress (vs Comprehensive Booklet): ${dashboardData.executive_summary.strategic_completion}%`, 20, yPos);
yPos += 10;
pdf.text(`Current Sprint (${dashboardData.current_sprint.name}): ${dashboardData.executive_summary.sprint_completion}%`, 20, yPos);
yPos += 10;
pdf.text(`Sprint Days Remaining: ${dashboardData.current_sprint.days_remaining} of ${dashboardData.current_sprint.total_days}`, 20, yPos);
yPos += 10;
pdf.text(`Launch Readiness: ${dashboardData.executive_summary.launch_readiness}`, 20, yPos);
yPos += 15;
pdf.setFont(undefined, 'italic');
const headline = pdf.splitTextToSize(dashboardData.executive_summary.headline, 170);
pdf.text(headline, 20, yPos);