Update welcome experience

This commit is contained in:
Saoud Rizwan
2025-02-04 14:17:20 -08:00
parent 57e64ba50c
commit c06e91d459
2 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -1448,8 +1448,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
if (apiKey) {
apiProvider = "anthropic"
} else {
// New users should default to cline
apiProvider = "cline"
// New users should default to openrouter, since they've opted to use an API key instead of signing in
apiProvider = "openrouter"
}
}
@@ -57,13 +57,14 @@ const WelcomeView = () => {
<div style={{ marginTop: "20px", marginBottom: "20px" }}>
<VSCodeButton appearance="primary" onClick={handleLogin}>
Log in to Cline
Sign Up with Cline
</VSCodeButton>
<div style={{ marginTop: "10px" }}>
<ul style={{ paddingLeft: "20px", margin: "10px 0" }}>
<li>Get 1 task worth of free tokens</li>
<li>No credit card required - just start using Cline immediately!</li>
<li>Choose from hundreds of models like Claude 3.5 Sonnet and DeepSeek V3</li>
<li>Manage usage and billing in the extension</li>
<li>Get started for free with no credit card required</li>
</ul>
</div>
</div>
@@ -71,9 +72,11 @@ const WelcomeView = () => {
<VSCodeDivider />
<div style={{ marginTop: "20px" }}>
<VSCodeButton appearance="secondary" onClick={() => setShowApiOptions(!showApiOptions)}>
{showApiOptions ? "Hide API options" : "Use your own provider API key"}
</VSCodeButton>
{!showApiOptions && (
<VSCodeButton appearance="secondary" onClick={() => setShowApiOptions(!showApiOptions)}>
Use your own API key
</VSCodeButton>
)}
{showApiOptions && (
<div style={{ marginTop: "10px" }}>