The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 13:15 UTC
fix(web): use neutral indicators for inactive source control providers (#22778)
Utkarsh Patil committed
Oct 28, 2026 at 14:20 UTC
dac58fa7a6f79d9d0a8053a3c0e2e43f2997e04d
1 file changed
+7
-3
apps/web/src/components/settings/SourceControlSettings.tsx
+7
-3
@@ -74,13 +74,13 @@ function isVcsNotReady(item: VcsDiscoveryItem | SourceControlProviderDiscoveryIt
74
75
function authPresentation(auth: SourceControlProviderAuth): {
76
readonly label: string;
77
- readonly badge: "warning" | null;
77
+ readonly badge: "secondary" | null;
78
} {
79
if (auth.status === "authenticated") {
80
return { label: "Authenticated", badge: null };
81
}
82
if (auth.status === "unauthenticated") {
83
- return { label: "Not authenticated", badge: "warning" };
83
+ return { label: "Not authenticated", badge: "secondary" };
84
}
85
return { label: "Status unknown", badge: null };
86
}
@@ -98,8 +98,12 @@ function RedactedAccount(props: { readonly account: string | null }) {
98
99
function itemStatusDot(item: VcsDiscoveryItem | SourceControlProviderDiscoveryItem): string {
100
if (isVcsNotReady(item)) return "bg-muted-foreground/35";
101
+ if (isProviderDiscoveryItem(item)) {
102
+ return item.status === "available" && item.auth.status === "authenticated"
103
+ ? "bg-success"
104
+ : "bg-muted-foreground/35";
105
+ }
106
if (item.status !== "available") return "bg-warning";
102
- if (isProviderDiscoveryItem(item) && item.auth.status !== "authenticated") return "bg-warning";
107
return "bg-success";
108
}
109