diff --git a/apps/web/app/(dashboard)/issues/[id]/page.test.tsx b/apps/web/app/(dashboard)/issues/[id]/page.test.tsx index 6e23b41f..01408cf7 100644 --- a/apps/web/app/(dashboard)/issues/[id]/page.test.tsx +++ b/apps/web/app/(dashboard)/issues/[id]/page.test.tsx @@ -106,7 +106,6 @@ const mockIssue: Issue = { parent_issue_id: null, acceptance_criteria: [], context_refs: [], - repository: null, position: 0, due_date: "2026-06-01T00:00:00Z", created_at: "2026-01-15T00:00:00Z", diff --git a/apps/web/app/(dashboard)/issues/[id]/page.tsx b/apps/web/app/(dashboard)/issues/[id]/page.tsx index 76e56bca..1e2aa91d 100644 --- a/apps/web/app/(dashboard)/issues/[id]/page.tsx +++ b/apps/web/app/(dashboard)/issues/[id]/page.tsx @@ -5,7 +5,6 @@ import Link from "next/link"; import { useRouter } from "next/navigation"; import { ChevronRight, - GitBranch, Link2, Pencil, Send, @@ -270,110 +269,6 @@ function ContextRefsEditor({ ); } -// --------------------------------------------------------------------------- -// Repository Editor -// --------------------------------------------------------------------------- - -function RepositoryEditor({ - repository, - onUpdate, -}: { - repository: { url: string; branch?: string; path?: string } | null; - onUpdate: (updates: Partial) => void; -}) { - const [open, setOpen] = useState(false); - const [url, setUrl] = useState(""); - const [branch, setBranch] = useState(""); - const [path, setPath] = useState(""); - - const handleOpen = (v: boolean) => { - if (v) { - setUrl(repository?.url ?? ""); - setBranch(repository?.branch ?? ""); - setPath(repository?.path ?? ""); - } - setOpen(v); - }; - - const save = () => { - if (!url.trim()) { - onUpdate({ repository: null }); - } else { - onUpdate({ - repository: { - url: url.trim(), - branch: branch.trim() || undefined, - path: path.trim() || undefined, - }, - }); - } - setOpen(false); - }; - - const clear = () => { - onUpdate({ repository: null }); - setOpen(false); - }; - - return ( - - - {repository ? ( - <> - - {repository.branch ?? "main"} - - ) : ( - None - )} - - -
Repository
-
- setUrl(e.target.value)} - placeholder="https://github.com/org/repo" - className="text-xs" - autoFocus - /> - setBranch(e.target.value)} - placeholder="Branch" - className="text-xs" - /> - setPath(e.target.value)} - placeholder="Path" - className="text-xs" - /> -
-
- {repository && ( - - )} - -
-
-
- ); -} - // --------------------------------------------------------------------------- // Page // --------------------------------------------------------------------------- @@ -712,10 +607,6 @@ export default function IssueDetailPage({ - - - -