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;
}
}
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 (
- {shouldRenderOrgInfo && (
-
-
+
+
+ {session && session?.AUTH_TYPE !== AuthType.OnPrem && (
- {session.account.id}
+ {session?.account.id}
-
-
-
+ )}
+ {shouldRenderOrgInfo && (
+ <>
+
+
+ >
+ )}
- )}
+
+
@@ -176,7 +159,7 @@ export function AssistantAndOrgListbox() {
configLoading && "animate-spin-slow",
)}
/>
- Reload config
+ Reload assistants
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!"]);
}
});
}
diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx
index 0e2aaa52a..85ea9a238 100644
--- a/gui/src/components/mainInput/InputToolbar.tsx
+++ b/gui/src/components/mainInput/InputToolbar.tsx
@@ -75,7 +75,7 @@ function InputToolbar(props: InputToolbarProps) {
<>