Skip to content

Commit 07aebfc

Browse files
authored
ui: enhance agent overview page
ui: enhance agent overview page
2 parents 692bc2c + b2e9c28 commit 07aebfc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

ui/src/pages/AgentOverviewPage.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
type LucideIcon,
2323
} from "lucide-react";
2424
import { api, ApiError, type AgentConfigView, type BaselineRow } from "@/lib/api";
25-
import { fmtAbs, fmtRel, hourlyBuckets, truncate } from "@/lib/format";
25+
import { fmtAbs, fmtRel, hourlyBuckets } from "@/lib/format";
2626
import { useNowTick } from "@/lib/hooks";
2727
import { TopBar } from "@/components/TopBar";
2828
import { Pill, VerdictPill } from "@/components/Pill";
@@ -411,13 +411,13 @@ export function AgentOverviewPage() {
411411
<td>
412412
<VerdictPill verdict={p.verdict} />
413413
</td>
414-
<td>
414+
<td className="max-w-0">
415415
<Link
416416
to={`/agent/logs/${p.id}`}
417417
title={p.template}
418-
className="font-mono text-2xs text-link hover:underline"
418+
className="block truncate font-mono text-2xs text-link hover:underline"
419419
>
420-
{truncate(p.template, 80)}
420+
{p.template}
421421
</Link>
422422
</td>
423423
</tr>
@@ -483,15 +483,15 @@ export function AgentOverviewPage() {
483483
<td>
484484
<VerdictPill verdict={e.verdict} />
485485
</td>
486-
<td>
486+
<td className="max-w-0">
487487
<Link
488488
to={`/agent/decisions/shadow/${encodeURIComponent(
489489
e.pattern_id,
490490
)}`}
491491
title={e.sample_message}
492-
className="font-mono text-2xs text-ink-100 hover:text-link hover:underline"
492+
className="block truncate font-mono text-2xs text-ink-100 hover:text-link hover:underline"
493493
>
494-
{truncate(e.sample_message, 80)}
494+
{e.sample_message}
495495
</Link>
496496
</td>
497497
<td

0 commit comments

Comments
 (0)