Skip to content

Commit

Permalink
Move assitant v2 in Labs for now (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Sep 11, 2023
1 parent a1c6ec4 commit e948c6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion front/components/sparkle/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion front/pages/w/[wId]/assistant/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -66,7 +67,8 @@ export default function AssistantNew({
user={user}
owner={owner}
gaTrackingId={gaTrackingId}
topNavigationCurrent="assistant"
topNavigationCurrent="lab"
subNavigation={subNavigationLab({ owner, current: "assistant" })}
>
<PageHeader
title="Welcome to Assistant"
Expand Down

0 comments on commit e948c6f

Please sign in to comment.