From 5df3b5c17d38a1fcb9e696efe55498c602ea5691 Mon Sep 17 00:00:00 2001 From: app_modernization Date: Fri, 24 Apr 2026 13:02:11 +0800 Subject: [PATCH] fix(dashboard): use issue.url instead of hardcoded REPO_URL for issue links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When multiple repos are configured, clicking an issue link always navigated to the primary repo (dev-pilot) regardless of which repo the issue belonged to. The GitHub CLI already returns the correct full URL in the `url` field — use it directly instead of constructing URLs from the hardcoded REPO_URL constant. Co-Authored-By: Claude Opus 4 --- dashboard/app/components/IssueDetail.tsx | 6 +++--- dashboard/app/components/IssuePanel.tsx | 4 ++-- dashboard/app/components/IssuesTab.tsx | 4 ++-- dashboard/app/page.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dashboard/app/components/IssueDetail.tsx b/dashboard/app/components/IssueDetail.tsx index 5f6c73e..466cc6c 100644 --- a/dashboard/app/components/IssueDetail.tsx +++ b/dashboard/app/components/IssueDetail.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; -import { GHIssue, ClaudeTask, TaskPhase, REPO_URL } from '@/lib/types'; +import { GHIssue, ClaudeTask, TaskPhase } from '@/lib/types'; type FixMode = 'normal' | 'auto'; @@ -49,7 +49,7 @@ export default function IssueDetail({ issue, loading, tasks, onBack, onAssign }:
)} )} { - const issueUrl = `${REPO_URL}/issues/${issue.number}`; + const issueUrl = issue.url; try { const res = await fetch('/api/tasks/assign', { method: 'POST',