Compare commits

...

1 Commits

Author SHA1 Message Date
J
d30ea56f0e fix(settings): remove orphan repo count from GitHub tab shortcut card
The bare "N" under the Repositories shortcut had no label and was
adjacent to a sentence ("Repository URLs live in the Repositories
tab") that has no semantic link to a number, so users read it as a
typo. The card is a navigation shortcut, not a status panel — the
actual count is visible after clicking through.

MUL-2725

Co-authored-by: multica-agent <github@multica.ai>
2026-05-27 13:26:06 +08:00

View File

@@ -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>
<Button
variant="outline"
size="sm"