From 179ab885cb0325b97e6c05cc9d89ed44d2a6a9d4 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Fri, 6 Feb 2026 17:51:52 -0700 Subject: [PATCH] refactor(azure): hide API version field in Welcome view The API version field is an advanced option that 99% of users won't change. Hide it in the onboarding Welcome view using the existing simplifySettings pattern (matches OpenRouter's approach for custom base URL). --- .../components/settings/providers/Azure.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/webview-ui/src/components/settings/providers/Azure.tsx b/webview-ui/src/components/settings/providers/Azure.tsx index d9a167c95c..b96dc29fc9 100644 --- a/webview-ui/src/components/settings/providers/Azure.tsx +++ b/webview-ui/src/components/settings/providers/Azure.tsx @@ -14,7 +14,7 @@ type AzureProps = { simplifySettings?: boolean } -export const Azure = ({ apiConfiguration, setApiConfigurationField }: AzureProps) => { +export const Azure = ({ apiConfiguration, setApiConfigurationField, simplifySettings }: AzureProps) => { const { t } = useAppTranslation() const handleInputChange = useCallback( @@ -76,16 +76,20 @@ export const Azure = ({ apiConfiguration, setApiConfigurationField }: AzureProps
{t("settings:providers.apiKeyStorageNotice")}
- - - -
- {t("settings:providers.azureApiVersionDescription")} -
+ {!simplifySettings && ( + <> + + + +
+ {t("settings:providers.azureApiVersionDescription")} +
+ + )} ) }