From 2e9485d64fb605d96e6157c5f71e363fe69ce14a Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Thu, 16 Apr 2026 18:35:41 +0800 Subject: [PATCH] fix(views): make autopilot run history rows fully clickable The Run History list only had the 'Issue linked' text as a click target. Wrap the entire row in AppLink when an issue is linked so the whole row navigates to the issue. --- .../components/autopilot-detail-page.tsx | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsx index da1ec1164..23c45bbea 100644 --- a/packages/views/autopilots/components/autopilot-detail-page.tsx +++ b/packages/views/autopilots/components/autopilot-detail-page.tsx @@ -63,16 +63,14 @@ function RunRow({ run }: { run: AutopilotRun }) { const cfg = (RUN_STATUS_CONFIG[run.status] ?? RUN_STATUS_CONFIG["issue_created"])!; const StatusIcon = cfg.icon; - return ( -
+ const content = ( + <> {cfg.label} {run.source} {run.issue_id ? ( - - Issue linked - + "Issue linked" ) : run.failure_reason ? ( {run.failure_reason} ) : null} @@ -80,8 +78,20 @@ function RunRow({ run }: { run: AutopilotRun }) { {formatDate(run.triggered_at || run.created_at)} -
+ ); + + const rowClass = "flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-accent/30 transition-colors"; + + if (run.issue_id) { + return ( + + {content} + + ); + } + + return
{content}
; } function TriggerRow({ trigger, autopilotId }: { trigger: AutopilotTrigger; autopilotId: string }) {