-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
967 lines (884 loc) · 38.4 KB
/
Copy pathindex.html
File metadata and controls
967 lines (884 loc) · 38.4 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Meeting Assistant — Enoverse</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=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
/* ============================================================
TOKENS
============================================================ */
:root{
--bg:#10141f;
--bg-alt:#141a29;
--panel:#1a2133;
--panel-2:#1f2738;
--border:#2a3249;
--border-soft:#232b40;
--amber:#e4a33f;
--amber-dim:#a9782f;
--amber-soft:rgba(228,163,63,.14);
--teal:#6fbfa5;
--teal-soft:rgba(111,191,165,.14);
--red:#e2664a;
--red-soft:rgba(226,102,74,.14);
--text:#ede8dd;
--text-dim:#9aa1b8;
--text-faint:#5c6379;
--paper:#efe9db;
--radius:14px;
--radius-sm:9px;
--font-sans:'Inter',sans-serif;
--font-mono:'JetBrains Mono',monospace;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
background:
radial-gradient(1100px 520px at 82% -8%, rgba(228,163,63,.08), transparent 60%),
radial-gradient(900px 500px at 10% 8%, rgba(111,191,165,.06), transparent 55%),
var(--bg);
color:var(--text);
font-family:var(--font-sans);
line-height:1.7;
min-height:100vh;
}
::selection{background:var(--amber-soft);color:var(--amber);}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px;}
.container{max-width:1180px;margin:0 auto;padding:0 28px;}
.mono{font-family:var(--font-mono);direction:ltr;unicode-bidi:isolate;}
a{color:inherit;}
button{font-family:inherit;cursor:pointer;}
/* ============================================================
HEADER
============================================================ */
header.top{
position:sticky;top:0;z-index:50;
background:rgba(16,20,31,.86);
backdrop-filter:blur(10px);
border-bottom:1px solid var(--border-soft);
}
.top-inner{
display:flex;align-items:center;justify-content:space-between;
padding:16px 0;
}
.brand{display:flex;align-items:center;gap:12px;}
.brand-mark{
width:38px;height:38px;border-radius:10px;
background:linear-gradient(135deg,var(--amber),var(--amber-dim));
display:flex;align-items:center;justify-content:center;
flex-shrink:0;
}
.brand-mark svg{width:20px;height:20px;}
.brand-name{font-weight:800;font-size:16px;letter-spacing:-.2px;}
.brand-sub{font-family:var(--font-mono);font-size:11px;color:var(--text-faint);letter-spacing:.12em;}
.nav-status{display:flex;align-items:center;gap:10px;}
.pill{
display:flex;align-items:center;gap:7px;
padding:7px 13px;border-radius:100px;
border:1px solid var(--border);
font-size:12.5px;color:var(--text-dim);
background:var(--panel);
}
.dot{width:7px;height:7px;border-radius:50%;background:var(--text-faint);flex-shrink:0;}
.dot.live{background:var(--teal);box-shadow:0 0 0 3px var(--teal-soft);}
.dot.demo{background:var(--amber);box-shadow:0 0 0 3px var(--amber-soft);}
/* ============================================================
HERO
============================================================ */
.hero{padding:64px 0 40px;}
.eyebrow{
font-family:var(--font-mono);font-size:12px;color:var(--amber);
letter-spacing:.18em;text-transform:uppercase;
display:flex;align-items:center;gap:10px;justify-content:flex-start;margin-bottom:18px;
}
.eyebrow::after{content:"";flex:1;max-width:120px;height:1px;background:linear-gradient(to right,var(--amber-dim),transparent);}
h1.title{
font-size:44px;font-weight:900;letter-spacing:-.5px;margin:0 0 14px;
color:var(--text);
}
h1.title span{color:var(--amber);}
.subtitle{font-size:16px;color:var(--text-dim);max-width:640px;margin:0 0 36px;}
/* Waveform signature */
.waveform{
display:flex;align-items:center;gap:3px;height:52px;margin-bottom:8px;
}
.waveform i{
display:block;width:4px;border-radius:3px;
background:linear-gradient(180deg,var(--amber),var(--amber-dim));
animation:wf 1.6s ease-in-out infinite;
opacity:.85;
}
.waveform i:nth-child(3n){background:linear-gradient(180deg,var(--teal),#4a8f79);}
@keyframes wf{
0%,100%{transform:scaleY(.25);}
50%{transform:scaleY(1);}
}
@media (prefers-reduced-motion:reduce){
.waveform i{animation:none;transform:scaleY(.6);}
}
/* ============================================================
PANELS
============================================================ */
.panel{
background:var(--panel);
border:1px solid var(--border);
border-radius:var(--radius);
padding:26px;
}
.panel + .panel{margin-top:22px;}
.panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap;}
.panel-title{font-size:18px;font-weight:800;display:flex;align-items:center;gap:10px;}
.panel-title .num{
font-family:var(--font-mono);font-size:12px;color:var(--amber);
border:1px solid var(--amber-dim);border-radius:6px;padding:2px 7px;
}
.panel-desc{font-size:12.5px;color:var(--text-faint);}
/* ============================================================
UPLOAD SECTION
============================================================ */
.mode-switch{
display:flex;gap:6px;background:var(--bg-alt);border:1px solid var(--border);
border-radius:100px;padding:4px;width:fit-content;margin-bottom:20px;
}
.mode-switch button{
border:none;background:transparent;color:var(--text-dim);
padding:8px 18px;border-radius:100px;font-size:13.5px;font-weight:600;
transition:all .2s;
}
.mode-switch button.active{background:var(--amber);color:#1a1204;}
.dropzone{
border:1.5px dashed var(--border);
border-radius:var(--radius-sm);
padding:36px 20px;
text-align:center;
transition:all .2s;
cursor:pointer;
background:var(--bg-alt);
}
.dropzone:hover,.dropzone.drag{border-color:var(--amber);background:var(--amber-soft);}
.dropzone svg{width:30px;height:30px;color:var(--amber);margin-bottom:12px;}
.dropzone .dz-title{font-weight:700;font-size:14.5px;margin-bottom:4px;}
.dropzone .dz-sub{font-size:12px;color:var(--text-faint);font-family:var(--font-mono);direction:ltr;}
.dropzone input[type=file]{display:none;}
.file-chip{
display:flex;align-items:center;justify-content:space-between;gap:10px;
background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-sm);
padding:12px 14px;margin-top:14px;
}
.file-chip .name{font-size:13.5px;font-weight:600;}
.file-chip .meta{font-family:var(--font-mono);font-size:11px;color:var(--text-faint);}
.file-chip button{background:none;border:none;color:var(--text-faint);font-size:16px;padding:2px 6px;}
.file-chip button:hover{color:var(--red);}
textarea.transcript-input{
width:100%;min-height:160px;resize:vertical;
background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-sm);
color:var(--text);padding:14px;font-family:var(--font-sans);font-size:14px;line-height:1.8;
}
textarea.transcript-input:focus{outline:none;border-color:var(--amber);}
.field-row{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap;}
.field{flex:1;min-width:180px;}
.field label{display:block;font-size:12px;color:var(--text-faint);margin-bottom:6px;}
.field input[type=text]{
width:100%;background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-sm);
color:var(--text);padding:10px 12px;font-size:13.5px;font-family:inherit;
}
.field input:focus{outline:none;border-color:var(--amber);}
.btn{
display:inline-flex;align-items:center;gap:8px;justify-content:center;
border:none;border-radius:var(--radius-sm);padding:12px 22px;
font-size:14px;font-weight:700;transition:all .15s;
}
.btn-primary{background:var(--amber);color:#1a1204;}
.btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px);}
.btn-primary:disabled{opacity:.4;cursor:not-allowed;transform:none;}
.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--text-dim);}
.btn-ghost:hover{border-color:var(--text-dim);color:var(--text);}
.btn-sm{padding:8px 14px;font-size:12.5px;}
.run-row{display:flex;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap;}
.run-hint{font-size:12px;color:var(--text-faint);}
/* ============================================================
PIPELINE (signature element — signal chain)
============================================================ */
.pipeline{
display:flex;align-items:stretch;gap:0;overflow-x:auto;padding:8px 2px 18px;
}
.stage{
flex:1;min-width:168px;position:relative;
background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-sm);
padding:16px 14px;margin:0 6px;
transition:border-color .3s, background .3s;
}
.stage.active{border-color:var(--amber);background:var(--amber-soft);}
.stage.done{border-color:var(--teal);}
.stage.skip{opacity:.45;}
.stage-icon{
width:32px;height:32px;border-radius:8px;background:var(--panel-2);
display:flex;align-items:center;justify-content:center;margin-bottom:12px;
border:1px solid var(--border);
}
.stage.active .stage-icon{background:var(--amber);border-color:var(--amber);}
.stage.done .stage-icon{background:var(--teal);border-color:var(--teal);}
.stage-icon svg{width:16px;height:16px;color:var(--text-dim);}
.stage.active .stage-icon svg,.stage.done .stage-icon svg{color:#101418;}
.stage-num{font-family:var(--font-mono);font-size:10px;color:var(--text-faint);margin-bottom:6px;}
.stage-title{font-size:13.5px;font-weight:800;margin-bottom:4px;}
.stage-sub{font-size:11px;color:var(--text-faint);font-family:var(--font-mono);line-height:1.6;min-height:28px;}
.stage-badge{
display:inline-block;margin-top:10px;font-size:10.5px;font-weight:700;
padding:3px 9px;border-radius:100px;background:var(--panel-2);color:var(--text-faint);
}
.stage.active .stage-badge{background:var(--amber);color:#1a1204;}
.stage.done .stage-badge{background:var(--teal);color:#0c231b;}
.connector{
width:26px;flex-shrink:0;position:relative;align-self:center;height:2px;
background:var(--border);
}
.connector.flow{background:linear-gradient(90deg,var(--amber),var(--teal));}
.connector.flow::after{
content:"";position:absolute;top:-2px;left:0;width:6px;height:6px;border-radius:50%;
background:var(--amber);box-shadow:0 0 8px var(--amber);
animation:travel 1.1s linear infinite;
}
@keyframes travel{
0%{left:-2px;opacity:0;}
10%{opacity:1;}
90%{opacity:1;}
100%{left:100%;opacity:0;}
}
/* ============================================================
RESULTS TABS
============================================================ */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px;overflow-x:auto;}
.tab{
background:none;border:none;color:var(--text-faint);padding:10px 4px;margin-right:22px;
font-size:13.5px;font-weight:700;position:relative;white-space:nowrap;
}
.tab.active{color:var(--text);}
.tab.active::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--amber);}
.tab-panel{display:none;}
.tab-panel.active{display:block;animation:fadein .25s ease;}
@keyframes fadein{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}
.summary-text{font-size:14.5px;line-height:2;color:var(--text);background:var(--bg-alt);border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:18px;}
.action-item{
display:flex;gap:14px;align-items:flex-start;
background:var(--bg-alt);border:1px solid var(--border-soft);border-radius:var(--radius-sm);
padding:14px 16px;margin-bottom:10px;
}
.action-item .idx{
font-family:var(--font-mono);font-size:11px;color:var(--amber);
border:1px solid var(--amber-dim);border-radius:6px;width:24px;height:24px;
display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.action-item .task{font-size:14px;font-weight:600;margin-bottom:5px;}
.action-item .tags{display:flex;gap:8px;flex-wrap:wrap;}
.tag{font-size:11px;font-family:var(--font-mono);color:var(--text-faint);background:var(--panel-2);padding:2px 9px;border-radius:100px;border:1px solid var(--border-soft);}
.tag.owner{color:var(--teal);border-color:rgba(111,191,165,.3);}
.tag.deadline{color:var(--amber);border-color:rgba(228,163,63,.3);}
.speaker-block{margin-bottom:16px;}
.speaker-name{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;margin-bottom:6px;}
.speaker-swatch{width:9px;height:9px;border-radius:50%;flex-shrink:0;}
.speaker-line{font-size:13.5px;color:var(--text-dim);padding-left:17px;line-height:1.9;}
.empty{
text-align:center;padding:44px 20px;color:var(--text-faint);font-size:13.5px;
}
.empty svg{width:28px;height:28px;margin-bottom:10px;opacity:.5;}
/* ============================================================
HISTORY TABLE
============================================================ */
table.history{width:100%;border-collapse:collapse;font-size:13.5px;}
table.history th{
text-align:left;font-size:11.5px;color:var(--text-faint);font-weight:600;
padding:0 12px 10px;border-bottom:1px solid var(--border);
}
table.history td{padding:13px 12px;border-bottom:1px solid var(--border-soft);}
table.history tr:last-child td{border-bottom:none;}
.status-chip{font-size:11px;font-family:var(--font-mono);padding:3px 9px;border-radius:100px;}
.status-chip.done{background:var(--teal-soft);color:var(--teal);}
.status-chip.processing{background:var(--amber-soft);color:var(--amber);}
table.history .row-actions{display:flex;gap:6px;}
table.history .row-actions button{
background:var(--panel-2);border:1px solid var(--border);color:var(--text-dim);
border-radius:7px;padding:5px 10px;font-size:11.5px;
}
table.history .row-actions button:hover{color:var(--text);border-color:var(--text-dim);}
/* ============================================================
API CONFIG FOOTER
============================================================ */
footer{padding:40px 0 70px;}
.api-panel{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;}
.api-panel .field{min-width:280px;}
.conn-result{font-family:var(--font-mono);font-size:12px;margin-top:10px;}
.conn-result.ok{color:var(--teal);}
.conn-result.fail{color:var(--red);}
.contract-toggle{margin-top:18px;}
.contract-toggle summary{cursor:pointer;font-size:12.5px;color:var(--text-faint);font-weight:600;}
.contract{
font-family:var(--font-mono);font-size:11.5px;color:var(--text-dim);
background:var(--bg-alt);border:1px solid var(--border-soft);border-radius:var(--radius-sm);
padding:16px;margin-top:12px;white-space:pre;overflow-x:auto;direction:ltr;text-align:left;line-height:1.9;
}
.foot-note{text-align:center;color:var(--text-faint);font-size:12px;margin-top:36px;}
@media (max-width:760px){
h1.title{font-size:30px;}
.pipeline{flex-direction:column;}
.connector{width:2px;height:20px;margin:0 auto;}
.stage{margin:6px 0;}
}
</style>
</head>
<body>
<header class="top">
<div class="container top-inner">
<div class="brand">
<div class="brand-mark">
<svg viewBox="0 0 24 24" fill="none" stroke="#1a1204" stroke-width="2" stroke-linecap="round"><path d="M12 3v10M8 7l4-4 4 4M5 14a7 7 0 0014 0"/></svg>
</div>
<div>
<div class="brand-name">AI Meeting Assistant</div>
<div class="brand-sub">MEETING INTELLIGENCE · ENOVERSE</div>
</div>
</div>
<div class="nav-status">
<div class="pill"><span class="dot demo" id="connDot"></span><span id="connLabel">Demo mode</span></div>
</div>
</div>
</header>
<main class="container">
<section class="hero">
<div class="eyebrow">PIPELINE v1 · FASTAPI READY</div>
<h1 class="title">From your meeting audio<br>to <span>summary, action items & report</span></h1>
<p class="subtitle">Upload an audio file or a meeting transcript; the pipeline converts speech to text, identifies speakers, extracts a summary and action items, and builds the final report.</p>
<div class="waveform" id="heroWave"></div>
</section>
<!-- LAYER 1 — INPUT -->
<section class="panel">
<div class="panel-head">
<div class="panel-title"><span class="num">1</span> Input</div>
<div class="panel-desc">Audio file (mp3 / wav / m4a) or a ready meeting transcript</div>
</div>
<div class="mode-switch">
<button class="active" data-mode="audio" onclick="setMode('audio')">Audio file</button>
<button data-mode="text" onclick="setMode('text')">Meeting transcript</button>
</div>
<div id="audioMode">
<div class="dropzone" id="dropzone" onclick="document.getElementById('fileInput').click()">
<input type="file" id="fileInput" accept=".mp3,.wav,.m4a,audio/*">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M12 15V4M8 8l4-4 4 4M4 15v3a2 2 0 002 2h12a2 2 0 002-2v-3"/></svg>
<div class="dz-title">Drag & drop an audio file, or click to browse</div>
<div class="dz-sub">MP3 · WAV · M4A</div>
</div>
<div id="fileChip" style="display:none"></div>
</div>
<div id="textMode" style="display:none">
<textarea class="transcript-input" id="transcriptInput" placeholder="Type or paste the meeting transcript here…"></textarea>
</div>
<div class="field-row">
<div class="field">
<label>Meeting title</label>
<input type="text" id="meetingTitle" placeholder="e.g. Weekly sprint review">
</div>
<div class="field">
<label>Attendees (optional)</label>
<input type="text" id="meetingAttendees" placeholder="Separate names with commas">
</div>
</div>
<div class="run-row">
<button class="btn btn-primary" id="runBtn" onclick="runPipeline()" disabled>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M6 4l14 8-14 8V4z"/></svg>
Run pipeline
</button>
<span class="run-hint" id="runHint">Select an audio file or enter a meeting transcript</span>
</div>
</section>
<!-- LAYER 2+3 — PIPELINE VISUAL -->
<section class="panel">
<div class="panel-head">
<div class="panel-title"><span class="num">2–3</span> Processing pipeline</div>
<div class="panel-desc">Speech processing and natural language processing</div>
</div>
<div class="pipeline" id="pipeline"><!-- stages injected by JS --></div>
</section>
<!-- RESULTS -->
<section class="panel">
<div class="panel-head">
<div class="panel-title"><span class="num">4</span> Results</div>
<div class="panel-desc" id="resultMeta">No processing run yet</div>
</div>
<div class="tabs">
<button class="tab active" data-tab="summary" onclick="setTab('summary')">Summary</button>
<button class="tab" data-tab="actions" onclick="setTab('actions')">Action items & deadlines</button>
<button class="tab" data-tab="transcript" onclick="setTab('transcript')">Transcript</button>
</div>
<div class="tab-panel active" data-panel="summary" id="panelSummary">
<div class="empty">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M4 5h16M4 12h16M4 19h10"/></svg>
The meeting summary will appear here after processing
</div>
</div>
<div class="tab-panel" data-panel="actions" id="panelActions">
<div class="empty">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M9 11l3 3 8-8M20 12v6a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h9"/></svg>
Action items, owners, and deadlines will appear here after extraction
</div>
</div>
<div class="tab-panel" data-panel="transcript" id="panelTranscript">
<div class="empty">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M8 9h8M8 13h5M21 15a2 2 0 01-2 2H9l-4 4V6a2 2 0 012-2h12a2 2 0 012 2v9z"/></svg>
The transcript, broken down by speaker, will appear here
</div>
</div>
<div class="run-row" id="exportRow" style="display:none">
<button class="btn btn-ghost btn-sm" onclick="downloadReport()">Download PDF report</button>
<button class="btn btn-ghost btn-sm" onclick="saveMeeting()">Save to meeting archive</button>
</div>
</section>
<!-- LAYER 4/5 — HISTORY -->
<section class="panel">
<div class="panel-head">
<div class="panel-title"><span class="num">5</span> Meeting archive</div>
<div class="panel-desc">PostgreSQL · MinIO</div>
</div>
<div id="historyWrap">
<table class="history">
<thead>
<tr><th>Title</th><th>Date</th><th>Duration</th><th>Status</th><th></th></tr>
</thead>
<tbody id="historyBody"></tbody>
</table>
</div>
</section>
<!-- FOOTER — API CONFIG -->
<footer>
<div class="panel">
<div class="panel-head">
<div class="panel-title">Connect to FastAPI</div>
<div class="panel-desc">Enter your model backend's address</div>
</div>
<div class="api-panel">
<div class="field">
<label>API base URL</label>
<input type="text" id="apiBase" class="mono" placeholder="http://localhost:8000" value="http://localhost:8000">
</div>
<button class="btn btn-ghost btn-sm" onclick="testConnection()">Test connection</button>
<button class="btn btn-ghost btn-sm" onclick="toggleDemo()" id="demoBtn">Turn off demo mode</button>
</div>
<div class="conn-result" id="connResult"></div>
<details class="contract-toggle">
<summary>Endpoint contract for backend developers</summary>
<div class="contract">POST /api/transcribe (multipart file) -> { transcript, speakers:[{id,name}], segments:[{speaker,text,start,end}] }
POST /api/summarize { transcript } -> { summary }
POST /api/extract-actions { transcript } -> { items:[{task,owner,deadline}] }
POST /api/meetings { title, transcript, summary, items, speakers, duration } -> { id }
GET /api/meetings -> { meetings:[{id,title,date,duration,status}] }
GET /api/meetings/:id/report -> PDF (blob)
GET /api/health -> { ok:true }</div>
</details>
</div>
<div class="foot-note mono">BUILT FOR ENOVERSE · SINGLE-FILE FRONTEND · NO EXTERNAL DEPENDENCIES BEYOND FONTS</div>
</footer>
</main>
<script>
/* ============================================================
STATE
============================================================ */
const state = {
mode: 'audio',
file: null,
transcriptText: '',
demoMode: false,
apiBase: 'http://localhost:8000',
currentTab: 'summary',
results: null,
meetings: [],
currentMeetingId: null
};
/* ============================================================
HERO WAVEFORM
============================================================ */
(function buildWave(){
const wave = document.getElementById('heroWave');
const heights = [18,30,44,26,52,20,38,48,16,34,42,24,50,20,30,44,18,38,26,46,20,32];
heights.forEach((h,i)=>{
const bar = document.createElement('i');
bar.style.height = h+'px';
bar.style.animationDelay = (i*0.06)+'s';
wave.appendChild(bar);
});
})();
/* ============================================================
PIPELINE DEFINITION (mirrors the architecture diagram)
============================================================ */
const STAGES = [
{ id:'input', title:'Input', sub:'audio / transcript', icon:'M12 3v10M8 7l4-4 4 4M5 14a7 7 0 0014 0' },
{ id:'speech', title:'Speech processing', sub:'Whisper · pyannote', icon:'M12 1a3 3 0 00-3 3v7a3 3 0 006 0V4a3 3 0 00-3-3zM19 10v1a7 7 0 01-14 0v-1M12 18v4M8 22h8' },
{ id:'nlp', title:'Language processing', sub:'BART / LLM', icon:'M4 5h16M4 12h10M4 19h13' },
{ id:'data', title:'Storage', sub:'PostgreSQL · MinIO', icon:'M3 5v14c0 1.1 4 2 9 2s9-.9 9-2V5M3 5c0 1.1 4 2 9 2s9-.9 9-2M3 5c0-1.1 4-2 9-2s9 .9 9 2' },
{ id:'delivery', title:'Delivery', sub:'Dashboard · PDF', icon:'M4 4h16v12H4zM8 20h8M12 16v4' },
];
function renderPipeline(activeIndex=-1, doneUpTo=-1, skipSpeech=false){
const wrap = document.getElementById('pipeline');
wrap.innerHTML = '';
STAGES.forEach((s, i)=>{
if(i>0){
const conn = document.createElement('div');
conn.className = 'connector' + ((i-1 <= doneUpTo && !(skipSpeech && i===1)) ? ' flow' : '');
wrap.appendChild(conn);
}
const el = document.createElement('div');
let cls = 'stage';
const isSkipped = skipSpeech && s.id==='speech';
if(isSkipped) cls += ' skip';
else if(i === activeIndex) cls += ' active';
else if(i <= doneUpTo) cls += ' done';
el.className = cls;
el.innerHTML = `
<div class="stage-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="${s.icon}"/></svg></div>
<div class="stage-num">${String(i+1).padStart(2,'0')}</div>
<div class="stage-title">${s.title}</div>
<div class="stage-sub">${s.sub}</div>
<div class="stage-badge">${isSkipped ? 'Skipped' : (i===activeIndex ? 'Processing' : (i<=doneUpTo ? 'Done' : 'Pending'))}</div>
`;
wrap.appendChild(el);
});
}
renderPipeline();
/* ============================================================
MODE SWITCH / UPLOAD
============================================================ */
function setMode(mode){
state.mode = mode;
document.querySelectorAll('.mode-switch button').forEach(b=>b.classList.toggle('active', b.dataset.mode===mode));
document.getElementById('audioMode').style.display = mode==='audio' ? '' : 'none';
document.getElementById('textMode').style.display = mode==='text' ? '' : 'none';
updateRunState();
}
const dropzone = document.getElementById('dropzone');
const fileInput = document.getElementById('fileInput');
fileInput.addEventListener('change', e=> handleFile(e.target.files[0]));
['dragover','dragleave','drop'].forEach(evt=>{
dropzone.addEventListener(evt, e=>{
e.preventDefault();
dropzone.classList.toggle('drag', evt==='dragover');
if(evt==='drop' && e.dataTransfer.files[0]) handleFile(e.dataTransfer.files[0]);
});
});
function handleFile(file){
if(!file) return;
state.file = file;
const chip = document.getElementById('fileChip');
chip.style.display = 'flex';
chip.className = 'file-chip';
const sizeKb = (file.size/1024/1024).toFixed(1);
chip.innerHTML = `
<div>
<div class="name">${file.name}</div>
<div class="meta">${sizeKb} MB</div>
</div>
<button onclick="clearFile(event)">✕</button>
`;
updateRunState();
}
function clearFile(e){
e.stopPropagation();
state.file = null;
fileInput.value = '';
document.getElementById('fileChip').style.display = 'none';
updateRunState();
}
document.getElementById('transcriptInput').addEventListener('input', e=>{
state.transcriptText = e.target.value;
updateRunState();
});
function updateRunState(){
const ready = state.mode==='audio' ? !!state.file : state.transcriptText.trim().length > 20;
document.getElementById('runBtn').disabled = !ready;
document.getElementById('runHint').textContent = ready
? 'Ready to run'
: (state.mode==='audio' ? 'Select an audio file' : 'Enter at least a few sentences of the transcript');
}
/* ============================================================
API HELPERS — real calls first, demo fallback second
============================================================ */
async function apiCall(path, options={}){
const url = state.apiBase.replace(/\/$/,'') + path;
const res = await fetch(url, { ...options });
if(!res.ok) throw new Error('API error ' + res.status);
return res;
}
async function testConnection(){
state.apiBase = document.getElementById('apiBase').value.trim() || state.apiBase;
const out = document.getElementById('connResult');
out.textContent = 'Checking…';
out.className = 'conn-result';
try{
await apiCall('/api/health');
out.textContent = '✓ Connected';
out.className = 'conn-result ok';
setConnected(true);
loadMeetings();
}catch(err){
out.textContent = '✕ Connection failed — continuing in demo mode (' + err.message + ')';
out.className = 'conn-result fail';
setConnected(false);
}
}
function setConnected(live){
state.demoMode = !live;
document.getElementById('connDot').className = 'dot ' + (live ? 'live' : 'demo');
document.getElementById('connLabel').textContent = live ? 'Connected to API' : 'Demo mode';
document.getElementById('demoBtn').textContent = live ? 'Turn on demo mode' : 'Turn off demo mode';
}
function toggleDemo(){ setConnected(state.demoMode); }
/* ============================================================
PIPELINE EXECUTION
============================================================ */
async function runPipeline(){
const skipSpeech = state.mode === 'text';
document.getElementById('runBtn').disabled = true;
// stage 0: input received
renderPipeline(0, -1, skipSpeech);
await wait(400);
let transcript, speakers, segments;
// stage 1: speech processing (skipped if raw text supplied)
if(!skipSpeech){
renderPipeline(1, 0, skipSpeech);
({ transcript, speakers, segments } = await callTranscribe(state.file));
renderPipeline(1, 1, skipSpeech);
} else {
transcript = state.transcriptText.trim();
speakers = null; segments = null;
renderPipeline(1, 0, skipSpeech); // shown as skipped
}
await wait(300);
// stage 2: NLP — summarize + extract in parallel
renderPipeline(2, skipSpeech ? 0 : 1, skipSpeech);
const [summary, items] = await Promise.all([
callSummarize(transcript),
callExtractActions(transcript)
]);
renderPipeline(2, 2, skipSpeech);
await wait(300);
// stage 3: data layer (implicit save happens on "save to archive")
renderPipeline(3, 3, skipSpeech);
await wait(350);
// stage 4: delivery ready
renderPipeline(4, 4, skipSpeech);
state.results = { transcript, speakers, segments, summary, items };
renderResults();
document.getElementById('runBtn').disabled = false;
document.getElementById('exportRow').style.display = 'flex';
}
function wait(ms){ return new Promise(r=>setTimeout(r,ms)); }
async function callTranscribe(file){
if(!state.demoMode){
try{
const form = new FormData();
form.append('file', file);
const res = await apiCall('/api/transcribe', { method:'POST', body:form });
return await res.json();
}catch(e){ /* fall through to demo */ }
}
await wait(900);
return mockTranscribe(file?.name || 'meeting');
}
async function callSummarize(transcript){
if(!state.demoMode){
try{
const res = await apiCall('/api/summarize', { method:'POST', headers:{'Content-Type':'application/json'}, body:JSON.stringify({transcript}) });
const d = await res.json();
return d.summary;
}catch(e){ /* fall through */ }
}
await wait(700);
return mockSummary();
}
async function callExtractActions(transcript){
if(!state.demoMode){
try{
const res = await apiCall('/api/extract-actions', { method:'POST', headers:{'Content-Type':'application/json'}, body:JSON.stringify({transcript}) });
const d = await res.json();
return d.items;
}catch(e){ /* fall through */ }
}
await wait(700);
return mockActions();
}
/* ============================================================
DEMO DATA (used only when no live backend is connected)
============================================================ */
function mockTranscribe(name){
return {
transcript: state.transcriptText || 'A sample meeting transcript would appear here.',
speakers: [
{id:'s1', name:'Speaker 1', color:'#e4a33f'},
{id:'s2', name:'Speaker 2', color:'#6fbfa5'},
],
segments: [
{speaker:'Speaker 1', text:'Alright, let\u2019s go over the sprint status. Did we test the speech recognition model?'},
{speaker:'Speaker 2', text:'Yes, accuracy on our sample data is around 92%. The main issue was overlapping speech.'},
{speaker:'Speaker 1', text:'Good. Let\u2019s get the summarization module wired into the pipeline by Friday.'},
{speaker:'Speaker 2', text:'Sure, I\u2019ll also have the PDF report ready by the end of the week.'},
]
};
}
function mockSummary(){
return 'This meeting reviewed the status of the audio processing pipeline. The speech recognition model performs with acceptable accuracy on sample data, but overlapping speech detection still needs improvement. The team agreed to connect the summarization module to the pipeline by the end of the week and to prepare the final PDF report.';
}
function mockActions(){
return [
{task:'Connect the summarization module to the main pipeline', owner:'Speaker 2', deadline:'This Friday'},
{task:'Improve speech recognition accuracy on overlapping speech', owner:'Speaker 1', deadline:'Next sprint'},
{task:'Prepare the PDF report output', owner:'Speaker 2', deadline:'End of week'},
];
}
/* ============================================================
RESULTS RENDERING
============================================================ */
function renderResults(){
const r = state.results;
document.getElementById('resultMeta').textContent =
(document.getElementById('meetingTitle').value || 'Untitled meeting') + ' · ' + new Date().toLocaleDateString('en-US');
document.getElementById('panelSummary').innerHTML = `<div class="summary-text">${r.summary}</div>`;
document.getElementById('panelActions').innerHTML = r.items.map((it,i)=>`
<div class="action-item">
<div class="idx">${i+1}</div>
<div>
<div class="task">${it.task}</div>
<div class="tags">
<span class="tag owner">Owner: ${it.owner}</span>
<span class="tag deadline">Due: ${it.deadline}</span>
</div>
</div>
</div>
`).join('');
if(r.segments){
document.getElementById('panelTranscript').innerHTML = r.segments.map(seg=>{
const spk = (r.speakers||[]).find(s=>s.name===seg.speaker);
const color = spk ? spk.color : '#9aa1b8';
return `<div class="speaker-block">
<div class="speaker-name"><span class="speaker-swatch" style="background:${color}"></span>${seg.speaker}</div>
<div class="speaker-line">${seg.text}</div>
</div>`;
}).join('');
} else {
document.getElementById('panelTranscript').innerHTML = `<div class="summary-text">${r.transcript}</div>`;
}
}
function setTab(tab){
state.currentTab = tab;
document.querySelectorAll('.tab').forEach(b=>b.classList.toggle('active', b.dataset.tab===tab));
document.querySelectorAll('.tab-panel').forEach(p=>p.classList.toggle('active', p.dataset.panel===tab));
}
/* ============================================================
SAVE / DOWNLOAD / HISTORY
============================================================ */
async function saveMeeting() {
const title =
document.getElementById('meetingTitle').value || 'Untitled meeting';
const payload = {
title,
transcript: state.results.transcript,
summary: state.results.summary,
items: state.results.items,
speakers: state.results.speakers,
duration: 0
};
let saved = null;
if (!state.demoMode) {
try {
const res = await apiCall('/api/meetings', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(payload)
});
const data = await res.json();
console.log('SAVE MEETING STATUS:', res.status);
console.log('SAVE MEETING RESPONSE:', data);
if (!res.ok) {
throw new Error(JSON.stringify(data));
}
saved = data;
} catch (e) {
console.error('SAVE MEETING ERROR:', e);
alert('Failed to save meeting: ' + e.message);
return;
}
}
const id = saved?.id || 'm' + Date.now();
state.currentMeetingId = id;
state.meetings.unshift({
id,
title,
date: new Date().toLocaleDateString('en-US'),
duration: '—',
status: 'done'
});
renderHistory();
alert('Meeting saved.');
}
async function downloadReport() {
if (!state.currentMeetingId) {
alert('Save the meeting first.');
return;
}
if (state.demoMode || typeof state.currentMeetingId !== 'number') {
alert('Report download isn\u2019t supported in demo mode. Connect to a real API and save the meeting first.');
return;
}
try {
renderPipeline(-1, 4, false);
const url = `${state.apiBase}/api/meetings/${state.currentMeetingId}/report`;
const link = document.createElement('a');
link.href = url;
link.download = 'meeting-report.pdf';
link.target = '_blank';
document.body.appendChild(link);
link.click();
link.remove();
} catch (error) {
console.error('PDF error:', error);
alert('Error retrieving the PDF file');
}
}
function renderHistory(){
const body = document.getElementById('historyBody');
if(state.meetings.length===0){
body.innerHTML = `<tr><td colspan="5" style="text-align:center;color:var(--text-faint);padding:24px 0">No meetings saved to the archive yet</td></tr>`;
return;
}
body.innerHTML = state.meetings.map(m=>`
<tr>
<td>${m.title}</td>
<td class="mono">${m.date}</td>
<td class="mono">${m.duration}</td>
<td><span class="status-chip done">Completed</span></td>
<td class="row-actions"><button onclick="alert('View details for meeting ${m.id}')">View</button></td>
</tr>
`).join('');
}
async function loadMeetings(){
if(!state.demoMode){
try{
const res = await apiCall('/api/meetings');
const d = await res.json();
state.meetings = d.meetings || [];
}catch(e){ /* keep local state */ }
}
renderHistory();
}
/* init */
setConnected(false);
renderHistory();
/* auto-connect to the API on page load */
testConnection();
</script>
</body>
</html>