diff --git a/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx b/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx index 2c8259c0be0..0f4aa72bb79 100644 --- a/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx +++ b/web/src/app/ee/admin/whitelabeling/WhitelabelingForm.tsx @@ -11,14 +11,18 @@ import { SubLabel, TextFormField, } from "@/components/admin/connectors/Field"; -import { Button, Divider } from "@tremor/react"; +import { Button, Divider, Text } from "@tremor/react"; import { ImageUpload } from "./ImageUpload"; +import { AdvancedOptionsToggle } from "@/components/AdvancedOptionsToggle"; +import Link from "next/link"; export function WhitelabelingForm() { const router = useRouter(); const [selectedLogo, setSelectedLogo] = useState(null); const [selectedLogotype, setSelectedLogotype] = useState(null); + const [showAdvancedOptions, setShowAdvancedOptions] = useState(false); + const settings = useContext(SettingsContext); if (!settings) { return null; @@ -97,7 +101,7 @@ export function WhitelabelingForm() { const formData = new FormData(); formData.append("file", selectedLogotype); - setSelectedLogo(null); + setSelectedLogotype(null); const response = await fetch( "/api/admin/enterprise-settings/logo?is_logotype=true", { @@ -166,103 +170,129 @@ export function WhitelabelingForm() { Specify your own logo to replace the standard Danswer logo. )} + -
- - {values.use_custom_logotype ? ( -
- Current Custom Logotype: - logotype + - - - - Override the current custom logotype by uploading a new image - below and clicking the Update button. This logotype is the - text-based logo that will be rendered at the bottom right of - the chat screen. - -
- ) : ( - Specify your own logotype - )} - - +
-
- -
+ {showAdvancedOptions && ( + <> + + Read{" "} + + the docs + {" "} + to see whitelabelling examples in action. + +
+ +
- + -
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
+ + + {values.use_custom_logotype ? ( +
+ Current Custom Logotype: + logotype + + + + + Override your uploaded custom logotype by uploading a new + image below and clicking the Update button. This logotype + is the text-based logo that will be rendered at the bottom + right of the chat screen. + +
+ ) : ( + + Add a custom logotype by uploading a new image below and + clicking the Update button. This logotype is the text-based + logo that will be rendered at the bottom right of the chat + screen. + + )} + + + )}