From b994e82c563cf2da3464ce088466d227b44a9676 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Thu, 2 Apr 2026 17:31:47 +0000 Subject: [PATCH] feat: add /cockpit routes, point /assistant to FlowPilotPage Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/router.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/router.tsx b/frontend/src/router.tsx index 8d3ee958..282f33ba 100644 --- a/frontend/src/router.tsx +++ b/frontend/src/router.tsx @@ -47,6 +47,7 @@ const FeedbackPage = lazyWithRetry(() => import('@/pages/FeedbackPage')) const StepLibraryPage = lazyWithRetry(() => import('@/pages/StepLibraryPage')) const ScriptLibraryPage = lazyWithRetry(() => import('@/pages/ScriptLibraryPage')) const ScriptManagePage = lazyWithRetry(() => import('@/pages/ScriptManagePage')) +const FlowPilotPage = lazyWithRetry(() => import('@/pages/FlowPilotPage')) const CockpitPage = lazyWithRetry(() => import('@/pages/CockpitPage')) const FlowAssistPage = lazyWithRetry(() => import('@/pages/FlowAssistPage')) const FlowPilotSessionPage = lazyWithRetry(() => import('@/pages/FlowPilotSessionPage')) @@ -197,8 +198,10 @@ export const router = sentryCreateBrowserRouter([ { path: 'scripts/manage', element: page(ScriptManagePage) }, { path: 'script-builder', element: page(ScriptBuilderPage) }, { path: 'kb-accelerator', element: page(KBAcceleratorPage) }, - { path: 'assistant', element: page(CockpitPage) }, - { path: 'assistant/:sessionId', element: page(CockpitPage) }, + { path: 'assistant', element: page(FlowPilotPage) }, + { path: 'assistant/:sessionId', element: page(FlowPilotPage) }, + { path: 'cockpit', element: page(CockpitPage) }, + { path: 'cockpit/:sessionId', element: page(CockpitPage) }, { path: 'flow-assist', element: page(FlowAssistPage) }, { path: 'pilot', element: page(FlowPilotSessionPage) }, { path: 'pilot/:sessionId', element: page(FlowPilotSessionPage) },