diff --git a/services/hackbot-ui/components/RunDetail.tsx b/services/hackbot-ui/components/RunDetail.tsx index 64dc77779a..c90c0fc0ec 100644 --- a/services/hackbot-ui/components/RunDetail.tsx +++ b/services/hackbot-ui/components/RunDetail.tsx @@ -19,9 +19,9 @@ import { parseTestPlan, TestPlanView } from "./TestPlanView"; // Proposed bugzilla.add_comment actions carry the comment body in params.text; // pull it out so we can preview what would be posted to the bug. -function commentPreview(a: RunAction): string | null { - if (a.type !== "bugzilla.add_comment") return null; - const text = a.params?.text; +function commentPreview(action: RunAction): string | null { + if (action.type !== "bugzilla.add_comment") return null; + const text = action.params?.text; return typeof text === "string" && text.trim() ? text : null; } @@ -173,9 +173,9 @@ export function RunDetail({ runId }: { runId: string }) { // Both pending and failed actions are (re)applied by the apply endpoint — it // skips only already-applied ones — so one button covers applying and retry. const pendingActions = - actions?.filter((a) => a.status === "pending").length ?? 0; + actions?.filter((action) => action.status === "pending").length ?? 0; const failedActions = - actions?.filter((a) => a.status === "failed").length ?? 0; + actions?.filter((action) => action.status === "failed").length ?? 0; const applyLabel = pendingActions && failedActions ? "Apply pending & retry failed actions" @@ -269,21 +269,27 @@ export function RunDetail({ runId }: { runId: string }) {
{a.type}
+
+ {action.status}
+
+ {action.type}
{url && (
Open
)}
- {a.error && {a.error}}
+ {action.error && (
+ {action.error}
+ )}