diff --git a/frontend/.gitignore b/frontend/.gitignore index 78720603..77e294d0 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -9,10 +9,8 @@ lerna-debug.log* node_modules dist -lib dist-ssr *.local -!frontend/components/lib # Editor directories and files .vscode/* diff --git a/frontend/src/components/Footer/index.jsx b/frontend/src/components/Footer/index.jsx index 10cd80cd..6e80f0df 100644 --- a/frontend/src/components/Footer/index.jsx +++ b/frontend/src/components/Footer/index.jsx @@ -14,6 +14,8 @@ import { import React, { useEffect, useState } from "react"; import SettingsButton from "../SettingsButton"; import { isMobile } from "react-device-detect"; +import { Tooltip } from "react-tooltip"; +import { v4 } from "uuid"; export const MAX_ICONS = 3; export const ICON_COMPONENTS = { @@ -47,36 +49,48 @@ export default function Footer() { return (
- - - - - - - - - + + + + + + + + + + + + + + + {!isMobile && }
@@ -105,3 +119,17 @@ export default function Footer() { ); } + +export function ToolTipWrapper({ id = v4(), children }) { + return ( +
+ {children} + +
+ ); +} diff --git a/frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx b/frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx index ac143e94..d1088063 100644 --- a/frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx @@ -1,80 +1,84 @@ export default function GenericOpenAiOptions({ settings }) { return ( -
-
- - +
+
+
+ + +
+
+ + +
+
+ + +
-
- - -
-
- - -
-
- - e.target.blur()} - defaultValue={settings?.GenericOpenAiTokenLimit} - required={true} - autoComplete="off" - /> -
-
- - +
+
+ + e.target.blur()} + defaultValue={settings?.GenericOpenAiTokenLimit} + required={true} + autoComplete="off" + /> +
+
+ + +
); diff --git a/frontend/src/components/SettingsButton/index.jsx b/frontend/src/components/SettingsButton/index.jsx index ac2d22cd..19a4a17a 100644 --- a/frontend/src/components/SettingsButton/index.jsx +++ b/frontend/src/components/SettingsButton/index.jsx @@ -3,6 +3,7 @@ import paths from "@/utils/paths"; import { ArrowUUpLeft, Wrench } from "@phosphor-icons/react"; import { Link } from "react-router-dom"; import { useMatch } from "react-router-dom"; +import { ToolTipWrapper } from "../Footer"; export default function SettingsButton() { const isInSettings = !!useMatch("/settings/*"); @@ -12,22 +13,32 @@ export default function SettingsButton() { if (isInSettings) return ( - - - + + + + + ); return ( - - - + + + + + ); } diff --git a/frontend/src/components/SettingsSidebar/index.jsx b/frontend/src/components/SettingsSidebar/index.jsx index 6b8f79e5..2d59d0ff 100644 --- a/frontend/src/components/SettingsSidebar/index.jsx +++ b/frontend/src/components/SettingsSidebar/index.jsx @@ -329,7 +329,7 @@ const SidebarOptions = ({ user = null }) => (