From 6f6cb8d2271a887f6b6f853778d4cc20444f2db6 Mon Sep 17 00:00:00 2001 From: Rodrigo Matos Date: Wed, 26 Aug 2026 17:36:30 -0300 Subject: [PATCH] fix(platform): show "unknown" instead of nothing for unreachable archived checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported: maestro-frontend is archived on GitHub but the repos page showed no badge for it, reading as "confirmed not archived" — it's actually private, and the session's GitHub OAuth scope has no `repo` grant, so the archived check 404s and correctly returns null (unknown) for it. The bug was purely in the UI: null and false both rendered as "no badge," indistinguishable to anyone looking at the list. 99% of RocketBus's own repos are private (945/948), so this wasn't an edge case — it's the common case for real orgs using this feature. Now a checked-but-unreachable repo gets a distinct "unknown" tag with a tooltip explaining why, instead of silently looking identical to "confirmed not archived". Co-Authored-By: claude-code_2-1-238_agent --- platform/lib/translations.ts | 6 ++++++ platform/src/app/[tenant]/dashboard/repo-list.tsx | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/platform/lib/translations.ts b/platform/lib/translations.ts index 3b9e013..87bc21a 100644 --- a/platform/lib/translations.ts +++ b/platform/lib/translations.ts @@ -460,6 +460,9 @@ export const translations = { checkingArchived: "Checking...", hideArchived: "Hide archived", archivedTag: "archived", + archivedUnknownTag: "unknown", + archivedUnknownHint: + "Couldn't check — likely a private repo your GitHub login can't read", noGithubLink: "Sign in with GitHub to check archived status", }, }, @@ -1885,6 +1888,9 @@ export const translations = { checkingArchived: "Checando...", hideArchived: "Ocultar arquivados", archivedTag: "arquivado", + archivedUnknownTag: "desconhecido", + archivedUnknownHint: + "Não deu pra checar — provavelmente um repo privado que seu login do GitHub não consegue ler", noGithubLink: "Faça login com GitHub para checar status de arquivamento", }, diff --git a/platform/src/app/[tenant]/dashboard/repo-list.tsx b/platform/src/app/[tenant]/dashboard/repo-list.tsx index bd1da84..db0b822 100644 --- a/platform/src/app/[tenant]/dashboard/repo-list.tsx +++ b/platform/src/app/[tenant]/dashboard/repo-list.tsx @@ -234,6 +234,14 @@ export function RepoList({ {t("dashboard.repoList.archivedTag")} )} + {hasCheckedArchived && archived === null && ( + + {t("dashboard.repoList.archivedUnknownTag")} + + )}

{repo.runs_count} runs