diff --git a/gui/src/components/gui/Switch.tsx b/gui/src/components/gui/Switch.tsx index 8957038ac..fe49ba387 100644 --- a/gui/src/components/gui/Switch.tsx +++ b/gui/src/components/gui/Switch.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { vscButtonBackground } from ".."; type ToggleSwitchProps = { isToggled: boolean; @@ -21,7 +22,10 @@ const ToggleSwitch: React.FC = ({ >
diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index 3d975f410..d4fcb4037 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -89,17 +89,17 @@ function ConfigPage() { } // TODO defaults are in multiple places, should be consolidated and probably not explicit here - const showSessionTabs = config.ui?.showSessionTabs ?? false; + const enableSessionTabs = config.ui?.showSessionTabs ?? false; const codeWrap = config.ui?.codeWrap ?? false; const showChatScrollbar = config.ui?.showChatScrollbar ?? false; - const displayRawMarkdown = config.ui?.displayRawMarkdown ?? false; - const disableSessionTitles = config.disableSessionTitles ?? false; + const formatMarkdownOutput = !(config.ui?.displayRawMarkdown ?? false); + const enableSessionTitles = !(config.disableSessionTitles ?? false); const readResponseTTS = config.experimental?.readResponseTTS ?? false; const allowAnonymousTelemetry = config.allowAnonymousTelemetry ?? true; - const disableIndexing = config.disableIndexing ?? false; + const enableIndexing = !(config.disableIndexing ?? false); - const useAutocompleteCache = config.tabAutocompleteOptions?.useCache ?? false; + const useAutocompleteCache = config.tabAutocompleteOptions?.useCache ?? true; const useChromiumForDocsCrawling = config.experimental?.useChromiumForDocsCrawling ?? false; const codeBlockToolbarPosition = config.ui?.codeBlockToolbarPosition ?? "top"; @@ -217,10 +217,10 @@ function ConfigPage() {
handleUpdate({ - showSessionTabs: !showSessionTabs, + showSessionTabs: !enableSessionTabs, }) } text="Show Session Tabs" @@ -234,52 +234,6 @@ function ConfigPage() { } text="Wrap Codeblocks" /> - - handleUpdate({ - displayRawMarkdown: !displayRawMarkdown, - }) - } - text="Display Raw Markdown" - /> - - handleUpdate({ - allowAnonymousTelemetry: !allowAnonymousTelemetry, - }) - } - text="Allow Anonymous Telemetry" - /> - - handleUpdate({ - disableIndexing: !disableIndexing, - }) - } - text="Disable Indexing" - /> - - - handleUpdate({ - disableSessionTitles: !disableSessionTitles, - }) - } - text="Disable Session Titles" - /> - - handleUpdate({ - readResponseTTS: !readResponseTTS, - }) - } - text="Response Text to Speech" - /> - handleUpdate({ - useAutocompleteCache: !useAutocompleteCache, + readResponseTTS: !readResponseTTS, }) } - text="Use Autocomplete Cache" + text="Text to Speech Output" /> - handleUpdate({ @@ -309,7 +262,55 @@ function ConfigPage() { }) } text="Use Chromium for Docs Crawling" + /> */} + + handleUpdate({ + disableSessionTitles: !enableSessionTitles, + }) + } + text="Enable Session Titles" /> + + handleUpdate({ + displayRawMarkdown: !formatMarkdownOutput, + }) + } + text="Format Markdown" + /> + + + handleUpdate({ + allowAnonymousTelemetry: !allowAnonymousTelemetry, + }) + } + text="Allow Anonymous Telemetry" + /> + + + handleUpdate({ + disableIndexing: !enableIndexing, + }) + } + text="Enable Indexing" + /> + + {/* + handleUpdate({ + useAutocompleteCache: !useAutocompleteCache, + }) + } + text="Use Autocomplete Cache" + /> */}
))} -
+
{ttsActive && (