mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 09:48:27 +00:00
* Feat: added integration connect and mcp oAuth * Feat: add mcp support to chat * Fix: UI for integrations and logs * Fix: ui * Fix: proxy server * Feat: enhance MCP tool integration and loading functionality * Fix: added header * Fix: Linear integration sync --------- Co-authored-by: Manoj K <saimanoj58@gmail.com>
76 lines
1.7 KiB
TypeScript
76 lines
1.7 KiB
TypeScript
import * as React from "react";
|
|
|
|
import {
|
|
Sidebar,
|
|
SidebarContent,
|
|
SidebarFooter,
|
|
SidebarHeader,
|
|
SidebarMenu,
|
|
SidebarMenuItem,
|
|
} from "../ui/sidebar";
|
|
import { Activity, LayoutGrid, MessageSquare, Network } from "lucide-react";
|
|
import { NavMain } from "./nav-main";
|
|
import { useUser } from "~/hooks/useUser";
|
|
import { NavUser } from "./nav-user";
|
|
import Logo from "../logo/logo";
|
|
import { ConversationList } from "../conversation";
|
|
|
|
const data = {
|
|
navMain: [
|
|
{
|
|
title: "Conversation",
|
|
url: "/home/conversation",
|
|
icon: MessageSquare,
|
|
},
|
|
{
|
|
title: "Memory",
|
|
url: "/home/dashboard",
|
|
icon: Network,
|
|
},
|
|
{
|
|
title: "Logs",
|
|
url: "/home/logs",
|
|
icon: Activity,
|
|
},
|
|
{
|
|
title: "Integrations",
|
|
url: "/home/integrations",
|
|
icon: LayoutGrid,
|
|
},
|
|
],
|
|
};
|
|
|
|
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
|
const user = useUser();
|
|
|
|
return (
|
|
<Sidebar
|
|
variant="inset"
|
|
{...props}
|
|
className="bg-background h-[100vh] py-2"
|
|
>
|
|
<SidebarHeader>
|
|
<SidebarMenu>
|
|
<SidebarMenuItem>
|
|
<div className="mt-1 ml-1 flex w-full items-center justify-start gap-2">
|
|
<Logo width={20} height={20} />
|
|
C.O.R.E.
|
|
</div>
|
|
</SidebarMenuItem>
|
|
</SidebarMenu>
|
|
</SidebarHeader>
|
|
<SidebarContent>
|
|
<NavMain items={data.navMain} />
|
|
<div className="mt-4 flex h-full flex-col">
|
|
<h2 className="text-muted-foreground px-4 text-sm"> History </h2>
|
|
<ConversationList />
|
|
</div>
|
|
</SidebarContent>
|
|
|
|
<SidebarFooter className="px-2">
|
|
<NavUser user={user} />
|
|
</SidebarFooter>
|
|
</Sidebar>
|
|
);
|
|
}
|