diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx
index a5f059d02..8f522393f 100644
--- a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx
+++ b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx
@@ -23,7 +23,7 @@ function DocsIndexingPeek({ status }: DocsIndexingPeekProps) {
{
- navigate("/more");
+ // navigate("/more"); TODO
dispatch(setShowDialog(false));
dispatch(setDialogMessage(undefined));
}}
diff --git a/gui/src/pages/More/More.tsx b/gui/src/pages/More/More.tsx
deleted file mode 100644
index 160ee8157..000000000
--- a/gui/src/pages/More/More.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-import {
- ArrowTopRightOnSquareIcon,
- DocumentArrowUpIcon,
- TableCellsIcon,
-} from "@heroicons/react/24/outline";
-import { useContext } from "react";
-import { useNavigate } from "react-router-dom";
-import PageHeader from "../../components/PageHeader";
-import { IdeMessengerContext } from "../../context/IdeMessenger";
-import { useNavigationListener } from "../../hooks/useNavigationListener";
-import { useAppDispatch, useAppSelector } from "../../redux/hooks";
-import { setOnboardingCard } from "../../redux/slices/uiSlice";
-import { saveCurrentSession } from "../../redux/thunks/session";
-import { AccountButton } from "../config/AccountButton";
-import IndexingProgress from "./IndexingProgress";
-import KeyboardShortcuts from "./KeyboardShortcuts";
-import MCPServersPreview from "./MCPServersPreview";
-import MoreHelpRow from "./MoreHelpRow";
-
-function MorePage() {
- useNavigationListener();
- const dispatch = useAppDispatch();
- const navigate = useNavigate();
- const ideMessenger = useContext(IdeMessengerContext);
- const config = useAppSelector((store) => store.config.config);
- const { disableIndexing } = config;
-
- return (
-
-
navigate("/")}
- title="Chat"
- rightContent={}
- />
-
-
-
-
-
@codebase index
-
- Local embeddings of your codebase
-
-
- {disableIndexing ? (
-
-
- Indexing is disabled
-
-
- Open settings and toggle Disable Indexing to
- re-enable
-
-
- ) : (
-
- )}
-
-
-
-
-
-
-
-
Help center
-
-
- ideMessenger.post("openUrl", "https://docs.continue.dev/")
- }
- />
-
-
- ideMessenger.post(
- "openUrl",
- "https://github.com/continuedev/continue/issues/new/choose",
- )
- }
- />
-
-
- ideMessenger.post("openUrl", "https://discord.gg/vapESyrFmJ")
- }
- />
-
- navigate("/stats")}
- />
-
- {
- navigate("/");
- // Used to clear the chat panel before showing onboarding card
- await dispatch(
- saveCurrentSession({
- openNewSession: true,
- generateTitle: true,
- }),
- );
- dispatch(setOnboardingCard({ show: true, activeTab: "Best" }));
- ideMessenger.post("showTutorial", undefined);
- }}
- />
-
-
-
-
-
Keyboard shortcuts
-
-
-
-
- );
-}
-
-export default MorePage;
diff --git a/gui/src/pages/More/index.ts b/gui/src/pages/More/index.ts
deleted file mode 100644
index 70931b8e6..000000000
--- a/gui/src/pages/More/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./More";
diff --git a/gui/src/pages/More/IndexingProgress/IndexingProgress.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgress.tsx
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/IndexingProgress.tsx
rename to gui/src/pages/config/IndexingProgress/IndexingProgress.tsx
diff --git a/gui/src/pages/More/IndexingProgress/IndexingProgressBar.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressBar.tsx
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/IndexingProgressBar.tsx
rename to gui/src/pages/config/IndexingProgress/IndexingProgressBar.tsx
diff --git a/gui/src/pages/More/IndexingProgress/IndexingProgressErrorText.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressErrorText.tsx
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/IndexingProgressErrorText.tsx
rename to gui/src/pages/config/IndexingProgress/IndexingProgressErrorText.tsx
diff --git a/gui/src/pages/More/IndexingProgress/IndexingProgressIndicator.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressIndicator.tsx
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/IndexingProgressIndicator.tsx
rename to gui/src/pages/config/IndexingProgress/IndexingProgressIndicator.tsx
diff --git a/gui/src/pages/More/IndexingProgress/IndexingProgressSubtext.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/IndexingProgressSubtext.tsx
rename to gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx
diff --git a/gui/src/pages/More/IndexingProgress/IndexingProgressTitleText.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressTitleText.tsx
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/IndexingProgressTitleText.tsx
rename to gui/src/pages/config/IndexingProgress/IndexingProgressTitleText.tsx
diff --git a/gui/src/pages/More/IndexingProgress/index.ts b/gui/src/pages/config/IndexingProgress/index.ts
similarity index 100%
rename from gui/src/pages/More/IndexingProgress/index.ts
rename to gui/src/pages/config/IndexingProgress/index.ts
diff --git a/gui/src/pages/More/KeyboardShortcuts.tsx b/gui/src/pages/config/KeyboardShortcuts.tsx
similarity index 100%
rename from gui/src/pages/More/KeyboardShortcuts.tsx
rename to gui/src/pages/config/KeyboardShortcuts.tsx
diff --git a/gui/src/pages/More/MCPServersPreview.tsx b/gui/src/pages/config/MCPServersPreview.tsx
similarity index 100%
rename from gui/src/pages/More/MCPServersPreview.tsx
rename to gui/src/pages/config/MCPServersPreview.tsx
diff --git a/gui/src/pages/config/More.tsx b/gui/src/pages/config/More.tsx
new file mode 100644
index 000000000..081c6dd37
--- /dev/null
+++ b/gui/src/pages/config/More.tsx
@@ -0,0 +1,29 @@
+import { useContext } from "react";
+import { useNavigate } from "react-router-dom";
+import PageHeader from "../../components/PageHeader";
+import { IdeMessengerContext } from "../../context/IdeMessenger";
+import { useNavigationListener } from "../../hooks/useNavigationListener";
+import { useAppDispatch, useAppSelector } from "../../redux/hooks";
+import { AccountButton } from "./AccountButton";
+
+function MorePage() {
+ useNavigationListener();
+ const dispatch = useAppDispatch();
+ const navigate = useNavigate();
+ const ideMessenger = useContext(IdeMessengerContext);
+ const config = useAppSelector((store) => store.config.config);
+ const { disableIndexing } = config;
+
+ return (
+
+
navigate("/")}
+ title="Chat"
+ rightContent={}
+ />
+
+ );
+}
+
+export default MorePage;
diff --git a/gui/src/pages/More/MoreHelpRow.tsx b/gui/src/pages/config/MoreHelpRow.tsx
similarity index 100%
rename from gui/src/pages/More/MoreHelpRow.tsx
rename to gui/src/pages/config/MoreHelpRow.tsx
diff --git a/gui/src/pages/config/UserSettingsForm.tsx b/gui/src/pages/config/UserSettingsForm.tsx
new file mode 100644
index 000000000..eb35ac8c7
--- /dev/null
+++ b/gui/src/pages/config/UserSettingsForm.tsx
@@ -0,0 +1,298 @@
+import { CheckIcon, XMarkIcon } from "@heroicons/react/24/outline";
+import {
+ SharedConfigSchema,
+ modifyAnyConfigWithSharedConfig,
+} from "core/config/sharedConfig";
+import { useContext, useEffect, useState } from "react";
+import { Input } from "../../components";
+import NumberInput from "../../components/gui/NumberInput";
+import { Select } from "../../components/gui/Select";
+import ToggleSwitch from "../../components/gui/Switch";
+import { useAuth } from "../../context/Auth";
+import { IdeMessengerContext } from "../../context/IdeMessenger";
+import { useAppDispatch, useAppSelector } from "../../redux/hooks";
+import { updateConfig } from "../../redux/slices/configSlice";
+import { getFontSize } from "../../util";
+
+export function UserSettingsForm() {
+ /////// User settings section //////
+ const dispatch = useAppDispatch();
+ const { selectedProfile, controlServerBetaEnabled } = useAuth();
+ const ideMessenger = useContext(IdeMessengerContext);
+ const config = useAppSelector((state) => state.config.config);
+
+ function handleUpdate(sharedConfig: SharedConfigSchema) {
+ // Optimistic update
+ const updatedConfig = modifyAnyConfigWithSharedConfig(config, sharedConfig);
+ dispatch(updateConfig(updatedConfig));
+ // IMPORTANT no need for model role updates (separate logic for selected model roles)
+ // simply because this function won't be used to update model roles
+
+ // Actual update to core which propagates back with config update event
+ ideMessenger.post("config/updateSharedConfig", sharedConfig);
+ }
+
+ // Disable autocomplete
+ const disableAutocompleteInFiles = (
+ config.tabAutocompleteOptions?.disableInFiles ?? []
+ ).join(", ");
+ const [formDisableAutocomplete, setFormDisableAutocomplete] = useState(
+ disableAutocompleteInFiles,
+ );
+
+ useEffect(() => {
+ // Necessary so that reformatted/trimmed values don't cause dirty state
+ setFormDisableAutocomplete(disableAutocompleteInFiles);
+ }, [disableAutocompleteInFiles]);
+
+ // Workspace prompts
+ const promptPath = config.experimental?.promptPath || "";
+ const [formPromptPath, setFormPromptPath] = useState(promptPath);
+ const cancelChangePromptPath = () => {
+ setFormPromptPath(promptPath);
+ };
+ const handleSubmitPromptPath = () => {
+ handleUpdate({
+ promptPath: formPromptPath || "",
+ });
+ };
+
+ useEffect(() => {
+ // Necessary so that reformatted/trimmed values don't cause dirty state
+ setFormPromptPath(promptPath);
+ }, [promptPath]);
+
+ // TODO defaults are in multiple places, should be consolidated and probably not explicit here
+ const enableSessionTabs = config.ui?.showSessionTabs ?? false;
+ const codeWrap = config.ui?.codeWrap ?? false;
+ const showChatScrollbar = config.ui?.showChatScrollbar ?? false;
+ const formatMarkdownOutput = !(config.ui?.displayRawMarkdown ?? false);
+ const enableSessionTitles = !(config.disableSessionTitles ?? false);
+ const readResponseTTS = config.experimental?.readResponseTTS ?? false;
+
+ const allowAnonymousTelemetry = config.allowAnonymousTelemetry ?? true;
+ const enableIndexing = !(config.disableIndexing ?? false);
+
+ const useAutocompleteCache = config.tabAutocompleteOptions?.useCache ?? true;
+ const useChromiumForDocsCrawling =
+ config.experimental?.useChromiumForDocsCrawling ?? false;
+ const codeBlockToolbarPosition = config.ui?.codeBlockToolbarPosition ?? "top";
+ const useAutocompleteMultilineCompletions =
+ config.tabAutocompleteOptions?.multilineCompletions ?? "auto";
+ const fontSize = getFontSize();
+
+ const cancelChangeDisableAutocomplete = () => {
+ setFormDisableAutocomplete(disableAutocompleteInFiles);
+ };
+ const handleDisableAutocompleteSubmit = () => {
+ handleUpdate({
+ disableAutocompleteInFiles: formDisableAutocomplete
+ .split(",")
+ .map((val) => val.trim())
+ .filter((val) => !!val),
+ });
+ };
+
+ const [hubEnabled, setHubEnabled] = useState(false);
+ useEffect(() => {
+ ideMessenger.ide.getIdeSettings().then(({ continueTestEnvironment }) => {
+ setHubEnabled(continueTestEnvironment === "production");
+ });
+ }, [ideMessenger]);
+
+ return (
+
+ {!controlServerBetaEnabled || hubEnabled ? (
+
+
+
+
+
User settings
+
+
+
+
+ handleUpdate({
+ showSessionTabs: !enableSessionTabs,
+ })
+ }
+ text="Show Session Tabs"
+ />
+
+ handleUpdate({
+ codeWrap: !codeWrap,
+ })
+ }
+ text="Wrap Codeblocks"
+ />
+
+
+ handleUpdate({
+ showChatScrollbar: !showChatScrollbar,
+ })
+ }
+ text="Show Chat Scrollbar"
+ />
+
+ handleUpdate({
+ readResponseTTS: !readResponseTTS,
+ })
+ }
+ text="Text to Speech Output"
+ />
+
+ {/*
+ handleUpdate({
+ useChromiumForDocsCrawling: !useChromiumForDocsCrawling,
+ })
+ }
+ 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"
+ /> */}
+
+
+
+
+
+
+
+
+
+
+ ) : null}
+
+ );
+}
diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx
index 885e629b9..b741484f7 100644
--- a/gui/src/pages/config/index.tsx
+++ b/gui/src/pages/config/index.tsx
@@ -1,22 +1,22 @@
-import { CheckIcon, XMarkIcon } from "@heroicons/react/24/outline";
import {
- SharedConfigSchema,
- modifyAnyConfigWithSharedConfig,
-} from "core/config/sharedConfig";
-import { useContext, useEffect, useState } from "react";
+ ArrowTopRightOnSquareIcon,
+ DocumentArrowUpIcon,
+ TableCellsIcon,
+} from "@heroicons/react/24/outline";
+import { useContext } from "react";
import { useNavigate } from "react-router-dom";
-import { Input } from "../../components";
-import NumberInput from "../../components/gui/NumberInput";
-import { Select } from "../../components/gui/Select";
-import ToggleSwitch from "../../components/gui/Switch";
import PageHeader from "../../components/PageHeader";
-import { useAuth } from "../../context/Auth";
import { IdeMessengerContext } from "../../context/IdeMessenger";
import { useNavigationListener } from "../../hooks/useNavigationListener";
import { useAppDispatch, useAppSelector } from "../../redux/hooks";
-import { updateConfig } from "../../redux/slices/configSlice";
-import { getFontSize } from "../../util";
+import { setOnboardingCard } from "../../redux/slices/uiSlice";
+import { saveCurrentSession } from "../../redux/thunks/session";
import { AccountButton } from "./AccountButton";
+import IndexingProgress from "./IndexingProgress";
+import KeyboardShortcuts from "./KeyboardShortcuts";
+import MCPServersPreview from "./MCPServersPreview";
+import MoreHelpRow from "./MoreHelpRow";
+import { UserSettingsForm } from "./UserSettingsForm";
function ConfigPage() {
useNavigationListener();
@@ -24,92 +24,8 @@ function ConfigPage() {
const navigate = useNavigate();
const ideMessenger = useContext(IdeMessengerContext);
- const { selectedProfile, controlServerBetaEnabled } = useAuth();
-
- const [hubEnabled, setHubEnabled] = useState(false);
- useEffect(() => {
- ideMessenger.ide.getIdeSettings().then(({ continueTestEnvironment }) => {
- setHubEnabled(continueTestEnvironment === "production");
- });
- }, [ideMessenger]);
-
- // NOTE Hub takes priority over Continue for Teams
- // Since teams will be moving to hub, not vice versa
-
- /////// User settings section //////
const config = useAppSelector((state) => state.config.config);
- function handleUpdate(sharedConfig: SharedConfigSchema) {
- // Optimistic update
- const updatedConfig = modifyAnyConfigWithSharedConfig(config, sharedConfig);
- dispatch(updateConfig(updatedConfig));
- // IMPORTANT no need for model role updates (separate logic for selected model roles)
- // simply because this function won't be used to update model roles
-
- // Actual update to core which propagates back with config update event
- ideMessenger.post("config/updateSharedConfig", sharedConfig);
- }
-
- // TODO defaults are in multiple places, should be consolidated and probably not explicit here
- const enableSessionTabs = config.ui?.showSessionTabs ?? false;
- const codeWrap = config.ui?.codeWrap ?? false;
- const showChatScrollbar = config.ui?.showChatScrollbar ?? false;
- const formatMarkdownOutput = !(config.ui?.displayRawMarkdown ?? false);
- const enableSessionTitles = !(config.disableSessionTitles ?? false);
- const readResponseTTS = config.experimental?.readResponseTTS ?? false;
-
- const allowAnonymousTelemetry = config.allowAnonymousTelemetry ?? true;
- const enableIndexing = !(config.disableIndexing ?? false);
-
- const useAutocompleteCache = config.tabAutocompleteOptions?.useCache ?? true;
- const useChromiumForDocsCrawling =
- config.experimental?.useChromiumForDocsCrawling ?? false;
- const codeBlockToolbarPosition = config.ui?.codeBlockToolbarPosition ?? "top";
- const useAutocompleteMultilineCompletions =
- config.tabAutocompleteOptions?.multilineCompletions ?? "auto";
- const fontSize = getFontSize();
-
- // Disable autocomplete
- const disableAutocompleteInFiles = (
- config.tabAutocompleteOptions?.disableInFiles ?? []
- ).join(", ");
- const [formDisableAutocomplete, setFormDisableAutocomplete] = useState(
- disableAutocompleteInFiles,
- );
- const cancelChangeDisableAutocomplete = () => {
- setFormDisableAutocomplete(disableAutocompleteInFiles);
- };
- const handleDisableAutocompleteSubmit = () => {
- handleUpdate({
- disableAutocompleteInFiles: formDisableAutocomplete
- .split(",")
- .map((val) => val.trim())
- .filter((val) => !!val),
- });
- };
-
- useEffect(() => {
- // Necessary so that reformatted/trimmed values don't cause dirty state
- setFormDisableAutocomplete(disableAutocompleteInFiles);
- }, [disableAutocompleteInFiles]);
-
- // Workspace prompts
- const promptPath = config.experimental?.promptPath || "";
- const [formPromptPath, setFormPromptPath] = useState(promptPath);
- const cancelChangePromptPath = () => {
- setFormPromptPath(promptPath);
- };
- const handleSubmitPromptPath = () => {
- handleUpdate({
- promptPath: formPromptPath || "",
- });
- };
-
- useEffect(() => {
- // Necessary so that reformatted/trimmed values don't cause dirty state
- setFormPromptPath(promptPath);
- }, [promptPath]);
-
return (
}
/>
-
- {!controlServerBetaEnabled || hubEnabled ? (
-
-
-
-
-
User settings
-
+
-
-
- handleUpdate({
- showSessionTabs: !enableSessionTabs,
- })
- }
- text="Show Session Tabs"
- />
-
- handleUpdate({
- codeWrap: !codeWrap,
- })
- }
- text="Wrap Codeblocks"
- />
-
-
- handleUpdate({
- showChatScrollbar: !showChatScrollbar,
- })
- }
- text="Show Chat Scrollbar"
- />
-
- handleUpdate({
- readResponseTTS: !readResponseTTS,
- })
- }
- text="Text to Speech Output"
- />
-
- {/*
- handleUpdate({
- useChromiumForDocsCrawling: !useChromiumForDocsCrawling,
- })
- }
- 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"
- /> */}
-
-
-
-
-
-
-
-
-
+
+
+
+
@codebase index
+
+ Local embeddings of your codebase
+
- ) : null}
+ {config.disableIndexing ? (
+
+
+ Indexing is disabled
+
+
+ Open settings and toggle Disable Indexing to
+ re-enable
+
+
+ ) : (
+
+ )}
+
+
+
+
+
+
+
+
Help center
+
+
+ ideMessenger.post("openUrl", "https://docs.continue.dev/")
+ }
+ />
+
+
+ ideMessenger.post(
+ "openUrl",
+ "https://github.com/continuedev/continue/issues/new/choose",
+ )
+ }
+ />
+
+
+ ideMessenger.post("openUrl", "https://discord.gg/vapESyrFmJ")
+ }
+ />
+
+ navigate("/stats")}
+ />
+
+ {
+ navigate("/");
+ // Used to clear the chat panel before showing onboarding card
+ await dispatch(
+ saveCurrentSession({
+ openNewSession: true,
+ generateTitle: true,
+ }),
+ );
+ dispatch(setOnboardingCard({ show: true, activeTab: "Best" }));
+ ideMessenger.post("showTutorial", undefined);
+ }}
+ />
+
+
+
+
+
Keyboard shortcuts
+
+
);
diff --git a/gui/src/util/navigation.ts b/gui/src/util/navigation.ts
index eed39333d..8a7693b32 100644
--- a/gui/src/util/navigation.ts
+++ b/gui/src/util/navigation.ts
@@ -3,6 +3,5 @@ export const ROUTES = {
HOME: "/",
CONFIG_ERROR: "/config-error",
CONFIG: "/config",
- MORE: "/more",
// EXAMPLE_ROUTE_WITH_PARAMS: (params: ParamsType) => `/route/${params}`,
};