From 22dc87a262e31e03e033ad60063c8ed914d85cae Mon Sep 17 00:00:00 2001 From: viettranx Date: Fri, 27 Mar 2026 15:59:31 +0700 Subject: [PATCH] fix(desktop): move version into Lite badge, remove check update button --- .../layout/sidebar/SidebarHeader.tsx | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/ui/desktop/frontend/src/components/layout/sidebar/SidebarHeader.tsx b/ui/desktop/frontend/src/components/layout/sidebar/SidebarHeader.tsx index f1856926..b4297afb 100644 --- a/ui/desktop/frontend/src/components/layout/sidebar/SidebarHeader.tsx +++ b/ui/desktop/frontend/src/components/layout/sidebar/SidebarHeader.tsx @@ -15,26 +15,11 @@ export function SidebarHeader() { const closeSettings = useUiStore((s) => s.closeSettings) const [editionOpen, setEditionOpen] = useState(false) const [version, setVersion] = useState('') - const [checking, setChecking] = useState(false) - const [updateMsg, setUpdateMsg] = useState(null) useEffect(() => { wails.getVersion().then(setVersion).catch(() => {}) }, []) - const handleCheck = async () => { - setChecking(true) - setUpdateMsg(null) - try { - const info = await wails.checkForUpdate() - setUpdateMsg(info?.available ? `v${info.version}` : '✓') - } catch { - setUpdateMsg('✗') - } finally { - setChecking(false) - } - } - const atLimit = agents.length >= MAX_AGENTS_LITE return ( @@ -49,18 +34,7 @@ export function SidebarHeader() { onClick={() => setEditionOpen(true)} className="text-[10px] font-medium bg-accent/15 text-accent px-1.5 py-0.5 rounded hover:bg-accent/25 transition-colors cursor-pointer" > - Lite - - -
- {version && v{version}} -