diff --git a/front/components/sparkle/navigation.tsx b/front/components/sparkle/navigation.tsx index f6632e7cf3ee..45ed8345fdfc 100644 --- a/front/components/sparkle/navigation.tsx +++ b/front/components/sparkle/navigation.tsx @@ -36,7 +36,7 @@ export type SubNavigationAppId = | "execute" | "runs" | "settings"; -export type SubNavigationLabId = "gens" | "extract"; +export type SubNavigationLabId = "gens" | "extract" | "assistant"; export type SparkleAppLayoutNavigation = { id: @@ -246,6 +246,13 @@ export const subNavigationLab = ({ href: `/w/${owner.sId}/u/gens`, current: current === "gens", }, + { + id: "assistant", + label: "Assistant v2", + icon: RobotIcon, + href: `/w/${owner.sId}/assistant/new`, + current: current === "assistant", + }, ]; return nav; diff --git a/front/pages/w/[wId]/assistant/new.tsx b/front/pages/w/[wId]/assistant/new.tsx index 1fdb3646ef25..10122f1e2c92 100644 --- a/front/pages/w/[wId]/assistant/new.tsx +++ b/front/pages/w/[wId]/assistant/new.tsx @@ -10,6 +10,7 @@ import { GetServerSideProps, InferGetServerSidePropsType } from "next"; import { useRouter } from "next/router"; import AppLayout from "@app/components/sparkle/AppLayout"; +import { subNavigationLab } from "@app/components/sparkle/navigation"; import { Authenticator, getSession, getUserFromSession } from "@app/lib/auth"; import { UserType, WorkspaceType } from "@app/types/user"; @@ -66,7 +67,8 @@ export default function AssistantNew({ user={user} owner={owner} gaTrackingId={gaTrackingId} - topNavigationCurrent="assistant" + topNavigationCurrent="lab" + subNavigation={subNavigationLab({ owner, current: "assistant" })} >