From 03f26601638b25a7d0851dbbd8e09ae6bdf5d117 Mon Sep 17 00:00:00 2001 From: oabrivard Date: Thu, 26 Mar 2026 20:58:31 +0100 Subject: [PATCH] refactor: redesign settings page with clear section grouping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5 sections organized by purpose: 1. Contenu — theme, categories, summary length 2. Sources — per-source limits, Brave Search 3. Intelligence Artificielle — provider + API keys merged in one visual card 4. Performance — batch size, history, rate limits 5. Import/Export — collapsed by default Sticky save button, smaller number inputs, integrated API key status badge in the AI provider card. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/settings/SettingsAdvanced.tsx | 139 ------------------ 1 file changed, 139 deletions(-) delete mode 100644 frontend/src/components/settings/SettingsAdvanced.tsx diff --git a/frontend/src/components/settings/SettingsAdvanced.tsx b/frontend/src/components/settings/SettingsAdvanced.tsx deleted file mode 100644 index a521aff..0000000 --- a/frontend/src/components/settings/SettingsAdvanced.tsx +++ /dev/null @@ -1,139 +0,0 @@ -import { type Component } from 'solid-js'; -import { A } from '@solidjs/router'; -import { useI18n } from '~/i18n'; -import type { UserSettings } from '~/types'; - -interface SettingsAdvancedProps { - settings: () => UserSettings; - setSettings: (updater: (prev: UserSettings) => UserSettings) => void; -} - -/** - * Advanced settings section on the Settings page. - * - * Groups fields that control extraction and pipeline behaviour: - * - `article_history_days` — deduplication window - * - `batch_size` — number of sources processed per LLM batch - * - `search_agent_behavior` — free-text prompt injection for the search agent - */ -const SettingsAdvanced: Component = (props) => { - const { t } = useI18n(); - - return ( - <> - {/* articleHistoryDays + batchSize grid */} -
-
- -
- - props.setSettings((prev) => ({ - ...prev, - article_history_days: - parseInt(e.currentTarget.value) || 90, - })) - } - /> -
- -
- -
- -

{t('settings.batchSizeHelp')}

-
- - props.setSettings((prev) => ({ - ...prev, - batch_size: - parseInt(e.currentTarget.value) || 5, - })) - } - /> -
-
- -
- -

{t('settings.sourceExtractionWindowHelp')}

-
- - props.setSettings((prev) => ({ - ...prev, - source_extraction_window: parseInt(e.currentTarget.value) || 3, - })) - } - /> -
-
-
- - {/* Search agent behavior */} -
- -
-