Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
feat(sidebar): wire whitelabeling settings to sidebar
oyi7747cb9e8e44f1
diff --git a/src/shared/components/Sidebar.tsx b/src/shared/components/Sidebar.tsxindex 2eeb5a3b65..019da21e6b 100644--- a/src/shared/components/Sidebar.tsx+++ b/src/shared/components/Sidebar.tsx@@ -37,11 +37,15 @@ export default function Sidebar({const [isDisconnected, setIsDisconnected] = useState(false);const [showDebug, setShowDebug] = useState(false);const [hiddenSidebarItems, setHiddenSidebarItems] = useState<string[]>([]);+ const [customAppName, setCustomAppName] = useState<string | null>(null);+ const [customLogo, setCustomLogo] = useState<string | null>(null);useEffect(() => {const applySettings = (data) => {setShowDebug(data?.debugMode === true);setHiddenSidebarItems(normalizeHiddenSidebarItems(data?.[HIDDEN_SIDEBAR_ITEMS_SETTING_KEY]));+ setCustomAppName(data?.instanceName || null);+ setCustomLogo(data?.customLogoBase64 || data?.customLogoUrl || null);};fetch("/api/settings")@@ -61,6 +65,16 @@ export default function Sidebar({normalizeHiddenSidebarItems(detail[HIDDEN_SIDEBAR_ITEMS_SETTING_KEY]));}++ if ("instanceName" in detail) {+ setCustomAppName(detail.instanceName as string || null);+ }++ if ("customLogoBase64" in detail) {+ setCustomLogo(detail.customLogoBase64 as string || null);+ } else if ("customLogoUrl" in detail) {+ setCustomLogo(detail.customLogoUrl as string || null);+ }};window.addEventListener(SIDEBAR_SETTINGS_UPDATED_EVENT, handleSettingsUpdated as EventListener);@@ -221,12 +235,20 @@ export default function Sidebar({className={cn("flex items-center", collapsed ? "justify-center" : "gap-3")}><div className="flex items-center justify-center size-9 rounded bg-linear-to-br from-[#E54D5E] to-[#C93D4E] shrink-0">- <OmniRouteLogo size={20} className="text-white" />+ {customLogo ? (+ <img+ src={customLogo}+ alt={customAppName || APP_CONFIG.name}+ className="size-5 object-contain"+ />+ ) : (+ <OmniRouteLogo size={20} className="text-white" />+ )}</div>{!collapsed && (<div className="flex flex-col"><h1 className="text-lg font-semibold tracking-tight text-text-main">- {APP_CONFIG.name}+ {customAppName || APP_CONFIG.name}</h1><span className="text-xs text-text-muted">v{APP_CONFIG.version}</span></div>