Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix small UI bug with the chat sidebar items #2

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/pages/RagChatTab/Sessions/SessionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const SessionItem = ({ session }: { session: Session }) => {
return (
<Flex
justify="space-between"
style={{ paddingLeft: 8 }}
style={{ paddingLeft: 8, width: "100%" }}
onMouseEnter={() => {
setIsHovered(true);
}}
Expand Down
149 changes: 130 additions & 19 deletions ui/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -33,23 +33,27 @@ 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(() =>
import('./routes/_layout/sessions/index.lazy').then((d) => d.Route),
)

const LayoutSessionsSessionIdRoute = LayoutSessionsSessionIdImport.update({
id: '/sessions/$sessionId',
path: '/sessions/$sessionId',
getParentRoute: () => LayoutRoute,
} as any).lazy(() =>
Expand All @@ -64,6 +68,7 @@ const LayoutDataLayoutDatasourcesRoute =

const LayoutDataLayoutDatasourcesIndexRoute =
LayoutDataLayoutDatasourcesIndexImport.update({
id: '/',
path: '/',
getParentRoute: () => LayoutDataLayoutDatasourcesRoute,
} as any).lazy(() =>
Expand All @@ -74,6 +79,7 @@ const LayoutDataLayoutDatasourcesIndexRoute =

const LayoutDataLayoutDatasourcesDataSourceIdRoute =
LayoutDataLayoutDatasourcesDataSourceIdImport.update({
id: '/$dataSourceId',
path: '/$dataSourceId',
getParentRoute: () => LayoutDataLayoutDatasourcesRoute,
} as any).lazy(() =>
Expand Down Expand Up @@ -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<FileRouteTypes>()

/* ROUTE_MANIFEST_START
{
Expand Down
Loading