reduce clutter on repo card

This commit is contained in:
Chris Scott committed 2025-11-25 16:46:09 -05:00
1 parent 45b8d7d117
commit eb0c161ecb
1 file changed
+8 -12
+8 -12
View File
@@ -31,7 +31,6 @@ export function RepoCard({
const [addBranchOpen, setAddBranchOpen] = useState(false);
const repoName = repo.repoUrl.split("/").slice(-1)[0].replace(".git", "");
const branchToDisplay = repo.currentBranch || repo.branch;
const displayName = branchToDisplay ? `${repoName} (${branchToDisplay})` : repoName;
const isReady = repo.cloneStatus === "ready";
return (
@@ -71,7 +70,7 @@ export function RepoCard({
isReady ? "cursor-pointer" : "cursor-not-allowed opacity-60"
}`}
>
{displayName}
{repoName}
</h3>
{repo.isWorktree && (
<Badge
@@ -80,21 +79,18 @@ export function RepoCard({
worktree
</Badge>
)}
{repo.cloneStatus && (
{repo.cloneStatus === "cloning" && (
<Badge
className={`text-xs px-2.5 py-0.5 ${
isReady
? "bg-green-600/20 text-green-400 border-green-600/40"
: repo.cloneStatus === "cloning"
? "bg-blue-600/20 text-blue-400 border-blue-600/40"
: "bg-red-600/20 text-red-400 border-red-600/40"
}`}
className="text-xs px-2.5 py-0.5 bg-blue-600/20 text-blue-400 border-blue-600/40"
>
{repo.cloneStatus}
cloning
</Badge>
)}
</div>
<p className="text-sm text-muted-foreground truncate">{repo.repoUrl}</p>
<p className="text-sm text-muted-foreground truncate flex items-center gap-1">
<GitBranch className="w-3 h-3" />
{branchToDisplay}
</p>
</div>