Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 43 additions & 8 deletions site/community.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,41 @@
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="preconnect" href="https://cdn.tailwindcss.com" crossorigin>
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* Tooltip styles */
.tooltip {
position: relative;
cursor: help;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
z-index: 50;

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The z-index values are inconsistent between the two files. index.html uses z-index: 9999 while community.html uses z-index: 50. This inconsistency could lead to different layering behavior and potential issues with tooltips being hidden behind other elements. Consider using the same z-index value (preferably 9999) in both files to ensure consistent tooltip layering.

Suggested change
z-index: 50;
z-index: 9999;

Copilot uses AI. Check for mistakes.
visibility: hidden;
opacity: 0;
transition: opacity 0.2s ease-in-out;
background-color: #18181b;
color: #fff;
font-size: 0.75rem;
font-weight: 400;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
Comment on lines +41 to +42

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tooltip padding and border-radius differ from index.html. This file uses padding: 0.25rem 0.5rem and border-radius: 0.25rem, while index.html uses padding: 0.5rem 0.75rem and border-radius: 0.375rem. For consistency across both pages, these values should match. The larger padding in index.html provides better readability and visual balance.

Suggested change
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;

Copilot uses AI. Check for mistakes.
white-space: nowrap;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 0.5rem;
Comment on lines +44 to +47

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tooltip positioning is inconsistent between index.html and community.html. In index.html, tooltips appear below the header (using top: calc(100% + 0.5rem)), but in community.html they appear above (using bottom: 100% and margin-bottom: 0.5rem). According to the PR description, "Tooltips appear below the column headers on hover", so community.html should be updated to match index.html's positioning to ensure consistent behavior across both pages.

Suggested change
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 0.5rem;
top: calc(100% + 0.5rem);
left: 50%;
transform: translateX(-50%);

Copilot uses AI. Check for mistakes.
pointer-events: none;

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tooltip styling in community.html is missing the box-shadow that is present in index.html (box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);). This shadow provides depth and improves the visual hierarchy of the tooltip. For consistency and better UX, add the same box-shadow to the .tooltip::after rule in community.html.

Suggested change
pointer-events: none;
pointer-events: none;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
0 2px 4px -2px rgb(0 0 0 / 0.1);

Copilot uses AI. Check for mistakes.
}
.dark .tooltip::after {
background-color: #f4f4f5;
color: #18181b;
}
.tooltip:hover::after {
visibility: visible;
opacity: 1;
}

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The community.html file is missing the overflow visibility rules that are present in index.html (lines 61-71). These rules ensure that tooltips can overflow the table container and remain visible. Without these styles, tooltips may be clipped by the table's overflow settings, especially when they appear near the edges of the table. Add the following CSS rules after the tooltip styles: styles for thead, thead th, and .overflow-x-auto to set overflow: visible !important where appropriate.

Suggested change
}
}
/* Ensure table and scroll containers don't clip tooltips */
thead {
overflow: visible !important;
}
thead th {
overflow: visible !important;
}
.overflow-x-auto {
overflow-x: auto;
overflow-y: visible !important;
}

Copilot uses AI. Check for mistakes.
Comment on lines +54 to +57

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSS-only tooltip implementation lacks keyboard accessibility. Users navigating with keyboards cannot trigger tooltips since the :hover pseudo-class only responds to mouse interactions. Consider adding tabindex="0" to the tooltip elements and using :focus in addition to :hover in the CSS selector (e.g., .tooltip:hover::after, .tooltip:focus::after) to ensure keyboard users can also access the tooltip content.

Copilot uses AI. Check for mistakes.
</style>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="config.js"></script>
<script src="script.js"></script>
Expand Down Expand Up @@ -103,11 +138,11 @@
<!-- Stats Section -->
<th scope="col" aria-label="Average final round"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 border-l-2 border-zinc-300 dark:border-zinc-600">
Round</th>
<span class="tooltip" data-tooltip="Average round reached by playing the game">Round</span></th>
<!-- Tool Calls Section -->
<th scope="col" aria-label="Valid tool calls executable in state"
class="px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell border-l-2 border-zinc-300 dark:border-zinc-600">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Responses with valid tool calls that can be executed in the current game state">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
class="w-4 h-4 text-green-600 dark:text-green-400">
<path fill-rule="evenodd"
Expand All @@ -125,7 +160,7 @@
</th>
<th scope="col" aria-label="Valid tool calls not executable in state"
class="px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Responses with valid tool calls that cannot be executed in the current game state">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
class="w-4 h-4 text-yellow-500 dark:text-yellow-400">
<path fill-rule="evenodd"
Expand All @@ -143,7 +178,7 @@
</th>
<th scope="col" aria-label="Responses without valid tool calls"
class="px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Responses without valid tool calls">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
class="w-4 h-4 text-red-600 dark:text-red-400">
<path fill-rule="evenodd"
Expand All @@ -162,7 +197,7 @@
<!-- Tokens Section -->
<th scope="col" aria-label="Average input tokens"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden lg:table-cell border-l-2 border-zinc-300 dark:border-zinc-600">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average input tokens per tool call">
<span>In</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path d="M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z" />
Expand All @@ -183,7 +218,7 @@
</th>
<th scope="col" aria-label="Average output tokens"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden lg:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average output tokens per tool call (including reasoning tokens)">
<span>Out</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path d="M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z" />
Expand All @@ -205,7 +240,7 @@
<!-- Performance Section -->
<th scope="col" aria-label="Average time per tool call"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden md:table-cell border-l-2 border-zinc-300 dark:border-zinc-600">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average time per tool call in seconds">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path fill-rule="evenodd"
d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Zm7.75-4.25a.75.75 0 0 0-1.5 0V8c0 .414.336.75.75.75h3.25a.75.75 0 0 0 0-1.5h-2.5v-3.5Z"
Expand All @@ -224,7 +259,7 @@
</th>
<th scope="col" aria-label="Average cost per tool call"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden md:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average cost per tool call in milli-dollars">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path
d="M6.375 5.5h.875v1.75h-.875a.875.875 0 1 1 0-1.75ZM8.75 10.5V8.75h.875a.875.875 0 0 1 0 1.75H8.75Z" />
Expand Down
62 changes: 54 additions & 8 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,52 @@
<link rel="preconnect" href="https://cdn.tailwindcss.com" crossorigin>
<link rel="preconnect" href="https://player.twitch.tv" crossorigin>
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* Tooltip styles */
.tooltip {
position: relative;
cursor: help;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
z-index: 9999;
visibility: hidden;
opacity: 0;
transition: opacity 0.2s ease-in-out;
background-color: #18181b;
color: #fff;
font-size: 0.75rem;
font-weight: 400;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
white-space: nowrap;
top: calc(100% + 0.5rem);
left: 50%;
transform: translateX(-50%);
pointer-events: none;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.dark .tooltip::after {
background-color: #f4f4f5;
color: #18181b;
}
.tooltip:hover::after {
visibility: visible;
opacity: 1;
}
Comment on lines +57 to +60

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSS-only tooltip implementation lacks keyboard accessibility. Users navigating with keyboards cannot trigger tooltips since the :hover pseudo-class only responds to mouse interactions. The cursor: help style also doesn't provide any indication to keyboard users that additional information is available. Consider adding tabindex="0" to the tooltip elements and using :focus in addition to :hover in the CSS selector (e.g., .tooltip:hover::after, .tooltip:focus::after) to ensure keyboard users can also access the tooltip content.

Copilot uses AI. Check for mistakes.
/* Allow tooltips to overflow table container */
thead {
overflow: visible !important;
}
thead th {
overflow: visible !important;
}
/* The table wrapper needs overflow-y visible for tooltips above */
.overflow-x-auto {
overflow-y: visible !important;
}
Comment on lines +68 to +71

Copilot AI Feb 5, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting overflow-y: visible !important on .overflow-x-auto elements could interfere with the intended scrolling behavior. The .overflow-x-auto class is typically used to enable horizontal scrolling for tables on smaller screens. By forcing overflow-y: visible, you may prevent proper clipping of content in the vertical direction, which could lead to layout issues. Consider using a more targeted approach, such as adding a specific wrapper class for tables with tooltips or using overflow: clip for the y-axis while maintaining auto for the x-axis in CSS Grid/Flexbox contexts where supported.

Suggested change
/* The table wrapper needs overflow-y visible for tooltips above */
.overflow-x-auto {
overflow-y: visible !important;
}

Copilot uses AI. Check for mistakes.
</style>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="config.js"></script>
<script src="script.js"></script>
Expand Down Expand Up @@ -136,11 +182,11 @@
<!-- Stats Section -->
<th scope="col" aria-label="Average final round"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 border-l-2 border-zinc-300 dark:border-zinc-600">
Round</th>
<span class="tooltip" data-tooltip="Average round reached by playing the game">Round</span></th>
<!-- Tool Calls Section -->
<th scope="col" aria-label="Valid tool calls executable in state"
class="px-3 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden sm:table-cell border-l-2 border-zinc-300 dark:border-zinc-600">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Responses with valid tool calls that can be executed in the current game state">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
class="w-4 h-4 text-green-600 dark:text-green-400">
<path fill-rule="evenodd"
Expand All @@ -158,7 +204,7 @@
</th>
<th scope="col" aria-label="Valid tool calls not executable in state"
class="px-3 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden sm:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Responses with valid tool calls that cannot be executed in the current game state">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
class="w-4 h-4 text-yellow-500 dark:text-yellow-400">
<path fill-rule="evenodd"
Expand All @@ -176,7 +222,7 @@
</th>
<th scope="col" aria-label="Responses without valid tool calls"
class="px-3 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden sm:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Responses without valid tool calls">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
class="w-4 h-4 text-red-600 dark:text-red-400">
<path fill-rule="evenodd"
Expand All @@ -195,7 +241,7 @@
<!-- Tokens Section -->
<th scope="col" aria-label="Average input tokens"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden lg:table-cell border-l-2 border-zinc-300 dark:border-zinc-600">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average input tokens per tool call">
<span>In</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path d="M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z" />
Expand All @@ -216,7 +262,7 @@
</th>
<th scope="col" aria-label="Average output tokens"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden lg:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average output tokens per tool call (including reasoning tokens)">
<span>Out</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path d="M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z" />
Expand All @@ -238,7 +284,7 @@
<!-- Performance Section -->
<th scope="col" aria-label="Average time per tool call"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden md:table-cell border-l-2 border-zinc-300 dark:border-zinc-600">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average time per tool call in seconds">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path fill-rule="evenodd"
d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Zm7.75-4.25a.75.75 0 0 0-1.5 0V8c0 .414.336.75.75.75h3.25a.75.75 0 0 0 0-1.5h-2.5v-3.5Z"
Expand All @@ -257,7 +303,7 @@
</th>
<th scope="col" aria-label="Average cost per tool call"
class="px-4 py-3 text-center text-sm font-semibold text-zinc-700 dark:text-zinc-300 hidden md:table-cell">
<div class="flex items-center justify-center space-x-1">
<div class="tooltip flex items-center justify-center space-x-1" data-tooltip="Average cost per tool call in milli-dollars">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
<path
d="M6.375 5.5h.875v1.75h-.875a.875.875 0 1 1 0-1.75ZM8.75 10.5V8.75h.875a.875.875 0 0 1 0 1.75H8.75Z" />
Expand Down
Loading