diff --git a/src/vs/workbench/contrib/void/browser/react/src/void-onboarding/VoidOnboarding.tsx b/src/vs/workbench/contrib/void/browser/react/src/void-onboarding/VoidOnboarding.tsx index 6d3eb868..d16ebefd 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/void-onboarding/VoidOnboarding.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/void-onboarding/VoidOnboarding.tsx @@ -113,8 +113,8 @@ const providerNamesOfTab: Record = { const descriptionOfTab: Record = { Free: `Providers with a 100% free tier. Add as many as you'd like!`, Paid: `Connect directly with any provider (bring your own key).`, - Local: `Add as many local providers as you'd like! Active providers should appear automatically.`, - 'Cloud/Other': `Add as many providers as you'd like! Reach out for custom configuration requests.`, + Local: `Active providers should appear automatically. Add as many as you'd like! `, + 'Cloud/Other': `Add as many as you'd like! Reach out for custom configuration requests.`, }; @@ -148,127 +148,123 @@ const AddProvidersPage = ({ pageIndex, setPageIndex }: { pageIndex: number, setP }; }, [errorMessage]); - return (
-
{/* Left Column - Fixed */} -
- {/* Tab Selector */} -
- {[...tabNames, 'Cloud/Other'].map(tab => ( - - ))} -
- - {/* Feature Checklist */} -
- {featureNameMap.map(({ display, featureName }) => { - const hasModel = settingsState.modelSelectionOfFeature[featureName] !== null; - return ( -
- {hasModel ? ( - - ) : ( -
-
-
- )} - {display} -
- ); - })} -
+ return (
+ {/* Left Column */} +
+ {/* Tab Selector */} +
+ {[...tabNames, 'Cloud/Other'].map(tab => ( + + ))}
- {/* Right Column */} -
-
Add a Provider
- -
-
{currentTab}
-
{descriptionOfTab[currentTab]}
-
- - {providerNamesOfTab[currentTab].map((providerName) => ( -
-
- Add {displayInfoOfProviderName(providerName).title} - {providerName === 'gemini' && ( - * - )} - {providerName === 'openRouter' && ( - * + {/* Feature Checklist */} +
+ {featureNameMap.map(({ display, featureName }) => { + const hasModel = settingsState.modelSelectionOfFeature[featureName] !== null; + return ( +
+ {hasModel ? ( + + ) : ( +
+
+
)} + {display}
-
- + ); + })} +
+
-
- {providerName === 'ollama' && } -
- ))} + {/* Right Column */} +
+
Add a Provider
- {(currentTab === 'Local' || currentTab === 'Cloud/Other') && ( -
-
-
Models
-
-
+
+
{currentTab}
+
{descriptionOfTab[currentTab]}
+
- {currentTab === 'Local' && ( -
- Local models should be detected automatically. You can add custom models below. -
+ {providerNamesOfTab[currentTab].map((providerName) => ( +
+
+ Add {displayInfoOfProviderName(providerName).title} + {providerName === 'gemini' && ( + * + )} + {providerName === 'openRouter' && ( + * )} - - {currentTab === 'Local' && } - {currentTab === 'Cloud/Other' && }
- )} +
+ +
+ {providerName === 'ollama' && } +
+ ))} + {(currentTab === 'Local' || currentTab === 'Cloud/Other') && ( +
+
+
Models
+
- {/* Navigation buttons in right column */} -
- {errorMessage && ( -
{errorMessage}
+ {currentTab === 'Local' && ( +
Local models should be detected automatically. You can add custom models below.
)} -
- setPageIndex(pageIndex - 1)} /> - { - const isDisabled = isFeatureNameDisabled('Chat', settingsState) - if (!isDisabled) { - setPageIndex(pageIndex + 1); - setErrorMessage(null); - } else { - // Show error message - setErrorMessage("Please set up at least one Chat model before moving on."); - } - }} - /> -
+ {currentTab === 'Local' && } + {currentTab === 'Cloud/Other' && } +
+ )} + + + + {/* Navigation buttons in right column */} +
+ {errorMessage && ( +
{errorMessage}
+ )} +
+ setPageIndex(pageIndex - 1)} /> + { + const isDisabled = isFeatureNameDisabled('Chat', settingsState) + + if (!isDisabled) { + setPageIndex(pageIndex + 1); + setErrorMessage(null); + } else { + // Show error message + setErrorMessage("Please set up at least one Chat model before moving on."); + } + }} + />