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
refactor(sidebar): split Monitoring into Logs/Audit/System groups + Activity at top (B/F3)
diegosouzapwe98ba9192866
diff --git a/src/shared/constants/sidebarVisibility.ts b/src/shared/constants/sidebarVisibility.tsindex 251bd0d1d6..c45d9c196b 100644--- a/src/shared/constants/sidebarVisibility.ts+++ b/src/shared/constants/sidebarVisibility.ts@@ -33,13 +33,14 @@ export const HIDEABLE_SIDEBAR_ITEM_IDS = ["analytics-search","analytics-evals",// Monitoring — flat+ "activity","logs","logs-proxy","logs-console","logs-activity","health","runtime",- // Monitoring > Costs Parameters+ // Costs section"costs-pricing","costs-budget","costs-quota-share",@@ -89,6 +90,7 @@ export type SidebarSectionId =| "home"| "omni-proxy"| "analytics"+ | "costs"| "monitoring"| "devtools"| "agentic-features"@@ -313,13 +315,6 @@ const ANALYTICS_ITEMS: readonly SidebarItemDefinition[] = [subtitleKey: "analyticsUtilizationSubtitle",icon: "bar_chart",},- {- id: "costs",- href: "/dashboard/costs",- i18nKey: "costs",- subtitleKey: "costsSubtitle",- icon: "account_balance_wallet",- },{id: "cache",href: "/dashboard/cache",@@ -352,79 +347,100 @@ const ANALYTICS_ITEMS: readonly SidebarItemDefinition[] = [const MONITORING_ITEMS: readonly SidebarItemDefinition[] = [{- id: "logs",- href: "/dashboard/logs",- i18nKey: "logs",- subtitleKey: "logsSubtitle",- icon: "description",- },- {- id: "logs-proxy",- href: "/dashboard/logs/proxy",- i18nKey: "logsProxy",- subtitleKey: "logsProxySubtitle",- icon: "lan",- },- {- id: "logs-console",- href: "/dashboard/logs/console",- i18nKey: "consoleLogs",- subtitleKey: "consoleLogsSubtitle",- icon: "terminal",- },- {- id: "logs-activity",- href: "/dashboard/logs/activity",- i18nKey: "logsActivity",- subtitleKey: "logsActivitySubtitle",- icon: "history",- },- {- id: "health",- href: "/dashboard/health",- i18nKey: "health",- subtitleKey: "healthSubtitle",- icon: "health_and_safety",- },- {- id: "runtime",- href: "/dashboard/runtime",- i18nKey: "runtime",- subtitleKey: "runtimeSubtitle",- icon: "bolt",+ id: "activity",+ href: "/dashboard/activity",+ i18nKey: "activity",+ subtitleKey: "activitySubtitle",+ icon: "timeline",},];-const COSTS_PARAMS_GROUP: SidebarItemGroup = {+const LOGS_GROUP: SidebarItemGroup = {type: "group",- id: "costs-parameters",- titleKey: "costsParametersGroup",- titleFallback: "Costs Parameters",+ id: "logs",+ titleKey: "logsGroup",+ titleFallback: "Logs",items: [{- id: "costs-pricing",- href: "/dashboard/costs/pricing",- i18nKey: "costsPricing",- subtitleKey: "costsPricingSubtitle",- icon: "price_change",+ id: "logs",+ href: "/dashboard/logs",+ i18nKey: "logs",+ subtitleKey: "logsSubtitle",+ icon: "description",},{- id: "costs-budget",- href: "/dashboard/costs/budget",- i18nKey: "costsBudget",- subtitleKey: "costsBudgetSubtitle",- icon: "savings",+ id: "logs-proxy",+ href: "/dashboard/logs/proxy",+ i18nKey: "logsProxy",+ subtitleKey: "logsProxySubtitle",+ icon: "lan",},{- id: "costs-quota-share",- href: "/dashboard/costs/quota-share",- i18nKey: "costsQuotaShare",- subtitleKey: "costsQuotaShareSubtitle",- icon: "pie_chart",+ id: "logs-console",+ href: "/dashboard/logs/console",+ i18nKey: "consoleLogs",+ subtitleKey: "consoleLogsSubtitle",+ icon: "terminal",},],};+const SYSTEM_GROUP: SidebarItemGroup = {+ type: "group",+ id: "system",+ titleKey: "systemGroup",+ titleFallback: "System",+ items: [+ {+ id: "health",+ href: "/dashboard/health",+ i18nKey: "health",+ subtitleKey: "healthSubtitle",+ icon: "health_and_safety",+ },+ {+ id: "runtime",+ href: "/dashboard/runtime",+ i18nKey: "runtime",+ subtitleKey: "runtimeSubtitle",+ icon: "bolt",+ },+ ],+};++const COSTS_ITEMS: readonly SidebarItemDefinition[] = [+ {+ id: "costs",+ href: "/dashboard/costs",+ i18nKey: "costsOverview",+ subtitleKey: "costsOverviewSubtitle",+ icon: "account_balance_wallet",+ },+ {+ id: "costs-pricing",+ href: "/dashboard/costs/pricing",+ i18nKey: "costsPricing",+ subtitleKey: "costsPricingSubtitle",+ icon: "price_change",+ },+ {+ id: "costs-budget",+ href: "/dashboard/costs/budget",+ i18nKey: "costsBudget",+ subtitleKey: "costsBudgetSubtitle",+ icon: "savings",+ },+ {+ id: "costs-quota-share",+ href: "/dashboard/costs/quota-share",+ i18nKey: "costsQuotaShare",+ subtitleKey: "costsQuotaShareSubtitle",+ icon: "pie_chart",+ },+ // F9 ADDS ONE LINE HERE:+ // { id: "costs-quota-plans", href: "/dashboard/costs/quota-share/plans", i18nKey: "costsQuotaPlans", subtitleKey: "costsQuotaPlansSubtitle", icon: "fact_check" },+];+const AUDIT_GROUP: SidebarItemGroup = {type: "group",id: "audit",@@ -718,11 +734,17 @@ export const SIDEBAR_SECTIONS: readonly SidebarSectionDefinition[] = [titleFallback: "Analytics",children: ANALYTICS_ITEMS,},+ {+ id: "costs",+ titleKey: "costsSection",+ titleFallback: "Costs",+ children: COSTS_ITEMS,+ },{id: "monitoring",titleKey: "monitoringSection",titleFallback: "Monitoring",- children: [...MONITORING_ITEMS, COSTS_PARAMS_GROUP, AUDIT_GROUP],+ children: [...MONITORING_ITEMS, LOGS_GROUP, AUDIT_GROUP, SYSTEM_GROUP],},{id: "devtools",@@ -842,7 +864,7 @@ const ADMIN_SHOWN: ReadonlySet<HideableSidebarItemId> = new Set(["costs-quota-share","cache","logs",- "logs-activity",+ "activity","health","runtime","audit",diff --git a/tests/unit/sidebar-visibility.test.ts b/tests/unit/sidebar-visibility.test.tsindex 59c0bf3750..769ce86b05 100644--- a/tests/unit/sidebar-visibility.test.ts+++ b/tests/unit/sidebar-visibility.test.ts@@ -14,23 +14,20 @@ function sectionItems(sectionId: string) {return sidebarVisibility.getSectionItems(section);}-test("system sidebar items place logs before health", () => {+test("system sidebar items: monitoring has activity at top then logs/audit/system groups", () => {const items = sectionItems("monitoring");assert.deepEqual(items.map((item) => item.id),[+ "activity","logs","logs-proxy","logs-console",- "logs-activity",- "health",- "runtime",- "costs-pricing",- "costs-budget",- "costs-quota-share","audit","audit-mcp","audit-a2a",+ "health",+ "runtime",]);});@@ -61,7 +58,7 @@ test("primary sidebar items place limits after cache", () => {test("context sidebar section sits between primary and cli", () => {const sectionIds = sidebarVisibility.SIDEBAR_SECTIONS.map((section) => section.id);- assert.deepEqual(sectionIds.slice(0, 3), ["home", "omni-proxy", "analytics"]);+ assert.deepEqual(sectionIds.slice(0, 4), ["home", "omni-proxy", "analytics", "costs"]);const items = sectionItems("omni-proxy");assert.deepEqual(