⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { useLocation } from "@tanstack/react-router";
import type * as React from "react";
import { useEffect } from "react";
import { NavMain } from "@/components/nav-main";
import { NavProjects } from "@/components/nav-projects";
import { NavSecondary } from "@/components/nav-secondary";
import { ThemeToggleDropdown } from "@/components/theme-toggle-dropdown";
import { TrialCard } from "@/components/trial-card";
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarHeader,
useSidebar,
} from "@/components/ui/sidebar";
import { VersionDisplay } from "@/components/version-display";
import { WorkspaceSwitcher } from "@/components/workspace-switcher";
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
const { setOpenMobile } = useSidebar();
const pathname = useLocation({ select: (location) => location.pathname });
// Navigation that doesn't start from a sidebar link (creating a project,
// the command palette) must still dismiss the mobile drawer.
useEffect(() => {
if (pathname) setOpenMobile(false);
}, [pathname, setOpenMobile]);
return (
<Sidebar
collapsible="offcanvas"
variant="inset"
className="border-none"
{...props}
>
<SidebarHeader className="pt-1 pb-1.5">
<WorkspaceSwitcher />
</SidebarHeader>
<SidebarContent className="overflow-hidden gap-1 py-1">
<NavMain />
<NavProjects />
</SidebarContent>
<SidebarFooter>
<NavSecondary />
<TrialCard />
<div className="flex items-center justify-between">
<VersionDisplay />
<ThemeToggleDropdown />
</div>
</SidebarFooter>
</Sidebar>
);
}