From 7db1261d6002ede0e93f12fee943f6ecb459c9c6 Mon Sep 17 00:00:00 2001 From: Madraka <8898640+Madraka@users.noreply.github.com> Date: Sun, 8 Nov 2026 02:49:27 +0300 Subject: [PATCH] test: quiet the known log noise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kumo's Badge resolves the dot colour from the variant, and the dot table only knows none, success, warning, error and neutral: every `` logged '[kumo] Unknown variant "secondary" … Falling back to "none"' (36 lines per CI run, from new-site.test.tsx) and rendered no dot at all. The five places that showed an unpublished site or an unknown scheduler state with a secondary dot now use neutral, Kumo's informational dot, so the dot appears and the warning goes away. No other dot Badge uses a variant outside that table (checked every literal and every variant map). Co-Authored-By: Claude Fable 5.1 Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com> --- apps/studio/src/components/ScheduleSettings.tsx | 2 +- apps/studio/src/components/site-overview/SiteStatusCard.tsx | 2 +- apps/studio/src/routes/ProjectPage.tsx | 2 +- apps/studio/src/routes/SchedulesPage.tsx | 2 +- apps/studio/src/routes/SitesPage.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/studio/src/components/ScheduleSettings.tsx b/apps/studio/src/components/ScheduleSettings.tsx index 9e9ed05b..d4a1431e 100644 --- a/apps/studio/src/components/ScheduleSettings.tsx +++ b/apps/studio/src/components/ScheduleSettings.tsx @@ -169,7 +169,7 @@ export function ScheduleSettingsSection({ siteId }: { siteId: string }) { const capDirty = data !== undefined && capValid && capNumber !== data.dailyWriteCap; const health = scheduler.data; const tone = - health?.state === "running" ? "success" : health?.state === "unknown" ? "secondary" : "error"; + health?.state === "running" ? "success" : health?.state === "unknown" ? "neutral" : "error"; return ( ) : ( - + {t("overview.notPublished")} ) diff --git a/apps/studio/src/routes/ProjectPage.tsx b/apps/studio/src/routes/ProjectPage.tsx index e74fd36e..1417acef 100644 --- a/apps/studio/src/routes/ProjectPage.tsx +++ b/apps/studio/src/routes/ProjectPage.tsx @@ -152,7 +152,7 @@ function ProjectSiteRow({ site }: { site: ProjectSite }) { {t("common.live")} ) : ( - + {t("sites.notPublished")} )} diff --git a/apps/studio/src/routes/SchedulesPage.tsx b/apps/studio/src/routes/SchedulesPage.tsx index f85e57d2..e6d8ab32 100644 --- a/apps/studio/src/routes/SchedulesPage.tsx +++ b/apps/studio/src/routes/SchedulesPage.tsx @@ -176,7 +176,7 @@ function CalendarAside({ const scheduler = useSchedulerStatus(); const s = scheduler.data; const a = "schedules.aside" as const; - const tone = s?.state === "running" ? "success" : s?.state === "unknown" ? "secondary" : "error"; + const tone = s?.state === "running" ? "success" : s?.state === "unknown" ? "neutral" : "error"; return ( <> ) : ( - + {t("sites.notPublished")} )}