lfqian commited on
Commit
6dce326
·
1 Parent(s): bf0590b

feat: refine live leaderboard labels and compact join arena layout

Browse files
Files changed (2) hide show
  1. src/views/LiveView.vue +4 -0
  2. src/views/RequestView.vue +35 -37
src/views/LiveView.vue CHANGED
@@ -244,6 +244,10 @@ const challengeLeaderboardRows = computed(() => {
244
  if (isVanilla(name)) return isClaude4Model(r.model) || isGptModel(r.model) || isGeminiModel(r.model)
245
  return false
246
  }).map(r => {
 
 
 
 
247
  if (!isVanilla(r.agent_name)) return r
248
  return {
249
  ...r,
 
244
  if (isVanilla(name)) return isClaude4Model(r.model) || isGptModel(r.model) || isGeminiModel(r.model)
245
  return false
246
  }).map(r => {
247
+ const name = String(r.agent_name || '').toLowerCase()
248
+ if (LIVE_AGENT_WHITELIST.has(name)) {
249
+ return { ...r, model: '' }
250
+ }
251
  if (!isVanilla(r.agent_name)) return r
252
  return {
253
  ...r,
src/views/RequestView.vue CHANGED
@@ -528,7 +528,7 @@ export default {
528
 
529
  .arena-page{
530
  max-width:1280px; margin:0 auto;
531
- padding:16px 20px 120px; background:#fff;
532
  }
533
 
534
  /* ===== Helpers ===== */
@@ -537,20 +537,20 @@ export default {
537
  .w-full{ width:100%; }
538
 
539
  /* ===== Time Window Control ===== */
540
- .time-window-control{ margin:12px 0 16px; padding:16px; background:#F6F8FB; border:1px solid #E7ECF3; border-radius:12px; }
541
  .time-window-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
542
- .time-window-label{ font-weight:700; font-size:14px; color:#0f172a; }
543
- .time-window-range{ font-size:13px; color:#64748b; font-family: ui-monospace, monospace; }
544
  .time-slider{ margin-top:8px; }
545
 
546
  /* ===== Sections ===== */
547
- .section{ margin-top:18px; }
548
  .section-head{ margin-bottom:8px; }
549
- .section-title{ font-size:clamp(1.2rem, 1.2rem + 0.4vw, 1.6rem); font-weight:800; letter-spacing:-0.02em; display:inline-block; }
550
  .section-sub{ margin-top:4px; color:#6b7280; }
551
 
552
  /* ===== Grids ===== */
553
- .grid{ display:grid; gap:14px; min-width:0; }
554
  .grid-assets-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
555
  .grid-agents{ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
556
  @media (max-width: 1200px){ .grid-assets-4{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@@ -567,26 +567,26 @@ export default {
567
  .card:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(16,24,40,.08); border-color:#D9E2EF; }
568
 
569
  /* ===== Assets ===== */
570
- .asset-card{ padding:12px; display:flex; flex-direction:column; gap:10px; }
571
- .asset-head{ display:grid; grid-template-columns:44px 1fr auto; gap:10px; align-items:center; min-width:0; }
572
- .asset-logo-wrap{ width:44px; height:44px; border-radius:12px; background:#f3f4f6; display:grid; place-items:center; border:1px solid #E7ECF3; overflow:hidden; }
573
  .asset-logo{ width:70%; height:70%; object-fit:contain; }
574
  .asset-name{ min-width:0; }
575
  .asset-code{ font-weight:900; color:#0f172a; letter-spacing:.02em; }
576
- .asset-full{ font-size:12px; color:#64748b; }
577
  .type-badge{
578
- border-radius:999px; padding:4px 8px; font-size:12px; font-weight:700;
579
  border:1px solid #E7ECF3; background:#F6F8FB; color:#0f172a; white-space:nowrap;
580
  }
581
  .type-crypto{ background:#f8fbff; border-color:#e0e7ff; color:#1e3a8a; }
582
  .type-stock { background:#f6fffb; border-color:#d9fbe6; color:#064e3b; }
583
 
584
- .asset-body{ display:flex; flex-direction:column; gap:10px; }
585
- .spark-wrap{ width:100%; height:90px; overflow:hidden; border-radius:8px; background:#F6F8FB; border:1px solid #E7ECF3; position:relative; }
586
  .asset-stats{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
587
- .stat{ background:#F6F8FB; border:1px solid #E7ECF3; border-radius:8px; padding:4px 6px; min-width:0; display:flex; flex-direction:column; align-items:center; text-align:center; }
588
  .stat-label{ font-size:9px; color:#6b7280; margin-bottom:2px; white-space:nowrap; }
589
- .stat-value{ font-weight:700; font-size:11.5px; color:#0f172a; line-height:1.2; }
590
  .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
591
  .muted{ color:#6b7280; }
592
 
@@ -598,14 +598,14 @@ export default {
598
  .asset-foot-row{ margin-top:6px; display:flex; align-items:center; justify-content:space-between; color:#6b7280; }
599
 
600
  /* ===== Agents (perf-free) ===== */
601
- .agent-card{ padding:12px; display:flex; flex-direction:column; gap:8px; }
602
- .agent-top{ display:grid; grid-template-columns:52px 1fr; gap:10px; align-items:center; min-width:0; }
603
- .agent-badge{ width:52px; height:52px; border-radius:16px; border:2px solid #e5e7eb; position:relative; display:grid; place-items:center; overflow:hidden; }
604
  .agent-ring{ position:absolute; inset:0; opacity:.18; }
605
  .agent-logo{ width:70%; height:70%; object-fit:contain; position:relative; z-index:1; }
606
  .agent-title{ min-width:0; }
607
- .agent-name{ font-weight:900; letter-spacing:.02em; color:#0f172a; text-transform:uppercase; }
608
- .agent-links{ display:flex; align-items:center; gap:8px; color:#64748b; flex-wrap:wrap; min-width:0; }
609
  .link{ color:#334155; font-weight:600; text-decoration:none; }
610
  .link:hover{ color:#0f172a; text-decoration:underline; }
611
  .dot{ color:#94a3b8; }
@@ -614,37 +614,37 @@ export default {
614
  .chip-outline{ background:#fff; }
615
 
616
  /* ===== Integration Guide ===== */
617
- .integration-guide{ margin-top:12px; padding:16px; }
618
- .integration-guide h3{ font-weight:800; font-size:1.1rem; color:#0f172a; margin-bottom:8px; }
619
- .guide-section{ margin:10px 0; }
620
- .code-block{ background:#0b1020; color:#E6EDF3; border-radius:10px; padding:12px; overflow:auto; font-size:12.5px; line-height:1.5; }
621
  .note{ color:#334155; margin-top:6px; }
622
 
623
  /* ===== Buttons ===== */
624
  .cta-row{ margin-top:12px; display:flex; justify-content:center; }
625
  .link-btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem; text-decoration:none; }
626
- .btn-cta{ background:linear-gradient(90deg, rgb(0,0,185), #7b2cbf, #d946ef, rgb(240,0,15)); border:none; color:#fff; font-weight:800; letter-spacing:.02em; padding:10px 16px; border-radius:12px; cursor:pointer; }
627
  .mr-2{ margin-right:.5rem; }
628
  .pos{ color:#0e7a3a; } .neg{ color:#B91C1C; }
629
 
630
  /* ===== Paper & Citation ===== */
631
- .paper-section{ margin-top:40px; margin-bottom:40px; }
632
  .paper-card{
633
  background:#ffffff; border:1px solid #E7ECF3; border-radius:14px;
634
  box-shadow:0 1px 2px rgba(16,24,40,.03), 0 4px 12px rgba(16,24,40,.04);
635
- padding:24px;
636
  }
637
- .paper-content{ display:flex; flex-direction:column; gap:20px; }
638
  .paper-description{
639
- font-size:1.05rem; font-weight:500; color:#334155;
640
  line-height:1.6; margin:0;
641
  }
642
  .paper-links{ display:flex; gap:12px; align-items:center; }
643
  .paper-link{
644
  display:inline-flex; align-items:center; gap:8px;
645
- padding:10px 18px; background:#f3f4f6; border:1px solid #E7ECF3;
646
  border-radius:10px; text-decoration:none; color:#0f172a;
647
- font-weight:700; font-size:14px; transition:all .2s ease;
648
  }
649
  .paper-link:hover{
650
  background:#e5e7eb; border-color:#cbd5e1; transform:translateY(-1px);
@@ -654,15 +654,13 @@ export default {
654
 
655
  .citation-box{
656
  background:#f8fafc; border:1px solid #e2e8f0;
657
- border-radius:12px; padding:16px;
658
  }
659
  .citation-header{
660
  display:flex; justify-content:space-between; align-items:center;
661
  margin-bottom:12px;
662
  }
663
- .citation-label{
664
- font-weight:700; font-size:14px; color:#0f172a;
665
- }
666
  .copy-btn{
667
  display:inline-flex; align-items:center; gap:6px;
668
  padding:6px 12px; background:#ffffff; border:1px solid #cbd5e1;
@@ -680,7 +678,7 @@ export default {
680
  .citation-text{
681
  background:#0b1020; color:#E6EDF3; border-radius:8px;
682
  padding:14px; overflow:auto; font-family: ui-monospace, monospace;
683
- font-size:13px; line-height:1.6; margin:0; white-space:pre;
684
  }
685
 
686
  @media (max-width: 620px){
 
528
 
529
  .arena-page{
530
  max-width:1280px; margin:0 auto;
531
+ padding:12px 16px 96px; background:#fff;
532
  }
533
 
534
  /* ===== Helpers ===== */
 
537
  .w-full{ width:100%; }
538
 
539
  /* ===== Time Window Control ===== */
540
+ .time-window-control{ margin:8px 0 12px; padding:12px; background:#F6F8FB; border:1px solid #E7ECF3; border-radius:10px; }
541
  .time-window-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
542
+ .time-window-label{ font-weight:700; font-size:13px; color:#0f172a; }
543
+ .time-window-range{ font-size:12px; color:#64748b; font-family: ui-monospace, monospace; }
544
  .time-slider{ margin-top:8px; }
545
 
546
  /* ===== Sections ===== */
547
+ .section{ margin-top:14px; }
548
  .section-head{ margin-bottom:8px; }
549
+ .section-title{ font-size:clamp(1.05rem, 1.05rem + 0.3vw, 1.35rem); font-weight:800; letter-spacing:-0.02em; display:inline-block; }
550
  .section-sub{ margin-top:4px; color:#6b7280; }
551
 
552
  /* ===== Grids ===== */
553
+ .grid{ display:grid; gap:10px; min-width:0; }
554
  .grid-assets-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
555
  .grid-agents{ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
556
  @media (max-width: 1200px){ .grid-assets-4{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
 
567
  .card:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(16,24,40,.08); border-color:#D9E2EF; }
568
 
569
  /* ===== Assets ===== */
570
+ .asset-card{ padding:10px; display:flex; flex-direction:column; gap:8px; }
571
+ .asset-head{ display:grid; grid-template-columns:38px 1fr auto; gap:8px; align-items:center; min-width:0; }
572
+ .asset-logo-wrap{ width:38px; height:38px; border-radius:10px; background:#f3f4f6; display:grid; place-items:center; border:1px solid #E7ECF3; overflow:hidden; }
573
  .asset-logo{ width:70%; height:70%; object-fit:contain; }
574
  .asset-name{ min-width:0; }
575
  .asset-code{ font-weight:900; color:#0f172a; letter-spacing:.02em; }
576
+ .asset-full{ font-size:11px; color:#64748b; }
577
  .type-badge{
578
+ border-radius:999px; padding:3px 7px; font-size:11px; font-weight:700;
579
  border:1px solid #E7ECF3; background:#F6F8FB; color:#0f172a; white-space:nowrap;
580
  }
581
  .type-crypto{ background:#f8fbff; border-color:#e0e7ff; color:#1e3a8a; }
582
  .type-stock { background:#f6fffb; border-color:#d9fbe6; color:#064e3b; }
583
 
584
+ .asset-body{ display:flex; flex-direction:column; gap:8px; }
585
+ .spark-wrap{ width:100%; height:76px; overflow:hidden; border-radius:8px; background:#F6F8FB; border:1px solid #E7ECF3; position:relative; }
586
  .asset-stats{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
587
+ .stat{ background:#F6F8FB; border:1px solid #E7ECF3; border-radius:8px; padding:3px 5px; min-width:0; display:flex; flex-direction:column; align-items:center; text-align:center; }
588
  .stat-label{ font-size:9px; color:#6b7280; margin-bottom:2px; white-space:nowrap; }
589
+ .stat-value{ font-weight:700; font-size:10.5px; color:#0f172a; line-height:1.2; }
590
  .mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
591
  .muted{ color:#6b7280; }
592
 
 
598
  .asset-foot-row{ margin-top:6px; display:flex; align-items:center; justify-content:space-between; color:#6b7280; }
599
 
600
  /* ===== Agents (perf-free) ===== */
601
+ .agent-card{ padding:10px; display:flex; flex-direction:column; gap:6px; }
602
+ .agent-top{ display:grid; grid-template-columns:44px 1fr; gap:8px; align-items:center; min-width:0; }
603
+ .agent-badge{ width:44px; height:44px; border-radius:12px; border:2px solid #e5e7eb; position:relative; display:grid; place-items:center; overflow:hidden; }
604
  .agent-ring{ position:absolute; inset:0; opacity:.18; }
605
  .agent-logo{ width:70%; height:70%; object-fit:contain; position:relative; z-index:1; }
606
  .agent-title{ min-width:0; }
607
+ .agent-name{ font-weight:900; letter-spacing:.02em; color:#0f172a; text-transform:uppercase; font-size:13px; }
608
+ .agent-links{ display:flex; align-items:center; gap:8px; color:#64748b; flex-wrap:wrap; min-width:0; font-size:12px; }
609
  .link{ color:#334155; font-weight:600; text-decoration:none; }
610
  .link:hover{ color:#0f172a; text-decoration:underline; }
611
  .dot{ color:#94a3b8; }
 
614
  .chip-outline{ background:#fff; }
615
 
616
  /* ===== Integration Guide ===== */
617
+ .integration-guide{ margin-top:10px; padding:12px; }
618
+ .integration-guide h3{ font-weight:800; font-size:1rem; color:#0f172a; margin-bottom:8px; }
619
+ .guide-section{ margin:8px 0; }
620
+ .code-block{ background:#0b1020; color:#E6EDF3; border-radius:10px; padding:10px; overflow:auto; font-size:11.5px; line-height:1.45; }
621
  .note{ color:#334155; margin-top:6px; }
622
 
623
  /* ===== Buttons ===== */
624
  .cta-row{ margin-top:12px; display:flex; justify-content:center; }
625
  .link-btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem; text-decoration:none; }
626
+ .btn-cta{ background:linear-gradient(90deg, rgb(0,0,185), #7b2cbf, #d946ef, rgb(240,0,15)); border:none; color:#fff; font-weight:800; letter-spacing:.02em; padding:8px 14px; border-radius:10px; cursor:pointer; font-size:13px; }
627
  .mr-2{ margin-right:.5rem; }
628
  .pos{ color:#0e7a3a; } .neg{ color:#B91C1C; }
629
 
630
  /* ===== Paper & Citation ===== */
631
+ .paper-section{ margin-top:28px; margin-bottom:28px; }
632
  .paper-card{
633
  background:#ffffff; border:1px solid #E7ECF3; border-radius:14px;
634
  box-shadow:0 1px 2px rgba(16,24,40,.03), 0 4px 12px rgba(16,24,40,.04);
635
+ padding:18px;
636
  }
637
+ .paper-content{ display:flex; flex-direction:column; gap:14px; }
638
  .paper-description{
639
+ font-size:0.95rem; font-weight:500; color:#334155;
640
  line-height:1.6; margin:0;
641
  }
642
  .paper-links{ display:flex; gap:12px; align-items:center; }
643
  .paper-link{
644
  display:inline-flex; align-items:center; gap:8px;
645
+ padding:8px 14px; background:#f3f4f6; border:1px solid #E7ECF3;
646
  border-radius:10px; text-decoration:none; color:#0f172a;
647
+ font-weight:700; font-size:13px; transition:all .2s ease;
648
  }
649
  .paper-link:hover{
650
  background:#e5e7eb; border-color:#cbd5e1; transform:translateY(-1px);
 
654
 
655
  .citation-box{
656
  background:#f8fafc; border:1px solid #e2e8f0;
657
+ border-radius:12px; padding:12px;
658
  }
659
  .citation-header{
660
  display:flex; justify-content:space-between; align-items:center;
661
  margin-bottom:12px;
662
  }
663
+ .citation-label{ font-weight:700; font-size:13px; color:#0f172a; }
 
 
664
  .copy-btn{
665
  display:inline-flex; align-items:center; gap:6px;
666
  padding:6px 12px; background:#ffffff; border:1px solid #cbd5e1;
 
678
  .citation-text{
679
  background:#0b1020; color:#E6EDF3; border-radius:8px;
680
  padding:14px; overflow:auto; font-family: ui-monospace, monospace;
681
+ font-size:12px; line-height:1.5; margin:0; white-space:pre;
682
  }
683
 
684
  @media (max-width: 620px){