From c7d01b1c6e98c61f7ed3a62048cc04ed2c48b528 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 5 Dec 2025 16:11:18 -0800 Subject: [PATCH] Add loading state to branch switcher during branch switch --- frontend/src/components/repo/BranchSwitcher.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/repo/BranchSwitcher.tsx b/frontend/src/components/repo/BranchSwitcher.tsx index e4d36306..6651e0c5 100644 --- a/frontend/src/components/repo/BranchSwitcher.tsx +++ b/frontend/src/components/repo/BranchSwitcher.tsx @@ -7,7 +7,7 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { GitBranch, Check, Plus, GitCommit } from "lucide-react"; +import { GitBranch, Check, Plus, GitCommit, Loader2 } from "lucide-react"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; import { listBranches, switchBranch } from "@/api/repos"; import { useGitStatus } from "@/api/git"; @@ -61,9 +61,14 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep