refactor: consolidate tabs — remove standalone Logs and Config tabs
Logs functionality already exists in Runtime tab (AgentHealth/AgentInstance). Config functionality moved to Deployments tab ConfigSubTab. Old routes redirect to /runtime and /apps respectively. Navigation links updated throughout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,9 +18,7 @@ const OidcConfigPage = lazy(() => import('./pages/Admin/OidcConfigPage'));
|
||||
const DatabaseAdminPage = lazy(() => import('./pages/Admin/DatabaseAdminPage'));
|
||||
const ClickHouseAdminPage = lazy(() => import('./pages/Admin/ClickHouseAdminPage'));
|
||||
const EnvironmentsPage = lazy(() => import('./pages/Admin/EnvironmentsPage'));
|
||||
const AppConfigPage = lazy(() => import('./pages/Admin/AppConfigPage'));
|
||||
const AppsTab = lazy(() => import('./pages/AppsTab/AppsTab'));
|
||||
const LogsPage = lazy(() => import('./pages/LogsTab/LogsPage'));
|
||||
const SwaggerPage = lazy(() => import('./pages/Swagger/SwaggerPage'));
|
||||
|
||||
function SuspenseWrapper({ children }: { children: React.ReactNode }) {
|
||||
@@ -61,14 +59,12 @@ export const router = createBrowserRouter([
|
||||
{ path: 'runtime/:appId', element: <SuspenseWrapper><RuntimePage /></SuspenseWrapper> },
|
||||
{ path: 'runtime/:appId/:instanceId', element: <SuspenseWrapper><RuntimePage /></SuspenseWrapper> },
|
||||
|
||||
// Logs tab
|
||||
{ path: 'logs', element: <SuspenseWrapper><LogsPage /></SuspenseWrapper> },
|
||||
{ path: 'logs/:appId', element: <SuspenseWrapper><LogsPage /></SuspenseWrapper> },
|
||||
{ path: 'logs/:appId/:routeId', element: <SuspenseWrapper><LogsPage /></SuspenseWrapper> },
|
||||
|
||||
// Config tab (accessible to VIEWER+, shows all apps or single app)
|
||||
{ path: 'config', element: <SuspenseWrapper><AppConfigPage /></SuspenseWrapper> },
|
||||
{ path: 'config/:appId', element: <SuspenseWrapper><AppConfigPage /></SuspenseWrapper> },
|
||||
// Redirects for removed tabs
|
||||
{ path: 'logs', element: <Navigate to="/runtime" replace /> },
|
||||
{ path: 'logs/:appId', element: <Navigate to="/runtime" replace /> },
|
||||
{ path: 'logs/:appId/:routeId', element: <Navigate to="/runtime" replace /> },
|
||||
{ path: 'config', element: <Navigate to="/apps" replace /> },
|
||||
{ path: 'config/:appId', element: <Navigate to="/apps" replace /> },
|
||||
|
||||
// Apps tab (OPERATOR+ via UI guard, shows all or single app)
|
||||
{ path: 'apps', element: <SuspenseWrapper><AppsTab /></SuspenseWrapper> },
|
||||
|
||||
Reference in New Issue
Block a user