Skip to content

Commit 449e7ba

Browse files
committed
Remove "New!" bubbles
1 parent 84b9235 commit 449e7ba

3 files changed

Lines changed: 2 additions & 123 deletions

File tree

css/components.css

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,77 +1012,3 @@ hr {
10121012
text-decoration-thickness: 2px;
10131013
text-decoration-color: var(--color-text-muted);
10141014
}
1015-
1016-
/* New Feature Badge */
1017-
.new-badge {
1018-
position: absolute;
1019-
top: 100%;
1020-
left: 50%;
1021-
transform: translateX(-50%);
1022-
margin-top: 2px;
1023-
background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
1024-
color: white;
1025-
padding: 0.25rem 0.5rem;
1026-
border-radius: var(--radius-full);
1027-
font-size: 0.7rem;
1028-
font-weight: var(--weight-medium);
1029-
white-space: nowrap;
1030-
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
1031-
z-index: 100;
1032-
animation: newBadgeAnimation 6s ease-in-out forwards;
1033-
pointer-events: none;
1034-
}
1035-
1036-
.dark-mode .new-badge {
1037-
background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
1038-
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
1039-
}
1040-
1041-
.new-badge-button {
1042-
top: -12px;
1043-
left: auto;
1044-
right: -45px;
1045-
}
1046-
1047-
@keyframes newBadgeAnimation {
1048-
0% {
1049-
opacity: 0;
1050-
transform: translateX(-50%) scale(0.8);
1051-
}
1052-
10% {
1053-
opacity: 1;
1054-
transform: translateX(-50%) scale(1);
1055-
}
1056-
15% {
1057-
transform: translateX(-50%) scale(1.1);
1058-
}
1059-
20% {
1060-
transform: translateX(-50%) scale(1);
1061-
}
1062-
30% {
1063-
transform: translateX(-50%) scale(1.05);
1064-
}
1065-
35% {
1066-
transform: translateX(-50%) scale(1);
1067-
}
1068-
45% {
1069-
transform: translateX(-50%) scale(1.05);
1070-
}
1071-
50% {
1072-
transform: translateX(-50%) scale(1);
1073-
}
1074-
60% {
1075-
transform: translateX(-50%) scale(1.05);
1076-
}
1077-
65% {
1078-
transform: translateX(-50%) scale(1);
1079-
}
1080-
85% {
1081-
opacity: 1;
1082-
transform: translateX(-50%) scale(1);
1083-
}
1084-
100% {
1085-
opacity: 0;
1086-
transform: translateX(-50%) scale(0.8);
1087-
}
1088-
}

js/mainResults.js

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const statusToNaturalLanguage = {
1616
const loadedLeaderboards = new Set();
1717
let leaderboardData = null;
1818

19-
// Track which badges have been shown to avoid re-animating
20-
const badgesShown = new Set();
21-
2219
const sortState = { field: 'resolved', direction: 'desc' };
2320

2421
function loadLeaderboardData() {
@@ -108,7 +105,7 @@ function renderLeaderboardTable(leaderboard) {
108105
<th class="sortable" data-sort="name">Model</th>
109106
<th class="sortable" data-sort="resolved">% Resolved</th>
110107
${hasDetailedFeatures ? '<th class="sortable" data-sort="instance_cost" title="Average cost per task instance in the benchmark">Avg. $</th>' : ''}
111-
${hasDetailedFeatures ? '<th class="sortable" data-sort="trajs_docent"><span style="position: relative; display: inline-block;">Trajs<span class="new-badge" data-badge-shown="false">New!</span></span></th>' : ''}
108+
${hasDetailedFeatures ? '<th class="sortable" data-sort="trajs_docent">Trajs</th>' : ''}
112109
<th class="sortable" data-sort="org">Org</th>
113110
<th class="sortable" data-sort="date">Date</th>
114111
${!hasDetailedFeatures ? '<th class="sortable" data-sort="site">Site</th>' : ''}
@@ -180,25 +177,6 @@ function renderLeaderboardTable(leaderboard) {
180177
updateSelectAllCheckbox();
181178
}
182179

183-
// Handle new badges - only show animation once per page load
184-
const isBashOnlyTab = leaderboardNameLower === 'bash-only';
185-
const isMultilingualTab = leaderboardNameLower === 'multilingual';
186-
const showBadges = isBashOnlyTab || isMultilingualTab;
187-
const badges = container.querySelectorAll('.new-badge');
188-
badges.forEach(badge => {
189-
const badgeKey = 'trajs-badge-' + leaderboard.name;
190-
const hasBeenShown = badgesShown.has(badgeKey);
191-
192-
if (!showBadges || hasBeenShown) {
193-
badge.style.display = 'none';
194-
} else {
195-
badge.style.display = '';
196-
// Mark as shown after animation completes
197-
badge.addEventListener('animationend', () => {
198-
badgesShown.add(badgeKey);
199-
}, { once: true });
200-
}
201-
});
202180
}
203181

204182
function attachSortHandlers(leaderboardName) {
@@ -482,9 +460,8 @@ function openLeaderboard(leaderboardName) {
482460
setTimeout(updateTable, 0);
483461
}
484462

485-
// Show/hide compare button and badge based on leaderboard type
463+
// Show/hide compare button based on leaderboard type
486464
const compareBtn = document.getElementById('compare-btn');
487-
const compareButtonBadge = document.querySelector('.new-badge-button');
488465
const leaderboardNameLower = leaderboardName.toLowerCase();
489466
const isBashOnlyTab = leaderboardNameLower === 'bash-only';
490467
const isMultilingualTab = leaderboardNameLower === 'multilingual';
@@ -497,16 +474,6 @@ function openLeaderboard(leaderboardName) {
497474
compareBtn.style.display = 'none';
498475
}
499476
}
500-
501-
// Hide/show compare button badge based on tab and if already shown
502-
if (compareButtonBadge) {
503-
const hasBeenShown = badgesShown.has('compare-button-badge');
504-
if (!showDetailedFeatures || hasBeenShown) {
505-
compareButtonBadge.style.display = 'none';
506-
} else {
507-
compareButtonBadge.style.display = '';
508-
}
509-
}
510477
}
511478

512479
document.addEventListener('DOMContentLoaded', function() {
@@ -540,19 +507,6 @@ document.addEventListener('DOMContentLoaded', function() {
540507
});
541508
});
542509

543-
// Handle compare button badge - only show once per page load, only on bash-only
544-
const compareButtonBadge = document.querySelector('.new-badge-button');
545-
if (compareButtonBadge) {
546-
const hasBeenShown = badgesShown.has('compare-button-badge');
547-
if (hasBeenShown) {
548-
compareButtonBadge.style.display = 'none';
549-
} else {
550-
compareButtonBadge.addEventListener('animationend', () => {
551-
badgesShown.add('compare-button-badge');
552-
}, { once: true });
553-
}
554-
}
555-
556510
// Load initial tab based on hash, page name, or default to bash-only
557511
const hash = window.location.hash.slice(1).toLowerCase();
558512
const validTabs = ['bash-only', 'multilingual', 'verified', 'lite', 'test', 'multimodal'];

templates/_leaderboard_table.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<i class="fa-solid fa-chart-column"></i>
1313
<span>Compare results</span>
1414
</button>
15-
<span class="new-badge new-badge-button">New!</span>
1615
</div>
1716
<div class="filter-title">Filters:</div>
1817
<div class="filter-buttons">

0 commit comments

Comments
 (0)