From c725184262948c2364ace8b272dc73f423512cb9 Mon Sep 17 00:00:00 2001 From: John Pangas Date: Mon, 31 Aug 2026 14:09:30 -0600 Subject: [PATCH] Add link to action_url --- services/hackbot-ui/components/RunDetail.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/services/hackbot-ui/components/RunDetail.tsx b/services/hackbot-ui/components/RunDetail.tsx index 68b9a67faa..796bfbe0c5 100644 --- a/services/hackbot-ui/components/RunDetail.tsx +++ b/services/hackbot-ui/components/RunDetail.tsx @@ -25,6 +25,13 @@ function commentPreview(a: RunAction): string | null { return typeof text === "string" && text.trim() ? text : null; } +//Every action may have a result.url, which is a link to the external system (e.g. Bugzilla) where the action was applied. +// We surface that as an "Open" link in the actions list. +function actionUrl(a: RunAction): string | null { + const url = a.result?.url; + return typeof url === "string" && url.trim() ? url : null; +} + const POLL_MS = 4000; function formatBytes(n: number): string { @@ -271,11 +278,17 @@ export function RunDetail({ runId }: { runId: string }) {