@@ -16,9 +16,6 @@ const statusToNaturalLanguage = {
1616const loadedLeaderboards = new Set ( ) ;
1717let leaderboardData = null ;
1818
19- // Track which badges have been shown to avoid re-animating
20- const badgesShown = new Set ( ) ;
21-
2219const sortState = { field : 'resolved' , direction : 'desc' } ;
2320
2421function 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
204182function 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
512479document . 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' ] ;
0 commit comments