From 12a347b0220c51d915fe84577a02122b2d2efcbb Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 21 Mar 2025 21:01:11 -0700 Subject: [PATCH] remove more page --- .../actions/ContinuePluginActions.kt | 9 - .../src/main/resources/META-INF/plugin.xml | 9 - extensions/vscode/package.json | 12 - extensions/vscode/src/commands.ts | 6 - gui/src/App.tsx | 5 - .../components/indexing/ChatIndexingPeeks.tsx | 11 +- .../Lump/sections/docs/DocsIndexingPeeks.tsx | 2 +- gui/src/pages/More/More.tsx | 133 ------ gui/src/pages/More/index.ts | 1 - .../IndexingProgress/IndexingProgress.tsx | 0 .../IndexingProgress/IndexingProgressBar.tsx | 0 .../IndexingProgressErrorText.tsx | 0 .../IndexingProgressIndicator.tsx | 0 .../IndexingProgressSubtext.tsx | 0 .../IndexingProgressTitleText.tsx | 0 .../IndexingProgress/index.ts | 0 .../{More => config}/KeyboardShortcuts.tsx | 0 .../{More => config}/MCPServersPreview.tsx | 0 gui/src/pages/config/More.tsx | 29 ++ .../pages/{More => config}/MoreHelpRow.tsx | 0 gui/src/pages/config/UserSettingsForm.tsx | 298 ++++++++++++++ gui/src/pages/config/index.tsx | 387 +++++------------- gui/src/util/navigation.ts | 1 - 23 files changed, 434 insertions(+), 469 deletions(-) delete mode 100644 gui/src/pages/More/More.tsx delete mode 100644 gui/src/pages/More/index.ts rename gui/src/pages/{More => config}/IndexingProgress/IndexingProgress.tsx (100%) rename gui/src/pages/{More => config}/IndexingProgress/IndexingProgressBar.tsx (100%) rename gui/src/pages/{More => config}/IndexingProgress/IndexingProgressErrorText.tsx (100%) rename gui/src/pages/{More => config}/IndexingProgress/IndexingProgressIndicator.tsx (100%) rename gui/src/pages/{More => config}/IndexingProgress/IndexingProgressSubtext.tsx (100%) rename gui/src/pages/{More => config}/IndexingProgress/IndexingProgressTitleText.tsx (100%) rename gui/src/pages/{More => config}/IndexingProgress/index.ts (100%) rename gui/src/pages/{More => config}/KeyboardShortcuts.tsx (100%) rename gui/src/pages/{More => config}/MCPServersPreview.tsx (100%) create mode 100644 gui/src/pages/config/More.tsx rename gui/src/pages/{More => config}/MoreHelpRow.tsx (100%) create mode 100644 gui/src/pages/config/UserSettingsForm.tsx diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt index 3c6b27f05..a4e060265 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt @@ -126,12 +126,3 @@ class OpenConfigAction : AnAction() { continuePluginService.sendToWebview("navigateTo", params) } } - -class OpenMorePageAction : AnAction() { - override fun actionPerformed(e: AnActionEvent) { - val continuePluginService = getContinuePluginService(e.project) ?: return - continuePluginService.continuePluginWindow?.content?.components?.get(0)?.requestFocus() - val params = mapOf("path" to "/more", "toggle" to true) - continuePluginService.sendToWebview("navigateTo", params) - } -} \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml index abc50a092..591136551 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -140,19 +140,10 @@ - - - - - { - vscode.commands.executeCommand("continue.navigateTo", "/more", true); - }, "continue.navigateTo": (path: string, toggle: boolean) => { sidebar.webviewProtocol?.request("navigateTo", { path, toggle }); focusGUI(); diff --git a/gui/src/App.tsx b/gui/src/App.tsx index 5f37f7675..deb1e376f 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -9,7 +9,6 @@ import ConfigErrorPage from "./pages/config-error"; import ErrorPage from "./pages/error"; import Chat from "./pages/gui"; import History from "./pages/history"; -import MorePage from "./pages/More"; import Stats from "./pages/stats"; import { ROUTES } from "./util/navigation"; @@ -43,10 +42,6 @@ const router = createMemoryRouter([ path: "/addModel/provider/:providerName", element: , }, - { - path: "/more", - element: , - }, { path: ROUTES.CONFIG_ERROR, element: , diff --git a/gui/src/components/indexing/ChatIndexingPeeks.tsx b/gui/src/components/indexing/ChatIndexingPeeks.tsx index aa5edfe32..a7eaed7fb 100644 --- a/gui/src/components/indexing/ChatIndexingPeeks.tsx +++ b/gui/src/components/indexing/ChatIndexingPeeks.tsx @@ -1,8 +1,8 @@ -import { useDispatch } from "react-redux"; +import { ArrowPathIcon, EyeSlashIcon } from "@heroicons/react/24/outline"; import { IndexingStatus } from "core"; import { useMemo } from "react"; +import { useDispatch } from "react-redux"; import { useNavigate } from "react-router-dom"; -import { ArrowPathIcon, EyeSlashIcon } from "@heroicons/react/24/outline"; import { useAppSelector } from "../../redux/hooks"; import { setIndexingChatPeekHidden } from "../../redux/slices/indexingSlice"; @@ -32,12 +32,7 @@ function ChatIndexingPeek({ state }: ChatIndexingPeekProps) { if (hiddenPeeks[state.type]) return null; return ( -
{ - navigate("/more"); - }} - > +

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" + /> */} + + + + + +
{ + e.preventDefault(); + handleDisableAutocompleteSubmit(); + }} + > +
+ Disable autocomplete in files +
+ { + setFormDisableAutocomplete(e.target.value); + }} + /> +
+ {formDisableAutocomplete !== + disableAutocompleteInFiles ? ( + <> +
+ +
+
+ +
+ + ) : ( +
+ +
+ )} +
+
+
+ + Comma-separated list of path matchers + +
+
+
+
+
+ ) : 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" - /> */} - - - - - -
{ - e.preventDefault(); - handleDisableAutocompleteSubmit(); - }} - > -
- Disable autocomplete in files -
- { - setFormDisableAutocomplete(e.target.value); - }} - /> -
- {formDisableAutocomplete !== - disableAutocompleteInFiles ? ( - <> -
- -
-
- -
- - ) : ( -
- -
- )} -
-
-
- - Comma-separated list of path matchers - -
-
-
-
+
+
+
+

@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}`, };