From 30dbdee5dc10b5ff25b47d8c9751d206e946dfa1 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 10 Jul 2025 23:59:05 -0700 Subject: [PATCH 1/8] fix: reload assistants, not config --- gui/src/components/AssistantAndOrgListbox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index 65b9e6a81..e9b3fb023 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -180,7 +180,7 @@ export function AssistantAndOrgListbox() { configLoading && "animate-spin-slow", )} /> - Reload config + Reload assistants From 572c4a7539a8405cc07326966c198172c3293bf0 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:13:16 -0700 Subject: [PATCH 2/8] always show user email --- .../AssistantAndOrgListbox/index.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index e9b3fb023..a55758ca1 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -1,5 +1,5 @@ import { ArrowPathIcon, PlusIcon } from "@heroicons/react/24/outline"; -import { isOnPremSession } from "core/control-plane/AuthTypes"; +import { AuthType, isOnPremSession } from "core/control-plane/AuthTypes"; import { useContext, useEffect, useRef } from "react"; import { useAuth } from "../../context/Auth"; import { IdeMessengerContext } from "../../context/IdeMessenger"; @@ -126,19 +126,23 @@ export function AssistantAndOrgListbox() { - {shouldRenderOrgInfo && ( -
-
+
+
+ {session && session?.AUTH_TYPE !== AuthType.OnPrem && ( - {session.account.id} + {session?.account.id} - - -
+ )} + {shouldRenderOrgInfo && ( + <> + + + + )}
- )} +
Date: Fri, 11 Jul 2025 00:17:01 -0700 Subject: [PATCH 3/8] fix: reload assistants button leading to new assistant page --- gui/src/components/AssistantAndOrgListbox/index.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index a55758ca1..7072c38e3 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -165,18 +165,17 @@ export function AssistantAndOrgListbox() { login(false)} + onClick={async (e: any) => { + e.stopPropagation(); + await refreshProfiles(); + }} > { - e.stopPropagation(); - await refreshProfiles(); - }} > Date: Fri, 11 Jul 2025 00:27:49 -0700 Subject: [PATCH 4/8] fix: don't block user with "create your first assistant" --- .../AssistantOptions.tsx | 22 ++++++++++------ .../SelectedAssistantButton.tsx | 6 +++-- .../AssistantAndOrgListbox/index.tsx | 25 ++----------------- 3 files changed, 20 insertions(+), 33 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx index 23c54184d..89ac2a81b 100644 --- a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx +++ b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx @@ -20,14 +20,20 @@ export function AssistantOptions({
- {profiles?.map((profile, idx) => ( - - ))} + {profiles?.length === 0 ? ( +
+ No assistants found +
+ ) : ( + profiles?.map((profile, idx) => ( + + )) + )}
); diff --git a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx index bb0a301e1..86ba08916 100644 --- a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx +++ b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx @@ -9,7 +9,7 @@ import { ListboxButton } from "../ui"; import { AssistantIcon } from "./AssistantIcon"; interface SelectedAssistantButtonProps { - selectedProfile: ProfileDescription; + selectedProfile: ProfileDescription | null; } export function SelectedAssistantButton({ @@ -25,7 +25,9 @@ export function SelectedAssistantButton({ style={{ fontSize: fontSize(-3) }} >
- {configLoading ? ( + {selectedProfile === null ? ( + "Create your first assistant" + ) : configLoading ? ( { - void ideMessenger.request("controlPlane/openUrl", { - path: "/new?type=assistant", - orgSlug: currentOrg?.slug, - }); - }} - className="text-description flex cursor-pointer select-none items-center gap-1" - style={{ fontSize: smallFont }} - > - - - Create your first assistant - -
- ); - } - return (
@@ -143,8 +121,9 @@ export function AssistantAndOrgListbox() { )}
+ From 48a5783abc352e56972c3487f2b620eac2b8ecba Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:46:12 -0700 Subject: [PATCH 5/8] fix: after hub login, show user success message and tutorial --- .../OnboardingCard/components/OnboardingCardLanding.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx index d9eae491c..40abbea5f 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx @@ -31,6 +31,9 @@ export function OnboardingCardLanding({ // A new assistant is created when the account is created // We want to switch to this immediately void dispatch(selectFirstHubProfile()); + + ideMessenger.post("showTutorial", undefined); + ideMessenger.post("showToast", ["info", "🎉 Welcome to Continue!"]); } }); } From da0335ab3282346c058b520de88f890bdea61bef Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:47:00 -0700 Subject: [PATCH 6/8] don't mention prompts in input placeholder --- gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 0cbb1e818..dd874e886 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -38,7 +38,7 @@ export function getPlaceholderText( } return historyLength === 0 - ? "Ask anything, '/' for prompts, '@' to add context" + ? "Ask anything, '@' to add context" : "Ask a follow-up"; } From ac96f3da03b0c59092e5ea9f595f4a894aff1474 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:51:30 -0700 Subject: [PATCH 7/8] add padding to input box --- gui/src/components/mainInput/InputToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index c58fc0eeb..b4ad6a860 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -74,7 +74,7 @@ function InputToolbar(props: InputToolbarProps) { <>
Date: Fri, 11 Jul 2025 01:00:53 -0700 Subject: [PATCH 8/8] feat: view config.yaml reference codelens --- .../DownloadYamlExtensionCodeLensProvider.ts | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts index dd46ad401..58b167e66 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts @@ -15,20 +15,34 @@ export class DownloadYamlExtensionCodeLensProvider if (!document.uri.fsPath.includes(".continue")) { return []; } - if (this.yamlExtensionDownloaded()) { - return []; - } - const codeLens: vscode.CodeLens = { + const codeLenses: vscode.CodeLens[] = []; + + // Always show documentation link + const docCodeLens: vscode.CodeLens = { range: new vscode.Range(0, 0, 0, 0), command: { - title: "Download YAML extension for Intellisense", - command: "workbench.extensions.installExtension", - arguments: ["redhat.vscode-yaml"], + title: "📖 View Continue Reference", + command: "vscode.open", + arguments: [vscode.Uri.parse("https://docs.continue.dev/reference")], }, isResolved: true, }; + codeLenses.push(docCodeLens); - return [codeLens]; + if (!this.yamlExtensionDownloaded()) { + const codeLens: vscode.CodeLens = { + range: new vscode.Range(0, 0, 0, 0), + command: { + title: "Download YAML extension for Intellisense", + command: "workbench.extensions.installExtension", + arguments: ["redhat.vscode-yaml"], + }, + isResolved: true, + }; + codeLenses.push(codeLens); + } + + return codeLenses; } }