From 382f500f39353e4beee685262c251e45fd54285c Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sat, 25 Jul 2026 01:43:07 +0200 Subject: [PATCH] fix: Add Communication page as explicit route in router - Add /communication route at top level (not inside /settings) - Add CommunicationPage lazy import alongside other pages - This ensures the page is properly code-split and loaded in production --- frontend/src/routes/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/routes/index.tsx b/frontend/src/routes/index.tsx index 9b79d67..cdac7ea 100644 --- a/frontend/src/routes/index.tsx +++ b/frontend/src/routes/index.tsx @@ -50,6 +50,7 @@ const AgentDashboardPage = React.lazy(() => import('@/pages/AgentDashboard').the const AutomationSettingsPage = React.lazy(() => import('@/pages/AutomationSettings').then(m => ({ default: m.AutomationSettingsPage }))); const ReportsPage = React.lazy(() => import('@/pages/Reports').then(m => ({ default: m.ReportsPage }))); const TasksPage = React.lazy(() => import('@/pages/Tasks').then(m => ({ default: m.TasksPage }))); +const CommunicationPage = React.lazy(() => import('@/pages/Communication').then(m => ({ default: m.CommunicationPage }))); /** Centered spinner fallback for lazy-loaded routes */ function PageLoader() { @@ -122,6 +123,7 @@ const router = createBrowserRouter([ { path: '/agents', element: withSuspense() }, { path: '/reports', element: withSuspense() }, { path: '/tasks', element: withSuspense() }, + { path: '/communication', element: withSuspense() }, { path: '/profile', element: withSuspense() }, { path: '/settings',