From 85804ff9e54adf30f1a4b23b3003b39338a82065 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 5 Mar 2025 13:13:30 -0800 Subject: [PATCH 1/6] feat: smaller headings, use assistant name --- extensions/vscode/package-lock.json | 4 +- gui/src/components/PageHeader.tsx | 10 +- .../markdown/StyledMarkdownPreview.tsx | 24 +++ .../platform/AssistantSelect.tsx | 9 +- .../platform/AssistantSelectOptions.tsx | 9 +- .../modelSelection/platform/utils.ts | 6 - gui/src/pages/More/More.tsx | 2 +- gui/src/pages/config/index.tsx | 182 ++++++++++-------- gui/src/pages/history/index.tsx | 2 +- 9 files changed, 141 insertions(+), 107 deletions(-) delete mode 100644 gui/src/components/modelSelection/platform/utils.ts diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index cbcebc34e..ed46978a0 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.3", + "version": "1.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.3", + "version": "1.1.4", "license": "Apache-2.0", "dependencies": { "@continuedev/fetch": "^1.0.3", 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 (