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
Merge pull request #2316 from oyi77/feat/ui-rework
diegosouzapw43d4ea092c68
diff --cc src/app/(dashboard)/dashboard/providers/page.tsxindex bdeda2ad53,2cad07fd78..87087e40e9--- a/src/app/(dashboard)/dashboard/providers/page.tsx+++ b/src/app/(dashboard)/dashboard/providers/page.tsx@@@ -592,166 -541,65 +592,200 @@@ export default function ProvidersPage();}+ const totalConfigured =+ oauthProviderEntriesAll.filter((e) => Number(e.stats?.total || 0) > 0).length ++ apiKeyProviderEntriesAll.filter((e) => Number(e.stats?.total || 0) > 0).length ++ webCookieProviderEntriesAll.filter((e) => Number(e.stats?.total || 0) > 0).length ++ localProviderEntriesAll.filter((e) => Number(e.stats?.total || 0) > 0).length;++ if (totalConfigured === 0 && !searchQuery) {+ return (+ <div className="flex flex-col items-center justify-center py-20 text-center">+ <div className="flex items-center justify-center size-16 rounded-full bg-primary/10 mb-4">+ <span className="material-symbols-outlined text-[32px] text-primary">dns</span>+ </div>+ <h2 className="text-xl font-semibold text-text-main">+ {t("addFirstProvider") || "Add your first provider"}+ </h2>+ <p className="text-sm text-text-muted mt-2 max-w-md">+ {t("addFirstProviderDesc") ||+ "Connect an AI provider to start routing requests through OmniRoute. You can use free providers, API keys, or OAuth accounts."}+ </p>+ <div className="flex items-center gap-3 mt-4">+ <a+ href="https://docs.omniroute.io/providers"+ target="_blank"+ rel="noopener noreferrer"+ className="inline-flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-lg border border-border text-text-muted hover:text-text-main hover:bg-bg-subtle transition-colors"+ >+ <span className="material-symbols-outlined text-[16px]">help</span>+ {t("learnMore") || "Learn more"}+ </a>+ </div>+ </div>+ );+ }+return (<div className="flex flex-col gap-6">- {/* Search Bar */}- <div className="flex items-center gap-3">- <div className="relative flex-1">- <span className="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-text-muted text-[20px]">- search- </span>- <Input- value={searchQuery}- onChange={(e) => setSearchQuery(e.target.value)}- placeholder={t("searchProviders")}- aria-label={t("searchProviders")}- className="pl-10 pr-10"- />- {searchQuery && (+ {/* Provider Summary Card */}+ <Card padding="sm">+ <div className="flex flex-col gap-3">+ {/* Row 1: Search + Controls */}+ <div className="flex items-center gap-3 flex-wrap">+ <div className="relative flex-1 min-w-[160px]">+ <Input+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ placeholder={t("searchProviders")}+ aria-label={t("searchProviders")}+ icon="search"+ inputClassName={searchQuery ? "pr-9" : ""}+ />+ {searchQuery && (+ <button+ onClick={() => setSearchQuery("")}+ className="absolute inset-y-0 right-0 flex items-center pr-2.5 text-text-muted hover:text-text-primary transition-colors"+ aria-label={tc("clear")}+ >+ <span className="material-symbols-outlined text-[18px]">close</span>+ </button>+ )}+ </div>+ <Toggle+ size="sm"+ checked={showConfiguredOnly}+ onChange={setShowConfiguredOnly}+ label={t("showConfiguredOnly")}+ className="rounded-lg border border-border bg-bg-subtle px-3 py-1.5"+ /><button- onClick={() => setSearchQuery("")}- className="absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-primary transition-colors"- aria-label={tc("clear")}+ onClick={() => handleBatchTest("all")}+ disabled={!!testingMode}+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${+ testingMode === "all"+ ? "bg-primary/20 border-primary/40 text-primary animate-pulse"+ : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"+ }`}+ title={t("testAll")}>- <span className="material-symbols-outlined text-[20px]">close</span>+ <span className="material-symbols-outlined text-[14px]">+ {testingMode === "all" ? "sync" : "play_arrow"}+ </span>+ {testingMode === "all" ? t("testing") : t("testAll")}</button>- )}+ </div>++ {/* Row 2: Legend */}+ <div className="flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[11px] text-text-muted select-none">+ {(+ [+ ["bg-green-500", tc("free")],+ ["bg-blue-500", t("oauthLabel")],+ ["bg-amber-500", t("apiKeyLabel")],+ ["bg-orange-500", t("compatibleLabel")],+ ["bg-purple-500", t("webCookieProviders")],+ ["bg-teal-500", t("searchProvidersHeading")],+ ["bg-rose-500", t("audioProvidersHeading")],+ ["bg-emerald-500", t("localProviders")],+ ["bg-indigo-500", t("upstreamProxyProviders")],+ ["bg-violet-500", t("cloudAgentProviders")],+ ] as [string, string][]+ ).map(([color, label]) => (+ <span key={color} className="flex items-center gap-1 whitespace-nowrap">+ <span className={`size-2 rounded-full shrink-0 ${color}`} />+ {label}+ </span>+ ))}+ </div>++ {/* Divider + Stats */}+ <div className="border-t border-border pt-3 flex flex-wrap items-center gap-x-5 gap-y-1">+ {(+ [+ [null, t("providerSummaryAll"), summaryStats.all],+ ["bg-green-500", tc("free"), summaryStats.free],+ ["bg-blue-500", t("oauthLabel"), summaryStats.oauth],+ ["bg-amber-500", t("apiKeyLabel"), summaryStats.apikey],+ ] as [string | null, string, { configured: number; total: number }][]+ ).map(([color, label, stat]) => (+ <span key={label} className="flex items-center gap-1.5">+ {color && <span className={`size-2 rounded-full shrink-0 ${color}`} />}+ <span className="text-xs text-text-muted">{label}</span>+ <span className="text-sm font-semibold text-text-main">+ {stat.configured}+ <span className="font-normal text-text-muted">/{stat.total}</span>+ </span>+ </span>+ ))}+ </div></div>+ </Card>++ {/* API Key Compatible Providers — dynamic (OpenAI/Anthropic compatible) */}+ <div className="flex flex-col gap-4">+ <div className="flex flex-wrap items-center gap-2">+ <h2 className="text-xl font-semibold flex items-center gap-2 flex-1 min-w-0">+ {t("compatibleProviders")}{" "}+ <span className="size-2.5 rounded-full bg-orange-500" title={t("compatibleLabel")} />+ <ProviderCountBadge {...countConfigured(compatibleProviderEntriesAll)} />+ </h2>+ <div className="flex flex-wrap gap-2">+ {(compatibleProviders.length > 0 ||+ anthropicCompatibleProviders.length > 0 ||+ ccCompatibleProviders.length > 0) && (+ <button+ onClick={() => handleBatchTest("compatible")}+ disabled={!!testingMode}+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${+ testingMode === "compatible"+ ? "bg-primary/20 border-primary/40 text-primary animate-pulse"+ : "bg-bg-subtle border-border text-text-muted hover:text-text-primary hover:border-primary/40"+ }`}+ title={t("testAllCompatible")}+ >+ <span className="material-symbols-outlined text-[14px]">+ {testingMode === "compatible" ? "sync" : "play_arrow"}+ </span>+ {testingMode === "compatible" ? t("testing") : t("testAll")}+ </button>+ )}+ {ccCompatibleProviderEnabled && (+ <Button size="sm" icon="add" onClick={() => setShowAddCcCompatibleModal(true)}>+ {addCcCompatibleLabel}+ </Button>+ )}+ <Button size="sm" icon="add" onClick={() => setShowAddAnthropicCompatibleModal(true)}>+ {t("addAnthropicCompatible")}+ </Button>+ <Button size="sm" icon="add" onClick={() => setShowAddCompatibleModal(true)}>+ {t("addOpenAICompatible")}+ </Button>+ </div>+ </div>+ {compatibleProviders.length === 0 &&+ anthropicCompatibleProviders.length === 0 &&+ ccCompatibleProviders.length === 0 ? (+ <div className="flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm">+ <span className="material-symbols-outlined text-[18px]">extension</span>+ <span>{t("noCompatibleYet")}</span>+ </div>+ ) : (+ <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3">+ {compatibleProviderEntries.map(+ ({ providerId, provider, stats, displayAuthType, toggleAuthType }) => (+ <ProviderCard+ key={providerId}+ providerId={providerId}+ provider={provider}+ stats={stats}+ authType={displayAuthType}+ onToggle={(active) => handleToggleProvider(providerId, toggleAuthType, active)}+ />+ )+ )}+ </div>+ )}</div>{/* Expiration Banner */}diff --cc src/app/(dashboard)/dashboard/settings/ai/page.tsxindex beb997c07e,0000000000..11c39cfef0mode 100644,000000..100644--- a/src/app/(dashboard)/dashboard/settings/ai/page.tsx+++ b/src/app/(dashboard)/dashboard/settings/ai/page.tsx@@@ -1,19 -1,0 +1,22 @@@+"use client";+++import { useTranslations } from "next-intl";+import ThinkingBudgetTab from "../components/ThinkingBudgetTab";+import VisionBridgeSettingsTab from "../components/VisionBridgeSettingsTab";+import SystemPromptTab from "../components/SystemPromptTab";+import MemorySkillsTab from "../components/MemorySkillsTab";+import ModelsDevSyncTab from "../components/ModelsDevSyncTab";++export default function SettingsAiPage() {++ const t = useTranslations("settings");+ return (+ <div className="space-y-6">++ <p className="text-sm text-text-muted">{t("aiSettingsIntro")}</p>+ <ThinkingBudgetTab />+ <VisionBridgeSettingsTab />+ <SystemPromptTab />+ <MemorySkillsTab />+ <ModelsDevSyncTab />+ </div>+ );+}diff --cc src/app/(dashboard)/dashboard/settings/resilience/page.tsxindex 9b71032bda,0000000000..e3e9c32290mode 100644,000000..100644--- a/src/app/(dashboard)/dashboard/settings/resilience/page.tsx+++ b/src/app/(dashboard)/dashboard/settings/resilience/page.tsx@@@ -1,7 -1,0 +1,14 @@@+"use client";+++import { useTranslations } from "next-intl";+import ResilienceTab from "../components/ResilienceTab";++export default function SettingsResiliencePage() {- return <ResilienceTab />;++ const t = useTranslations("settings");++ return (++ <div className="space-y-6">++ <p className="text-sm text-text-muted">{t("resilienceSettingsIntro")}</p>++ <ResilienceTab />++ </div>++ );+}diff --cc src/app/(dashboard)/dashboard/settings/routing/page.tsxindex ae38e9cf13,0000000000..31dc24a2d3mode 100644,000000..100644--- a/src/app/(dashboard)/dashboard/settings/routing/page.tsx+++ b/src/app/(dashboard)/dashboard/settings/routing/page.tsx@@@ -1,19 -1,0 +1,22 @@@+"use client";+++import { useTranslations } from "next-intl";+import RoutingTab from "../components/RoutingTab";+import ModelRoutingSection from "@/shared/components/ModelRoutingSection";+import ComboDefaultsTab from "../components/ComboDefaultsTab";+import ModelAliasesUnified from "../components/ModelAliasesUnified";+import BackgroundDegradationTab from "../components/BackgroundDegradationTab";++export default function SettingsRoutingPage() {++ const t = useTranslations("settings");+ return (+ <div className="space-y-6">++ <p className="text-sm text-text-muted">{t("routingSettingsIntro")}</p>+ <RoutingTab />+ <ModelRoutingSection />+ <ComboDefaultsTab />+ <ModelAliasesUnified />+ <BackgroundDegradationTab />+ </div>+ );+}diff --cc src/i18n/messages/en.jsonindex 41bea075a7,efe8a5e14e..b6744a9718--- a/src/i18n/messages/en.json+++ b/src/i18n/messages/en.json@@@ -680,9 -681,16 +684,16 @@@"docs": "Docs","issues": "Issues","endpoints": "Endpoints",+ "endpointsSubtitle": "Your AI connection URLs",- "apiManager": "API Manager",+ "apiManager": "API Key Manager",+ "apiManagerSubtitle": "Manage API keys and access","logs": "Logs","webhooks": "Webhooks",+ "webhooksSubtitle": "Get notified of events",+ "combosSubtitle": "Group providers for failover",+ "batchSubtitle": "Process multiple requests",+ "contextCavemanSubtitle": "Prompt compression",+ "contextRtkSubtitle": "Output filtering","auditLog": "Audit Log","shutdown": "Shutdown","restart": "Restart",diff --cc src/shared/components/Sidebar.tsxindex eb4fd24d62,83ceb61bbe..3b0b68d456--- a/src/shared/components/Sidebar.tsx+++ b/src/shared/components/Sidebar.tsx@@@ -141,126 -90,7 +141,131 @@@ export default function Sidebar(SIDEBAR_SETTINGS_UPDATED_EVENT,handleSettingsUpdated as EventListener);+ }, []);++ const getSidebarLabel = (key: string, fallback: string) =>+ typeof t.has === "function" && t.has(key) ? t(key) : fallback;++ const resolveItem = (item: SidebarItemDefinition, hidden: Set<string>) => {+ if (hidden.has(item.id)) return null;- return { ...item, label: getSidebarLabel(item.i18nKey, item.id) };++ const subtitle = item.subtitleKey ? getSidebarLabel(item.subtitleKey, "") : undefined;++ return {++ ...item,++ label: getSidebarLabel(item.i18nKey, item.id),++ subtitle: subtitle || undefined,+ };+ };++ const hiddenSidebarSet = new Set(hiddenSidebarItems);++ const visibleSections = SIDEBAR_SECTIONS.filter(+ (section) => section.visibility !== "debug" || showDebug+ )+ .map((section) => {+ const children = section.children+ .map((child) => {+ if ("type" in child && child.type === "group") {+ const items = child.items+ .map((item) => resolveItem(item, hiddenSidebarSet))+ .filter(Boolean) as (SidebarItemDefinition & { label: string })[];+ if (items.length === 0) return null;+ return {+ ...child,+ title: getSidebarLabel(child.titleKey, child.titleFallback),+ items,+ } as SidebarItemGroup & {+ title: string;+ items: (SidebarItemDefinition & { label: string })[];+ };+ }+ return resolveItem(child as SidebarItemDefinition, hiddenSidebarSet);+ })+ .filter(Boolean);++ return {+ ...section,+ title: getSidebarLabel(section.titleKey, section.titleFallback),+ children,+ };+ })+ .filter((section) => {+ const allItems = section.children.flatMap((child: any) =>+ child.type === "group" ? child.items : [child]+ );+ return allItems.length > 0;+ });++ const allVisibleItems = visibleSections.flatMap((section) =>+ section.children.flatMap((child: any) => (child.type === "group" ? child.items : [child]))+ );++ const activeHref = getActiveSidebarHref(pathname, allVisibleItems);++ // Auto-expand the section containing the active page (without closing others)+ useEffect(() => {+ if (collapsed) return;+ for (const section of visibleSections) {+ const sectionItems = section.children.flatMap((child: any) =>+ child.type === "group" ? child.items : [child]+ );+ if (sectionItems.some((item: any) => !item.external && item.href === activeHref)) {+ setExpandedSections((prev) => {+ if (prev.has(section.id as SidebarSectionId)) return prev;+ const next = new Set(prev);+ next.add(section.id as SidebarSectionId);+ saveToStorage(EXPANDED_SECTIONS_KEY, [...next]);+ return next;+ });+ break;+ }+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [activeHref, collapsed]);++ // Accordion toggle: opening a section closes all non-pinned sections+ const toggleSection = useCallback(+ (sectionId: SidebarSectionId) => {+ setExpandedSections((prev) => {+ const isOpen = prev.has(sectionId);+ let next: Set<SidebarSectionId>;+ if (isOpen) {+ // Close this section+ next = new Set(prev);+ next.delete(sectionId);+ } else {+ // Accordion: keep only pinned sections + the new one+ next = new Set<SidebarSectionId>();+ for (const id of pinnedSections) {+ next.add(id);+ }+ next.add(sectionId);+ }+ saveToStorage(EXPANDED_SECTIONS_KEY, [...next]);+ return next;+ });+ },+ [pinnedSections]+ );++ const togglePin = useCallback((sectionId: SidebarSectionId) => {+ setPinnedSections((prev) => {+ const next = new Set(prev);+ if (next.has(sectionId)) {+ next.delete(sectionId);+ } else {+ next.add(sectionId);+ // Ensure the section is expanded when pinned+ setExpandedSections((prevExp) => {+ if (prevExp.has(sectionId)) return prevExp;+ const nextExp = new Set(prevExp);+ nextExp.add(sectionId);+ saveToStorage(EXPANDED_SECTIONS_KEY, [...nextExp]);+ return nextExp;+ });+ }+ saveToStorage(PINNED_SECTIONS_KEY, [...next]);+ return next;+ });}, []);const handleShutdown = async () => {@@@ -321,13 -160,16 +326,20 @@@const content = (<><span className={iconClassName}>{item.icon}</span>- {!collapsed && <span className="text-sm font-medium truncate">{item.label}</span>}+ {!collapsed && (- <div className="flex flex-col min-w-0">- <span className="text-sm font-medium">{item.label}</span>++ <div className="flex min-w-0 flex-col">++ <span className="truncate text-sm font-medium">{item.label}</span>+ {item.subtitle && (- <span className="text-[10px] text-text-muted/60 truncate">{item.subtitle}</span>++ <span className="truncate text-[10px] text-text-muted/60">{item.subtitle}</span>+ )}+ </div>+ )}</>);+ const sharedProps = {+ onMouseEnter: (e: React.MouseEvent<HTMLElement>) => handleMouseEnter(e, item.id, item.label),+ onMouseLeave: handleMouseLeave,+ };if (item.external) {return (diff --cc src/shared/components/index.tsxindex f0174c2f1e,e1a90df42a..01b9b6e3ae--- a/src/shared/components/index.tsx+++ b/src/shared/components/index.tsx@@@ -33,7 -33,8 +33,9 @@@ export { default as NotificationToastexport { default as FilterBar } from "./FilterBar";export { default as ColumnToggle } from "./ColumnToggle";export { default as DataTable } from "./DataTable";+export { default as NoAuthProviderCard } from "./NoAuthProviderCard";+ export { default as InfoTooltip } from "./InfoTooltip";+ export { default as PresetSlider } from "./PresetSlider";// Layoutsexport * from "./layouts";diff --cc src/shared/constants/sidebarVisibility.tsindex 9058299a82,04b514ad20..6a8db5a503--- a/src/shared/constants/sidebarVisibility.ts+++ b/src/shared/constants/sidebarVisibility.ts@@@ -110,129 -50,78 +111,155 @@@ export interface SidebarSectionDefinitiid: SidebarSectionId;titleKey: string;titleFallback: string;- items: readonly SidebarItemDefinition[];- showTitleInSidebar?: boolean;+ children: readonly SidebarSectionChild[];+ showTitle?: boolean;visibility?: "always" | "debug";+ defaultPinned?: boolean;+}++export function getSectionItems(+ section: SidebarSectionDefinition | { children: readonly SidebarSectionChild[] }+): readonly SidebarItemDefinition[] {+ return section.children.flatMap((child) =>+ "type" in child && child.type === "group" ? child.items : [child as SidebarItemDefinition]+ );}-const PRIMARY_SIDEBAR_ITEMS: readonly SidebarItemDefinition[] = [- { id: "home", href: "/dashboard", i18nKey: "home", icon: "home", exact: true },+// ─── Item arrays ────────────────────────────────────────────────────────────++const HOME_ITEMS: readonly SidebarItemDefinition[] = [+ { id: "home", href: "/home", i18nKey: "home", icon: "home", exact: true },+];++const OMNI_PROXY_ITEMS: readonly SidebarItemDefinition[] = [- { id: "endpoints", href: "/dashboard/endpoint", i18nKey: "endpoints", icon: "api" },- { id: "api-manager", href: "/dashboard/api-manager", i18nKey: "apiManager", icon: "vpn_key" },+ {+ id: "endpoints",+ href: "/dashboard/endpoint",+ i18nKey: "endpoints",+ subtitleKey: "endpointsSubtitle",+ icon: "api",+ },+ {+ id: "api-manager",+ href: "/dashboard/api-manager",+ i18nKey: "apiManager",+ subtitleKey: "apiManagerSubtitle",+ icon: "vpn_key",+ },{ id: "providers", href: "/dashboard/providers", i18nKey: "providers", icon: "dns" },- { id: "combos", href: "/dashboard/combos", i18nKey: "combos", icon: "layers" },+ {+ id: "combos",+ href: "/dashboard/combos",+ i18nKey: "combos",+ subtitleKey: "combosSubtitle",+ icon: "layers",+ },+ { id: "limits", href: "/dashboard/limits", i18nKey: "quotaTracker", icon: "tune" },+];++const COMPRESSION_CONTEXT_GROUP: SidebarItemGroup = {+ type: "group",+ id: "compression-context",+ titleKey: "compressionContextGroup",+ titleFallback: "Compression Context",+ items: [+ {+ id: "context-caveman",+ href: "/dashboard/context/caveman",+ i18nKey: "contextCaveman",++ subtitleKey: "contextCavemanSubtitle",+ icon: "compress",+ },+ {+ id: "context-rtk",+ href: "/dashboard/context/rtk",+ i18nKey: "contextRtk",++ subtitleKey: "contextRtkSubtitle",+ icon: "filter_alt",+ },+ {+ id: "context-combos",+ href: "/dashboard/context/combos",+ i18nKey: "contextCombos",+ icon: "hub",+ },+ ],+};++const TOOLS_GROUP: SidebarItemGroup = {+ type: "group",+ id: "tools",+ titleKey: "toolsGroup",+ titleFallback: "Tools",+ items: [+ { id: "cli-tools", href: "/dashboard/cli-tools", i18nKey: "cliTools", icon: "terminal" },+ { id: "agents", href: "/dashboard/agents", i18nKey: "agents", icon: "smart_toy" },+ { id: "cloud-agents", href: "/dashboard/cloud-agents", i18nKey: "cloudAgents", icon: "cloud" },+ ],+};++const INTEGRATIONS_GROUP: SidebarItemGroup = {+ type: "group",+ id: "integrations",+ titleKey: "integrationsGroup",+ titleFallback: "Integrations",+ items: [+ { id: "api-endpoints", href: "/dashboard/api-endpoints", i18nKey: "apiEndpoints", icon: "api" },- { id: "webhooks", href: "/dashboard/webhooks", i18nKey: "webhooks", icon: "webhook" },++ {++ id: "webhooks",++ href: "/dashboard/webhooks",++ i18nKey: "webhooks",++ subtitleKey: "webhooksSubtitle",++ icon: "webhook",++ },+ ],+};++const PROXY_GROUP: SidebarItemGroup = {+ type: "group",+ id: "proxy",+ titleKey: "proxyGroup",+ titleFallback: "Proxy",+ items: [+ { id: "proxy", href: "/dashboard/system/proxy", i18nKey: "proxy", icon: "dns" },+ { id: "mitm-proxy", href: "/dashboard/system/mitm-proxy", i18nKey: "mitmProxy", icon: "lan" },+ { id: "1proxy", href: "/dashboard/system/1proxy", i18nKey: "oneProxy", icon: "public" },+ ],+};++const ANALYTICS_ITEMS: readonly SidebarItemDefinition[] = [+ { id: "analytics", href: "/dashboard/analytics", i18nKey: "usage", icon: "analytics" },+ {+ id: "analytics-combo-health",+ href: "/dashboard/analytics/combo-health",+ i18nKey: "analyticsComboHealth",+ icon: "monitor_heart",+ },{- id: "batch",- href: "/dashboard/batch",- i18nKey: "batch",- subtitleKey: "batchSubtitle",- icon: "view_list",+ id: "analytics-utilization",+ href: "/dashboard/analytics/utilization",+ i18nKey: "analyticsUtilization",+ icon: "bar_chart",},{ id: "costs", href: "/dashboard/costs", i18nKey: "costs", icon: "account_balance_wallet" },- { id: "analytics", href: "/dashboard/analytics", i18nKey: "analytics", icon: "analytics" },{ id: "cache", href: "/dashboard/cache", i18nKey: "cache", icon: "cached" },- { id: "limits", href: "/dashboard/limits", i18nKey: "limits", icon: "tune" },- { id: "media", href: "/dashboard/cache/media", i18nKey: "media", icon: "perm_media" },-];--const CLI_SIDEBAR_ITEMS: readonly SidebarItemDefinition[] = [- { id: "cli-tools", href: "/dashboard/cli-tools", i18nKey: "cliToolsShort", icon: "terminal" },- { id: "agents", href: "/dashboard/agents", i18nKey: "agents", icon: "smart_toy" },- { id: "cloud-agents", href: "/dashboard/cloud-agents", i18nKey: "cloudAgents", icon: "cloud" },- { id: "memory", href: "/dashboard/memory", i18nKey: "memory", icon: "psychology" },- { id: "skills", href: "/dashboard/skills", i18nKey: "omniSkills", icon: "auto_fix_high" },- { id: "agent-skills", href: "/dashboard/agent-skills", i18nKey: "agentSkills", icon: "share" },-];--const CONTEXT_SIDEBAR_ITEMS: readonly SidebarItemDefinition[] = [{- id: "context-caveman",- href: "/dashboard/context/caveman",- i18nKey: "contextCaveman",- subtitleKey: "contextCavemanSubtitle",- icon: "compress",+ id: "analytics-compression",+ href: "/dashboard/analytics/compression",+ i18nKey: "analyticsCompression",+ icon: "data_compression",},{- id: "context-rtk",- href: "/dashboard/context/rtk",- i18nKey: "contextRtk",- subtitleKey: "contextRtkSubtitle",- icon: "filter_alt",+ id: "analytics-search",+ href: "/dashboard/analytics/search",+ i18nKey: "analyticsSearch",+ icon: "manage_search",},{- id: "context-combos",- href: "/dashboard/context/combos",- i18nKey: "contextCombos",- icon: "hub",+ id: "analytics-evals",+ href: "/dashboard/analytics/evals",+ i18nKey: "analyticsEvals",+ icon: "labs",},];@@@ -293,84 -136,22 +320,90 @@@ const DEVTOOLS_ITEMS: readonly SidebarI},];-const SYSTEM_SIDEBAR_ITEMS: readonly SidebarItemDefinition[] = [- { id: "logs", href: "/dashboard/logs", i18nKey: "logs", icon: "description" },- { id: "audit", href: "/dashboard/audit", i18nKey: "auditLog", icon: "policy" },+const MCP_GROUP: SidebarItemGroup = {+ type: "group",+ id: "mcp",+ titleKey: "mcp",+ titleFallback: "MCP Server",+ items: [{ id: "mcp", href: "/dashboard/mcp", i18nKey: "mcp", icon: "hub" }],+};++const AGENTIC_FEATURES_ITEMS: readonly SidebarSectionChild[] = [+ { id: "memory", href: "/dashboard/memory", i18nKey: "memory", icon: "psychology" },+ { id: "skills", href: "/dashboard/skills", i18nKey: "omniSkills", icon: "auto_fix_high" },+ { id: "agent-skills", href: "/dashboard/agent-skills", i18nKey: "agentSkills", icon: "share" },+ MCP_GROUP,+ { id: "a2a", href: "/dashboard/a2a", i18nKey: "a2a", icon: "device_hub" },+];++const OTHER_FEATURES_ITEMS: readonly SidebarItemDefinition[] = [+ { id: "media", href: "/dashboard/cache/media", i18nKey: "media", icon: "perm_media" },+];++const BATCH_GROUP: SidebarItemGroup = {+ type: "group",+ id: "batch",+ titleKey: "batchGroup",+ titleFallback: "Batch",+ items: [- { id: "batch", href: "/dashboard/batch", i18nKey: "batch", icon: "view_list" },++ {++ id: "batch",++ href: "/dashboard/batch",++ i18nKey: "batch",++ subtitleKey: "batchSubtitle",++ icon: "view_list",++ },+ { id: "batch-files", href: "/dashboard/batch/files", i18nKey: "batchFiles", icon: "folder" },+ ],+};++const CONFIGURATION_ITEMS: readonly SidebarItemDefinition[] = [+ { id: "settings", href: "/dashboard/settings", i18nKey: "settings", icon: "settings" },{- id: "webhooks",- href: "/dashboard/webhooks",- i18nKey: "webhooks",- subtitleKey: "webhooksSubtitle",- icon: "webhook",+ id: "settings-general",+ href: "/dashboard/settings/general",+ i18nKey: "settingsGeneral",+ icon: "tune",+ },+ {+ id: "settings-appearance",+ href: "/dashboard/settings/appearance",+ i18nKey: "settingsAppearance",+ icon: "palette",+ },+ {+ id: "settings-ai",+ href: "/dashboard/settings/ai",+ i18nKey: "settingsAi",+ icon: "auto_awesome",+ },+ {+ id: "settings-routing",+ href: "/dashboard/settings/routing",+ i18nKey: "globalRouting",+ icon: "route",+ },+ {+ id: "settings-resilience",+ href: "/dashboard/settings/resilience",+ i18nKey: "settingsResilience",+ icon: "health_and_safety",+ },+ {+ id: "settings-advanced",+ href: "/dashboard/settings/advanced",+ i18nKey: "settingsAdvanced",+ icon: "engineering",+ },+ {+ id: "settings-security",+ href: "/dashboard/settings/security",+ i18nKey: "settingsSecurity",+ icon: "shield",},- { id: "health", href: "/dashboard/health", i18nKey: "health", icon: "health_and_safety" },- { id: "proxy", href: "/dashboard/system/proxy", i18nKey: "proxy", icon: "dns" },- { id: "settings", href: "/dashboard/settings", i18nKey: "settings", icon: "settings" },];-const HELP_SIDEBAR_ITEMS: readonly SidebarItemDefinition[] = [+const HELP_ITEMS: readonly SidebarItemDefinition[] = [{ id: "docs", href: "/docs", i18nKey: "docs", icon: "menu_book", external: true },{id: "issues",