Add assistant creation flows with prompt and workflow modes.
Build the prompt-mode creation form, add a workflow page, and reorganize sidebar navigation into assistant sub-routes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import { Topbar } from "./Topbar";
|
||||
|
||||
import { HomePage } from "@/components/pages/HomePage";
|
||||
import { AssistantPage } from "@/components/pages/AssistantPage";
|
||||
import { AssistantWorkflowPage } from "@/components/pages/AssistantWorkflowPage";
|
||||
import { ComponentsPage } from "@/components/pages/ComponentsPage";
|
||||
import { HistoryPage } from "@/components/pages/HistoryPage";
|
||||
import { TestPage } from "@/components/pages/TestPage";
|
||||
@@ -14,7 +15,8 @@ import { ProfilePage } from "@/components/pages/ProfilePage";
|
||||
|
||||
export type NavKey =
|
||||
| "home"
|
||||
| "assistants"
|
||||
| "assistant-prompt"
|
||||
| "assistant-workflow"
|
||||
| "components"
|
||||
| "history"
|
||||
| "test"
|
||||
@@ -38,8 +40,11 @@ export function AppShell() {
|
||||
<Topbar />
|
||||
|
||||
<div className="flex-1 overflow-y-auto px-8 py-7">
|
||||
{active === "home" && <HomePage />}
|
||||
{active === "assistants" && <AssistantPage />}
|
||||
{active === "home" && <HomePage onNavigate={setActive} />}
|
||||
|
||||
{active === "assistant-prompt" && <AssistantPage />}
|
||||
{active === "assistant-workflow" && <AssistantWorkflowPage />}
|
||||
|
||||
{active === "components" && <ComponentsPage />}
|
||||
{active === "history" && <HistoryPage />}
|
||||
{active === "test" && <TestPage />}
|
||||
|
||||
Reference in New Issue
Block a user