diff --git a/CHANGELOG.md b/CHANGELOG.md index 561f0dc..819400f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.1] - 2026-06-13 + +### Changed + +- 🌍 **i18n for tool servers, browser, and web settings.** Replaced all remaining hardcoded English strings in the Tool Servers, Web/Browser, and admin panels with translation keys. Added ~60 new keys per locale across all 10 languages (de, en, es, fr, ja, ko, pt-BR, ru, zh-CN, zh-TW). +- 🎨 **General settings layout refactor.** Reorganised the General settings panel into a scrollable layout with grouped sections (Notifications, Updates, Message Queue). Webhook URL input is now full-width with a hint instead of an inline save button. The save button now shows a loading/saving state. +- 🖱️ **Scrollbar-on-hover utility.** Added a `.scrollbar-hover` CSS class that hides scrollbar thumbs until the user hovers, reducing visual clutter in scrollable panels. + ## [0.4.0] - 2026-06-13 ### Added diff --git a/cptr/frontend/package.json b/cptr/frontend/package.json index 43b48b5..8c07701 100644 --- a/cptr/frontend/package.json +++ b/cptr/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "0.4.0", + "version": "0.4.1", "type": "module", "scripts": { "dev": "vite dev", diff --git a/cptr/frontend/src/app.css b/cptr/frontend/src/app.css index 64a0846..10a7843 100644 --- a/cptr/frontend/src/app.css +++ b/cptr/frontend/src/app.css @@ -90,6 +90,13 @@ display: none; } +.scrollbar-hover::-webkit-scrollbar-thumb { + visibility: hidden; +} +.scrollbar-hover:hover::-webkit-scrollbar-thumb { + visibility: visible; +} + /* CodeMirror - match Open WebUI */ .cm-editor { height: 100%; diff --git a/cptr/frontend/src/lib/components/Admin/ToolServers.svelte b/cptr/frontend/src/lib/components/Admin/ToolServers.svelte index 4b4e6b4..4c45f06 100644 --- a/cptr/frontend/src/lib/components/Admin/ToolServers.svelte +++ b/cptr/frontend/src/lib/components/Admin/ToolServers.svelte @@ -156,9 +156,9 @@ try { verifyResult = await verifyToolServer(editServer.id); if (verifyResult.ok) toast.success($t('toolServers.connected')); - else toast.error(verifyResult.message || 'Connection failed'); + else toast.error(verifyResult.message || $t('toolServers.connectionFailed')); } catch (e: any) { - verifyResult = { ok: false, message: e?.message || 'Connection failed' }; + verifyResult = { ok: false, message: e?.message || $t('toolServers.connectionFailed') }; toast.error(verifyResult.message!); } finally { verifying = false; @@ -269,7 +269,7 @@ > - - + + @@ -298,7 +298,7 @@ > {:else} -

Search

+

{$t('admin.webSearch')}

-

Browser

+

{$t('admin.browser')}

- Give the AI access to a web browser for navigating pages, clicking elements, and taking screenshots. + {$t('admin.browserHint')}

{#if browserEnabled}
- Provider + {$t('admin.browserProvider')}

{#if browserProvider === 'local'} - Connects to Chrome via DevTools Protocol. Full interactive browsing with clicking, typing, and screenshots. + {$t('admin.browserLocalHint')} {:else if browserProvider === 'firecrawl'} - Cloud API that converts web pages to markdown. Fast extraction, no interactive browsing. + {$t('admin.browserFirecrawlHint')} {:else} - Cloud API for LLM-driven browser tasks. Describe what you need in natural language. + {$t('admin.browserBrowserUseHint')} {/if}

{#if browserProvider === 'local'}
- +
@@ -258,7 +258,7 @@ class="h-7 px-2.5 rounded-lg text-xs bg-gray-200/50 dark:bg-white/8 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white transition-colors disabled:opacity-50" onclick={() => testConnection()} disabled={testing} - >{testing ? '...' : 'Test'} + >{testing ? '...' : $t('admin.browserTest')}
{#if testResult}

@@ -268,33 +268,33 @@

- +
- minutes + {$t('admin.browserMinutes')}
{:else if browserProvider === 'firecrawl'}
- +
- + -

Change for self-hosted Firecrawl instances

+

{$t('admin.browserFirecrawlBaseUrlHint')}

{:else if browserProvider === 'browser_use'}
- +
- +
diff --git a/cptr/frontend/src/lib/components/Settings/General.svelte b/cptr/frontend/src/lib/components/Settings/General.svelte index 9c9d3eb..6634def 100644 --- a/cptr/frontend/src/lib/components/Settings/General.svelte +++ b/cptr/frontend/src/lib/components/Settings/General.svelte @@ -16,27 +16,33 @@ // ── Webhook URL ───────────────────────────────────────────── let webhookUrl = $state(''); - let webhookLoading = $state(false); + let webhookUrlOriginal = $state(''); + let saving = $state(false); + + let dirty = $derived(webhookUrl.trim() !== webhookUrlOriginal); onMount(async () => { try { const data = await fetchJSON<{ config: Record }>('/api/admin/config/notifications'); - webhookUrl = data.config?.['notifications.webhook_url'] || ''; + const url = data.config?.['notifications.webhook_url'] || ''; + webhookUrl = url; + webhookUrlOriginal = url; } catch {} }); - async function saveWebhookUrl() { - webhookLoading = true; + async function save() { + saving = true; try { await fetchJSON('/api/admin/config', { method: 'PUT', body: JSON.stringify({ config: { 'notifications.webhook_url': webhookUrl.trim() || null } }) }); - toast.success($t('general.webhookUrlSaved')); + webhookUrlOriginal = webhookUrl.trim(); + toast.success($t('settings.saved')); } catch { toast.error($t('general.webhookUrlSaveFailed')); } finally { - webhookLoading = false; + saving = false; } } @@ -57,117 +63,114 @@ } -
-

{$t('general.title')}

+
+
+

{$t('general.title')}

-

{$t('general.theme')}

-
- {#each [{ value: 'light' as Theme, label: $t('general.light'), icon: 'sun-light' }, { value: 'dark' as Theme, label: $t('general.dark'), icon: 'half-moon' }, { value: 'system' as Theme, label: $t('general.system'), icon: 'monitor' }] as opt} - - {/each} -
+

{$t('general.theme')}

+
+ {#each [{ value: 'light' as Theme, label: $t('general.light'), icon: 'sun-light' }, { value: 'dark' as Theme, label: $t('general.dark'), icon: 'half-moon' }, { value: 'system' as Theme, label: $t('general.system'), icon: 'monitor' }] as opt} + + {/each} +
-

{$t('general.language')}

- +

{$t('general.language')}

+ - -

{$t('general.notifications')}

+ +

{$t('general.notifications')}

-
- - -

- {$t('general.browserNotificationsDesc')} -

- - - - - -
-