diff --git a/apps/web/app/office/projects/[id]/project-repos-section.tsx b/apps/web/app/office/projects/[id]/project-repos-section.tsx
index 314beed358..550e79952f 100644
--- a/apps/web/app/office/projects/[id]/project-repos-section.tsx
+++ b/apps/web/app/office/projects/[id]/project-repos-section.tsx
@@ -1,16 +1,13 @@
"use client";
import { useCallback, useMemo } from "react";
-import { IconCode, IconWorld, IconX } from "@tabler/icons-react";
-import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { toast } from "sonner";
import { updateProject } from "@/lib/api/domains/office-api";
import { useAppStore } from "@/components/state-provider";
import { useRepositories } from "@/hooks/domains/workspace/use-repositories";
-import { formatUserHomePath } from "@/lib/utils";
import type { Project } from "@/lib/state/slices/office/types";
-import type { Repository } from "@/lib/types/http";
-import { ProjectRepositoryPicker } from "./project-repository-picker";
+import { ProjectRepositoryPicker } from "../project-repository-picker";
+import { RepoChip } from "../repo-chip";
import { normalizeRepos } from "../normalize-repos";
type ProjectReposSectionProps = {
@@ -73,7 +70,12 @@ export function ProjectReposSection({ project }: ProjectReposSectionProps) {
onRemove={() => handleRemove(repo)}
/>
))}
-
No repositories added yet.
@@ -81,63 +83,3 @@ export function ProjectReposSection({ project }: ProjectReposSectionProps) { ); } - -/** - * A single attached repository, rendered as a chip with friendly label - * + remove button. Falls back to the raw stored string when no - * workspace row matches (custom URL or unimported local path). - */ -function RepoChip({ - value, - workspaceRepos, - onRemove, -}: { - value: string; - workspaceRepos: Repository[]; - onRemove: () => void; -}) { - const matched = workspaceRepos.find((r) => r.local_path === value); - const isUrl = looksLikeUrl(value); - const label = matched?.name ?? (isUrl ? value : leafSegment(value)); - const detail = matched?.local_path ?? value; - const displayDetail = isUrl ? value : formatUserHomePath(detail); - - return ( -Git URLs or local paths where agents will work
-