Add the nullable FIGI migration, owner-scoped asset identity operations, and the explicit index search and selection flow. Refs #4 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
44 lines
1.8 KiB
TypeScript
44 lines
1.8 KiB
TypeScript
import { createBrowserRouter, Navigate } from 'react-router-dom'
|
||
import { AppLayout } from '@/components/layout/AppLayout'
|
||
import { Login } from '@/pages/Login'
|
||
import { Dashboard } from '@/pages/Dashboard'
|
||
import { Watchlist } from '@/pages/Watchlist'
|
||
import { AdminLayout } from '@/pages/admin/AdminLayout'
|
||
import { AIProviders } from '@/pages/admin/AIProviders'
|
||
import { Credentials } from '@/pages/admin/Credentials'
|
||
import { Sources } from '@/pages/admin/Sources'
|
||
import { AdminUsers } from '@/pages/admin/AdminUsers'
|
||
import { AdminSettings } from '@/pages/admin/AdminSettings'
|
||
import { Schedule } from '@/pages/admin/Schedule'
|
||
import { Preferences } from '@/pages/Preferences'
|
||
import { Reports } from '@/pages/Reports'
|
||
|
||
export const router = createBrowserRouter([
|
||
{ path: '/login', element: <Login /> },
|
||
{
|
||
element: <AppLayout />,
|
||
children: [
|
||
{ path: '/', element: <Dashboard /> },
|
||
{ path: '/feed', element: <Navigate to="/" replace state={{ notice: 'Le fil d’articles a été retiré. Retrouvez vos synthèses et leurs bilans ici.' }} /> },
|
||
{ path: '/assets', element: <Watchlist /> },
|
||
{ path: '/watchlist', element: <Navigate to="/assets" replace /> },
|
||
{ path: '/preferences', element: <Preferences /> },
|
||
{ path: '/reports', element: <Reports /> },
|
||
{
|
||
path: '/admin',
|
||
element: <AdminLayout />,
|
||
children: [
|
||
{ index: true, element: <AIProviders /> },
|
||
{ path: 'ai', element: <AIProviders /> },
|
||
{ path: 'credentials', element: <Credentials /> },
|
||
{ path: 'sources', element: <Sources /> },
|
||
{ path: 'jobs', element: <Navigate to="/admin/sources" replace /> },
|
||
{ path: 'users', element: <AdminUsers /> },
|
||
{ path: 'settings', element: <AdminSettings /> },
|
||
{ path: 'schedule', element: <Schedule /> },
|
||
],
|
||
},
|
||
],
|
||
},
|
||
])
|