Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(settings): remove orphan repo count from GitHub tab shortcut card (#3342)
Bohan Jiangb343e13ec42d
diff --git a/packages/views/settings/components/github-tab.tsx b/packages/views/settings/components/github-tab.tsxindex 78a56a54f9..51487163b2 100644--- a/packages/views/settings/components/github-tab.tsx+++ b/packages/views/settings/components/github-tab.tsx@@ -70,9 +70,6 @@ export function GitHubTab() {const [disconnectTarget, setDisconnectTarget] = useState<string | null>(null);const [disconnecting, setDisconnecting] = useState(false);- const githubRepoCount =- workspace?.repos?.filter((r) => /github\.com/i.test(r.url ?? "")).length ?? 0;-async function persistSetting(key: SettingsKey, next: boolean) {if (!workspace || savingKey) return;setSavingKey(key);@@ -314,14 +311,9 @@ export function GitHubTab() {<Card><CardContent><div className="flex flex-wrap items-center justify-between gap-3">- <div className="space-y-1">- <p className="text-sm font-medium">- {t(($) => $.github.repositories_shortcut_label)}- </p>- <p className="text-xs text-muted-foreground tabular-nums">- {githubRepoCount}- </p>- </div>+ <p className="text-sm font-medium">+ {t(($) => $.github.repositories_shortcut_label)}+ </p><Buttonvariant="outline"size="sm"