Replace disconnected Transactions/Applications pages with a persistent collapsible sidebar listing apps by health status. Add app-scoped view (/apps/:group) with filtered stats, route chips, and scoped table. Merge Processor Tree into diagram detail panel with Inspector/Tree toggle and resizable divider. Remove max-width constraint for full viewport usage. All view states are deep-linkable via URL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import { createBrowserRouter, Navigate } from 'react-router';
|
|
import { lazy, Suspense } from 'react';
|
|
import { AppShell } from './components/layout/AppShell';
|
|
import { ProtectedRoute } from './auth/ProtectedRoute';
|
|
import { LoginPage } from './auth/LoginPage';
|
|
import { OidcCallback } from './auth/OidcCallback';
|
|
import { ExecutionExplorer } from './pages/executions/ExecutionExplorer';
|
|
import { OidcAdminPage } from './pages/admin/OidcAdminPage';
|
|
import { RoutePage } from './pages/routes/RoutePage';
|
|
import { AppScopedView } from './pages/dashboard/AppScopedView';
|
|
|
|
const SwaggerPage = lazy(() => import('./pages/swagger/SwaggerPage').then(m => ({ default: m.SwaggerPage })));
|
|
|
|
export const router = createBrowserRouter([
|
|
{
|
|
path: '/login',
|
|
element: <LoginPage />,
|
|
},
|
|
{
|
|
path: '/oidc/callback',
|
|
element: <OidcCallback />,
|
|
},
|
|
{
|
|
element: <ProtectedRoute />,
|
|
children: [
|
|
{
|
|
element: <AppShell />,
|
|
children: [
|
|
{ index: true, element: <Navigate to="/executions" replace /> },
|
|
{ path: 'executions', element: <ExecutionExplorer /> },
|
|
{ path: 'apps/:group', element: <AppScopedView /> },
|
|
{ path: 'apps/:group/routes/:routeId', element: <RoutePage /> },
|
|
{ path: 'admin/oidc', element: <OidcAdminPage /> },
|
|
{ path: 'swagger', element: <Suspense fallback={null}><SwaggerPage /></Suspense> },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
]);
|