Skip to content

Commit 6c65ced

Browse files
committed
Uses remix <Link> component instead of <a>
1 parent 2e8eee1 commit 6c65ced

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

apps/webapp/app/components/logs/LogsTable.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ArrowPathIcon, ArrowTopRightOnSquareIcon } from "@heroicons/react/20/solid";
1+
import { ArrowPathIcon } from "@heroicons/react/20/solid";
2+
import { Link } from "@remix-run/react";
23
import { formatDurationNanoseconds } from "@trigger.dev/core/v3";
34
import { type ReactNode, useEffect, useRef } from "react";
45
import { cn } from "~/utils/cn";
@@ -11,6 +12,7 @@ import { v3RunSpanPath } from "~/utils/pathBuilder";
1112
import { DateTime } from "../primitives/DateTime";
1213
import { Paragraph } from "../primitives/Paragraph";
1314
import { Spinner } from "../primitives/Spinner";
15+
import { SimpleTooltip } from "../primitives/Tooltip";
1416
import {
1517
Table,
1618
TableBlankRow,
@@ -208,14 +210,18 @@ export function LogsTable({
208210
<DateTime date={log.startTime} />
209211
</TableCell>
210212
<TableCell>
211-
<a
212-
href={runPath}
213-
className="flex items-center gap-1 text-blue-500 hover:underline"
214-
title="View run"
215-
>
216-
<span className="font-mono text-xs">{log.runId.slice(0, 12)}...</span>
217-
<ArrowTopRightOnSquareIcon className="size-3" />
218-
</a>
213+
<SimpleTooltip
214+
content="Jump to run"
215+
disableHoverableContent
216+
button={
217+
<Link
218+
to={runPath}
219+
className="flex items-center gap-1 text-blue-500 hover:text-blue-400"
220+
>
221+
{log.runId.slice(0, 12)}
222+
</Link>
223+
}
224+
/>
219225
</TableCell>
220226
<TableCell onClick={handleRowClick} hasAction>
221227
<span className="font-mono text-xs">{log.taskIdentifier}</span>

0 commit comments

Comments
 (0)