Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
18 changes: 2 additions & 16 deletions frontend/src/components/IntegrationsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GoogleSvg from "@/assets/google-logo.svg"
import GithubSvg from "@/assets/github.svg"
import microsoftSvg from "@/assets/microsoft.svg"
import { useLocation, useRouter } from "@tanstack/react-router"
import { Upload, Key } from "lucide-react"
import { Key } from "lucide-react"

export const IntegrationsSidebar = ({
role,
Expand Down Expand Up @@ -87,21 +87,7 @@ export const IntegrationsSidebar = ({
Github
</span>
</li>
{isAgentMode && (
<li
className={`group flex justify-between items-center ${location.pathname.includes("/integrations/fileupload") ? "bg-[#EBEFF2] dark:bg-slate-700" : ""} hover:bg-[#EBEFF2] dark:hover:bg-slate-700 rounded-[6px] pt-[8px] pb-[8px] ml-[8px] mr-[8px] cursor-pointer`}
onClick={() => {
router.navigate({
to: "/integrations/fileupload",
})
}}
>
<Upload className="w-4 h-4 ml-[8px] dark:text-gray-300" />
<span className="text-[14px] dark:text-gray-200 pl-[10px] pr-[10px] truncate cursor-pointer flex-grow max-w-[250px]">
File Upload
</span>
</li>
)}

<li
className={`group flex justify-between items-center ${location.pathname.includes("/integrations/apiKey") ? "bg-[#EBEFF2] dark:bg-slate-700" : ""} hover:bg-[#EBEFF2] dark:hover:bg-slate-700 rounded-[6px] pt-[8px] pb-[8px] ml-[8px] mr-[8px] cursor-pointer`}
onClick={() => {
Expand Down
29 changes: 0 additions & 29 deletions frontend/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { Route as AuthenticatedIntegrationsSlackImport } from './routes/_authent
import { Route as AuthenticatedIntegrationsMicrosoftImport } from './routes/_authenticated/integrations/microsoft'
import { Route as AuthenticatedIntegrationsMcpImport } from './routes/_authenticated/integrations/mcp'
import { Route as AuthenticatedIntegrationsGoogleImport } from './routes/_authenticated/integrations/google'
import { Route as AuthenticatedIntegrationsFileuploadImport } from './routes/_authenticated/integrations/fileupload'
import { Route as AuthenticatedIntegrationsApiKeyImport } from './routes/_authenticated/integrations/apiKey'
import { Route as AuthenticatedDataSourceDocIdImport } from './routes/_authenticated/dataSource.$docId'
import { Route as AuthenticatedChatChatIdImport } from './routes/_authenticated/chat.$chatId'
Expand Down Expand Up @@ -149,13 +148,6 @@ const AuthenticatedIntegrationsGoogleRoute =
getParentRoute: () => AuthenticatedRoute,
} as any)

const AuthenticatedIntegrationsFileuploadRoute =
AuthenticatedIntegrationsFileuploadImport.update({
id: '/integrations/fileupload',
path: '/integrations/fileupload',
getParentRoute: () => AuthenticatedRoute,
} as any)

const AuthenticatedIntegrationsApiKeyRoute =
AuthenticatedIntegrationsApiKeyImport.update({
id: '/integrations/apiKey',
Expand Down Expand Up @@ -341,13 +333,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthenticatedIntegrationsApiKeyImport
parentRoute: typeof AuthenticatedImport
}
'/_authenticated/integrations/fileupload': {
id: '/_authenticated/integrations/fileupload'
path: '/integrations/fileupload'
fullPath: '/integrations/fileupload'
preLoaderRoute: typeof AuthenticatedIntegrationsFileuploadImport
parentRoute: typeof AuthenticatedImport
}
'/_authenticated/integrations/google': {
id: '/_authenticated/integrations/google'
path: '/integrations/google'
Expand Down Expand Up @@ -453,7 +438,6 @@ interface AuthenticatedRouteChildren {
AuthenticatedAdminUserManagementRoute: typeof AuthenticatedAdminUserManagementRoute
AuthenticatedDataSourceDocIdRoute: typeof AuthenticatedDataSourceDocIdRoute
AuthenticatedIntegrationsApiKeyRoute: typeof AuthenticatedIntegrationsApiKeyRoute
AuthenticatedIntegrationsFileuploadRoute: typeof AuthenticatedIntegrationsFileuploadRoute
AuthenticatedIntegrationsGoogleRoute: typeof AuthenticatedIntegrationsGoogleRoute
AuthenticatedIntegrationsMcpRoute: typeof AuthenticatedIntegrationsMcpRoute
AuthenticatedIntegrationsMicrosoftRoute: typeof AuthenticatedIntegrationsMicrosoftRoute
Expand All @@ -479,8 +463,6 @@ const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
AuthenticatedAdminUserManagementRoute: AuthenticatedAdminUserManagementRoute,
AuthenticatedDataSourceDocIdRoute: AuthenticatedDataSourceDocIdRoute,
AuthenticatedIntegrationsApiKeyRoute: AuthenticatedIntegrationsApiKeyRoute,
AuthenticatedIntegrationsFileuploadRoute:
AuthenticatedIntegrationsFileuploadRoute,
AuthenticatedIntegrationsGoogleRoute: AuthenticatedIntegrationsGoogleRoute,
AuthenticatedIntegrationsMcpRoute: AuthenticatedIntegrationsMcpRoute,
AuthenticatedIntegrationsMicrosoftRoute:
Expand Down Expand Up @@ -521,7 +503,6 @@ export interface FileRoutesByFullPath {
'/chat/$chatId': typeof AuthenticatedChatChatIdRoute
'/dataSource/$docId': typeof AuthenticatedDataSourceDocIdRoute
'/integrations/apiKey': typeof AuthenticatedIntegrationsApiKeyRoute
'/integrations/fileupload': typeof AuthenticatedIntegrationsFileuploadRoute
'/integrations/google': typeof AuthenticatedIntegrationsGoogleRoute
'/integrations/mcp': typeof AuthenticatedIntegrationsMcpRoute
'/integrations/microsoft': typeof AuthenticatedIntegrationsMicrosoftRoute
Expand Down Expand Up @@ -551,7 +532,6 @@ export interface FileRoutesByTo {
'/chat/$chatId': typeof AuthenticatedChatChatIdRoute
'/dataSource/$docId': typeof AuthenticatedDataSourceDocIdRoute
'/integrations/apiKey': typeof AuthenticatedIntegrationsApiKeyRoute
'/integrations/fileupload': typeof AuthenticatedIntegrationsFileuploadRoute
'/integrations/google': typeof AuthenticatedIntegrationsGoogleRoute
'/integrations/mcp': typeof AuthenticatedIntegrationsMcpRoute
'/integrations/microsoft': typeof AuthenticatedIntegrationsMicrosoftRoute
Expand Down Expand Up @@ -583,7 +563,6 @@ export interface FileRoutesById {
'/_authenticated/chat/$chatId': typeof AuthenticatedChatChatIdRoute
'/_authenticated/dataSource/$docId': typeof AuthenticatedDataSourceDocIdRoute
'/_authenticated/integrations/apiKey': typeof AuthenticatedIntegrationsApiKeyRoute
'/_authenticated/integrations/fileupload': typeof AuthenticatedIntegrationsFileuploadRoute
'/_authenticated/integrations/google': typeof AuthenticatedIntegrationsGoogleRoute
'/_authenticated/integrations/mcp': typeof AuthenticatedIntegrationsMcpRoute
'/_authenticated/integrations/microsoft': typeof AuthenticatedIntegrationsMicrosoftRoute
Expand Down Expand Up @@ -616,7 +595,6 @@ export interface FileRouteTypes {
| '/chat/$chatId'
| '/dataSource/$docId'
| '/integrations/apiKey'
| '/integrations/fileupload'
| '/integrations/google'
| '/integrations/mcp'
| '/integrations/microsoft'
Expand Down Expand Up @@ -645,7 +623,6 @@ export interface FileRouteTypes {
| '/chat/$chatId'
| '/dataSource/$docId'
| '/integrations/apiKey'
| '/integrations/fileupload'
| '/integrations/google'
| '/integrations/mcp'
| '/integrations/microsoft'
Expand Down Expand Up @@ -675,7 +652,6 @@ export interface FileRouteTypes {
| '/_authenticated/chat/$chatId'
| '/_authenticated/dataSource/$docId'
| '/_authenticated/integrations/apiKey'
| '/_authenticated/integrations/fileupload'
| '/_authenticated/integrations/google'
| '/_authenticated/integrations/mcp'
| '/_authenticated/integrations/microsoft'
Expand Down Expand Up @@ -734,7 +710,6 @@ export const routeTree = rootRoute
"/_authenticated/admin/userManagement",
"/_authenticated/dataSource/$docId",
"/_authenticated/integrations/apiKey",
"/_authenticated/integrations/fileupload",
"/_authenticated/integrations/google",
"/_authenticated/integrations/mcp",
"/_authenticated/integrations/microsoft",
Expand Down Expand Up @@ -808,10 +783,6 @@ export const routeTree = rootRoute
"filePath": "_authenticated/integrations/apiKey.tsx",
"parent": "/_authenticated"
},
"/_authenticated/integrations/fileupload": {
"filePath": "_authenticated/integrations/fileupload.tsx",
"parent": "/_authenticated"
},
"/_authenticated/integrations/google": {
"filePath": "_authenticated/integrations/google.tsx",
"parent": "/_authenticated"
Expand Down
189 changes: 0 additions & 189 deletions frontend/src/routes/_authenticated/integrations/fileupload.tsx

This file was deleted.

Loading