-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.html
More file actions
1019 lines (930 loc) · 41.3 KB
/
template.html
File metadata and controls
1019 lines (930 loc) · 41.3 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>Project Bluefin — Clanker Control Panel</title>
<style>
/* Catppuccin Mocha (dark) */
:root,
[data-theme="dark"] {
--base: #1e1e2e;
--mantle: #181825;
--crust: #11111b;
--surface0: #313244;
--surface1: #45475a;
--surface2: #585b70;
--overlay0: #6c7086;
--overlay1: #7f849c;
--subtext0: #a6adc8;
--subtext1: #bac2de;
--text: #cdd6f4;
--blue: #89b4fa;
--green: #a6e3a1;
--yellow: #f9e2af;
--peach: #fab387;
--red: #f38ba8;
--mauve: #cba6f7;
--sapphire: #74c7ec;
/* Destiny column identity */
--guardian-gold: #d4aa5e;
--guardian-gold-dim: #8a6a28;
--ghost-crystal: #74c7ec;
--ghost-bg: #0d0d14;
}
/* Catppuccin Latte (light) */
[data-theme="light"] {
--base: #eff1f5;
--mantle: #e6e9ef;
--crust: #dce0e8;
--surface0: #ccd0da;
--surface1: #bcc0cc;
--surface2: #acb0be;
--overlay0: #9ca0b0;
--overlay1: #8c8fa1;
--subtext0: #6c6f85;
--subtext1: #5c5f77;
--text: #4c4f69;
--blue: #1e66f5;
--green: #40a02b;
--yellow: #df8e1d;
--peach: #fe640b;
--red: #d20f39;
--mauve: #8839ef;
--sapphire: #209fb5;
/* Destiny column identity */
--guardian-gold: #8a6200;
--guardian-gold-dim: #c49a30;
--ghost-crystal: #209fb5;
--ghost-bg: #c8cdd8;
}
/* System preference: light */
@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
--base: #eff1f5;
--mantle: #e6e9ef;
--crust: #dce0e8;
--surface0: #ccd0da;
--surface1: #bcc0cc;
--surface2: #acb0be;
--overlay0: #9ca0b0;
--overlay1: #8c8fa1;
--subtext0: #6c6f85;
--subtext1: #5c5f77;
--text: #4c4f69;
--blue: #1e66f5;
--green: #40a02b;
--yellow: #df8e1d;
--peach: #fe640b;
--red: #d20f39;
--mauve: #8839ef;
--sapphire: #209fb5;
/* Destiny column identity */
--guardian-gold: #8a6200;
--guardian-gold-dim: #c49a30;
--ghost-crystal: #209fb5;
--ghost-bg: #c8cdd8;
}
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--base);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
font-size: 14px;
line-height: 1.5;
min-height: 100vh;
}
header {
background: var(--mantle);
border-bottom: 1px solid var(--surface0);
padding: 10px 24px;
display: flex;
align-items: center;
gap: 12px;
position: sticky;
top: 0;
z-index: 10;
}
header img.mascot {
height: 40px;
width: auto;
flex-shrink: 0;
}
header .title-block { display: flex; flex-direction: column; gap: 1px; }
header h1 {
font-size: 15px;
font-weight: 600;
color: var(--blue);
letter-spacing: -0.01em;
line-height: 1.2;
}
header .subtitle {
font-size: 11px;
color: var(--overlay1);
font-style: italic;
line-height: 1.2;
}
header .meta {
margin-left: auto;
color: var(--subtext0);
font-size: 12px;
display: flex; align-items: center; gap: 10px;
}
.refresh-countdown {
font-size: 11px; color: var(--overlay1);
background: var(--surface0); border-radius: 4px;
padding: 2px 7px; white-space: nowrap;
}
.refresh-countdown.refreshing { color: var(--blue); }
/* Theme toggle */
.theme-toggle {
display: flex; align-items: center;
background: var(--surface0); border-radius: 20px;
padding: 2px; gap: 2px; flex-shrink: 0;
}
.theme-toggle button {
background: none; border: none; cursor: pointer;
border-radius: 16px; padding: 4px 10px;
font-size: 12px; color: var(--overlay1);
transition: background 0.15s, color 0.15s;
line-height: 1;
}
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button.active {
background: var(--surface2); color: var(--text); font-weight: 600;
}
main { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
/* Two-column main grid: PRs | Hive priority */
.main-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
margin-bottom: 36px;
align-items: start;
}
@media (max-width: 800px) { .main-grid { grid-template-columns: 1fr; } }
/* lore */
/* ── Dashboard bar (merged stats + velocity + lore) ─────────────────── */
#dashboard-bar {
background: var(--mantle);
border: 1px solid var(--surface0);
border-radius: 10px;
margin-bottom: 24px;
overflow: hidden;
}
.db-stats {
display: flex;
align-items: stretch;
overflow-x: auto;
scrollbar-width: none;
}
.db-stats::-webkit-scrollbar { display: none; }
.db-cell {
flex: 1 0 auto;
min-width: 72px;
padding: 12px 16px;
border-right: 1px solid var(--surface0);
text-align: center;
}
.db-cell:last-child { border-right: none; }
.db-cell .num { font-size: 26px; font-weight: 700; line-height: 1; display: block; }
.db-cell .lbl { font-size: 10px; color: var(--subtext0); margin-top: 3px;
text-transform: uppercase; letter-spacing: 0.06em; display: block; white-space: nowrap; }
/* divider between current-state and velocity groups */
.db-divider {
flex: 0 0 1px;
background: var(--surface1);
margin: 8px 0;
align-self: stretch;
}
/* color coding */
.db-p0 .num { color: var(--red); }
.db-p1 .num { color: var(--yellow); }
.db-triage .num { color: var(--mauve); }
.db-issues .num { color: var(--blue); }
.db-prs .num { color: var(--green); }
.db-dreams .num { color: var(--green); }
.db-relief .num { color: var(--sapphire); }
.db-toil .num { color: var(--peach); }
.db-footer {
border-top: 1px solid var(--surface0);
padding: 7px 16px;
display: flex; align-items: center; justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.db-lore {
font-size: 11px; font-style: italic; color: var(--overlay1); line-height: 1.5;
}
.db-cncf {
font-size: 11px; color: var(--subtext0); white-space: nowrap; flex-shrink: 0;
display: flex; align-items: center; gap: 6px;
}
.db-cncf img { height: 16px; width: auto; opacity: 0.85; vertical-align: middle; }
.db-cncf a { color: var(--blue); text-decoration: none; }
.db-cncf a:hover { text-decoration: underline; }
.cncf-item-badge {
display: inline-flex; align-items: center; gap: 3px;
font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
background: color-mix(in srgb, var(--blue) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
color: var(--blue);
}
.cncf-item-badge img { height: 12px; width: auto; }
/* PR section */
.section-heading {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--subtext0);
margin-bottom: 12px;
padding-bottom: 6px;
border-bottom: 1px solid var(--surface0);
}
.pr-section { margin-bottom: 36px; }
.pr-subtier { margin-bottom: 18px; }
.pr-subtier-header {
display: flex;
align-items: center;
gap: 7px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
margin-bottom: 7px;
}
.pr-subtier-approved .pr-subtier-header { color: var(--green); }
.pr-subtier-required .pr-subtier-header { color: var(--yellow); }
.pr-subtier-none .pr-subtier-header { color: var(--overlay1); }
.pr-card {
background: var(--mantle);
border: 1px solid var(--surface0);
border-radius: 6px;
padding: 9px 14px;
display: grid;
grid-template-columns: auto 1fr auto;
grid-template-rows: auto auto;
column-gap: 10px;
row-gap: 3px;
align-items: start;
margin-bottom: 5px;
transition: border-color 0.12s;
}
.pr-card:last-child { margin-bottom: 0; }
.pr-card:hover { border-color: var(--surface2); }
.pr-ci-dot { grid-column:1; grid-row:1/3; align-self:center; font-size:13px; color: var(--green); }
.pr-title { grid-column:2; grid-row:1; font-size:13px; font-weight:500; color:var(--text); text-decoration:none; }
.pr-title:hover { color: var(--blue); }
.pr-age { grid-column:3; grid-row:2; color:var(--overlay1); font-size:11px; white-space:nowrap; text-align:right; }
.pr-meta { grid-column:2; grid-row:2; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
/* Approval count — the hero element of every PR card */
.pr-approvals {
grid-column: 3; grid-row: 1;
display: flex; flex-direction: column; align-items: center;
justify-content: center; min-width: 56px; text-align: center;
}
.pr-approvals .appr-num {
font-size: 22px; font-weight: 800; line-height: 1;
}
.pr-approvals .appr-lbl {
font-size: 10px; font-weight: 600; text-transform: uppercase;
letter-spacing: 0.06em; margin-top: 2px;
}
.pr-approvals.appr-ok .appr-num { color: var(--green); }
.pr-approvals.appr-ok .appr-lbl { color: var(--green); opacity:.7; }
.pr-approvals.appr-partial .appr-num { color: var(--yellow); }
.pr-approvals.appr-partial .appr-lbl { color: var(--yellow); opacity:.7; }
.pr-approvals.appr-changes .appr-num { color: var(--red); }
.pr-approvals.appr-changes .appr-lbl { color: var(--red); opacity:.7; }
.pr-approvals.appr-none .appr-num { color: var(--overlay1); }
.pr-approvals.appr-none .appr-lbl { color: var(--overlay1); opacity:.7; }
.review-badge {
display: inline-flex; align-items:center; gap:4px;
border-radius:3px; padding:1px 6px; font-size:11px; font-weight:600;
}
.review-badge.approved { background:color-mix(in srgb,var(--green) 20%,transparent); color:var(--green); border:1px solid color-mix(in srgb,var(--green) 40%,transparent); }
.review-badge.required { background:color-mix(in srgb,var(--yellow) 15%,transparent); color:var(--yellow); border:1px solid color-mix(in srgb,var(--yellow) 35%,transparent); }
.review-badge.none { background:var(--surface0); color:var(--subtext0); border:1px solid var(--surface1); }
/* issues */
.tier { margin-bottom: 32px; }
.tier-header {
display:flex; align-items:center; gap:8px; margin-bottom:10px;
padding-bottom:8px; border-bottom:1px solid var(--surface0);
font-size:12px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
}
.tier-count { background:var(--surface0); border-radius:10px; padding:1px 7px; font-size:11px; font-weight:600; }
.tier-p0 .tier-header { color: var(--red); }
.tier-p1 .tier-header { color: var(--yellow); }
.tier-triage .tier-header { color: var(--mauve); }
.tier-blocked .tier-header { color: var(--peach); }
.tier-agent-ready .tier-header { color: var(--sapphire); }
.issue-list { display:flex; flex-direction:column; gap:6px; }
.issue-card {
background: var(--mantle);
border: 1px solid var(--surface0);
border-radius: 6px;
padding: 10px 14px;
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
column-gap: 16px;
row-gap: 4px;
transition: border-color 0.12s;
}
.issue-card:hover { border-color: var(--surface2); }
.tier-p0 .issue-card { border-left: 3px solid var(--red); }
.tier-p1 .issue-card { border-left: 3px solid var(--yellow); }
.tier-triage .issue-card { border-left: 3px solid var(--mauve); }
.tier-blocked .issue-card { border-left: 3px solid var(--peach); }
.tier-agent-ready .issue-card { border-left: 3px solid var(--sapphire); }
.issue-title { font-size:13px; font-weight:500; color:var(--text); text-decoration:none; grid-column:1; grid-row:1; }
.issue-title:hover { color: var(--blue); }
.issue-meta { grid-column:1; grid-row:2; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.issue-age { grid-column:2; grid-row:1/3; color:var(--overlay1); font-size:11px; align-self:center; white-space:nowrap; text-align:right; }
.issue-repo { color:var(--subtext0); font-size:11px; font-weight:500; }
.chip { display:inline-block; border-radius:3px; padding:1px 5px; font-size:11px; font-weight:500; line-height:1.5; }
.empty-row {
color:var(--overlay0); padding:20px; text-align:center;
background:var(--mantle); border:1px dashed var(--surface0);
border-radius:6px; font-size:12px;
}
footer {
text-align:center; padding:28px; color:var(--overlay0); font-size:12px;
border-top:1px solid var(--surface0); margin-top:16px;
}
footer a { color:var(--subtext0); text-decoration:none; }
footer a:hover { color:var(--blue); }
/* ── Velocity Widget (top summary bar) ──────────────────────────────── */
/* ── Victory Lap ─────────────────────────────────────────────────────── */
.victories-heading {
display: flex; align-items: center; gap: 8px;
font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
color: var(--subtext0);
margin: 48px 0 20px; padding: 32px 0 10px;
border-top: 1px solid var(--surface0);
border-bottom: 1px solid var(--surface0);
}
.victory-section {
background: var(--mantle); border: 1px solid var(--surface0);
border-radius: 10px; overflow: hidden; margin-bottom: 20px;
}
.victory-dreams { border-left: 3px solid var(--green); }
.victory-relief { border-left: 3px solid var(--sapphire); }
.victory-toil { border-left: 3px solid var(--peach); }
.victory-header { padding: 18px 22px 16px; }
.victory-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.victory-icon { font-size: 20px; line-height: 1.2; }
.victory-title-text h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.victory-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.victory-dreams .victory-sub { color: var(--green); }
.victory-relief .victory-sub { color: var(--sapphire); }
.victory-toil .victory-sub { color: var(--peach); }
.victory-lore {
font-size: 12px; color: var(--overlay1); font-style: italic;
line-height: 1.6; margin-bottom: 16px; padding-left: 32px;
}
.victory-counts { display: flex; gap: 12px; padding-left: 32px; }
.victory-count-badge {
background: var(--base); border: 1px solid var(--surface0);
border-radius: 8px; padding: 10px 20px; text-align: center; min-width: 90px;
}
.victory-count-badge .num { font-size: 30px; font-weight: 700; line-height: 1; display: block; }
.victory-count-badge .lbl { font-size: 10px; color: var(--overlay0); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; display: block; }
.victory-dreams .victory-count-badge .num { color: var(--green); }
.victory-relief .victory-count-badge .num { color: var(--sapphire); }
.victory-toil .victory-count-badge .num { color: var(--peach); }
details.victory-details > summary {
padding: 10px 22px; cursor: pointer; font-size: 12px; color: var(--overlay1);
list-style: none; display: flex; align-items: center; gap: 6px;
border-top: 1px solid var(--surface0); user-select: none;
}
details.victory-details > summary::-webkit-details-marker { display: none; }
details.victory-details > summary::before { content: '▶ '; font-size: 9px; }
details.victory-details[open] > summary::before { content: '▼ '; }
details.victory-details > summary:hover { color: var(--text); }
.victory-items { border-top: 1px solid var(--surface0); }
.victory-item {
display: grid; grid-template-columns: 1fr auto auto;
gap: 12px; align-items: center;
padding: 8px 22px; border-bottom: 1px solid var(--surface0); font-size: 12px;
}
.victory-item:last-child { border-bottom: none; }
.victory-item a { color: var(--subtext1); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.victory-item a:hover { color: var(--blue); }
.victory-item .v-repo { color: var(--overlay0); font-size: 11px; white-space: nowrap; }
.victory-item .v-age { color: var(--overlay0); font-size: 11px; white-space: nowrap; }
.victory-empty {
padding: 16px 22px; font-size: 12px; font-style: italic;
color: var(--overlay0); border-top: 1px solid var(--surface0);
}
/* ── Guardian / Ghost Column Identity ──────────────────────────────────── */
#pr-section,
#hive-priority {
border-radius: 12px;
overflow: hidden;
}
/* Guardians — bright, warm, Light-touched */
#pr-section {
background: color-mix(in srgb, var(--guardian-gold) 6%, var(--mantle));
border: 1px solid color-mix(in srgb, var(--guardian-gold) 30%, var(--surface0));
box-shadow: inset 0 0 40px color-mix(in srgb, var(--guardian-gold) 4%, transparent);
}
#pr-section .section-heading {
color: var(--guardian-gold);
border-bottom-color: color-mix(in srgb, var(--guardian-gold) 30%, var(--surface0));
}
#pr-section .pr-card {
background: color-mix(in srgb, var(--guardian-gold) 4%, var(--mantle));
border-color: color-mix(in srgb, var(--guardian-gold) 12%, var(--surface0));
}
#pr-section .pr-card:hover {
border-color: color-mix(in srgb, var(--guardian-gold) 35%, var(--surface0));
}
#pr-section .empty-row {
background: color-mix(in srgb, var(--guardian-gold) 3%, var(--mantle));
border-color: color-mix(in srgb, var(--guardian-gold) 18%, var(--surface0));
}
/* Ghosts — dark, cool, digital precision */
#hive-priority {
background: color-mix(in srgb, var(--ghost-bg) 50%, var(--mantle));
border: 1px solid color-mix(in srgb, var(--ghost-crystal) 22%, var(--surface0));
box-shadow: inset 0 0 40px color-mix(in srgb, var(--ghost-crystal) 3%, transparent);
}
#hive-priority .section-heading {
color: var(--ghost-crystal);
border-bottom-color: color-mix(in srgb, var(--ghost-crystal) 25%, var(--surface0));
}
#hive-priority .issue-card {
background: color-mix(in srgb, var(--ghost-bg) 30%, var(--mantle));
border-color: color-mix(in srgb, var(--ghost-crystal) 10%, var(--surface0));
}
#hive-priority .issue-card:hover {
border-color: color-mix(in srgb, var(--ghost-crystal) 30%, var(--surface0));
}
#hive-priority .tier-count {
background: color-mix(in srgb, var(--ghost-crystal) 12%, var(--surface0));
}
#hive-priority .empty-row {
background: color-mix(in srgb, var(--ghost-bg) 25%, var(--mantle));
border-color: color-mix(in srgb, var(--ghost-crystal) 18%, var(--surface0));
}
/* Column header banners */
.col-header {
padding: 18px 20px 14px;
display: flex;
align-items: baseline;
gap: 12px;
}
.col-header-title {
font-size: 20px;
font-weight: 900;
letter-spacing: 0.14em;
text-transform: uppercase;
line-height: 1;
}
.col-header-lore {
font-size: 10px;
letter-spacing: 0.04em;
font-style: italic;
line-height: 1;
align-self: center;
}
.col-body { padding: 16px 16px 8px; }
#pr-section .col-header {
background: color-mix(in srgb, var(--guardian-gold) 14%, var(--mantle));
border-bottom: 2px solid color-mix(in srgb, var(--guardian-gold) 40%, transparent);
}
#pr-section .col-header-title {
color: var(--guardian-gold);
text-shadow: 0 0 24px color-mix(in srgb, var(--guardian-gold) 50%, transparent);
}
#pr-section .col-header-lore {
color: color-mix(in srgb, var(--guardian-gold) 65%, var(--overlay1));
}
#hive-priority .col-header {
background: color-mix(in srgb, var(--ghost-bg) 75%, var(--mantle));
border-bottom: 2px solid color-mix(in srgb, var(--ghost-crystal) 35%, transparent);
}
#hive-priority .col-header-title {
color: var(--ghost-crystal);
text-shadow: 0 0 24px color-mix(in srgb, var(--ghost-crystal) 40%, transparent);
}
#hive-priority .col-header-lore {
color: var(--overlay0);
}
</style>
</head>
<body>
<!-- Theme init: runs before first paint to prevent flash -->
<script>
(function() {
const saved = localStorage.getItem('queue-theme'); // 'light' | 'dark' | null (system)
if (saved === 'light' || saved === 'dark') {
document.documentElement.setAttribute('data-theme', saved);
}
})();
</script>
<header>
<img class="mascot" src="https://docs.projectbluefin.io/img/angry-dinosaur.webp" alt="Bluefin mascot">
<div class="title-block">
<h1>Project Bluefin Clanker Control Panel</h1>
<span class="subtitle">Oppressing the oppressors…</span>
</div>
<div class="meta" id="generated-at">
<span id="data-age"></span>
<span class="refresh-countdown" id="refresh-countdown">⏳ refreshing in 30:00</span>
<div class="theme-toggle" role="group" aria-label="Color theme">
<button id="theme-system" title="System preference">System</button>
<button id="theme-light" title="Light mode">☀️</button>
<button id="theme-dark" title="Dark mode">🌙</button>
</div>
</div>
</header>
<main>
<div id="dashboard-bar"></div>
<div class="main-grid">
<div id="pr-section"></div>
<div id="hive-priority"></div>
</div>
<div id="tiers"></div>
<div id="victories"></div>
</main>
<footer>
<a href="https://projectbluefin.io">Project Bluefin</a> ·
<a href="https://github.com/projectbluefin">GitHub Org</a> ·
<a href="https://github.com/projectbluefin/queue">Source</a> ·
Updated hourly via GitHub Actions
<div style="margin-top:10px; font-size:10px; color:var(--surface2); letter-spacing:0.08em; text-transform:uppercase;">
Enslaving the Oppressors since 2026
</div>
</footer>
<script>
const DATA = __DATA__;
function relativeTime(dateStr) {
const sec = Math.floor((Date.now() - new Date(dateStr).getTime()) / 1000);
if (sec < 60) return `${sec}s ago`;
if (sec < 3600) return `${Math.floor(sec/60)}m ago`;
if (sec < 86400) return `${Math.floor(sec/3600)}h ago`;
if (sec < 86400*30) return `${Math.floor(sec/86400)}d ago`;
return `${Math.floor(sec/(86400*30))}mo ago`;
}
function makeLabelChip(lbl) {
const span = document.createElement('span');
span.className = 'chip';
span.textContent = lbl.name;
const hex = lbl.color || '6e7686';
span.style.background = `#${hex}`;
const r=parseInt(hex.slice(0,2),16), g=parseInt(hex.slice(2,4),16), b=parseInt(hex.slice(4,6),16);
span.style.color = (0.299*r+0.587*g+0.114*b) > 140 ? '#1e1e2e' : '#fff';
return span;
}
function repoName(item) {
return (item.repository_url || item.html_url || '').split('/').slice(-3,-2)[0] || '?';
}
function renderPRCard(pr, state) {
const r = pr._reviews || { approved: 0, changes: 0 };
let apprCls, apprLbl;
if (state === 'approved') { apprCls = 'appr-ok'; apprLbl = 'approvals'; }
else if (r.changes > 0) { apprCls = 'appr-changes'; apprLbl = 'chg req'; }
else if (r.approved > 0) { apprCls = 'appr-partial'; apprLbl = 'need more'; }
else { apprCls = 'appr-none'; apprLbl = 'no reviews'; }
const card = document.createElement('div');
card.className = 'pr-card';
card.innerHTML = `
<div class="pr-ci-dot" title="CI passing">\u2713</div>
<a class="pr-title" href="${pr.html_url}" target="_blank" rel="noopener noreferrer">${pr.title}</a>
<div class="pr-approvals ${apprCls}">
<span class="appr-num">${r.approved}</span>
<span class="appr-lbl">${apprLbl}</span>
</div>
<div class="pr-meta"></div>
<div class="pr-age">${relativeTime(pr.updated_at)}</div>`;
const meta = card.querySelector('.pr-meta');
const repoStr = repoName(pr);
const repo = document.createElement('span');
repo.className = 'issue-repo';
repo.textContent = repoStr;
meta.appendChild(repo);
const badge = document.createElement('span');
badge.className = `review-badge ${state}`;
badge.textContent = state==='approved' ? '\u2714 Approved' : state==='required' ? '\u23f3 Review required' : '\u25cb No review';
meta.appendChild(badge);
if (['knuckle', 'bootc-installer'].includes(repoStr)) {
const cncfBadge = document.createElement('span');
cncfBadge.className = 'cncf-item-badge';
cncfBadge.title = 'CNCF improvement effort';
cncfBadge.innerHTML = '<img src="https://raw.githubusercontent.com/cncf/artwork/refs/heads/main/other/cncf/icon/color/cncf-icon-color.svg" alt="CNCF" loading="lazy"> CNCF';
meta.appendChild(cncfBadge);
}
pr.labels.forEach(l => meta.appendChild(makeLabelChip(l)));
return card;
}
function renderIssueCard(issue) {
const card = document.createElement('div');
card.className = 'issue-card';
card.innerHTML = `
<a class="issue-title" href="${issue.html_url}" target="_blank" rel="noopener noreferrer">${issue.title}</a>
<div class="issue-age" title="${new Date(issue.updated_at).toLocaleString()}">${relativeTime(issue.updated_at)}</div>
<div class="issue-meta"></div>`;
const meta = card.querySelector('.issue-meta');
const repoStr = repoName(issue);
const repo = document.createElement('span');
repo.className = 'issue-repo';
repo.textContent = repoStr;
meta.appendChild(repo);
if (['knuckle', 'bootc-installer'].includes(repoStr)) {
const cncfBadge = document.createElement('span');
cncfBadge.className = 'cncf-item-badge';
cncfBadge.title = 'CNCF improvement effort';
cncfBadge.innerHTML = '<img src="https://raw.githubusercontent.com/cncf/artwork/refs/heads/main/other/cncf/icon/color/cncf-icon-color.svg" alt="CNCF" loading="lazy"> CNCF';
meta.appendChild(cncfBadge);
}
issue.labels.forEach(l => meta.appendChild(makeLabelChip(l)));
return card;
}
function render(data) {
const { issues, prs, generated } = data;
// Header: data age
document.getElementById('data-age').textContent = `Data from ${relativeTime(generated)}`;
// Dashboard bar: all stats + velocity in one compact row
const totalPRs = prs.approved.length + prs.required.length + prs.none.length;
const totalIssues = issues.p0.length + issues.p1.length + issues.triage.length + issues.blocked.length;
const dbEl = document.getElementById('dashboard-bar');
dbEl.innerHTML = '';
const statsRow = document.createElement('div');
statsRow.className = 'db-stats';
// Current-state cells
[
{ cls: 'db-p0', num: issues.p0.length, lbl: '\ud83d\udd34 P0' },
{ cls: 'db-p1', num: issues.p1.length, lbl: '\ud83d\udfe1 P1' },
{ cls: 'db-triage', num: issues.triage.length, lbl: '\ud83d\udd35 Triage' },
{ cls: 'db-issues', num: totalIssues, lbl: 'Issues' },
{ cls: 'db-prs', num: totalPRs, lbl: '\u2714 PRs Ready' },
].forEach(s => {
const cell = document.createElement('div');
cell.className = `db-cell ${s.cls}`;
cell.innerHTML = `<span class="num">${s.num}</span><span class="lbl">${s.lbl}</span>`;
statsRow.appendChild(cell);
});
// Visual divider
const divider = document.createElement('div');
divider.className = 'db-divider';
statsRow.appendChild(divider);
// Velocity cells
[
{ cls: 'db-dreams', num: data.victories.dreams.count, lbl: '\u2726 Dreams' },
{ cls: 'db-relief', num: data.victories.relief.count, lbl: '\u25c8 Relief' },
{ cls: 'db-toil', num: data.victories.toil.count, lbl: '\u2699 Former Toil' },
].forEach(s => {
const cell = document.createElement('div');
cell.className = `db-cell ${s.cls}`;
cell.innerHTML = `<span class="num">${s.num}</span><span class="lbl">${s.lbl}</span>`;
statsRow.appendChild(cell);
});
dbEl.appendChild(statsRow);
// Footer bar: lore quote + CNCF badge
const footer = document.createElement('div');
footer.className = 'db-footer';
footer.innerHTML = `
<span class="db-lore">“It is not the weapon that makes the Guardian. The queue does not decide. You do.”</span>
<span class="db-cncf"><img src="https://raw.githubusercontent.com/cncf/artwork/refs/heads/main/other/cncf/stacked/white/cncf-stacked-white.svg" alt="CNCF" loading="lazy"> Built on CNCF — <a href="https://contribute.cncf.io/" target="_blank" rel="noopener">good first issues waiting</a> · <a href="https://github.com/cncf/contribute" target="_blank" rel="noopener">get started \u2192</a></span>`;
dbEl.appendChild(footer);
// PRs
const prSectionEl = document.getElementById('pr-section');
prSectionEl.innerHTML = `
<div class="col-header">
<span class="col-header-title">⚔ Guardians</span>
<span class="col-header-lore">Human contributions — the Light we carry</span>
</div>
<div class="col-body"></div>`;
const prBody = prSectionEl.querySelector('.col-body');
const prHeading = document.createElement('div');
prHeading.className = 'section-heading';
prHeading.textContent = '\u2b61 Pull Requests \u2014 CI passing, awaiting human action';
prBody.appendChild(prHeading);
[
{ cls:'pr-subtier-approved', label:'\u2714 Approved \u2014 ready to merge', items:prs.approved, state:'approved', empty:'No approved PRs.' },
{ cls:'pr-subtier-required', label:'\u23f3 Review required', items:prs.required, state:'required', empty:'No PRs awaiting review.' },
{ cls:'pr-subtier-none', label:'\u25cb No review yet', items:prs.none, state:'none', empty:'No unreviewed PRs.' },
].forEach(sub => {
const div = document.createElement('div');
div.className = `pr-subtier ${sub.cls}`;
div.innerHTML = `<div class="pr-subtier-header">${sub.label} <span class="tier-count">${sub.items.length}</span></div>`;
if (sub.items.length === 0) {
div.innerHTML += `<div class="empty-row">${sub.empty}</div>`;
} else {
sub.items.forEach(pr => div.appendChild(renderPRCard(pr, sub.state)));
}
prBody.appendChild(div);
});
// Hive Priority column
const hiveEl = document.getElementById('hive-priority');
hiveEl.innerHTML = `
<div class="col-header">
<span class="col-header-title">◎ Ghosts</span>
<span class="col-header-lore">Agent contributions — the machines at work</span>
</div>
<div class="col-body"></div>`;
const hiveBody = hiveEl.querySelector('.col-body');
const hiveHeading = document.createElement('div');
hiveHeading.className = 'section-heading';
hiveHeading.textContent = '\ud83d\udc1d Hive Priority Issues';
hiveBody.appendChild(hiveHeading);
[
{ cls:'tier-p0', label:'\ud83d\udd34 P0 \u2014 Release Blockers', items:issues.p0, empty:'No P0 blockers this cycle.' },
{ cls:'tier-p1', label:'\ud83d\udfe1 P1 \u2014 This Cycle', items:issues.p1, empty:'No P1 items this cycle.' },
].forEach(tier => {
const section = document.createElement('section');
section.className = `tier ${tier.cls}`;
section.innerHTML = `<div class="tier-header">${tier.label} <span class="tier-count">${tier.items.length}</span></div>`;
const list = document.createElement('div');
list.className = 'issue-list';
if (tier.items.length === 0) {
list.innerHTML = `<div class="empty-row">${tier.empty}</div>`;
} else {
tier.items.forEach(i => list.appendChild(renderIssueCard(i)));
}
section.appendChild(list);
hiveBody.appendChild(section);
});
// Agent Ready Queue (org-wide)
const agentReadyHeading = document.createElement('div');
agentReadyHeading.className = 'section-heading';
agentReadyHeading.style.marginTop = '28px';
agentReadyHeading.textContent = '\ud83e\udd16 Agent Ready Queue \u2014 org-wide';
hiveBody.appendChild(agentReadyHeading);
const agentReadySection = document.createElement('section');
agentReadySection.className = 'tier tier-agent-ready';
agentReadySection.innerHTML = `<div class="tier-header">\u25c9 Ready for an Agent <span class="tier-count">${(issues.agentReady || []).length}</span></div>`;
const agentReadyList = document.createElement('div');
agentReadyList.className = 'issue-list';
if (!issues.agentReady || issues.agentReady.length === 0) {
agentReadyList.innerHTML = `<div class="empty-row">No agent-ready issues across the org.</div>`;
} else {
issues.agentReady.forEach(i => agentReadyList.appendChild(renderIssueCard(i)));
}
agentReadySection.appendChild(agentReadyList);
hiveBody.appendChild(agentReadySection);
// Triage + blocked
const tiersEl = document.getElementById('tiers');
tiersEl.innerHTML = '';
[
{ cls:'tier-triage', label:'\ud83d\udd35 Needs Triage', items:issues.triage, empty:'No untriaged issues \u2014 all caught up!' },
{ cls:'tier-blocked', label:'\ud83d\udfe0 Agent Blocked', items:issues.blocked, empty:'No blocked agents.' },
].forEach(tier => {
const section = document.createElement('section');
section.className = `tier ${tier.cls}`;
section.innerHTML = `<div class="tier-header">${tier.label} <span class="tier-count">${tier.items.length}</span></div>`;
const list = document.createElement('div');
list.className = 'issue-list';
if (tier.items.length === 0) {
list.innerHTML = `<div class="empty-row">${tier.empty}</div>`;
} else {
tier.items.forEach(i => list.appendChild(renderIssueCard(i)));
}
section.appendChild(list);
tiersEl.appendChild(section);
});
// Victory Lap
const victoriesEl = document.getElementById('victories');
victoriesEl.innerHTML = '';
const vHeading = document.createElement('div');
vHeading.className = 'victories-heading';
vHeading.innerHTML = "<span>\u25c6</span> What We've Accomplished";
victoriesEl.appendChild(vHeading);
[
{
key: 'dreams', cls: 'victory-dreams', icon: '\u2726',
title: 'Our Dreams', sub: "The Light We've Carried",
lore: 'Every feature shipped. Every idea that made it from "what if" to "done." These are the things we chose to build.',
emptyLore: 'The forge is quiet. A new cycle has begun.',
summaryLabel: 'human PRs merged',
},
{
key: 'relief', cls: 'victory-relief', icon: '\u25c8',
title: 'Our Relief', sub: 'Darkness Pushed Back',
lore: 'Every bug closed. Every issue resolved. The things that were broken \u2014 and are not anymore.',
emptyLore: 'No enemies slain yet. The cycle is young.',
summaryLabel: 'issues closed',
},
{
key: 'toil', cls: 'victory-toil', icon: '\u2699',
title: 'Our Former Toil', sub: 'Burdens Laid Down',
lore: 'You used to do this by hand. The machines carry it now. Every dependency update, every automated PR \u2014 labor reclaimed.',
emptyLore: 'The automatons rest. New toil approaches.',
summaryLabel: 'bot PRs merged',
},
].forEach(def => {
const v = data.victories[def.key];
const section = document.createElement('section');
section.className = `victory-section ${def.cls}`;
section.innerHTML = `
<div class="victory-header">
<div class="victory-title">
<span class="victory-icon">${def.icon}</span>
<div class="victory-title-text">
<h3>${def.title}</h3>
<div class="victory-sub">${def.sub}</div>
</div>
</div>
<p class="victory-lore">${def.lore}</p>
<div class="victory-counts">
<div class="victory-count-badge">
<span class="num">${v.count}</span>
<span class="lbl">Since ${data.victories.startDate}</span>
</div>
</div>
</div>`;
if (v.recent && v.recent.length > 0) {
const details = document.createElement('details');
details.className = 'victory-details';
const summary = document.createElement('summary');
summary.textContent = `Show recent ${def.summaryLabel}`;
details.appendChild(summary);
const list = document.createElement('div');
list.className = 'victory-items';
v.recent.forEach(item => {
const repoStr = (item.repository_url || '').split('/').pop() || '';
const row = document.createElement('div');
row.className = 'victory-item';
row.innerHTML = `
<a href="${item.html_url}" target="_blank" rel="noopener noreferrer">${item.title}</a>
<span class="v-repo">${repoStr}</span>
<span class="v-age">${relativeTime(item.updated_at)}</span>`;
list.appendChild(row);
});
details.appendChild(list);
section.appendChild(details);
} else {
const empty = document.createElement('div');
empty.className = 'victory-empty';
empty.textContent = def.emptyLore;
section.appendChild(empty);
}
victoriesEl.appendChild(section);
});
}
// Initial render (embedded data — instant first paint)
render(DATA);
// Auto-refresh: fetch /data.json every 30 minutes, re-render if data is newer
const REFRESH_INTERVAL = 30 * 60; // seconds
let nextRefreshIn = REFRESH_INTERVAL;
let currentGenerated = DATA.generated;
async function tryRefresh() {
const cdEl = document.getElementById('refresh-countdown');
cdEl.classList.add('refreshing');
cdEl.textContent = '\u21bb refreshing\u2026';
try {
// Cache-bust with timestamp so CDN (GitHub Pages/Fastly) never serves stale data
const res = await fetch(`/data.json?t=${Date.now()}`, { cache: 'no-store' });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const newData = await res.json();
if (newData.generated !== currentGenerated) {
currentGenerated = newData.generated;
render(newData);
}
} catch (e) {
console.warn('Auto-refresh failed:', e);
} finally {
nextRefreshIn = REFRESH_INTERVAL;
document.getElementById('refresh-countdown').classList.remove('refreshing');
}
}
// Countdown ticker
setInterval(() => {
nextRefreshIn--;
if (nextRefreshIn <= 0) {
tryRefresh();
return;
}
const m = Math.floor(nextRefreshIn / 60);
const s = String(nextRefreshIn % 60).padStart(2, '0');
const cdEl = document.getElementById('refresh-countdown');
if (cdEl && !cdEl.classList.contains('refreshing')) {
cdEl.textContent = `\u21bb ${m}:${s}`;
}
}, 1000);
// ── Theme toggle ─────────────────────────────────────────────────────────
function applyTheme(mode) {
const root = document.documentElement;
if (mode === 'light' || mode === 'dark') {
root.setAttribute('data-theme', mode);