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:
Xin Wang
2026-06-05 10:56:13 +08:00
parent a804d71fae
commit f81414c88f
5 changed files with 664 additions and 41 deletions

View File

@@ -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 />}