diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json index e21fc3764f7..4cc5167064f 100644 --- a/frontend/jsconfig.json +++ b/frontend/jsconfig.json @@ -4,7 +4,9 @@ "target": "esnext", "jsx": "react", "paths": { - "@/*": ["./src/*"] + "@/*": [ + "./src/*" + ] } } -} +} \ No newline at end of file diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index b29e6eea925..627b8341e6e 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -21,6 +21,7 @@ const AdminInvites = lazy(() => import("@/pages/Admin/Invitations")); const AdminWorkspaces = lazy(() => import("@/pages/Admin/Workspaces")); const AdminSystem = lazy(() => import("@/pages/Admin/System")); const AdminLogs = lazy(() => import("@/pages/Admin/Logging")); +const AdminAgents = lazy(() => import("@/pages/Admin/Agents")); const GeneralChats = lazy(() => import("@/pages/GeneralSettings/Chats")); const GeneralAppearance = lazy( () => import("@/pages/GeneralSettings/Appearance") @@ -106,6 +107,10 @@ export default function App() { path="/settings/vector-database" element={} /> + } + /> } diff --git a/frontend/src/components/ContextualSaveBar/index.jsx b/frontend/src/components/ContextualSaveBar/index.jsx new file mode 100644 index 00000000000..056bf739be6 --- /dev/null +++ b/frontend/src/components/ContextualSaveBar/index.jsx @@ -0,0 +1,32 @@ +import { Warning } from "@phosphor-icons/react"; + +export default function ContextualSaveBar({ + showing = false, + onSave, + onCancel, +}) { + if (!showing) return null; + + return ( +
+
+ +

Unsaved Changes

+
+
+ + +
+
+ ); +} diff --git a/frontend/src/components/SettingsSidebar/index.jsx b/frontend/src/components/SettingsSidebar/index.jsx index 41fa60ea41e..6049d83fb7b 100644 --- a/frontend/src/components/SettingsSidebar/index.jsx +++ b/frontend/src/components/SettingsSidebar/index.jsx @@ -22,6 +22,7 @@ import { EyeSlash, SplitVertical, Microphone, + Robot, } from "@phosphor-icons/react"; import useUser from "@/hooks/useUser"; import { USER_BACKGROUND_COLOR } from "@/utils/constants"; @@ -258,6 +259,15 @@ const SidebarOptions = ({ user = null }) => ( flex={true} allowedRole={["admin", "manager"]} /> + +