mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
806 lines
19 KiB
TypeScript
806 lines
19 KiB
TypeScript
import type {
|
|
SidebarItemDefinition,
|
|
SidebarItemGroup,
|
|
SidebarSectionChild,
|
|
SidebarSectionDefinition,
|
|
} from "./types";
|
|
|
|
// ─── Item arrays ────────────────────────────────────────────────────────────
|
|
|
|
const HOME_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "home",
|
|
href: "/home",
|
|
i18nKey: "home",
|
|
subtitleKey: "homeSubtitle",
|
|
icon: "home",
|
|
exact: true,
|
|
},
|
|
];
|
|
|
|
const OMNI_PROXY_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
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",
|
|
subtitleKey: "providersSubtitle",
|
|
icon: "dns",
|
|
},
|
|
{
|
|
id: "embedded-services",
|
|
href: "/dashboard/providers/services",
|
|
i18nKey: "embeddedServices",
|
|
subtitleKey: "embeddedServicesSubtitle",
|
|
icon: "deployed_code",
|
|
},
|
|
{
|
|
id: "combos",
|
|
href: "/dashboard/combos",
|
|
i18nKey: "combos",
|
|
subtitleKey: "combosSubtitle",
|
|
icon: "layers",
|
|
},
|
|
{
|
|
id: "combos-live",
|
|
href: "/dashboard/combos/live",
|
|
i18nKey: "combosLive",
|
|
labelFallback: "Combo Studio",
|
|
subtitleKey: "combosLiveSubtitle",
|
|
subtitleFallback: "Live routing cascade",
|
|
icon: "account_tree",
|
|
},
|
|
{
|
|
id: "quota",
|
|
href: "/dashboard/quota",
|
|
i18nKey: "providerQuota",
|
|
subtitleKey: "providerQuotaSubtitle",
|
|
icon: "tune",
|
|
},
|
|
{
|
|
id: "costs-quota-share",
|
|
href: "/dashboard/costs/quota-share",
|
|
i18nKey: "costsQuotaShare",
|
|
subtitleKey: "costsQuotaShareSubtitle",
|
|
icon: "pie_chart",
|
|
},
|
|
];
|
|
|
|
export const COMPRESSION_CONTEXT_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "compression-context",
|
|
titleKey: "compressionContextGroup",
|
|
titleFallback: "Compression Context",
|
|
// Order: Settings (the unified panel) → Combos → per-engine pages → Studio (analytics).
|
|
items: [
|
|
{
|
|
id: "context-settings",
|
|
href: "/dashboard/context/settings",
|
|
i18nKey: "contextSettings",
|
|
labelFallback: "Compression Settings",
|
|
subtitleKey: "contextSettingsSubtitle",
|
|
subtitleFallback: "Global defaults",
|
|
icon: "settings",
|
|
},
|
|
{
|
|
id: "context-combos",
|
|
href: "/dashboard/context/combos",
|
|
i18nKey: "contextCombos",
|
|
subtitleKey: "contextCombosSubtitle",
|
|
icon: "hub",
|
|
},
|
|
{
|
|
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-headroom",
|
|
href: "/dashboard/context/headroom",
|
|
i18nKey: "contextHeadroom",
|
|
labelFallback: "Headroom",
|
|
subtitleKey: "contextHeadroomSubtitle",
|
|
subtitleFallback: "Tabular compaction",
|
|
icon: "table_rows",
|
|
},
|
|
{
|
|
id: "context-session-dedup",
|
|
href: "/dashboard/context/session-dedup",
|
|
i18nKey: "contextSessionDedup",
|
|
labelFallback: "Session Dedup",
|
|
subtitleKey: "contextSessionDedupSubtitle",
|
|
subtitleFallback: "Cross-turn dedup",
|
|
icon: "content_copy",
|
|
},
|
|
{
|
|
id: "context-ccr",
|
|
href: "/dashboard/context/ccr",
|
|
i18nKey: "contextCcr",
|
|
labelFallback: "CCR",
|
|
subtitleKey: "contextCcrSubtitle",
|
|
subtitleFallback: "Retrieve markers",
|
|
icon: "archive",
|
|
},
|
|
{
|
|
id: "context-llmlingua",
|
|
href: "/dashboard/context/llmlingua",
|
|
i18nKey: "contextLlmlingua",
|
|
labelFallback: "LLMLingua",
|
|
subtitleKey: "contextLlmlinguaSubtitle",
|
|
subtitleFallback: "Semantic pruning",
|
|
icon: "psychology",
|
|
},
|
|
{
|
|
id: "context-lite",
|
|
href: "/dashboard/context/lite",
|
|
i18nKey: "contextLite",
|
|
labelFallback: "Lite",
|
|
subtitleKey: "contextLiteSubtitle",
|
|
subtitleFallback: "Fast whitespace cleanup",
|
|
icon: "compress",
|
|
},
|
|
{
|
|
id: "context-aggressive",
|
|
href: "/dashboard/context/aggressive",
|
|
i18nKey: "contextAggressive",
|
|
labelFallback: "Aggressive",
|
|
subtitleKey: "contextAggressiveSubtitle",
|
|
subtitleFallback: "Summary + aging",
|
|
icon: "speed",
|
|
},
|
|
{
|
|
id: "context-ultra",
|
|
href: "/dashboard/context/ultra",
|
|
i18nKey: "contextUltra",
|
|
labelFallback: "Ultra",
|
|
subtitleKey: "contextUltraSubtitle",
|
|
subtitleFallback: "Heuristic pruning",
|
|
icon: "bolt",
|
|
},
|
|
{
|
|
id: "context-omniglyph",
|
|
href: "/dashboard/context/omniglyph",
|
|
i18nKey: "contextOmniglyph",
|
|
labelFallback: "OmniGlyph",
|
|
subtitleKey: "contextOmniglyphSubtitle",
|
|
subtitleFallback: "Context-as-image",
|
|
icon: "grain",
|
|
},
|
|
{
|
|
id: "compression-studio",
|
|
href: "/dashboard/compression/studio",
|
|
i18nKey: "compressionStudio",
|
|
labelFallback: "Compression Studio",
|
|
subtitleKey: "compressionStudioSubtitle",
|
|
subtitleFallback: "Live engine cascade",
|
|
icon: "monitoring",
|
|
},
|
|
],
|
|
};
|
|
|
|
const TOOLS_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "tools",
|
|
titleKey: "toolsGroup",
|
|
titleFallback: "Tools",
|
|
items: [
|
|
{
|
|
id: "cli-code",
|
|
href: "/dashboard/cli-code",
|
|
i18nKey: "cliCode",
|
|
subtitleKey: "cliCodeSubtitle",
|
|
icon: "terminal",
|
|
},
|
|
{
|
|
id: "cli-agents",
|
|
href: "/dashboard/cli-agents",
|
|
i18nKey: "cliAgents",
|
|
subtitleKey: "cliAgentsSubtitle",
|
|
icon: "smart_toy",
|
|
},
|
|
{
|
|
id: "acp-agents",
|
|
href: "/dashboard/acp-agents",
|
|
i18nKey: "acpAgents",
|
|
subtitleKey: "acpAgentsSubtitle",
|
|
icon: "device_hub",
|
|
},
|
|
{
|
|
id: "cloud-agents",
|
|
href: "/dashboard/cloud-agents",
|
|
i18nKey: "cloudAgents",
|
|
subtitleKey: "cloudAgentsSubtitle",
|
|
icon: "cloud",
|
|
},
|
|
{
|
|
id: "conductor",
|
|
href: "/dashboard/conductor",
|
|
i18nKey: "conductor",
|
|
subtitleKey: "conductorSubtitle",
|
|
icon: "account_tree",
|
|
labelFallback: "Conductor",
|
|
subtitleFallback: "CLI-agent fleet",
|
|
},
|
|
{
|
|
id: "agent-bridge",
|
|
href: "/dashboard/tools/agent-bridge",
|
|
i18nKey: "agentBridge",
|
|
subtitleKey: "agentBridgeSubtitle",
|
|
icon: "link",
|
|
},
|
|
{
|
|
id: "traffic-inspector",
|
|
href: "/dashboard/tools/traffic-inspector",
|
|
i18nKey: "trafficInspector",
|
|
subtitleKey: "trafficInspectorSubtitle",
|
|
icon: "network_check",
|
|
},
|
|
{
|
|
id: "discovery",
|
|
href: "/dashboard/discovery",
|
|
i18nKey: "discovery",
|
|
subtitleKey: "discoverySubtitle",
|
|
icon: "travel_explore",
|
|
},
|
|
],
|
|
};
|
|
|
|
const INTEGRATIONS_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "integrations",
|
|
titleKey: "integrationsGroup",
|
|
titleFallback: "Integrations",
|
|
items: [
|
|
{
|
|
id: "api-endpoints",
|
|
href: "/dashboard/api-endpoints",
|
|
i18nKey: "apiEndpoints",
|
|
subtitleKey: "apiEndpointsSubtitle",
|
|
icon: "api",
|
|
},
|
|
{
|
|
id: "webhooks",
|
|
href: "/dashboard/webhooks",
|
|
i18nKey: "webhooks",
|
|
subtitleKey: "webhooksSubtitle",
|
|
icon: "webhook",
|
|
},
|
|
],
|
|
};
|
|
|
|
const PROXY_ITEM: SidebarItemDefinition = {
|
|
id: "proxy",
|
|
href: "/dashboard/system/proxy",
|
|
i18nKey: "proxy",
|
|
subtitleKey: "proxySubtitle",
|
|
icon: "dns",
|
|
};
|
|
|
|
const ANALYTICS_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "analytics",
|
|
href: "/dashboard/analytics",
|
|
i18nKey: "usage",
|
|
subtitleKey: "usageSubtitle",
|
|
icon: "analytics",
|
|
},
|
|
{
|
|
id: "analytics-combo-health",
|
|
href: "/dashboard/analytics/combo-health",
|
|
i18nKey: "analyticsComboHealth",
|
|
subtitleKey: "analyticsComboHealthSubtitle",
|
|
icon: "monitor_heart",
|
|
},
|
|
{
|
|
id: "analytics-utilization",
|
|
href: "/dashboard/analytics/utilization",
|
|
i18nKey: "analyticsUtilization",
|
|
subtitleKey: "analyticsUtilizationSubtitle",
|
|
icon: "bar_chart",
|
|
},
|
|
{
|
|
id: "cache",
|
|
href: "/dashboard/cache",
|
|
i18nKey: "cache",
|
|
subtitleKey: "cacheSubtitle",
|
|
icon: "cached",
|
|
},
|
|
{
|
|
id: "analytics-compression",
|
|
href: "/dashboard/analytics/compression",
|
|
i18nKey: "analyticsCompression",
|
|
subtitleKey: "analyticsCompressionSubtitle",
|
|
icon: "compress",
|
|
},
|
|
{
|
|
id: "analytics-search",
|
|
href: "/dashboard/analytics/search",
|
|
i18nKey: "analyticsSearch",
|
|
subtitleKey: "analyticsSearchSubtitle",
|
|
icon: "manage_search",
|
|
},
|
|
{
|
|
id: "analytics-evals",
|
|
href: "/dashboard/analytics/evals",
|
|
i18nKey: "analyticsEvals",
|
|
subtitleKey: "analyticsEvalsSubtitle",
|
|
icon: "labs",
|
|
},
|
|
{
|
|
id: "provider-stats",
|
|
href: "/dashboard/provider-stats",
|
|
i18nKey: "providerStats",
|
|
subtitleKey: "providerStatsSubtitle",
|
|
icon: "speed",
|
|
},
|
|
];
|
|
|
|
const MONITORING_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "activity",
|
|
href: "/dashboard/activity",
|
|
i18nKey: "activity",
|
|
subtitleKey: "activitySubtitle",
|
|
icon: "timeline",
|
|
},
|
|
];
|
|
|
|
const LOGS_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "logs",
|
|
titleKey: "logsGroup",
|
|
titleFallback: "Logs",
|
|
items: [
|
|
{
|
|
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",
|
|
},
|
|
],
|
|
};
|
|
|
|
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-free-tiers",
|
|
href: "/dashboard/free-tiers",
|
|
i18nKey: "costsFreeTiers",
|
|
subtitleKey: "costsFreeTiersSubtitle",
|
|
icon: "request_quote",
|
|
},
|
|
{
|
|
id: "free-provider-rankings",
|
|
href: "/dashboard/free-provider-rankings",
|
|
i18nKey: "freeProviderRankings",
|
|
subtitleKey: "freeProviderRankingsSubtitle",
|
|
icon: "leaderboard",
|
|
},
|
|
];
|
|
|
|
const AUDIT_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "audit",
|
|
titleKey: "auditGroup",
|
|
titleFallback: "Audit",
|
|
items: [
|
|
{
|
|
id: "audit",
|
|
href: "/dashboard/audit",
|
|
i18nKey: "auditLog",
|
|
subtitleKey: "auditLogSubtitle",
|
|
icon: "policy",
|
|
},
|
|
{
|
|
id: "audit-mcp",
|
|
href: "/dashboard/audit/mcp",
|
|
i18nKey: "auditMcp",
|
|
subtitleKey: "auditMcpSubtitle",
|
|
icon: "security",
|
|
},
|
|
{
|
|
id: "audit-a2a",
|
|
href: "/dashboard/audit/a2a",
|
|
i18nKey: "auditA2a",
|
|
subtitleKey: "auditA2aSubtitle",
|
|
icon: "device_hub",
|
|
},
|
|
],
|
|
};
|
|
|
|
const DEVTOOLS_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "translator",
|
|
href: "/dashboard/translator",
|
|
i18nKey: "translator",
|
|
subtitleKey: "translatorSubtitle",
|
|
icon: "translate",
|
|
},
|
|
{
|
|
id: "playground",
|
|
href: "/dashboard/playground",
|
|
i18nKey: "playground",
|
|
subtitleKey: "playgroundSubtitle",
|
|
icon: "science",
|
|
},
|
|
{
|
|
id: "search-tools",
|
|
href: "/dashboard/search-tools",
|
|
i18nKey: "searchTools",
|
|
subtitleKey: "searchToolsSubtitle",
|
|
icon: "manage_search",
|
|
},
|
|
];
|
|
|
|
const MCP_ITEM: SidebarItemDefinition = {
|
|
id: "mcp",
|
|
href: "/dashboard/mcp",
|
|
i18nKey: "mcp",
|
|
subtitleKey: "mcpSubtitle",
|
|
icon: "hub",
|
|
};
|
|
|
|
const AGENTIC_FEATURES_ITEMS: readonly SidebarSectionChild[] = [
|
|
{
|
|
id: "memory",
|
|
href: "/dashboard/memory",
|
|
i18nKey: "memory",
|
|
subtitleKey: "memorySubtitle",
|
|
icon: "psychology",
|
|
},
|
|
{
|
|
id: "agent-skills",
|
|
href: "/dashboard/agent-skills",
|
|
i18nKey: "agentSkills",
|
|
subtitleKey: "agentSkillsSubtitle",
|
|
icon: "share",
|
|
},
|
|
{
|
|
id: "chaos-config",
|
|
href: "/dashboard/chaos",
|
|
i18nKey: "chaosConfig",
|
|
labelFallback: "Chaos Mode",
|
|
subtitleKey: "chaosConfigSubtitle",
|
|
subtitleFallback: "Multi-model parallel execution",
|
|
icon: "blender",
|
|
},
|
|
{
|
|
id: "skills",
|
|
href: "/dashboard/omni-skills",
|
|
i18nKey: "omniSkills",
|
|
subtitleKey: "omniSkillsSubtitle",
|
|
icon: "auto_fix_high",
|
|
},
|
|
MCP_ITEM,
|
|
{
|
|
id: "a2a",
|
|
href: "/dashboard/a2a",
|
|
i18nKey: "a2a",
|
|
subtitleKey: "a2aSubtitle",
|
|
icon: "device_hub",
|
|
},
|
|
{
|
|
id: "plugins",
|
|
href: "/dashboard/plugins",
|
|
i18nKey: "plugins",
|
|
subtitleKey: "pluginsSubtitle",
|
|
icon: "extension",
|
|
},
|
|
];
|
|
|
|
const GAMIFICATION_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "gamification",
|
|
titleKey: "gamificationGroup",
|
|
titleFallback: "Gamification",
|
|
items: [
|
|
{
|
|
id: "leaderboard",
|
|
href: "/dashboard/leaderboard",
|
|
i18nKey: "leaderboard",
|
|
subtitleKey: "leaderboardSubtitle",
|
|
icon: "emoji_events",
|
|
},
|
|
{
|
|
id: "profile",
|
|
href: "/dashboard/profile",
|
|
i18nKey: "profile",
|
|
subtitleKey: "profileSubtitle",
|
|
icon: "person",
|
|
},
|
|
{
|
|
id: "tokens",
|
|
href: "/dashboard/tokens",
|
|
i18nKey: "tokens",
|
|
subtitleKey: "tokensSubtitle",
|
|
icon: "toll",
|
|
},
|
|
],
|
|
};
|
|
|
|
const OTHER_FEATURES_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "media",
|
|
href: "/dashboard/cache/media",
|
|
i18nKey: "media",
|
|
subtitleKey: "mediaSubtitle",
|
|
icon: "perm_media",
|
|
},
|
|
];
|
|
|
|
const BATCH_GROUP: SidebarItemGroup = {
|
|
type: "group",
|
|
id: "batch",
|
|
titleKey: "batchGroup",
|
|
titleFallback: "Batch",
|
|
items: [
|
|
{
|
|
id: "batch",
|
|
href: "/dashboard/batch",
|
|
i18nKey: "batch",
|
|
subtitleKey: "batchSubtitle",
|
|
icon: "view_list",
|
|
},
|
|
{
|
|
id: "batch-files",
|
|
href: "/dashboard/batch/files",
|
|
i18nKey: "batchFiles",
|
|
subtitleKey: "batchFilesSubtitle",
|
|
icon: "folder",
|
|
},
|
|
],
|
|
};
|
|
|
|
const CONFIGURATION_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "settings-general",
|
|
href: "/dashboard/settings/general",
|
|
i18nKey: "settingsGeneral",
|
|
subtitleKey: "settingsGeneralSubtitle",
|
|
icon: "tune",
|
|
},
|
|
{
|
|
id: "settings-appearance",
|
|
href: "/dashboard/settings/appearance",
|
|
i18nKey: "settingsAppearance",
|
|
subtitleKey: "settingsAppearanceSubtitle",
|
|
icon: "palette",
|
|
},
|
|
{
|
|
id: "settings-ai",
|
|
href: "/dashboard/settings/ai",
|
|
i18nKey: "settingsAi",
|
|
subtitleKey: "settingsAiSubtitle",
|
|
icon: "auto_awesome",
|
|
},
|
|
{
|
|
id: "settings-routing",
|
|
href: "/dashboard/settings/routing",
|
|
i18nKey: "globalRouting",
|
|
subtitleKey: "globalRoutingSubtitle",
|
|
icon: "route",
|
|
},
|
|
{
|
|
id: "settings-resilience",
|
|
href: "/dashboard/settings/resilience",
|
|
i18nKey: "settingsResilience",
|
|
subtitleKey: "settingsResilienceSubtitle",
|
|
icon: "health_and_safety",
|
|
},
|
|
{
|
|
id: "settings-advanced",
|
|
href: "/dashboard/settings/advanced",
|
|
i18nKey: "settingsAdvanced",
|
|
subtitleKey: "settingsAdvancedSubtitle",
|
|
icon: "engineering",
|
|
},
|
|
{
|
|
id: "settings-security",
|
|
href: "/dashboard/settings/security",
|
|
i18nKey: "settingsSecurity",
|
|
subtitleKey: "settingsSecuritySubtitle",
|
|
icon: "shield",
|
|
},
|
|
{
|
|
id: "settings-access-tokens",
|
|
href: "/dashboard/settings/access-tokens",
|
|
i18nKey: "settingsAccessTokens",
|
|
labelFallback: "Access Tokens",
|
|
subtitleKey: "settingsAccessTokensSubtitle",
|
|
icon: "key",
|
|
},
|
|
{
|
|
id: "settings-feature-flags",
|
|
href: "/dashboard/settings/feature-flags",
|
|
i18nKey: "settingsFeatureFlags",
|
|
subtitleKey: "settingsFeatureFlagsSubtitle",
|
|
icon: "flag",
|
|
},
|
|
{
|
|
id: "settings-sidebar",
|
|
href: "/dashboard/settings/sidebar",
|
|
i18nKey: "settingsSidebar",
|
|
subtitleKey: "settingsSidebarSubtitle",
|
|
icon: "view_sidebar",
|
|
},
|
|
];
|
|
|
|
const HELP_ITEMS: readonly SidebarItemDefinition[] = [
|
|
{
|
|
id: "docs",
|
|
href: "/docs",
|
|
i18nKey: "docs",
|
|
subtitleKey: "docsSubtitle",
|
|
icon: "menu_book",
|
|
external: true,
|
|
},
|
|
{
|
|
id: "issues",
|
|
href: "https://github.com/diegosouzapw/OmniRoute/issues",
|
|
i18nKey: "issues",
|
|
subtitleKey: "issuesSubtitle",
|
|
icon: "bug_report",
|
|
external: true,
|
|
},
|
|
{
|
|
id: "changelog",
|
|
href: "/dashboard/changelog",
|
|
i18nKey: "changelog",
|
|
subtitleKey: "changelogSubtitle",
|
|
icon: "campaign",
|
|
},
|
|
];
|
|
|
|
// ─── Sections ────────────────────────────────────────────────────────────────
|
|
|
|
export const SIDEBAR_SECTIONS: readonly SidebarSectionDefinition[] = [
|
|
{
|
|
id: "home",
|
|
titleKey: "home",
|
|
titleFallback: "Home",
|
|
children: HOME_ITEMS,
|
|
showTitle: false,
|
|
},
|
|
{
|
|
id: "omni-proxy",
|
|
titleKey: "omniProxySection",
|
|
titleFallback: "OmniProxy",
|
|
children: [
|
|
...OMNI_PROXY_ITEMS,
|
|
COMPRESSION_CONTEXT_GROUP,
|
|
TOOLS_GROUP,
|
|
INTEGRATIONS_GROUP,
|
|
PROXY_ITEM,
|
|
],
|
|
},
|
|
{
|
|
id: "analytics",
|
|
titleKey: "analyticsSection",
|
|
titleFallback: "Analytics",
|
|
children: ANALYTICS_ITEMS,
|
|
},
|
|
{
|
|
id: "costs",
|
|
titleKey: "costsSection",
|
|
titleFallback: "Costs",
|
|
children: COSTS_ITEMS,
|
|
},
|
|
{
|
|
id: "monitoring",
|
|
titleKey: "monitoringSection",
|
|
titleFallback: "Monitoring",
|
|
children: [...MONITORING_ITEMS, LOGS_GROUP, AUDIT_GROUP, SYSTEM_GROUP],
|
|
},
|
|
{
|
|
id: "devtools",
|
|
titleKey: "devtoolsSection",
|
|
titleFallback: "Dev Tools",
|
|
children: DEVTOOLS_ITEMS,
|
|
visibility: "debug",
|
|
},
|
|
{
|
|
id: "agentic-features",
|
|
titleKey: "agenticFeaturesSection",
|
|
titleFallback: "Agentic Features",
|
|
children: AGENTIC_FEATURES_ITEMS,
|
|
},
|
|
{
|
|
id: "other-features",
|
|
titleKey: "otherFeaturesSection",
|
|
titleFallback: "Other Features",
|
|
children: [GAMIFICATION_GROUP, ...OTHER_FEATURES_ITEMS, BATCH_GROUP],
|
|
},
|
|
{
|
|
id: "configuration",
|
|
titleKey: "configurationSection",
|
|
titleFallback: "Configuration",
|
|
children: CONFIGURATION_ITEMS,
|
|
},
|
|
{
|
|
id: "help",
|
|
titleKey: "helpSection",
|
|
titleFallback: "Help",
|
|
children: HELP_ITEMS,
|
|
},
|
|
] as const;
|