-
Notifications
You must be signed in to change notification settings - Fork 2.6k
ux: Improvements to the new, RCC Provider centric onboarding flow #9709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d8bd446
Visual an interaction improvements to the welcome view
brunobergher 9ef5db5
Shows less model config options when in the welcome screen, as not to…
brunobergher 2821afa
Visual tweak to cloud upsell for new users
brunobergher ea7ba6f
Connect-to-Cloud screen improvements
brunobergher d9cf089
i8n
brunobergher 82791bc
Update webview-ui/src/components/chat/ChatView.tsx
brunobergher 6d8a666
i18n
brunobergher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -119,6 +119,7 @@ import { ConsecutiveMistakeLimitControl } from "./ConsecutiveMistakeLimitControl | |
| import { BedrockCustomArn } from "./providers/BedrockCustomArn" | ||
| import { RooBalanceDisplay } from "./providers/RooBalanceDisplay" | ||
| import { buildDocLink } from "@src/utils/docLinks" | ||
| import { BookOpenText } from "lucide-react" | ||
|
|
||
| export interface ApiOptionsProps { | ||
| uriScheme: string | undefined | ||
|
|
@@ -466,6 +467,12 @@ const ApiOptions = ({ | |
| const [rooOption] = options.splice(rooIndex, 1) | ||
| options.unshift(rooOption) | ||
| } | ||
| } else { | ||
| const openRouterIndex = options.findIndex((opt) => opt.value === "openrouter") | ||
| if (openRouterIndex > 0) { | ||
| const [openRouterOption] = options.splice(openRouterIndex, 1) | ||
| options.unshift(openRouterOption) | ||
| } | ||
| } | ||
|
|
||
| return options | ||
|
|
@@ -475,16 +482,15 @@ const ApiOptions = ({ | |
| <div className="flex flex-col gap-3"> | ||
| <div className="flex flex-col gap-1 relative"> | ||
| <div className="flex justify-between items-center"> | ||
| <label className="block font-medium mb-1">{t("settings:providers.apiProvider")}</label> | ||
| <label className="block font-medium">{t("settings:providers.apiProvider")}</label> | ||
| {selectedProvider === "roo" && cloudIsAuthenticated ? ( | ||
| <RooBalanceDisplay /> | ||
| ) : ( | ||
| docs && ( | ||
| <div className="text-xs text-vscode-descriptionForeground"> | ||
| <VSCodeLink href={docs.url} className="hover:text-vscode-foreground" target="_blank"> | ||
| {t("settings:providers.providerDocumentation", { provider: docs.name })} | ||
| </VSCodeLink> | ||
| </div> | ||
| <VSCodeLink href={docs.url} target="_blank" className="flex gap-2"> | ||
| {docs.name} | ||
| <BookOpenText className="size-4 inline ml-2" /> | ||
| </VSCodeLink> | ||
|
Comment on lines
+490
to
+493
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so much better |
||
| ) | ||
| )} | ||
| </div> | ||
|
|
@@ -509,7 +515,7 @@ const ApiOptions = ({ | |
| routerModels={routerModels} | ||
| selectedModelId={selectedModelId} | ||
| uriScheme={uriScheme} | ||
| fromWelcomeView={fromWelcomeView} | ||
| simplifySettings={fromWelcomeView} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| /> | ||
|
|
@@ -524,6 +530,7 @@ const ApiOptions = ({ | |
| refetchRouterModels={refetchRouterModels} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -535,6 +542,7 @@ const ApiOptions = ({ | |
| uriScheme={uriScheme} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -545,6 +553,7 @@ const ApiOptions = ({ | |
| routerModels={routerModels} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -556,54 +565,73 @@ const ApiOptions = ({ | |
| refetchRouterModels={refetchRouterModels} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "anthropic" && ( | ||
| <Anthropic apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <Anthropic | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "claude-code" && ( | ||
| <ClaudeCode apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <ClaudeCode | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "openai-native" && ( | ||
| <OpenAI | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| selectedModelInfo={selectedModelInfo} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "mistral" && ( | ||
| <Mistral apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <Mistral | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "baseten" && ( | ||
| <Baseten apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <Baseten | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "bedrock" && ( | ||
| <Bedrock | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| selectedModelInfo={selectedModelInfo} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "vertex" && ( | ||
| <Vertex | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| fromWelcomeView={fromWelcomeView} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "gemini" && ( | ||
| <Gemini | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| fromWelcomeView={fromWelcomeView} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -613,27 +641,48 @@ const ApiOptions = ({ | |
| setApiConfigurationField={setApiConfigurationField} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "lmstudio" && ( | ||
| <LMStudio apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <LMStudio | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "deepseek" && ( | ||
| <DeepSeek apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <DeepSeek | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "doubao" && ( | ||
| <Doubao apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <Doubao | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "qwen-code" && ( | ||
| <QwenCode apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <QwenCode | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "moonshot" && ( | ||
| <Moonshot apiConfiguration={apiConfiguration} setApiConfigurationField={setApiConfigurationField} /> | ||
| <Moonshot | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
| {selectedProvider === "minimax" && ( | ||
|
|
@@ -671,6 +720,7 @@ const ApiOptions = ({ | |
| routerModels={routerModels} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -680,6 +730,7 @@ const ApiOptions = ({ | |
| setApiConfigurationField={setApiConfigurationField} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -697,6 +748,7 @@ const ApiOptions = ({ | |
| setApiConfigurationField={setApiConfigurationField} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -707,6 +759,7 @@ const ApiOptions = ({ | |
| routerModels={routerModels} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -733,6 +786,7 @@ const ApiOptions = ({ | |
| cloudIsAuthenticated={cloudIsAuthenticated} | ||
| organizationAllowList={organizationAllowList} | ||
| modelValidationError={modelValidationError} | ||
| simplifySettings={fromWelcomeView} | ||
| /> | ||
| )} | ||
|
|
||
|
|
@@ -801,24 +855,25 @@ const ApiOptions = ({ | |
| </> | ||
| )} | ||
|
|
||
| {selectedProvider === "roo" ? ( | ||
| <SimpleThinkingBudget | ||
| key={`${selectedProvider}-${selectedModelId}`} | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| modelInfo={selectedModelInfo} | ||
| /> | ||
| ) : ( | ||
| <ThinkingBudget | ||
| key={`${selectedProvider}-${selectedModelId}`} | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| modelInfo={selectedModelInfo} | ||
| /> | ||
| )} | ||
| {!fromWelcomeView && | ||
| (selectedProvider === "roo" ? ( | ||
| <SimpleThinkingBudget | ||
| key={`${selectedProvider}-${selectedModelId}`} | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| modelInfo={selectedModelInfo} | ||
| /> | ||
| ) : ( | ||
| <ThinkingBudget | ||
| key={`${selectedProvider}-${selectedModelId}`} | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
| modelInfo={selectedModelInfo} | ||
| /> | ||
| ))} | ||
|
|
||
| {/* Gate Verbosity UI by capability flag */} | ||
| {selectedModelInfo?.supportsVerbosity && ( | ||
| {!fromWelcomeView && selectedModelInfo?.supportsVerbosity && ( | ||
| <Verbosity | ||
| apiConfiguration={apiConfiguration} | ||
| setApiConfigurationField={setApiConfigurationField} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.