-
Notifications
You must be signed in to change notification settings - Fork 93
chore: update install.sh URL to vellum.ai and clean up old user-hosted onboarding logic #16798
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
Changes from all commits
f2d25ab
1373863
10bf106
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
Author
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. 🚩 QR code auto-detection from XDG path was not ported from deleted CloudCredentialsStepView The deleted This means users who ran (Refers to lines 130-158) Was this helpful? React with 👍 or 👎 to provide feedback.
Contributor
Author
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. Acknowledged — the QR code auto-detection from the XDG path was intentionally not ported. This is called out in the PR description under Notes. If the feature is desired in the inline flow, it can be added separately. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,7 +83,7 @@ struct APIKeyStepView: View { | |
| } | ||
|
|
||
| private var showInlineCloudFields: Bool { | ||
| managedSignInEnabled && (hostingMode == .gcp || hostingMode == .aws || hostingMode == .customHardware) | ||
| hostingMode == .gcp || hostingMode == .aws || hostingMode == .customHardware | ||
| } | ||
|
|
||
| var body: some View { | ||
|
|
@@ -159,7 +159,7 @@ struct APIKeyStepView: View { | |
| } | ||
|
|
||
| if !managedSignInEnabled { | ||
| OnboardingFooter(currentStep: state.currentStep, totalSteps: userHostedEnabled ? 4 : 3) | ||
| OnboardingFooter(currentStep: state.currentStep, totalSteps: 3) | ||
| .padding(.bottom, VSpacing.lg) | ||
| } | ||
| } | ||
|
|
@@ -254,6 +254,7 @@ struct APIKeyStepView: View { | |
| guard !hatchButtonDisabled else { return } | ||
| saveAndHatch() | ||
| } else { | ||
| guard !primaryButtonDisabled else { return } | ||
| saveAndContinue() | ||
| } | ||
| } | ||
|
|
@@ -321,7 +322,20 @@ struct APIKeyStepView: View { | |
| // MARK: - Helpers | ||
|
|
||
| private var primaryButtonDisabled: Bool { | ||
| apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty | ||
| if apiKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { | ||
| return true | ||
| } | ||
| switch hostingMode { | ||
| case .gcp: | ||
| return state.gcpProjectId.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty | ||
| || state.gcpServiceAccountKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty | ||
| case .aws: | ||
| return state.awsRoleArn.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty | ||
| case .customHardware: | ||
| return state.customQRCodeImageData.isEmpty | ||
| default: | ||
| return false | ||
| } | ||
| } | ||
|
|
||
| private var hatchButtonDisabled: Bool { | ||
|
|
@@ -377,24 +391,19 @@ struct APIKeyStepView: View { | |
| } | ||
|
|
||
| private func saveAndContinue() { | ||
| if userHostedEnabled { | ||
| if showHostingSelector { | ||
| state.cloudProvider = hostingMode.rawValue | ||
| } else { | ||
| state.cloudProvider = "local" | ||
| } | ||
|
|
||
| let trimmed = apiKey.trimmingCharacters(in: .whitespacesAndNewlines) | ||
| guard !trimmed.isEmpty else { return } | ||
| APIKeyManager.setKey(trimmed, for: "anthropic") | ||
| APIKeyManager.syncKeyToDaemon(provider: "anthropic", value: trimmed) | ||
|
|
||
| saveModelToConfig("claude-opus-4-6") | ||
| if userHostedEnabled && hostingMode != .local && hostingMode != .docker { | ||
| state.advance() | ||
| } else if userHostedEnabled { | ||
| state.advance() | ||
| } else { | ||
| state.cloudProvider = "local" | ||
| state.advance() | ||
| } | ||
| saveModelToConfig("claude-opus-4-6") | ||
| state.advance() | ||
|
Comment on lines
+405
to
+406
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.
After moving cloud credentials inline, Useful? React with 👍 / 👎.
Contributor
Author
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. Already addressed in 1373863 — the |
||
| } | ||
|
|
||
| private func saveModelToConfig(_ model: String) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.