Files
TradarrV2/frontend/src/lib/router.tsx
Blomios 8f42c30ec6 feat(assets): track selected indices by FIGI
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>
2026-11-20 22:31:52 +01:00

44 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 /> },
],
},
],
},
])