diff --git a/ui/src/pages/RagChatTab/Sessions/SessionItem.tsx b/ui/src/pages/RagChatTab/Sessions/SessionItem.tsx index 42380a1..3e1ed88 100644 --- a/ui/src/pages/RagChatTab/Sessions/SessionItem.tsx +++ b/ui/src/pages/RagChatTab/Sessions/SessionItem.tsx @@ -97,7 +97,7 @@ const SessionItem = ({ session }: { session: Session }) => { return ( { setIsHovered(true); }} diff --git a/ui/src/routeTree.gen.ts b/ui/src/routeTree.gen.ts index 0c42390..d4847c3 100644 --- a/ui/src/routeTree.gen.ts +++ b/ui/src/routeTree.gen.ts @@ -1,12 +1,12 @@ -/* prettier-ignore-start */ - /* eslint-disable */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols -// This file is auto-generated by TanStack Router +// This file was automatically generated by TanStack Router. +// You should NOT make any changes in this file as it will be overwritten. +// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. import { createFileRoute } from '@tanstack/react-router' @@ -33,16 +33,19 @@ const LayoutRoute = LayoutImport.update({ } as any) const IndexRoute = IndexImport.update({ + id: '/', path: '/', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route)) const LayoutDataRoute = LayoutDataImport.update({ + id: '/data', path: '/data', getParentRoute: () => LayoutRoute, } as any) const LayoutSessionsIndexRoute = LayoutSessionsIndexImport.update({ + id: '/sessions/', path: '/sessions/', getParentRoute: () => LayoutRoute, } as any).lazy(() => @@ -50,6 +53,7 @@ const LayoutSessionsIndexRoute = LayoutSessionsIndexImport.update({ ) const LayoutSessionsSessionIdRoute = LayoutSessionsSessionIdImport.update({ + id: '/sessions/$sessionId', path: '/sessions/$sessionId', getParentRoute: () => LayoutRoute, } as any).lazy(() => @@ -64,6 +68,7 @@ const LayoutDataLayoutDatasourcesRoute = const LayoutDataLayoutDatasourcesIndexRoute = LayoutDataLayoutDatasourcesIndexImport.update({ + id: '/', path: '/', getParentRoute: () => LayoutDataLayoutDatasourcesRoute, } as any).lazy(() => @@ -74,6 +79,7 @@ const LayoutDataLayoutDatasourcesIndexRoute = const LayoutDataLayoutDatasourcesDataSourceIdRoute = LayoutDataLayoutDatasourcesDataSourceIdImport.update({ + id: '/$dataSourceId', path: '/$dataSourceId', getParentRoute: () => LayoutDataLayoutDatasourcesRoute, } as any).lazy(() => @@ -147,22 +153,127 @@ declare module '@tanstack/react-router' { // Create and export the route tree -export const routeTree = rootRoute.addChildren({ - IndexRoute, - LayoutRoute: LayoutRoute.addChildren({ - LayoutDataRoute: LayoutDataRoute.addChildren({ - LayoutDataLayoutDatasourcesRoute: - LayoutDataLayoutDatasourcesRoute.addChildren({ - LayoutDataLayoutDatasourcesDataSourceIdRoute, - LayoutDataLayoutDatasourcesIndexRoute, - }), - }), - LayoutSessionsSessionIdRoute, - LayoutSessionsIndexRoute, - }), -}) - -/* prettier-ignore-end */ +interface LayoutDataLayoutDatasourcesRouteChildren { + LayoutDataLayoutDatasourcesDataSourceIdRoute: typeof LayoutDataLayoutDatasourcesDataSourceIdRoute + LayoutDataLayoutDatasourcesIndexRoute: typeof LayoutDataLayoutDatasourcesIndexRoute +} + +const LayoutDataLayoutDatasourcesRouteChildren: LayoutDataLayoutDatasourcesRouteChildren = + { + LayoutDataLayoutDatasourcesDataSourceIdRoute: + LayoutDataLayoutDatasourcesDataSourceIdRoute, + LayoutDataLayoutDatasourcesIndexRoute: + LayoutDataLayoutDatasourcesIndexRoute, + } + +const LayoutDataLayoutDatasourcesRouteWithChildren = + LayoutDataLayoutDatasourcesRoute._addFileChildren( + LayoutDataLayoutDatasourcesRouteChildren, + ) + +interface LayoutDataRouteChildren { + LayoutDataLayoutDatasourcesRoute: typeof LayoutDataLayoutDatasourcesRouteWithChildren +} + +const LayoutDataRouteChildren: LayoutDataRouteChildren = { + LayoutDataLayoutDatasourcesRoute: + LayoutDataLayoutDatasourcesRouteWithChildren, +} + +const LayoutDataRouteWithChildren = LayoutDataRoute._addFileChildren( + LayoutDataRouteChildren, +) + +interface LayoutRouteChildren { + LayoutDataRoute: typeof LayoutDataRouteWithChildren + LayoutSessionsSessionIdRoute: typeof LayoutSessionsSessionIdRoute + LayoutSessionsIndexRoute: typeof LayoutSessionsIndexRoute +} + +const LayoutRouteChildren: LayoutRouteChildren = { + LayoutDataRoute: LayoutDataRouteWithChildren, + LayoutSessionsSessionIdRoute: LayoutSessionsSessionIdRoute, + LayoutSessionsIndexRoute: LayoutSessionsIndexRoute, +} + +const LayoutRouteWithChildren = + LayoutRoute._addFileChildren(LayoutRouteChildren) + +export interface FileRoutesByFullPath { + '/': typeof IndexRoute + '': typeof LayoutRouteWithChildren + '/data': typeof LayoutDataLayoutDatasourcesRouteWithChildren + '/sessions/$sessionId': typeof LayoutSessionsSessionIdRoute + '/sessions': typeof LayoutSessionsIndexRoute + '/data/$dataSourceId': typeof LayoutDataLayoutDatasourcesDataSourceIdRoute + '/data/': typeof LayoutDataLayoutDatasourcesIndexRoute +} + +export interface FileRoutesByTo { + '/': typeof IndexRoute + '': typeof LayoutRouteWithChildren + '/data': typeof LayoutDataLayoutDatasourcesIndexRoute + '/sessions/$sessionId': typeof LayoutSessionsSessionIdRoute + '/sessions': typeof LayoutSessionsIndexRoute + '/data/$dataSourceId': typeof LayoutDataLayoutDatasourcesDataSourceIdRoute +} + +export interface FileRoutesById { + __root__: typeof rootRoute + '/': typeof IndexRoute + '/_layout': typeof LayoutRouteWithChildren + '/_layout/data': typeof LayoutDataRouteWithChildren + '/_layout/data/_layout-datasources': typeof LayoutDataLayoutDatasourcesRouteWithChildren + '/_layout/sessions/$sessionId': typeof LayoutSessionsSessionIdRoute + '/_layout/sessions/': typeof LayoutSessionsIndexRoute + '/_layout/data/_layout-datasources/$dataSourceId': typeof LayoutDataLayoutDatasourcesDataSourceIdRoute + '/_layout/data/_layout-datasources/': typeof LayoutDataLayoutDatasourcesIndexRoute +} + +export interface FileRouteTypes { + fileRoutesByFullPath: FileRoutesByFullPath + fullPaths: + | '/' + | '' + | '/data' + | '/sessions/$sessionId' + | '/sessions' + | '/data/$dataSourceId' + | '/data/' + fileRoutesByTo: FileRoutesByTo + to: + | '/' + | '' + | '/data' + | '/sessions/$sessionId' + | '/sessions' + | '/data/$dataSourceId' + id: + | '__root__' + | '/' + | '/_layout' + | '/_layout/data' + | '/_layout/data/_layout-datasources' + | '/_layout/sessions/$sessionId' + | '/_layout/sessions/' + | '/_layout/data/_layout-datasources/$dataSourceId' + | '/_layout/data/_layout-datasources/' + fileRoutesById: FileRoutesById +} + +export interface RootRouteChildren { + IndexRoute: typeof IndexRoute + LayoutRoute: typeof LayoutRouteWithChildren +} + +const rootRouteChildren: RootRouteChildren = { + IndexRoute: IndexRoute, + LayoutRoute: LayoutRouteWithChildren, +} + +export const routeTree = rootRoute + ._addFileChildren(rootRouteChildren) + ._addFileTypes() /* ROUTE_MANIFEST_START {