From f4b2143a590a1ea8d9e658b978b4f3266fa0cd9e Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 26 Jun 2026 19:34:50 +0200 Subject: [PATCH] feat(settings): use the shared custom dropdown for the AI parsing provider Swap the native select for CustomSelect so the provider picker matches the rest of the app's styling (dark mode, portal dropdown). --- .../Settings/LlmConnectionSection.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/client/src/components/Settings/LlmConnectionSection.tsx b/client/src/components/Settings/LlmConnectionSection.tsx index f9ec1baf3..538ee2266 100644 --- a/client/src/components/Settings/LlmConnectionSection.tsx +++ b/client/src/components/Settings/LlmConnectionSection.tsx @@ -6,6 +6,7 @@ import { useSettingsStore } from '../../store/settingsStore' import type { Settings } from '../../types' import Section from './Section' import ToggleSwitch from './ToggleSwitch' +import CustomSelect from '../shared/CustomSelect' type Provider = NonNullable @@ -76,15 +77,15 @@ export default function LlmConnectionSection(): React.ReactElement {
- + onChange={v => setProvider(v as Provider)} + options={[ + { value: 'local', label: t('settings.aiParsing.providerLocal') }, + { value: 'openai', label: t('settings.aiParsing.providerOpenai') }, + { value: 'anthropic', label: t('settings.aiParsing.providerAnthropic') }, + ]} + />