diff --git a/docs/docs/customize/deep-dives/configuration.md b/docs/docs/customize/deep-dives/configuration.md index 5cd0ebf24..dd48ddbe7 100644 --- a/docs/docs/customize/deep-dives/configuration.md +++ b/docs/docs/customize/deep-dives/configuration.md @@ -9,7 +9,7 @@ keywords: [config, settings, customize] Continue can be deeply customized. Local user-level configuration is stored and can be edited in your home directory in `config.yaml`: -To open `config.yaml`, you can click the "gear" icon in the header of the Continue Chat sidebar to open the settings page, and then click `Open Config File` to open the file. When editing this file, you can see the available options suggested as you type, or check the reference below. +To open `config.yaml`, you can click the "gear" icon in the header of the Continue Chat sidebar to open the settings page, and then click `Open Assistant configuration` to open the file. When editing this file, you can see the available options suggested as you type, or check the reference below. - `~/.continue/config.yaml` (MacOS / Linux) - `%USERPROFILE%\.continue\config.yaml` (Windows) diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md index 2024673f9..ae2baf79a 100644 --- a/docs/docs/customize/overview.md +++ b/docs/docs/customize/overview.md @@ -21,7 +21,7 @@ Most custom configuration is done by editing `config.yaml` (or the older `config - MacOS and Linux: `~/.continue/config.yaml` - Windows: `%USERPROFILE%\.continue\config.yaml` -You can easily access config file from the Continue Chat sidebar. Open the sidebar by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) and click the "gear" icon in header to open the Settings page. Then click the button labeled `Open configuration file`. +You can easily access config file from the Continue Chat sidebar. Open the sidebar by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) and click the "gear" icon in header to open the Settings page. Then click the button labeled `Open Assistant configuration`. ![configure-continue](/img/configure-continue.png) diff --git a/docs/docs/customize/settings.md b/docs/docs/customize/settings.md index 0d917df6e..f76494032 100644 --- a/docs/docs/customize/settings.md +++ b/docs/docs/customize/settings.md @@ -14,7 +14,7 @@ Which takes you to this page: ![User Settings Page](/img/settings-page.png) -Click the `Open Config File` button to open your configuration file. See the [Configuration Reference](../reference.md) for more information. +Click the `Open Assistant configuration` button to open your configuration file. See the [Configuration Reference](../reference.md) for more information. Below that, the following settings which are not part of a configuration file are available: diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index cd4589b9c..1aaa10283 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -5,11 +5,12 @@ import { Range } from "core"; import { EXTENSION_NAME } from "core/control-plane/env"; import { GetGhTokenArgs } from "core/protocol/ide"; import { editConfigJson, getConfigJsonPath } from "core/util/paths"; +import * as URI from "uri-js"; import * as vscode from "vscode"; -import * as URI from "uri-js"; import { executeGotoProvider } from "./autocomplete/lsp"; import { Repository } from "./otherExtensions/git"; +import { SecretStorage } from "./stubs/SecretStorage"; import { VsCodeIdeUtils } from "./util/ideUtils"; import { getExtensionUri, openEditorAndRevealRange } from "./util/vscode"; import { VsCodeWebviewProtocol } from "./webviewProtocol"; @@ -28,7 +29,6 @@ import type { TerminalOptions, Thread, } from "core"; -import { SecretStorage } from "./stubs/SecretStorage"; class VsCodeIde implements IDE { ideUtils: VsCodeIdeUtils; @@ -212,7 +212,7 @@ class VsCodeIde implements IDE { .showInformationMessage( "We'll only ask you to log in if using the free trial. To avoid this prompt, make sure to remove free trial models from your config.json", "Remove for me", - "Open config.json", + "Open Assistant configuration", ) .then((selection) => { if (selection === "Remove for me") { @@ -223,7 +223,7 @@ class VsCodeIde implements IDE { configJson.tabAutocompleteModel = undefined; return configJson; }); - } else if (selection === "Open config.json") { + } else if (selection === "Open Assistant configuration") { this.openFile(getConfigJsonPath()); } }); diff --git a/gui/src/components/PageHeader.tsx b/gui/src/components/PageHeader.tsx index 22755926e..bc759df2b 100644 --- a/gui/src/components/PageHeader.tsx +++ b/gui/src/components/PageHeader.tsx @@ -4,15 +4,23 @@ export interface PageHeaderProps { onTitleClick?: () => void; title?: string; rightContent?: React.ReactNode; + showBorder?: boolean; // Added this prop } export default function PageHeader({ onTitleClick, title, rightContent, + showBorder, }: PageHeaderProps) { return ( -
+
{title && (
` + h1 { + font-size: 1.25em; + } + + h2 { + font-size: 1.15em; + } + + h3 { + font-size: 1.05em; + } + + h4 { + font-size: 1em; + } + + h5 { + font-size: 0.95em; + } + + h6 { + font-size: 0.9em; + } + pre { white-space: ${(props) => props.whiteSpace}; background-color: ${vscEditorBackground}; diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index 629f0fe14..a4dde488d 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -10,7 +10,6 @@ import { getFontSize, isMetaEquivalentKeyPressed } from "../../../util"; import PopoverTransition from "../../mainInput/InputToolbar/PopoverTransition"; import AssistantIcon from "./AssistantIcon"; import { AssistantSelectOptions } from "./AssistantSelectOptions"; -import { getProfileDisplayText } from "./utils"; function AssistantSelectButton(props: { selectedProfile: ProfileDescription }) { return ( @@ -18,9 +17,7 @@ function AssistantSelectButton(props: { selectedProfile: ProfileDescription }) {
- - {getProfileDisplayText(props.selectedProfile)} - + {props.selectedProfile.title}
); @@ -29,7 +26,7 @@ function AssistantSelectButton(props: { selectedProfile: ProfileDescription }) { export default function AssistantSelect() { const dispatch = useAppDispatch(); const buttonRef = useRef(null); - const { selectedProfile, selectedOrganization, profiles } = useAuth(); + const { selectedProfile, selectedOrganization } = useAuth(); const ideMessenger = useContext(IdeMessengerContext); useEffect(() => { @@ -87,7 +84,7 @@ export default function AssistantSelect() { - + { if (buttonRef.current) { diff --git a/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx b/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx index c0b7e6071..cd8d5cd5c 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx @@ -11,7 +11,6 @@ import { getFontSize, getMetaKeyLabel, isLocalProfile } from "../../../util"; import { ROUTES } from "../../../util/navigation"; import AssistantIcon from "./AssistantIcon"; import { Divider, Option, OptionDiv } from "./shared"; -import { getProfileDisplayText } from "./utils"; interface AssistantSelectOptionsProps { onClose: () => void; @@ -49,8 +48,8 @@ export function AssistantSelectOptions({ } return ( -
-
+
+
{profiles.map((profile, idx) => { return (