diff --git a/apps/x/apps/renderer/src/components/connectors-popover.tsx b/apps/x/apps/renderer/src/components/connectors-popover.tsx index fc416a39..cc8ddc28 100644 --- a/apps/x/apps/renderer/src/components/connectors-popover.tsx +++ b/apps/x/apps/renderer/src/components/connectors-popover.tsx @@ -9,6 +9,11 @@ import { PopoverContent, PopoverTrigger, } from "@/components/ui/popover" +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { Switch } from "@/components/ui/switch" @@ -23,9 +28,10 @@ interface ProviderState { interface ConnectorsPopoverProps { children: React.ReactNode + tooltip?: string } -export function ConnectorsPopover({ children }: ConnectorsPopoverProps) { +export function ConnectorsPopover({ children, tooltip }: ConnectorsPopoverProps) { const [open, setOpen] = useState(false) const [providers, setProviders] = useState([]) const [providersLoading, setProvidersLoading] = useState(true) @@ -199,9 +205,22 @@ export function ConnectorsPopover({ children }: ConnectorsPopoverProps) { return ( - - {children} - + {tooltip ? ( + + + + {children} + + + + {tooltip} + + + ) : ( + + {children} + + )} { + window.open("https://discord.com/invite/rxB8pzHxaS", "_blank") + } + + return ( + + {tooltip ? ( + + + + {children} + + + + {tooltip} + + + ) : ( + + {children} + + )} + +
+

Help & Support

+

+ Get help from our community +

+
+
+ +
+
+
+ ) +} diff --git a/apps/x/apps/renderer/src/components/sidebar-icon.tsx b/apps/x/apps/renderer/src/components/sidebar-icon.tsx index cb076358..20fbae63 100644 --- a/apps/x/apps/renderer/src/components/sidebar-icon.tsx +++ b/apps/x/apps/renderer/src/components/sidebar-icon.tsx @@ -8,7 +8,6 @@ import { Plug, Settings, Ship, - Trash2, } from "lucide-react" import { cn } from "@/lib/utils" @@ -19,6 +18,7 @@ import { } from "@/components/ui/tooltip" import { type ActiveSection, useSidebarSection } from "@/contexts/sidebar-context" import { ConnectorsPopover } from "@/components/connectors-popover" +import { HelpPopover } from "@/components/help-popover" type NavItem = { id: ActiveSection @@ -26,23 +26,11 @@ type NavItem = { icon: React.ElementType } -type SecondaryItem = { - id: string - title: string - icon: React.ElementType - action?: () => void -} - const navItems: NavItem[] = [ { id: "knowledge", title: "Knowledge", icon: Brain }, { id: "agents", title: "Agents", icon: Bot }, ] -const secondaryItems: SecondaryItem[] = [ - { id: "trash", title: "Trash", icon: Trash2 }, - { id: "help", title: "Help", icon: HelpCircle }, -] - export function SidebarIcon() { const { activeSection, setActiveSection } = useSidebarSection() @@ -80,7 +68,7 @@ export function SidebarIcon() { {/* Secondary navigation (bottom) */} )