Skip to content

Commit f4768bf

Browse files
committed
fix: update column header from "Avg Latency" to "Avg Duration" and add external link to task names
1 parent 8bd4058 commit f4768bf

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

site/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default async function Home() {
188188
<th className="px-6 py-4 w-[25%]">Model</th>
189189
<th className="px-6 py-4 w-[15%]">Agent</th>
190190
<th className="px-6 py-4 w-[15%] text-center">Passed</th>
191-
<th className="px-6 py-4 w-[15%] text-right">Avg Latency</th>
191+
<th className="px-6 py-4 w-[15%] text-right">Avg Duration</th>
192192
<th className="px-6 py-4 w-[30%]">Success Rate</th>
193193
</tr>
194194
</thead>

site/app/tasks/page.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useState, useMemo, useEffect, Suspense } from "react";
4-
import { CheckCircle2, XCircle, Search, AlertTriangle, ArrowUpDown, ArrowUp, ArrowDown, Filter, X } from "lucide-react";
4+
import { CheckCircle2, XCircle, Search, AlertTriangle, ArrowUpDown, ArrowUp, ArrowDown, Filter, X, ExternalLink } from "lucide-react";
55
import Link from "next/link";
66
import { useRouter, useSearchParams, usePathname } from "next/navigation";
77
import { clsx, type ClassValue } from "clsx";
@@ -256,7 +256,16 @@ function TasksContent() {
256256
<div className="px-4 sm:px-6 py-4 bg-secondary/30 border-b border-border flex flex-col sm:flex-row justify-between items-start sm:items-center gap-2 sm:gap-0">
257257
<h3 className="text-lg font-semibold font-mono text-foreground flex items-center gap-2 w-full sm:w-auto">
258258
<span className="text-muted-foreground/50 text-sm shrink-0">#{index + 1}</span>
259-
<span className="truncate" title={task.taskName}>{task.taskName}</span>
259+
<a
260+
href={`https://github.com/TabbyML/jj-benchmark/tree/main/tasks/${task.taskName}/instruction.md`}
261+
target="_blank"
262+
rel="noopener noreferrer"
263+
className="truncate hover:underline hover:text-primary transition-colors flex items-center gap-1.5"
264+
title={`View ${task.taskName} on GitHub`}
265+
>
266+
{task.taskName}
267+
<ExternalLink className="w-4 h-4 opacity-50" />
268+
</a>
260269
</h3>
261270
<div className="text-sm text-muted-foreground shrink-0">
262271
{task.trials.length} trials
@@ -274,7 +283,7 @@ function TasksContent() {
274283
onClick={() => toggleSort("latency")}
275284
>
276285
<div className="flex items-center justify-end gap-1 sm:gap-2">
277-
Latency
286+
Duration
278287
{renderSortIcon("latency")}
279288
</div>
280289
</th>

0 commit comments

Comments
 (0)