UI for workflow templates (#1715)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-02-04 21:40:55 +08:00
committed by GitHub
parent e2d3d7fec5
commit d34a403c8f
27 changed files with 673 additions and 330 deletions

View File

@@ -1,8 +1,12 @@
import { RobotIcon } from "@/components/icons/RobotIcon";
import { CompassIcon } from "@/components/icons/CompassIcon";
import { NavLinkGroup } from "@/components/NavLinkGroup";
import { useSidebarStore } from "@/store/SidebarStore";
import { cn } from "@/util/utils";
import { GearIcon, LightningBoltIcon } from "@radix-ui/react-icons";
import {
CounterClockwiseClockIcon,
GearIcon,
LightningBoltIcon,
} from "@radix-ui/react-icons";
function SideNav() {
const { collapsed } = useSidebarStore();
@@ -14,18 +18,23 @@ function SideNav() {
})}
>
<NavLinkGroup
title={"Build"}
title="Build"
links={[
{
label: "Tasks",
to: "/tasks",
icon: <RobotIcon className="size-6" />,
label: "Discover",
to: "/discover",
icon: <CompassIcon className="size-6" />,
},
{
label: "Workflows",
to: "/workflows",
icon: <LightningBoltIcon className="size-6" />,
},
{
label: "History",
to: "/history",
icon: <CounterClockwiseClockIcon className="size-6" />,
},
]}
/>
<NavLinkGroup