Skip to content

Commit 9b4b361

Browse files
committed
Restore static running cells for missing leaderboard entries
1 parent 9415444 commit 9b4b361

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="preconnect" href="https://fonts.googleapis.com">
1010
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1111
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
12-
<link rel="stylesheet" href="static/style.css?v=20260404a">
12+
<link rel="stylesheet" href="static/style.css?v=20260413a">
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css">
1414
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/12.0.1/marked.min.js"></script>
1515
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
@@ -159,6 +159,6 @@ <h2 id="task-title"></h2>
159159
</div>
160160

161161
<script>var STATIC_MODE = true;</script>
162-
<script src="static/app.js?v=20260404a"></script>
162+
<script src="static/app.js?v=20260413a"></script>
163163
</body>
164164
</html>

static/app.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ function renderLeaderboard(data) {
392392
const inner = `<div class="leaderboard-score-wrap">${scoreHtml}${renderMetricLines(entry)}</div>`;
393393
return clickable ? `<td class="leaderboard-score-td" onclick="goToRun('${entry.run_id}')">${inner}</td>` : `<td class="leaderboard-score-td">${inner}</td>`;
394394
}
395+
function renderMissingScoreBlock() {
396+
if (STATIC_MODE) return '<td class="no-score"><span class="running-cell">running</span></td>';
397+
return '<td class="no-score">-</td>';
398+
}
395399
function averageEntry(entries) {
396400
const scored = entries.filter(e => Number.isFinite(e?.score));
397401
if (!scored.length) return null;
@@ -423,7 +427,7 @@ function renderLeaderboard(data) {
423427
if (entry) {
424428
html += renderScoreBlock(entry, true);
425429
} else {
426-
html += '<td class="no-score">-</td>';
430+
html += renderMissingScoreBlock();
427431
}
428432
});
429433
const frontier = frontierEntry(task);

static/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,13 @@ body { height: 100vh; font-family: var(--font); font-size: 17px; line-height: 1.
289289

290290
.score-cell { border-radius: 4px; padding: 3px 8px; display: inline-block; min-width: 38px; text-align: center; font-size: 13px; }
291291
.score-cell.score-cell-empty { background: transparent; color: var(--text-tertiary); }
292+
.running-cell {
293+
font-size: 10px;
294+
color: var(--warn);
295+
font-style: italic;
296+
animation: blink 1.5s ease-in-out infinite;
297+
}
298+
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
292299
.leaderboard-score-td { font-family: var(--mono); }
293300
.leaderboard-score-wrap { display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding-left: 10px; }
294301
.leaderboard-cell-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 11px; line-height: 1.15; color: var(--text-secondary); font-family: var(--mono); }

0 commit comments

Comments
 (0)