diff --git a/web/public/discord.png b/web/public/discord.png deleted file mode 100644 index fb39b3227..000000000 Binary files a/web/public/discord.png and /dev/null differ diff --git a/web/public/discord.webp b/web/public/discord.webp new file mode 100644 index 000000000..365ad8153 Binary files /dev/null and b/web/public/discord.webp differ diff --git a/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx b/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx index 8b05b87d4..ab05cd0bc 100644 --- a/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx +++ b/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx @@ -62,6 +62,7 @@ import { } from "@/lib/connectors/oauth"; import { CreateStdOAuthCredential } from "@/components/credentials/actions/CreateStdOAuthCredential"; import { Spinner } from "@/components/Spinner"; +import { Button } from "@/components/ui/button"; export interface AdvancedConfig { refreshFreq: number; pruneFreq: number; @@ -464,8 +465,9 @@ export default function AddConnector({ {!createCredentialFormToggle && (
{/* Button to pop up a form to manually enter credentials */} - + {/* Button to sign in via OAuth */} {oauthSupportedSources.includes(connector) && (NEXT_PUBLIC_CLOUD_ENABLED || diff --git a/web/src/app/chat/modal/UserSettingsModal.tsx b/web/src/app/chat/modal/UserSettingsModal.tsx index 269761bd3..70ad8cba1 100644 --- a/web/src/app/chat/modal/UserSettingsModal.tsx +++ b/web/src/app/chat/modal/UserSettingsModal.tsx @@ -23,7 +23,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { Monitor } from "lucide-react"; +import { Monitor, Moon, Sun } from "lucide-react"; import { useTheme } from "next-themes"; export function UserSettingsModal({ @@ -239,14 +239,29 @@ export function UserSettingsModal({ >
- + {theme === "system" ? ( + + ) : theme === "light" ? ( + + ) : ( + + )}
- System - Light - Dark + } + value="system" + > + System + + } value="light"> + Light + + } value="dark"> + Dark +
diff --git a/web/src/components/credentials/actions/CreateCredential.tsx b/web/src/components/credentials/actions/CreateCredential.tsx index 41582d210..bd6f1f416 100644 --- a/web/src/components/credentials/actions/CreateCredential.tsx +++ b/web/src/components/credentials/actions/CreateCredential.tsx @@ -40,15 +40,12 @@ const CreateButton = ({ }) => (
); diff --git a/web/src/components/credentials/actions/ModifyCredential.tsx b/web/src/components/credentials/actions/ModifyCredential.tsx index 76b07d37e..a9ead3f3b 100644 --- a/web/src/components/credentials/actions/ModifyCredential.tsx +++ b/web/src/components/credentials/actions/ModifyCredential.tsx @@ -62,12 +62,18 @@ const CredentialSelectionTable = ({
- - - - - - + + + + +
IDNameCreated +
+ ID + + Name + + Created + Last Updated diff --git a/web/src/components/extension/Shortcuts.tsx b/web/src/components/extension/Shortcuts.tsx index 294e9e673..41f33003c 100644 --- a/web/src/components/extension/Shortcuts.tsx +++ b/web/src/components/extension/Shortcuts.tsx @@ -36,15 +36,15 @@ export const ShortCut = ({ const [faviconError, setFaviconError] = useState(false); return ( -
+
window.open(shortCut.url, "_blank")} @@ -61,10 +61,10 @@ export const ShortCut = ({ onError={() => setFaviconError(true)} /> ) : ( - + )}
-

+

{shortCut.name}

@@ -80,10 +80,10 @@ export const AddShortCut = ({ return ( ); }; @@ -111,9 +111,11 @@ export const NewShortCutModal = ({ const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (isValidUrl) { - const faviconUrl = `https://www.google.com/s2/favicons?domain=${ - new URL(url).hostname - }&sz=64`; + const faviconUrl = isValidUrl + ? `https://www.google.com/s2/favicons?domain=${new URL( + url + ).hostname.replace(/^(cloud\.)?onyx\.app$/, "onyx.app")}&sz=64` + : ""; onAdd({ name, url, favicon: faviconUrl }); onClose(); } else { @@ -135,14 +137,15 @@ export const NewShortCutModal = ({ useEffect(() => { setIsValidUrl(validateUrl(url)); }, [url]); - const faviconUrl = isValidUrl - ? `https://www.google.com/s2/favicons?domain=${new URL(url).hostname}&sz=64` + ? `https://www.google.com/s2/favicons?domain=${new URL( + url + ).hostname.replace(/^(cloud\.)?onyx\.app$/, "onyx.app")}&sz=64` : ""; return ( - + {editingShortcut ? "Edit Shortcut" : "Add New Shortcut"} @@ -166,7 +169,7 @@ export const NewShortCutModal = ({ id="name" value={name} onChange={(e) => setName(e.target.value)} - className="w-full bg-background-800 border-background-700 text-white" + className="w-full bg-background-800 border-background-700 text-[#fff]" placeholder="Enter shortcut name" />
@@ -181,7 +184,7 @@ export const NewShortCutModal = ({ id="url" value={url} onChange={handleUrlChange} - className={`bg-background-800 border-background-700 text-white ${ + className={`bg-background-800 border-background-700 text-[#fff] ${ !isValidUrl && url ? "border-red-500" : "" }`} placeholder="https://example.com" @@ -213,7 +216,7 @@ export const NewShortCutModal = ({