From e03cb64f80124af5541f84b5bc95a139d6001e42 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 14 Feb 2026 05:29:10 +0000 Subject: [PATCH] fix(dashboard): normalize platform names for lock cards - Update `platformStyle` in `dashboard/index.html` to be case-insensitive and handle aliases (e.g., 'Claude' -> 'claude-code'). - Update summary statistics to use the normalized label for consistency. - Ensure platforms like "Jules", "Codex", and "Claude" are displayed correctly instead of "Unknown". Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- dashboard/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dashboard/index.html b/dashboard/index.html index 4e4b278..dbdfd42 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -391,7 +391,9 @@ }; function platformStyle(platform) { - return PLATFORM_COLORS[platform] || PLATFORM_COLORS.unknown; + const raw = String(platform || '').toLowerCase().trim(); + if (raw === 'claude' || raw.includes('claude')) return PLATFORM_COLORS['claude-code']; + return PLATFORM_COLORS[raw] || PLATFORM_COLORS.unknown; } // ----------------------------------------------------------------------- @@ -416,7 +418,8 @@ const active = locks.filter((l) => !isExpired(l)); const platforms = {}; for (const l of active) { - platforms[l.platform] = (platforms[l.platform] || 0) + 1; + const label = platformStyle(l.platform).label; + platforms[label] = (platforms[label] || 0) + 1; } const cards = [