From ec50c87c56a730c8efdda14548e2f5eefa2425a9 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Wed, 4 Nov 2026 16:02:49 -0700 Subject: [PATCH] Replace removed lucide Github icon for lucide-react 1.x lucide-react 1.0 dropped brand icons, so the Github import resolved to undefined and TopRightControls crashed on render. Swap in a small local GithubIcon (Octicons mark-github, MIT) with the same size/className props. Co-Authored-By: Claude Opus 5.5 --- frontend/src/components/TopRightControls.tsx | 6 +++--- frontend/src/components/icons/GithubIcon.tsx | 22 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/icons/GithubIcon.tsx diff --git a/frontend/src/components/TopRightControls.tsx b/frontend/src/components/TopRightControls.tsx index 0d63e21d..1bbff330 100644 --- a/frontend/src/components/TopRightControls.tsx +++ b/frontend/src/components/TopRightControls.tsx @@ -3,7 +3,6 @@ import { useState, useRef, useEffect, useCallback } from 'react'; import { createPortal } from 'react-dom'; import { - Github, Download, AlertCircle, CheckCircle2, @@ -14,6 +13,7 @@ import { Server, Copy, } from 'lucide-react'; +import GithubIcon from '@/components/icons/GithubIcon'; import { API_BASE } from '@/lib/api'; import { useTranslation } from '@/i18n'; import { controlPlaneFetch } from '@/lib/controlPlane'; @@ -1247,9 +1247,9 @@ export default function TopRightControls({ className={`${btnBase} disabled:opacity-50 disabled:cursor-not-allowed`} > {updateStatus === 'checking' && ( - + )} - {updateStatus === 'idle' && } + {updateStatus === 'idle' && } {updateStatus === 'uptodate' && } {updateStatus === 'error' && } diff --git a/frontend/src/components/icons/GithubIcon.tsx b/frontend/src/components/icons/GithubIcon.tsx new file mode 100644 index 00000000..e8a99290 --- /dev/null +++ b/frontend/src/components/icons/GithubIcon.tsx @@ -0,0 +1,22 @@ +// lucide-react 1.x removed brand icons, including `Github`. This is a drop-in +// replacement with the same `size` / `className` props, drawn from GitHub's +// Octicons "mark-github" (MIT licensed). +interface GithubIconProps { + size?: number; + className?: string; +} + +export default function GithubIcon({ size = 24, className }: GithubIconProps) { + return ( + + ); +}