The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(navIcons): correct icon import path for production builds
Steven Enamakel12ee2f4ae30f
diff --git a/app/src/components/layout/shell/navIcons.tsx b/app/src/components/layout/shell/navIcons.tsxindex d97c79c062..5a04a678ac 100644--- a/app/src/components/layout/shell/navIcons.tsx+++ b/app/src/components/layout/shell/navIcons.tsx@@ -1,199 +1,53 @@+import type { IconType } from 'react-icons';+import {+ LuActivity,+ LuBrain,+ LuGift,+ LuHouse,+ LuKeyboard,+ LuMegaphone,+ LuMessageCircle,+ LuNetwork,+ LuSettings,+ LuUserRound,+ LuWallet,+ LuWaypoints,+ LuWorkflow,+} from 'react-icons/lu';+/**- * Line-art icons for the static sidebar navigation, keyed by `NavTab.id`.+ * Icon set for the static sidebar navigation, keyed by `NavTab.id`.*- * Extracted from the former `BottomTabBar` so the root-shell `SidebarNav` owns- * the icon set. Pure presentational SVGs — no state, no i18n.+ * Was 199 lines of hand-drawn `<path d="…">` line art; now a lookup into+ * `react-icons/lu` (lucide, already a dependency and already used at 20++ * other sites in this repo — see AGENTS.md). Keeping the `<NavIcon id=… />`+ * shape means every call site (`SidebarNav`, `CollapsedNavRail`, `AppSidebar`)+ * is unchanged; only this file's body did.*/+const ICONS: Record<string, IconType> = {+ home: LuHouse,+ human: LuUserRound,+ chat: LuMessageCircle,+ feedback: LuMegaphone,+ connections: LuNetwork,+ activity: LuActivity,+ settings: LuSettings,+ flows: LuWorkflow,+ orchestration: LuWaypoints,+ wallet: LuWallet,+ brain: LuBrain,+ keyboard: LuKeyboard,+ rewards: LuGift,+};+interface NavIconProps {id: string;className?: string;}export function NavIcon({ id, className = 'w-5 h-5' }: NavIconProps) {- switch (id) {- case 'home':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-4 0a2 2 0 01-2-2v-4a2 2 0 012-2h2a2 2 0 012 2v4a2 2 0 01-2 2h-2z"- />- </svg>- );- case 'human':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14c-4 0-7 2.5-7 6h14c0-3.5-3-6-7-6z"- />- </svg>- );- case 'chat':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"- />- </svg>- );- case 'feedback':- // Chat bubble with an upvote chevron — feedback board + voting.- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"- />- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M9.5 12l2.5-2.5 2.5 2.5"- />- </svg>- );- case 'connections':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M14 10l-2 1m0 0l-2-1m2 1v2.5M20 7l-2 1m2-1l-2-1m2 1v2.5M14 4l-2-1-2 1M4 7l2-1M4 7l2 1M4 7v2.5M12 21l-2-1m2 1l2-1m-2 1v-2.5M6 18l-2-1v-2.5M18 18l2-1v-2.5"- />- </svg>- );- case 'activity':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"- />- </svg>- );- case 'settings':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"- />- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"- />- </svg>- );- case 'flows':- // Three connected nodes — a saved automation graph, matching the- // Workflows list page's empty-state glyph (FlowsPage.tsx).- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <circle cx="5" cy="6" r="2" strokeWidth={1.8} />- <circle cx="5" cy="18" r="2" strokeWidth={1.8} />- <circle cx="19" cy="12" r="2" strokeWidth={1.8} />- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M7 6h4a4 4 0 014 4M7 18h4a4 4 0 004-4"- />- </svg>- );- case 'orchestration':- // Conductor/hub glyph — one root node branching to two workers,- // representing multi-agent orchestration (distinct from the horizontal- // `flows` automation graph).- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <circle cx="12" cy="5" r="2" strokeWidth={1.8} />- <circle cx="5" cy="19" r="2" strokeWidth={1.8} />- <circle cx="19" cy="19" r="2" strokeWidth={1.8} />- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M12 7v3m0 0l-5.5 6M12 10l5.5 6"- />- </svg>- );- case 'wallet':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"- />- </svg>- );- case 'brain':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M9.5 2A2.5 2.5 0 0112 4.5v15a2.5 2.5 0 01-4.96.44 2.5 2.5 0 01-2.96-3.08 3 3 0 01-.34-5.58 2.5 2.5 0 011.32-4.24 2.5 2.5 0 011.98-3A2.5 2.5 0 019.5 2z"- />- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M14.5 2A2.5 2.5 0 0012 4.5v15a2.5 2.5 0 004.96.44 2.5 2.5 0 002.96-3.08 3 3 0 00.34-5.58 2.5 2.5 0 00-1.32-4.24 2.5 2.5 0 00-1.98-3A2.5 2.5 0 0014.5 2z"- />- </svg>- );- case 'keyboard':- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M4 6h16a1 1 0 011 1v10a1 1 0 01-1 1H4a1 1 0 01-1-1V7a1 1 0 011-1z"- />- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M7 10h.01M11 10h.01M15 10h.01M17 10h.01M7 13h.01M9 16h6"- />- </svg>- );- case 'rewards':- // Gift box — mirrors the glyph the Rewards page uses for its own header- // and welcome icon, so the sidebar entry reads as the same destination.- return (- <svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth={1.8}- d="M12 8v8m0-8l-3-3m3 3l3-3M8 14H6a2 2 0 01-2-2V7a2 2 0 012-2h2m8 9h2a2 2 0 002-2V7a2 2 0 00-2-2h-2M7 19h10"- />- </svg>- );- default:- return null;- }+ const Icon = ICONS[id];+ if (!Icon) return null;+ return <Icon className={className} aria-hidden="true" />;}