Skip to content

Commit 443ad5c

Browse files
committed
feat(site): add improved tooltips
Closes #20
1 parent f7a992e commit 443ad5c

3 files changed

Lines changed: 66 additions & 33 deletions

File tree

site/community.html

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@
106106
Round</th>
107107
<!-- Tool Calls Section -->
108108
<th scope="col" aria-label="Valid tool calls executable in state"
109-
title="Responses with valid tool calls that can be executed in the current game state."
110-
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">
109+
class="group relative cursor-help 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">
111110
<div class="flex items-center justify-center space-x-1">
112111
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
113112
class="w-4 h-4 text-green-600 dark:text-green-400">
@@ -123,10 +122,12 @@
123122
d="M11.5 9.5c.313 0 .62-.029.917-.084l1.962 1.962a2.121 2.121 0 0 1-3 3l-2.81-2.81 1.35-1.734c.05-.064.158-.158.426-.233.278-.078.639-.11 1.062-.102l.093.001ZM5 4l1.446 1.445a2.256 2.256 0 0 1-.047.21c-.075.268-.169.377-.233.427l-.61.474L4 5H2.655a.25.25 0 0 1-.224-.139l-1.35-2.7a.25.25 0 0 1 .047-.289l.745-.745a.25.25 0 0 1 .289-.047l2.7 1.35A.25.25 0 0 1 5 2.654V4Z" />
124123
</svg>
125124
</div>
125+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
126+
Responses with valid tool calls that can be executed in the current game state.
127+
</span>
126128
</th>
127129
<th scope="col" aria-label="Valid tool calls not executable in state"
128-
title="Responses with valid tool calls that cannot be executed in the current game state."
129-
class="px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell">
130+
class="group relative cursor-help px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell">
130131
<div class="flex items-center justify-center space-x-1">
131132
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
132133
class="w-4 h-4 text-yellow-500 dark:text-yellow-400">
@@ -142,10 +143,12 @@
142143
d="M11.5 9.5c.313 0 .62-.029.917-.084l1.962 1.962a2.121 2.121 0 0 1-3 3l-2.81-2.81 1.35-1.734c.05-.064.158-.158.426-.233.278-.078.639-.11 1.062-.102l.093.001ZM5 4l1.446 1.445a2.256 2.256 0 0 1-.047.21c-.075.268-.169.377-.233.427l-.61.474L4 5H2.655a.25.25 0 0 1-.224-.139l-1.35-2.7a.25.25 0 0 1 .047-.289l.745-.745a.25.25 0 0 1 .289-.047l2.7 1.35A.25.25 0 0 1 5 2.654V4Z" />
143144
</svg>
144145
</div>
146+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
147+
Responses with valid tool calls that cannot be executed in the current game state.
148+
</span>
145149
</th>
146150
<th scope="col" aria-label="Responses without valid tool calls"
147-
title="Responses without valid tool calls."
148-
class="px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell">
151+
class="group relative cursor-help px-3 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden sm:table-cell">
149152
<div class="flex items-center justify-center space-x-1">
150153
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"
151154
class="w-4 h-4 text-red-600 dark:text-red-400">
@@ -161,11 +164,13 @@
161164
d="M11.5 9.5c.313 0 .62-.029.917-.084l1.962 1.962a2.121 2.121 0 0 1-3 3l-2.81-2.81 1.35-1.734c.05-.064.158-.158.426-.233.278-.078.639-.11 1.062-.102l.093.001ZM5 4l1.446 1.445a2.256 2.256 0 0 1-.047.21c-.075.268-.169.377-.233.427l-.61.474L4 5H2.655a.25.25 0 0 1-.224-.139l-1.35-2.7a.25.25 0 0 1 .047-.289l.745-.745a.25.25 0 0 1 .289-.047l2.7 1.35A.25.25 0 0 1 5 2.654V4Z" />
162165
</svg>
163166
</div>
167+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
168+
Responses without valid tool calls.
169+
</span>
164170
</th>
165171
<!-- Tokens Section -->
166172
<th scope="col" aria-label="Average input tokens"
167-
title="Average input tokens per tool call."
168-
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">
173+
class="group relative cursor-help 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">
169174
<div class="flex items-center justify-center space-x-1">
170175
<span>In</span>
171176
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
@@ -184,10 +189,12 @@
184189
d="M11.5 9.5c.313 0 .62-.029.917-.084l1.962 1.962a2.121 2.121 0 0 1-3 3l-2.81-2.81 1.35-1.734c.05-.064.158-.158.426-.233.278-.078.639-.11 1.062-.102l.093.001ZM5 4l1.446 1.445a2.256 2.256 0 0 1-.047.21c-.075.268-.169.377-.233.427l-.61.474L4 5H2.655a.25.25 0 0 1-.224-.139l-1.35-2.7a.25.25 0 0 1 .047-.289l.745-.745a.25.25 0 0 1 .289-.047l2.7 1.35A.25.25 0 0 1 5 2.654V4Z" />
185190
</svg>
186191
</div>
192+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
193+
Average input tokens per tool call.
194+
</span>
187195
</th>
188196
<th scope="col" aria-label="Average output tokens"
189-
title="Average output tokens per tool call (including reasoning tokens)."
190-
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden lg:table-cell">
197+
class="group relative cursor-help px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden lg:table-cell">
191198
<div class="flex items-center justify-center space-x-1">
192199
<span>Out</span>
193200
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
@@ -206,11 +213,13 @@
206213
d="M11.5 9.5c.313 0 .62-.029.917-.084l1.962 1.962a2.121 2.121 0 0 1-3 3l-2.81-2.81 1.35-1.734c.05-.064.158-.158.426-.233.278-.078.639-.11 1.062-.102l.093.001ZM5 4l1.446 1.445a2.256 2.256 0 0 1-.047.21c-.075.268-.169.377-.233.427l-.61.474L4 5H2.655a.25.25 0 0 1-.224-.139l-1.35-2.7a.25.25 0 0 1 .047-.289l.745-.745a.25.25 0 0 1 .289-.047l2.7 1.35A.25.25 0 0 1 5 2.654V4Z" />
207214
</svg>
208215
</div>
216+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
217+
Average output tokens per tool call (including reasoning tokens).
218+
</span>
209219
</th>
210220
<!-- Performance Section -->
211221
<th scope="col" aria-label="Average time per tool call"
212-
title="Average time per tool call in seconds."
213-
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">
222+
class="group relative cursor-help 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">
214223
<div class="flex items-center justify-center space-x-1">
215224
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
216225
<path fill-rule="evenodd"
@@ -227,10 +236,12 @@
227236
</svg>
228237
<span class="text-xs">[s]</span>
229238
</div>
239+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
240+
Average time per tool call in seconds.
241+
</span>
230242
</th>
231243
<th scope="col" aria-label="Average cost per tool call"
232-
title="Average cost per tool call in milli-dollars."
233-
class="px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden md:table-cell">
244+
class="group relative cursor-help px-4 py-3 text-center text-sm font-semibold text-zinc-600 dark:text-zinc-300 hidden md:table-cell">
234245
<div class="flex items-center justify-center space-x-1">
235246
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="w-4 h-4">
236247
<path
@@ -249,6 +260,9 @@
249260
</svg>
250261
<span class="text-xs">[m$]</span>
251262
</div>
263+
<span class="pointer-events-none absolute right-full top-1/2 z-[9999] mr-2 -translate-y-1/2 whitespace-nowrap rounded-md bg-zinc-900 px-3 py-2 text-xs font-normal text-white opacity-0 shadow-md transition-opacity duration-200 group-hover:opacity-100 dark:bg-zinc-100 dark:text-zinc-900">
264+
Average cost per tool call in milli-dollars.
265+
</span>
252266
</th>
253267
</tr>
254268
</thead>

0 commit comments

Comments
 (0)