Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(settings): unify forms, notifications, and AI configuration controls

Juan Denis8e9c4fa6b016
diff --git a/frontend/src/components/ai/Composer.jsx b/frontend/src/components/ai/Composer.jsx
index a68d9e2f..894443e4 100644
--- a/frontend/src/components/ai/Composer.jsx
+++ b/frontend/src/components/ai/Composer.jsx
@@ -16,6 +16,7 @@ const Composer = () => {
stop,
isStreaming,
providerConfigured,
+ enabled,
attachments,
addAttachment,
removeAttachment,
@@ -75,7 +76,7 @@ const Composer = () => {
ref={textareaRef}
className="sk-ai-composer__input"
rows={1}
- placeholder={providerConfigured ? t('app.composer.askAboutYourServers', 'Ask about your servers…') : t('app.composer.assistantNotConfigured', 'Assistant not configured')}
+ placeholder={providerConfigured ? t('app.composer.askAboutYourServers', 'Ask about your servers…') : !enabled ? t('ai.settings.disabled', 'Assistant disabled') : t('app.composer.assistantNotConfigured', 'Assistant not configured')}
value={value}
disabled={!providerConfigured}
onChange={onInput}
diff --git a/frontend/src/components/ai/MessageList.jsx b/frontend/src/components/ai/MessageList.jsx
index 28ffc866..5db117e8 100644
--- a/frontend/src/components/ai/MessageList.jsx
+++ b/frontend/src/components/ai/MessageList.jsx
@@ -17,7 +17,7 @@ const routeMatches = (pattern, route) => {
const MessageList = () => {
const { t } = useTranslation();
const {
- messages, isStreaming, pageContext, mode, ask, providerConfigured, pendingConfirm,
+ messages, isStreaming, pageContext, mode, ask, enabled, providerConfigured, pendingConfirm,
} = useServerkitAI();
const contributions = useContributions();
const { ref, isPinned, checkPinned, scrollToBottom } = useAutoScroll([messages, isStreaming]);
@@ -46,7 +46,7 @@ const MessageList = () => {
<p className="sk-ai-empty__sub">{t('app.messageList.askAboutThisPage', 'Ask about this page, or anything on this server.')}</p>
{!providerConfigured ? (
<p className="sk-ai-empty__hint">
- {t('app.messageList.theAssistantIsnTConfiguredYet', 'The assistant isn\'t configured yet. An admin can set a provider in')}
+ {!enabled ? t('ai.settings.disabledHelp', 'The assistant is disabled. An admin can enable it in') : t('app.messageList.theAssistantIsnTConfiguredYet', 'The assistant isn\'t configured yet. An admin can set a provider in')}
{' '}{t('app.messageList.settingsAiAssistant', 'Settings → AI Assistant.')}
</p>
) : (
diff --git a/frontend/src/components/ai/ModelPicker.jsx b/frontend/src/components/ai/ModelPicker.jsx
new file mode 100644
index 00000000..36eec903
--- /dev/null
+++ b/frontend/src/components/ai/ModelPicker.jsx
@@ -0,0 +1,44 @@
+import { useState } from 'react';
+import { Check, ChevronsUpDown } from 'lucide-react';
+import { useTranslation } from 'react-i18next';
+import { Button } from '../ui/button';
+import { Input } from '../ui/input';
+import { Popover, PopoverTrigger, PopoverContent } from '../ui/popover';
+import { Command, CommandInput, CommandList, CommandEmpty, CommandItem } from '../ui/command';
+
+// Model IDs are opaque: preserve gateway aliases (including slashes) verbatim.
+export default function ModelPicker({ id, value, models, onChange, disabled }) {
+ const { t } = useTranslation();
+ const [open, setOpen] = useState(false);
+ return (
+ <div className="sk-model-picker">
+ <Input id={id} value={value} maxLength={256} disabled={disabled}
+ onChange={(event) => onChange(event.target.value)}
+ placeholder={t('ai.connections.modelPlaceholder', 'Model ID or gateway routing alias')} />
+ <Popover open={open} onOpenChange={setOpen}>
+ <PopoverTrigger asChild>
+ <Button type="button" variant="outline" disabled={disabled || !models.length}
+ aria-expanded={open} aria-haspopup="dialog">
+ <ChevronsUpDown size={16} />
+ {t('ai.connections.browseModels', 'Browse models ({{count}})', { count: models.length })}
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent align="end" className="sk-model-picker__menu"
+ aria-label={t('ai.connections.chooseModel', 'Choose a model')}>
+ <Command>
+ <CommandInput placeholder={t('ai.connections.searchModels', 'Search models…')} />
+ <CommandList>
+ <CommandEmpty>{t('ai.connections.noModels', 'No matching models. Enter a model ID manually.')}</CommandEmpty>
+ {[...new Set(models)].map((model) => (
+ <CommandItem key={model} value={model} onSelect={() => { onChange(model); setOpen(false); }}>
+ <span className="sk-model-picker__name">{model}</span>
+ {value === model && <Check size={16} />}
+ </CommandItem>
+ ))}
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ </div>
+ );
+}
diff --git a/frontend/src/components/settings/AIConnectionsSettings.jsx b/frontend/src/components/settings/AIConnectionsSettings.jsx
index 5ebb6365..64e13e72 100644
--- a/frontend/src/components/settings/AIConnectionsSettings.jsx
+++ b/frontend/src/components/settings/AIConnectionsSettings.jsx
@@ -1,18 +1,42 @@
-import { FormField } from '../FormField';
+import { FormField, FormRow } from '../FormField';
import { useRef, useState } from 'react';
import api from '../../services/api';
import { useConfirm } from '../../hooks/useConfirm';
import { Button } from '../ui/button';
import { useTranslation } from 'react-i18next';
+import { Input } from '../ui/input';
+import { Switch } from '../ui/switch';
+import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../ui/select';
+import ModelPicker from '../ai/ModelPicker';
+import useSettingFocus from '../../hooks/useSettingFocus';
+
+function ChoiceField({ id, label, value, onChange, disabled, placeholder, options, children }) {
+ return <FormField htmlFor={id} label={label}>
+ <Select value={value || '__new__'} onValueChange={(next) => onChange(next === '__new__' ? '' : next)} disabled={disabled}>
+ <SelectTrigger id={id}><SelectValue /></SelectTrigger>
+ <SelectContent>
+ <SelectItem value="__new__">{placeholder}</SelectItem>
+ {options.map((option) => <SelectItem key={option.id} value={option.id}>{option.label}</SelectItem>)}
+ </SelectContent>
+ </Select>
+ {children}
+ </FormField>;
+}
+
const empty = () => ({ id: '', name: '', provider: '', model: '', config: {}, secrets_set: [], make_default: false });
export default function AIConnectionsSettings({ connections, providers, defaultId, onSaved }) {
const { t } = useTranslation();
const { confirm } = useConfirm();
- const [draft, setDraft] = useState(empty);
+ const register = useSettingFocus();
+ const [draft, setDraft] = useState(() => {
+ const row = connections.find((connection) => connection.id === defaultId);
+ return row ? { ...row, config: { ...row.config }, make_default: true } : empty();
+ });
const [models, setModels] = useState([]);
const [busy, setBusy] = useState(false);
+ const [operation, setOperation] = useState(null);
const [message, setMessage] = useState(null);
const revision = useRef(0);
const meta = providers.find((provider) => provider.id === draft.provider);
@@ -49,6 +73,7 @@ export default function AIConnectionsSettings({ connections, providers, defaultI
const run = async (operation) => {
const current = revision.current;
setBusy(true);
+ setOperation(operation);
setMessage(null);
try {
if (operation === 'save') {
@@ -66,7 +91,7 @@ export default function AIConnectionsSettings({ connections, providers, defaultI
}
} catch (error) {
if (current === revision.current) setMessage({ type: 'error', text: error.message });
- } finally { setBusy(false); }
+ } finally { setBusy(false); setOperation(null); }
};
const remove = async () => {
if (!await confirm({ title: t('ai.connections.deleteTitle', 'Delete AI connection?'), message: t('ai.connections.deleteMessage', 'Remove {{name}}? Connections used by chats or selected as default cannot be deleted.', { name: draft.name }), confirmText: t('ai.connections.delete', 'Delete'), variant: 'danger' })) return;
@@ -76,58 +101,72 @@ export default function AIConnectionsSettings({ connections, providers, defaultI
await onSaved();
edit(empty());
} catch (error) { setMessage({ type: 'error', text: error.message }); }
- finally { setBusy(false); }
+ finally { setBusy(false); setOperation(null); }
};
return (
- <div className="settings-card">
+ <div className="settings-card ai-connections">
<h3>{t('ai.connections.title', 'Provider connections')}</h3>
<p className="section-description">{t('ai.connections.description', 'Configure native Prompture providers or connect a gateway such as OmniRoute. Credentials stay encrypted on the server.')}</p>
- <FormField htmlFor="ai-connection" label={<>{t('ai.connections.saved', 'Saved connection')}</>}>
- <select id="ai-connection" value={draft.id} onChange={(event) => selectConnection(event.target.value)} disabled={busy}>
- <option value="">{t('ai.connections.add', 'Add a connection…')}</option>
- {connections.map((connection) => <option key={connection.id} value={connection.id}>{connection.name}{connection.id === defaultId ? t('ai.connections.defaultSuffix', ' (default)') : ''}</option>)}
- </select>
- </FormField>
- <FormField htmlFor="ai-connection-name" label={<>{t('ai.connections.name', 'Connection name')}</>}>
- <input id="ai-connection-name" value={draft.name} maxLength={100} disabled={busy} onChange={(event) => setDraft({ ...draft, name: event.target.value })} placeholder={t('ai.connections.namePlaceholder', 'e.g. Team Anthropic or Local OmniRoute')} />
- </FormField>
- <FormField htmlFor="ai-provider" label={<>{t('ai.connections.provider', 'Provider')}</>}>
- <select id="ai-provider" value={draft.provider} disabled={busy} onChange={(event) => selectProvider(event.target.value)}>
- <option value="">{t('ai.connections.selectProvider', 'Select a provider…')}</option>
- {providers.map((provider) => <option key={provider.id} value={provider.id}>{provider.label}{provider.available ? '' : t('ai.connections.missingDependency', ' (dependency required)')}</option>)}
- </select>
- {meta && !meta.available && <p className="error-message">{meta.unavailable_reason}</p>}
- </FormField>
- {!!meta?.presets?.length && <FormField htmlFor="ai-preset" label={<>{t('ai.connections.preset', 'Endpoint preset')}</>}>
- <select id="ai-preset" value="" disabled={busy} onChange={(event) => {
- const preset = meta.presets.find((item) => item.id === event.target.value);
+ <ChoiceField id="ai-connection" label={t('ai.connections.saved', 'Saved connection')}
+ value={draft.id} onChange={selectConnection} disabled={busy}
+ placeholder={t('ai.connections.add', 'Add a connection…')}
+ options={connections.map((connection) => ({ id: connection.id, label: connection.name + (connection.id === defaultId ? t('ai.connections.defaultSuffix', ' (default)') : '') }))} />
+ <FormRow>
+ <FormField htmlFor="ai-connection-name" label={t('ai.connections.name', 'Connection name')} required>
+ <Input id="ai-connection-name" value={draft.name} maxLength={100} disabled={busy} onChange={(event) => setDraft({ ...draft, name: event.target.value })} placeholder={t('ai.connections.namePlaceholder', 'e.g. Team Anthropic or Local OmniRoute')} />
+ </FormField>
+ <ChoiceField id="ai-provider" label={t('ai.connections.provider', 'Provider')}
+ value={draft.provider} onChange={selectProvider} disabled={busy}
+ placeholder={t('ai.connections.selectProvider', 'Select a provider…')}
+ options={providers.map((provider) => ({ id: provider.id, label: provider.label + (provider.available ? '' : t('ai.connections.missingDependency', ' (dependency required)')) }))}>
+ {meta && !meta.available && <p className="error-message">{meta.unavailable_reason}</p>}
+ </ChoiceField>
+ </FormRow>
+ {!!meta?.presets?.length && <ChoiceField id="ai-preset" label={t('ai.connections.preset', 'Endpoint preset')}
+ value={meta.presets.find((preset) => preset.endpoint === draft.config.endpoint)?.id || ''}
+ disabled={busy} placeholder={t('ai.connections.choosePreset', 'Custom URL, or choose a preset…')}
+ options={meta.presets.map((preset) => ({ id: preset.id, label: preset.id }))}
+ onChange={(id) => {
+ const preset = meta.presets.find((item) => item.id === id);
if (preset) setField({ name: 'endpoint', type: 'url' }, preset.endpoint);
- }}>
- <option value="">{t('ai.connections.choosePreset', 'Custom URL, or choose a preset…')}</option>
- {meta.presets.map((preset) => <option key={preset.id} value={preset.id}>{preset.id}</option>)}
- </select>
- </FormField>}
- {(meta?.fields || []).map((field) => <FormField key={field.name} htmlFor={`ai-config-${field.name}`} label={<>{field.label}{field.required ? t('ai.connections.required', ' (required)') : t('ai.connections.optional', ' (optional)')}</>}>
- <input id={`ai-config-${field.name}`} type={field.secret ? 'password' : field.type}
- autoComplete="off" disabled={busy} value={draft.config[field.name] ?? ''}
- placeholder={field.secret && draft.secrets_set.includes(field.name) ? t('ai.connections.secretConfigured', 'Configured — leave blank to keep') : field.default || ''}
- onChange={(event) => setField(field, event.target.value)} />
- {field.secret && draft.secrets_set.includes(field.name) && <Button variant="unstyled" type="button" className="btn btn-ghost btn-sm" disabled={busy} onClick={() => setField(field, '', true)}>{t('ai.connections.clearSecret', 'Clear saved credential')}</Button>}
- {field.type === 'url' && <p className="form-hint">{t('ai.connections.endpointHelp', 'Use an address reachable from the ServerKit backend. In Docker, localhost refers to the panel container. Changing this URL requires re-entering credentials.')}</p>}
- </FormField>)}
- <FormField htmlFor="ai-model" label={<>{t('ai.connections.defaultModel', 'Default model ID')}</>}>
- <input id="ai-model" list="ai-model-options" value={draft.model} maxLength={256} disabled={busy} onChange={(event) => { revision.current += 1; setDraft({ ...draft, model: event.target.value }); }} placeholder={t('ai.connections.modelPlaceholder', 'Model ID or gateway routing alias')} />
- <datalist id="ai-model-options">{models.map((model) => <option key={model} value={model} />)}</datalist>
- </FormField>
- <FormField>
- <label><input type="checkbox" checked={draft.make_default} disabled={busy} onChange={(event) => setDraft({ ...draft, make_default: event.target.checked })} /> {t('ai.connections.makeDefault', 'Use as the default for new chats')}</label>
- </FormField>
- {message && <div className={`message ${message.type}`} role="status">{message.text}</div>}
+ }} />}
+ <div {...register('ai-api-key')}>
+ <div {...register('ai-endpoint', 'ai-connections__fields')}>
+ {(meta?.fields || []).map((field) => (
+ <FormField key={field.name} htmlFor={`ai-config-${field.name}`}
+ label={<>{field.label}{field.required ? t('ai.connections.required', ' (required)') : t('ai.connections.optional', ' (optional)')}</>}
+ hint={field.type === 'url' ? t('ai.connections.endpointHelp', 'Use an address reachable from the ServerKit backend. In Docker, localhost refers to the panel container. Changing this URL requires re-entering credentials.') : undefined}>
+ <Input id={`ai-config-${field.name}`} type={field.secret ? 'password' : field.type}
+ autoComplete="off" disabled={busy} value={draft.config[field.name] ?? ''}
+ placeholder={field.secret && draft.secrets_set.includes(field.name) ? t('ai.connections.secretConfigured', 'Configured — leave blank to keep') : field.default || ''}
+ onChange={(event) => setField(field, event.target.value)} />
+ {field.secret && draft.secrets_set.includes(field.name) && (
+ <Button variant="ghost" size="sm" type="button" disabled={busy} onClick={() => setField(field, '', true)}>
+ {t('ai.connections.clearSecret', 'Clear saved credential')}
+ </Button>
+ )}
+ </FormField>
+ ))}
+ </div>
+ </div>
+ <div {...register('ai-model')}>
+ <FormField htmlFor="ai-model" label={t('ai.connections.defaultModel', 'Default model ID')}
+ hint={t('ai.connections.discoveryHint', 'Discover models from this connection, then browse or enter an exact model ID.')}>
+ <ModelPicker id="ai-model" value={draft.model} models={models} disabled={busy}
+ onChange={(model) => { revision.current += 1; setDraft({ ...draft, model }); setMessage(null); }} />
+ </FormField>
+ </div>
+ <div className="settings-row">
+ <label htmlFor="ai-make-default">{t('ai.connections.makeDefault', 'Use as the default for new chats')}</label>
+ <Switch id="ai-make-default" checked={draft.make_default} disabled={busy}
+ onCheckedChange={(checked) => setDraft({ ...draft, make_default: checked })} />
+ </div>
+ {message && <div className={`alert alert-${message.type === 'error' ? 'danger' : 'success'}`} role="status">{message.text}</div>}
<div className="settings-actions">
- <Button variant="unstyled" type="button" className="btn btn-ghost" disabled={busy || !meta?.available} onClick={() => run('models')}>{t('ai.connections.discover', 'Discover models')}</Button>
- <Button variant="unstyled" type="button" className="btn btn-ghost" disabled={busy || !meta?.available || !draft.model} onClick={() => run('test')}>{t('ai.connections.test', 'Test connection')}</Button>
- <Button variant="unstyled" type="button" className="btn btn-primary" disabled={busy || !meta?.available || !draft.name || !draft.model} onClick={() => run('save')}>{busy ? t('ai.connections.working', 'Working…') : t('ai.connections.save', 'Save connection')}</Button>
+ <Button variant="unstyled" type="button" className="btn btn-ghost" disabled={busy || !meta?.available} onClick={() => run('models')}>{operation === 'models' ? t('ai.connections.discovering', 'Discovering…') : t('ai.connections.discover', 'Discover models')}</Button>
+ <Button variant="unstyled" type="button" className="btn btn-ghost" disabled={busy || !meta?.available || !draft.model} onClick={() => run('test')}>{operation === 'test' ? t('ai.connections.testing', 'Testing…') : t('ai.connections.test', 'Test connection')}</Button>
+ <Button variant="unstyled" type="button" className="btn btn-primary" disabled={busy || !meta?.available || !draft.name.trim() || !draft.model.trim()} onClick={() => run('save')}>{operation === 'save' ? t('ai.connections.working', 'Working…') : t('ai.connections.save', 'Save connection')}</Button>
{draft.id && <Button variant="unstyled" type="button" className="btn btn-danger" disabled={busy} onClick={remove}>{t('ai.connections.delete', 'Delete')}</Button>}
</div>
</div>
diff --git a/frontend/src/components/settings/AISettingsTab.jsx b/frontend/src/components/settings/AISettingsTab.jsx
index 0cb144d6..1568218d 100644
--- a/frontend/src/components/settings/AISettingsTab.jsx
+++ b/frontend/src/components/settings/AISettingsTab.jsx
@@ -4,6 +4,8 @@ import useSettingFocus from '../../hooks/useSettingFocus';
import { useAuth } from '../../contexts/useAuth.js';
import { Switch } from '@/components/ui/switch';
import { Label } from '@/components/ui/label';
+import { Input } from '../ui/input';
+import EmptyState from '../EmptyState';
import { Button } from '@/components/ui/button';
import AIConnectionsSettings from './AIConnectionsSettings';
import { useTranslation } from 'react-i18next';
@@ -22,29 +24,34 @@ const AISettingsTab = () => {
const [providers, setProviders] = useState([]);
const [loading, setLoading] = useState(true);
const [saving, setSaving] = useState(false);
+ const [toggling, setToggling] = useState(false);
+ const [loadError, setLoadError] = useState(false);
const [message, setMessage] = useState(null);
useEffect(() => {
if (!isAdmin) { setLoading(false); return; }
+ let active = true;
+ setLoading(true);
Promise.all([api.aiGetSettings(), api.aiGetProviders()])
.then(([s, p]) => {
+ if (!active) return;
setSettings((prev) => ({ ...prev, ...s, max_cost_usd: String(s.max_cost_usd ?? '0.5') }));
setProviders(p.providers || []);
})
- .catch((e) => setMessage({ type: 'error', text: e.message || 'Failed to load AI settings' }))
- .finally(() => setLoading(false));
+ .catch((e) => { if (!active) return; setLoadError(true); setMessage({ type: 'error', text: e.message || 'Failed to load AI settings' }); })
+ .finally(() => { if (active) setLoading(false); });
+ return () => { active = false; };
}, [isAdmin]);
const refreshConnections = async () => {
const fresh = await api.aiGetSettings();
- setSettings((prev) => ({ ...prev, ...fresh, max_cost_usd: String(fresh.max_cost_usd ?? '0.5') }));
+ setSettings((prev) => ({ ...prev, connections: fresh.connections, default_connection_id: fresh.default_connection_id }));
window.dispatchEvent(new Event(AI_CONFIG_CHANGED_EVENT));
return fresh;
};
const buildPayload = () => {
const payload = {
- enabled: settings.enabled,
pii_redaction: settings.pii_redaction,
injection_detection: settings.injection_detection,
max_cost_usd: settings.max_cost_usd,
@@ -52,7 +59,26 @@ const AISettingsTab = () => {
return payload;
};
+ const handleEnabledChange = async (enabled) => {
+ setToggling(true);
+ setMessage(null);
+ try {
+ await api.aiUpdateSettings({ enabled });
+ setSettings((prev) => ({ ...prev, enabled }));
+ window.dispatchEvent(new Event(AI_CONFIG_CHANGED_EVENT));
+ setMessage({ type: 'success', text: enabled
+ ? t('ai.settings.enabledMessage', 'Assistant enabled. New messages can use the default connection.')
+ : t('ai.settings.disabledMessage', 'Assistant disabled. New messages are blocked; chat history is kept.') });
+ } catch (error) {
+ setMessage({ type: 'error', text: error.message });
+ } finally { setToggling(false); }
+ };
+
const handleSave = async () => {
+ if (!settings.max_cost_usd.trim() || !Number.isFinite(Number(settings.max_cost_usd)) || Number(settings.max_cost_usd) < 0) {
+ setMessage({ type: 'error', text: t('ai.settings.invalidBudget', 'Enter a cost ceiling of zero or more.') });
+ return;
+ }
setSaving(true);
setMessage(null);
try {
@@ -72,59 +98,65 @@ const AISettingsTab = () => {
return <div className="settings-section"><p>{t('app.aISettingsTab.adminAccessRequired', 'Admin access required.')}</p></div>;
}
if (loading) {
- return <div className="settings-section"><p>{t('common.loading', 'Loading…')}</p></div>;
+ return <EmptyState loading title={t('common.loading', 'Loading…')} />;
}
return (
<div className="settings-section">
- <h2>{t('app.aISettingsTab.aiAssistant', 'AI Assistant')}</h2>
- <p className="section-description">
- {t('app.aISettingsTab.configureTheInPanelAssistantPowered', 'Configure the in-panel assistant — powered by Prompture. The API key is stored encrypted and never returned by the API.')}
- </p>
-
- {message && <div className={`message ${message.type}`}>{message.text}</div>}
-
+ <div className="section-header">
+ <h2>{t('app.aISettingsTab.aiAssistant', 'AI Assistant')}</h2>
+ <p>{t('ai.settings.intro', 'Connect a provider, choose a model, and set the assistant’s limits.')}</p>
+ </div>
+ {message && <div className={`alert alert-${message.type === 'error' ? 'danger' : 'success'}`} role={message.type === 'error' ? 'alert' : 'status'}>{message.text}</div>}
+ <div {...register('ai-enable', 'settings-card')}>
+ <div className="settings-row">
+ <div className="settings-label">
+ <Label htmlFor="ai-enabled">{t('app.aISettingsTab.enableAiAssistant', 'Enable AI assistant')}</Label>
+ <span className="settings-hint">{settings.default_connection_id
+ ? t('ai.settings.enabledHint', 'Changes apply immediately to new messages. Configure the default connection below.')
+ : t('ai.settings.setupHint', 'Save a provider connection below before enabling the assistant.')}</span>
+ </div>
+ <Switch id="ai-enabled" checked={settings.enabled}
+ disabled={loadError || toggling || saving || (!settings.enabled && !settings.default_connection_id)}
+ onCheckedChange={handleEnabledChange} />
+ </div>
+ </div>
<div {...register('ai-provider')}>
<AIConnectionsSettings connections={settings.connections || []} providers={providers}
defaultId={settings.default_connection_id} onSaved={refreshConnections} />
</div>
<div className="settings-card">
- <div className="form-group">
- <div className="settings-row">
- <div className="settings-label"><Label>{t('app.aISettingsTab.enableAiAssistant', 'Enable AI assistant')}</Label></div>
- <Switch
- checked={settings.enabled}
- onCheckedChange={(v) => setSettings((s) => ({ ...s, enabled: v }))}
- />
- </div>
- </div>
-
- <div className="form-group">
+ <h3>{t('ai.settings.limits', 'Limits and protections')}</h3>
+ <p>{t('ai.settings.limitsHint', 'These settings apply to assistant conversations. Save changes to apply them.')}</p>
+ <div {...register('ai-cost-limit', 'form-group')}>
<label htmlFor="ai-max-cost">{t('app.aISettingsTab.perConversationCostCeilingUsd', 'Per-conversation cost ceiling (USD)')}</label>
- <input
+ <Input
id="ai-max-cost"
type="number"
- step="0.1"
+ step="0.01"
min="0"
+ aria-describedby="ai-max-cost-hint"
+ disabled={loadError || saving}
value={settings.max_cost_usd}
onChange={(e) => setSettings((s) => ({ ...s, max_cost_usd: e.target.value }))}
/>
+ <p id="ai-max-cost-hint" className="settings-hint">{t('ai.settings.costHint', 'Stops further model calls when reported spending reaches this amount. A call can exceed the remaining amount; models with unknown pricing need a provider-side limit. Set 0 for no limit.')}</p>
</div>
- <div className="form-group">
+ <div {...register('ai-pii-redaction', 'form-group')}>
<div className="settings-row">
- <div className="settings-label"><Label>{t('app.aISettingsTab.redactPiiFromMessagesToolOutput', 'Redact PII from messages & tool output')}</Label></div>
- <Switch
+ <div className="settings-label"><Label htmlFor="ai-pii">{t('app.aISettingsTab.redactPiiFromMessagesToolOutput', 'Redact PII from messages & tool output')}</Label></div>
+ <Switch id="ai-pii" disabled={loadError || saving}
checked={settings.pii_redaction}
onCheckedChange={(v) => setSettings((s) => ({ ...s, pii_redaction: v }))}
/>
</div>
</div>
- <div className="form-group">
+ <div {...register('ai-injection-detection', 'form-group')}>
<div className="settings-row">
- <div className="settings-label"><Label>{t('app.aISettingsTab.blockPromptInjectionAttempts', 'Block prompt-injection attempts')}</Label></div>
- <Switch
+ <div className="settings-label"><Label htmlFor="ai-injection">{t('app.aISettingsTab.blockPromptInjectionAttempts', 'Block prompt-injection attempts')}</Label></div>
+ <Switch id="ai-injection" disabled={loadError || saving}
checked={settings.injection_detection}
onCheckedChange={(v) => setSettings((s) => ({ ...s, injection_detection: v }))}
/>
@@ -132,7 +164,7 @@ const AISettingsTab = () => {
</div>
<div className="settings-actions">
- <Button variant="primary" onClick={handleSave} disabled={saving}>
+ <Button variant="primary" onClick={handleSave} disabled={loadError || saving || toggling}>
{saving ? 'Saving…' : 'Save'}
</Button>
</div>
diff --git a/frontend/src/components/settings/ApiSettingsTab.jsx b/frontend/src/components/settings/ApiSettingsTab.jsx
index f6bdf585..1a2e9152 100644
--- a/frontend/src/components/settings/ApiSettingsTab.jsx
+++ b/frontend/src/components/settings/ApiSettingsTab.jsx
@@ -13,7 +13,7 @@ import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Badge } from '@/components/ui/badge';
import { Pill } from '@/components/ds/Pill';
-import { DataTable, DataTableFooter, ListToolbar } from '@/components/ds';
+import { DataTable, DataTableFooter } from '@/components/ds';
import {
useTableChrome, GridViewPicker, GridChips, GridFilterButton,
GridToolsMenu, GridFilterDrawer,
@@ -270,7 +270,7 @@ const ApiKeysSection = () => {
size="sm"
onClick={() => handleRevoke(key.id)}
title={t('app.apiSettingsTab.revoke', 'Revoke')}
- className="text-destructive hover:text-destructive"
+ className="api-settings__revoke"
>
<Trash2 size={14} />
</Button>
@@ -299,16 +299,15 @@ const ApiKeysSection = () => {
return (
<div {...register('api-keys', 'settings-card')}>
- {/* The view name replaces this card's "API Keys" header: it is the
- one card in the stack whose body is a table, and stacking a
- title above the picker would be two names for one list. Create
- Key moves into the toolbar and stays reachable while empty. */}
<GridViewPicker
views={chrome.views}
label="keys"
onCreate={chrome.createView}
actions={(
<>
+ <Button variant="default" size="sm" onClick={() => setShowModal(true)}>
+ <Plus size={14} /> {t('app.apiSettingsTab.createKey', 'Create Key')}
+ </Button>
<GridFilterButton
count={chrome.filterCount}
onClick={() => chrome.setDrawerOpen(true)}
@@ -317,15 +316,6 @@ const ApiKeysSection = () => {
</>
)}
/>
- {/* The toolbar survives only because Create Key is the card's own
- action, not the table's — everything that acts on the table
- rides the view line above. */}
- <ListToolbar>
- <Button variant="default" size="sm" onClick={() => setShowModal(true)}>
- <Plus size={14} /> {t('app.apiSettingsTab.createKey', 'Create Key')}
- </Button>
- </ListToolbar>
-
<GridChips {...chrome.chipProps} />
{loading ? (
@@ -624,7 +614,7 @@ const WebhookSection = () => {
variant="ghost"
size="sm"
onClick={() => handleDelete(sub.id)}
- className="text-destructive hover:text-destructive"
+ className="api-settings__revoke"
>
<Trash2 size={14} /> {t('common.actions.delete', 'Delete')}
</Button>
@@ -770,22 +760,22 @@ const AnalyticsSection = () => {
) : (
<>
{overview && (
- <div className="api-settings__stats-grid">
- <div className="api-settings__stat-card">
- <span className="api-settings__stat-value">{overview.total_requests.toLocaleString()}</span>
- <span className="api-settings__stat-label">{t('app.apiSettingsTab.totalRequests', 'Total Requests')}</span>
+ <div className="stat-strip">
+ <div className="stat-strip__item">
+ <span className="stat-strip__value">{overview.total_requests.toLocaleString()}</span>
+ <span className="stat-strip__label">{t('app.apiSettingsTab.totalRequests', 'Total Requests')}</span>
</div>
- <div className="api-settings__stat-card">
- <span className="api-settings__stat-value">{overview.avg_response_time_ms}ms</span>
- <span className="api-settings__stat-label">{t('app.apiSettingsTab.avgResponseTime', 'Avg Response Time')}</span>
+ <div className="stat-strip__item">
+ <span className="stat-strip__value">{overview.avg_response_time_ms}ms</span>
+ <span className="stat-strip__label">{t('app.apiSettingsTab.avgResponseTime', 'Avg Response Time')}</span>
</div>
- <div className="api-settings__stat-card">
- <span className="api-settings__stat-value">{overview.error_rate}%</span>
- <span className="api-settings__stat-label">{t('app.apiSettingsTab.errorRate', 'Error Rate')}</span>
+ <div className="stat-strip__item">
+ <span className="stat-strip__value">{overview.error_rate}%</span>
+ <span className="stat-strip__label">{t('app.apiSettingsTab.errorRate', 'Error Rate')}</span>
</div>
- <div className="api-settings__stat-card">
- <span className="api-settings__stat-value">{overview.success_count.toLocaleString()}</span>
- <span className="api-settings__stat-label">{t('app.apiSettingsTab.successful', 'Successful')}</span>
+ <div className="stat-strip__item">
+ <span className="stat-strip__value">{overview.success_count.toLocaleString()}</span>
+ <span className="stat-strip__label">{t('app.apiSettingsTab.successful', 'Successful')}</span>
</div>
</div>
)}
diff --git a/frontend/src/components/settings/NotificationsTab.jsx b/frontend/src/components/settings/NotificationsTab.jsx
index 50f449d0..2833b060 100644
--- a/frontend/src/components/settings/NotificationsTab.jsx
+++ b/frontend/src/components/settings/NotificationsTab.jsx
@@ -6,7 +6,7 @@ import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Switch } from '@/components/ui/switch';
import { Badge } from '@/components/ui/badge';
-import { Checkbox } from '@/components/ui/checkbox';
+import { SegControl } from '../ds/SegControl';
import EmptyState from '../EmptyState';
import useSettingFocus from '../../hooks/useSettingFocus';
import { useTranslation } from 'react-i18next';
@@ -16,6 +16,8 @@ const NotificationsTab = () => {
const { isAdmin, user } = useAuth();
const register = useSettingFocus();
const [loading, setLoading] = useState(true);
+ const [loadError, setLoadError] = useState(false);
+ const [loadAttempt, setLoadAttempt] = useState(0);
const [saving, setSaving] = useState(false);
const [testing, setTesting] = useState(null);
const [message, setMessage] = useState(null);
@@ -42,43 +44,31 @@ const NotificationsTab = () => {
const severityOptions = ['critical', 'warning', 'info', 'success'];
useEffect(() => {
- loadUserPrefs();
- if (isAdmin) loadConfig();
- }, [isAdmin]);
-
- async function loadConfig() {
- try {
- const data = await api.getNotificationsConfig();
- setConfig(prev => ({
- discord: { ...prev.discord, ...data.discord },
- slack: { ...prev.slack, ...data.slack },
- telegram: { ...prev.telegram, ...data.telegram },
- email: { ...prev.email, ...data.email },
- generic_webhook: { ...prev.generic_webhook, ...data.generic_webhook }
- }));
- } catch (err) {
- console.error('Failed to load notification config:', err);
- } finally {
- setLoading(false);
- }
- }
-
- async function loadUserPrefs() {
- try {
- const data = await api.getUserNotificationPreferences();
- setUserPrefs(prev => ({ ...prev, ...data }));
- } catch (err) {
- console.error('Failed to load user notification preferences:', err);
- } finally {
- setLoading(false);
- }
- }
+ let active = true;
+ setLoading(true);
+ setLoadError(false);
+ Promise.all([api.getUserNotificationPreferences(), isAdmin ? api.getNotificationsConfig() : Promise.resolve(null)])
+ .then(([prefs, data]) => {
+ if (!active) return;
+ setUserPrefs((prev) => ({ ...prev, ...prefs }));
+ if (data) setConfig((prev) => Object.fromEntries(
+ Object.entries(prev).map(([channel, defaults]) => [channel, { ...defaults, ...data[channel] }])
+ ));
+ })
+ .catch((error) => {
+ if (!active) return;
+ setLoadError(true);
+ setMessage({ type: 'error', text: error.message || t('notifications.loadFailed', 'Could not load notification settings. Reload to try again.') });
+ })
+ .finally(() => { if (active) setLoading(false); });
+ return () => { active = false; };
+ }, [isAdmin, loadAttempt, t]);
async function handleSaveUserPrefs() {
setSaving(true);
setMessage(null);
try {
- await api.updateUserNotificationPreferences(userPrefs);
+ await api.updateUserNotificationPreferences({ ...userPrefs, channels: (userPrefs.channels || []).filter((channel) => channel !== 'slack') });
setMessage({ type: 'success', text: 'Your notification preferences have been saved' });
} catch (err) {
setMessage({ type: 'error', text: err.message });
@@ -145,27 +135,30 @@ const NotificationsTab = () => {
return <EmptyState loading title={t('app.notificationsTab.loadingNotificationSettings', 'Loading notification settings…')} />;
}
+ if (loadError) return <EmptyState title={t('notifications.loadFailed', 'Could not load notification settings. Reload to try again.')}
+ description={message?.text} action={<Button onClick={() => setLoadAttempt((attempt) => attempt + 1)}>{t('common.retry', 'Retry')}</Button>} />;
+
const userPrefsUI = (
<div className="user-notification-prefs">
<div {...register('notifications-enable', 'settings-card')}>
<div className="form-group">
<div className="settings-notification-option">
- <Switch
+ <Switch id="notifications-enabled" disabled={saving}
checked={userPrefs.enabled}
onCheckedChange={(checked) => setUserPrefs({...userPrefs, enabled: checked})}
/>
- <Label>{t('app.notificationsTab.enableNotificationsForMyAccount', 'Enable notifications for my account')}</Label>
+ <Label htmlFor="notifications-enabled">{t('app.notificationsTab.enableNotificationsForMyAccount', 'Enable notifications for my account')}</Label>
</div>
</div>
</div>
<div {...register('notifications-channels', 'settings-card')}>
<h3>{t('app.notificationsTab.notificationChannels', 'Notification Channels')}</h3>
- <p>{t('app.notificationsTab.chooseHowYouWantToReceive', 'Choose how you want to receive notifications')}</p>
+ <p>{t('notifications.personalChannelsHint', 'Choose destinations for your account. Slack and shared webhooks are managed in Delivery settings.')}</p>
<div className="channel-toggles">
- {['email', 'discord', 'slack', 'telegram'].map(ch => (
+ {['email', 'discord', 'telegram'].map(ch => (
<label key={ch} className="channel-toggle">
- <Checkbox
+ <Switch disabled={saving} aria-label={ch.charAt(0).toUpperCase() + ch.slice(1)}
checked={userPrefs.channels?.includes(ch)}
onCheckedChange={(checked) => {
const channels = checked
@@ -233,8 +226,8 @@ const NotificationsTab = () => {
<p>{t('app.notificationsTab.whichAlertTypesDoYouWant', 'Which alert types do you want to receive?')}</p>
<div className="severity-toggles">
{severityOptions.map(severity => (
- <label key={severity} className={`severity-toggle ${severity}`}>
- <Checkbox
+ <label key={severity} className="severity-toggle">
+ <Switch disabled={saving} aria-label={severity.charAt(0).toUpperCase() + severity.slice(1)}
checked={userPrefs.severities?.includes(severity)}
onCheckedChange={(checked) => {
const severities = checked
@@ -260,7 +253,7 @@ const NotificationsTab = () => {
apps: 'Application Events'
}).map(([key, label]) => (
<label key={key} className="category-toggle">
- <Checkbox
+ <Switch disabled={saving} aria-label={label}
checked={userPrefs.categories?.[key] !== false}
onCheckedChange={(checked) => setUserPrefs({
...userPrefs,
@@ -278,14 +271,14 @@ const NotificationsTab = () => {
<p>{t('app.notificationsTab.pauseNonCriticalNotificationsDuringThese', 'Pause non-critical notifications during these hours')}</p>
<div className="form-group">
<div className="settings-notification-option">
- <Switch
+ <Switch id="notifications-quiet-hours" disabled={saving}
checked={userPrefs.quiet_hours?.enabled}
onCheckedChange={(checked) => setUserPrefs({
...userPrefs,
quiet_hours: { ...userPrefs.quiet_hours, enabled: checked }
})}
/>
- <Label>{t('app.notificationsTab.enableQuietHours', 'Enable quiet hours')}</Label>
+ <Label htmlFor="notifications-quiet-hours">{t('app.notificationsTab.enableQuietHours', 'Enable quiet hours')}</Label>
</div>
</div>
{userPrefs.quiet_hours?.enabled && (
@@ -316,7 +309,7 @@ const NotificationsTab = () => {
)}
</div>
- <div className="form-actions">
+ <div className="settings-actions settings-actions--footer">
<Button
variant="outline"
onClick={handleTestUserNotification}
@@ -378,30 +371,15 @@ const NotificationsTab = () => {
</div>
)}
- <div className="notification-tabs">
- <Button variant="unstyled" type="button"
- className={`notification-tab ${activeSection === 'personal' ? 'active' : ''}`}
- onClick={() => setActiveSection('personal')}
- >
- <svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
- <circle cx="12" cy="7" r="4"/>
- </svg>
- {t('app.notificationsTab.myPreferences', 'My Preferences')}
- </Button>
- {isAdmin && (
- <Button variant="unstyled" type="button"
- className={`notification-tab ${activeSection === 'admin' ? 'active' : ''}`}
- onClick={() => setActiveSection('admin')}
- >
- <svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="12" r="3"/>
- <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
- </svg>
- {t('app.notificationsTab.systemWebhooks', 'System Webhooks')}
- </Button>
- )}
- </div>
+ <SegControl value={activeSection} onChange={(section) => { setActiveSection(section); setMessage(null); }}
+ aria-label={t('notifications.scope', 'Notification settings scope')}
+ options={[
+ { value: 'personal', label: t('app.notificationsTab.myPreferences', 'My Preferences') },
+ ...(isAdmin ? [{ value: 'admin', label: t('notifications.deliverySettings', 'Delivery settings') }] : []),
+ ]} />
+ <p className="section-description">{activeSection === 'personal'
+ ? t('notifications.personalHint', 'Control notifications for your account. Save preferences to apply your changes.')
+ : t('notifications.deliveryHint', 'Configure shared destinations for server alerts. These settings affect everyone and are independent of personal preferences. Save a channel before sending a test.')}</p>
{activeSection === 'personal' && userPrefsUI}
@@ -411,6 +389,14 @@ const NotificationsTab = () => {
<div key={channel.id} className={`notification-channel-card ${config[channel.id]?.enabled ? 'enabled' : ''}`}>
<div
className="channel-header"
+ role="button" tabIndex={0} aria-expanded={expandedChannel === channel.id}
+ aria-label={channel.name}
+ onKeyDown={(event) => {
+ if (event.key === 'Enter' || event.key === ' ') {
+ event.preventDefault();
+ setExpandedChannel(expandedChannel === channel.id ? null : channel.id);
+ }
+ }}
onClick={() => setExpandedChannel(expandedChannel === channel.id ? null : channel.id)}
>
<div className="channel-icon">{channel.icon}</div>
@@ -437,11 +423,11 @@ const NotificationsTab = () => {
<div className="channel-config">
<div className="form-group">
<div className="settings-notification-option">
- <Switch
+ <Switch id={`notification-${channel.id}-enabled`} disabled={saving}
checked={config[channel.id]?.enabled || false}
onCheckedChange={(checked) => updateChannelConfig(channel.id, 'enabled', checked)}
/>
- <Label>{t('common.actions.enable', 'Enable')} {channel.name}</Label>
+ <Label htmlFor={`notification-${channel.id}-enabled`}>{t('common.actions.enable', 'Enable')} {channel.name}</Label>
</div>
</div>
@@ -613,7 +599,7 @@ const NotificationsTab = () => {
</div>
<div className="form-group">
<div className="settings-notification-option">
- <Switch
+ <Switch disabled={saving} aria-label={t('app.notificationsTab.useTls', 'Use TLS')}
checked={config.email.smtp_tls !== false}
onCheckedChange={(checked) => updateChannelConfig('email', 'smtp_tls', checked)}
/>
@@ -640,8 +626,8 @@ const NotificationsTab = () => {
<Label>{t('app.notificationsTab.alertSeverities', 'Alert Severities')}</Label>
<div className="severity-toggles">
{severityOptions.map(severity => (
- <label key={severity} className={`severity-toggle ${severity}`}>
- <Checkbox
+ <label key={severity} className="severity-toggle">
+ <Switch disabled={saving} aria-label={severity.charAt(0).toUpperCase() + severity.slice(1)}
checked={config[channel.id]?.notify_on?.includes(severity) || false}
onCheckedChange={() => toggleSeverity(channel.id, severity)}
/>
diff --git a/frontend/src/components/settings/ProfileTab.jsx b/frontend/src/components/settings/ProfileTab.jsx
index 410da796..cc639e02 100644
--- a/frontend/src/components/settings/ProfileTab.jsx
+++ b/frontend/src/components/settings/ProfileTab.jsx
@@ -56,9 +56,9 @@ const ProfileTab = () => {
<form onSubmit={handleSubmit} {...register('profile-username', 'settings-form')}>
<div className="form-group">
- <Label>{t('common.labels.username', 'Username')}</Label>
+ <Label htmlFor="profile-username">{t('common.labels.username', 'Username')}</Label>
<Input
- type="text"
+ id="profile-username" type="text"
value={formData.username}
onChange={(e) => setFormData({ ...formData, username: e.target.value })}
required
@@ -66,9 +66,9 @@ const ProfileTab = () => {
</div>
<div className="form-group">
- <Label>{t('app.profileTab.emailAddress', 'Email Address')}</Label>
+ <Label htmlFor="profile-email">{t('app.profileTab.emailAddress', 'Email Address')}</Label>
<Input
- type="email"
+ id="profile-email" type="email"
value={formData.email}
onChange={(e) => setFormData({ ...formData, email: e.target.value })}
required
@@ -76,18 +76,17 @@ const ProfileTab = () => {
</div>
<div className="form-group">
- <Label>{t('app.profileTab.role', 'Role')}</Label>
- <Input type="text" value={user?.role || 'user'} disabled className="input-disabled" />
+ <Label htmlFor="profile-role">{t('app.profileTab.role', 'Role')}</Label>
+ <Input id="profile-role" type="text" value={user?.role || 'user'} readOnly />
<span className="form-help">{t('app.profileTab.contactAnAdministratorToChangeYour', 'Contact an administrator to change your role')}</span>
</div>
<div className="form-group">
- <Label>{t('app.profileTab.memberSince', 'Member Since')}</Label>
+ <Label htmlFor="profile-member-since">{t('app.profileTab.memberSince', 'Member Since')}</Label>
<Input
- type="text"
+ id="profile-member-since" type="text"
value={user?.created_at ? new Date(user.created_at).toLocaleDateString() : '-'}
- disabled
- className="input-disabled"
+ readOnly
/>
</div>
diff --git a/frontend/src/contexts/AIContext.jsx b/frontend/src/contexts/AIContext.jsx
index 24b534d0..566a5a06 100644
--- a/frontend/src/contexts/AIContext.jsx
+++ b/frontend/src/contexts/AIContext.jsx
@@ -22,6 +22,7 @@ const initialState = {
mode: 'assistant', // 'assistant' (tools + context) | 'simple'
includeContext: true,
providerConfigured: false,
+ enabled: false,
statusLoaded: false,
conversations: [],
connections: [],
@@ -70,7 +71,7 @@ function reducer(state, action) {
case 'SET_INCLUDE_CONTEXT':
return { ...state, includeContext: action.value };
case 'SET_STATUS':
- return { ...state, providerConfigured: action.configured, statusLoaded: true };
+ return { ...state, enabled: action.enabled, providerConfigured: action.configured, statusLoaded: true };
case 'SET_CONNECTIONS': {
const selected = action.connections.find((connection) => connection.id === state.selectedConnection)
|| action.connections.find((connection) => connection.id === action.defaultId);
@@ -225,8 +226,8 @@ export function AIProvider({ children }) {
.then((data) => dispatch({ type: 'SET_CONNECTIONS', connections: data.connections || [], defaultId: data.default_connection_id }))
.catch(() => {});
api.aiStatus()
- .then((s) => dispatch({ type: 'SET_STATUS', configured: !!s.configured }))
- .catch(() => dispatch({ type: 'SET_STATUS', configured: false }));
+ .then((s) => dispatch({ type: 'SET_STATUS', enabled: !!s.enabled, configured: !!s.enabled && !!s.configured }))
+ .catch(() => dispatch({ type: 'SET_STATUS', enabled: false, configured: false }));
}, []);
useEffect(() => {
@@ -307,7 +308,7 @@ export function AIProvider({ children }) {
// --- send a message ---
const send = useCallback(async (prompt, opts = {}) => {
const text = (prompt || '').trim();
- if (!text || state.isStreaming) return;
+ if (!text || state.isStreaming || !state.providerConfigured) return;
const mode = opts.mode || state.mode;
const requestedAttachments = (opts.attachments || []).reduce(
(items, attachment) => appendAttachment(items, attachment),
@@ -353,7 +354,7 @@ export function AIProvider({ children }) {
loadConversations();
}
}, [
- state.isStreaming, state.mode, state.includeContext, state.attachments,
+ state.isStreaming, state.providerConfigured, state.mode, state.includeContext, state.attachments,
state.selectedConnection, state.selectedModel,
buildPageContext, handleEvent, loadConversations,
]);
diff --git a/frontend/src/data/settingsIndex.js b/frontend/src/data/settingsIndex.js
index d3ac69ce..505814fe 100644
--- a/frontend/src/data/settingsIndex.js
+++ b/frontend/src/data/settingsIndex.js
@@ -111,7 +111,6 @@ export const SETTINGS_INDEX = [
{ id: 'ai-pii-redaction', labelKey: 'app.settingsIndex.piiRedaction', label: 'PII redaction', descriptionKey: 'app.settingsIndex.automaticallyRedactPersonallyIdentifiableInformation', description: 'Automatically redact personally identifiable information', keywords: 'pii redaction privacy sensitive', tab: 'ai', adminOnly: true },
{ id: 'ai-injection-detection', labelKey: 'app.settingsIndex.promptInjectionDetection', label: 'Prompt injection detection', descriptionKey: 'app.settingsIndex.blockPromptInjectionAttackAttempts', description: 'Block prompt injection attack attempts', keywords: 'injection prompt attack security', tab: 'ai', adminOnly: true },
- { id: 'modules-toggle', labelKey: 'app.settingsIndex.featureModules', label: 'Feature modules', descriptionKey: 'app.settingsIndex.enableOrDisableOptionalFeatureAreas', description: 'Enable or disable optional feature areas (Email, WordPress, etc.)', keywords: 'modules features email wordpress toggle', tab: 'modules', adminOnly: true },
{ id: 'migrations-apply', labelKey: 'app.settingsIndex.applyDatabaseMigrations', label: 'Apply database migrations', descriptionKey: 'app.settingsIndex.applyPendingSchemaUpdatesToThe', description: 'Apply pending schema updates to the database', keywords: 'migration database schema update', tab: 'migrations', adminOnly: true },
{ id: 'migrations-history', labelKey: 'app.settingsIndex.migrationHistory', label: 'Migration history', descriptionKey: 'app.settingsIndex.reviewPreviouslyAppliedDatabaseMigrations', description: 'Review previously applied database migrations', keywords: 'migration history database schema', tab: 'migrations', adminOnly: true },
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json
index 5a04c1f7..a2b0fdea 100644
--- a/frontend/src/i18n/locales/ar.json
+++ b/frontend/src/i18n/locales/ar.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "مطلوب وصول المشرف.",
"aiAssistant": "مساعد الذكاء الاصطناعي",
"blockPromptInjectionAttempts": "منع محاولات الحقن السريع",
- "configureTheInPanelAssistantPowered": "قم بتكوين المساعد الموجود داخل اللوحة - المدعوم من Prompture. يتم تخزين مفتاح API بشكل مشفر ولا يتم إعادته مطلقًا بواسطة API.",
"enableAiAssistant": "تمكين مساعد الذكاء الاصطناعي",
"perConversationCostCeilingUsd": "سقف التكلفة لكل محادثة (بالدولار الأمريكي)",
"redactPiiFromMessagesToolOutput": "قم بتنقيح معلومات تحديد الهوية الشخصية (PII) من الرسائل ومخرجات الأداة"
@@ -3343,7 +3342,6 @@
"botUsername": "اسم مستخدم البوت",
"channelOptional": "القناة (اختيارية)",
"chatId": "معرف الدردشة",
- "chooseHowYouWantToReceive": "اختر الطريقة التي تريد بها تلقي الإشعارات",
"configureHowYouReceiveAlertsAnd": "قم بتكوين كيفية تلقي التنبيهات والإشعارات",
"createAWebhookInDiscordServer": "قم بإنشاء خطاف ويب في Discord: إعدادات الخادم → عمليات التكامل → Webhooks",
"createAWebhookInYourPersonal": "قم بإنشاء خطاف ويب في خادمك الشخصي أو قناة DM",
@@ -3379,7 +3377,6 @@
"smtpPort": "منفذ SMTP",
"smtpUsername": "اسم المستخدم SMTP",
"startTime": "وقت البدء",
- "systemWebhooks": "خطافات النظام على الويب",
"useTls": "استخدم TLS",
"useUserinfobotOrGetidsbotToFind": "استخدم @userinfobot أو @getidsbot للعثور على معرف الدردشة الخاص بك",
"useUserinfobotToGetYourPersonal": "استخدم @userinfobot للحصول على معرف الدردشة الشخصي الخاص بك",
@@ -4811,7 +4808,6 @@
"iconReference": "مرجع الأيقونة",
"localDev": "التطوير المحلي",
"migrations": "الهجرات",
- "modules": "وحدات",
"myAccount": "حسابي",
"notifications": "إشعارات",
"preferences": "التفضيلات",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "تمكين أدوات المطور والتشخيصات",
"enableNotifications": "تمكين الإخطارات",
"enableOrDisable2faForYour": "قم بتمكين أو تعطيل المصادقة الثنائية لحسابك باستخدام تطبيق المصادقة",
- "enableOrDisableOptionalFeatureAreas": "تمكين أو تعطيل مناطق الميزات الاختيارية (البريد الإلكتروني، WordPress، إلخ.)",
"enableOrDisableUserAccountAccess": "تمكين أو تعطيل الوصول إلى حساب المستخدم",
"enableWhiteLabelModeAndReplace": "قم بتمكين وضع التسمية البيضاء واستبدال العلامة التجارية ServerKit",
"encryptionKey": "مفتاح التشفير",
"enforce2faAcrossEveryAccount": "فرض 2FA عبر كل حساب",
"extensionRegistryUrl": "ملحق التسجيل URL",
- "featureModules": "وحدات الميزة",
"generateSingleUseSignInUrls": "إنشاء تسجيل دخول للاستخدام الفردي URLs للمستخدمين",
"genericNotificationWebhook": "خطاف ويب للإشعارات العامة",
"githubConnection": "اتصال GitHub",
diff --git a/frontend/src/i18n/locales/bn.json b/frontend/src/i18n/locales/bn.json
index 7ffd0b95..7e40fe72 100644
--- a/frontend/src/i18n/locales/bn.json
+++ b/frontend/src/i18n/locales/bn.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "অ্যাডমিন অ্যাক্সেস প্রয়োজন.",
"aiAssistant": "এআই সহকারী",
"blockPromptInjectionAttempts": "প্রম্পট-ইনজেকশন প্রচেষ্টা ব্লক করুন",
- "configureTheInPanelAssistantPowered": "ইন-প্যানেল সহকারী কনফিগার করুন — প্রম্পচার দ্বারা চালিত। API কী এনক্রিপ্ট করা সংরক্ষিত এবং API দ্বারা ফেরত দেওয়া হয় না।",
"enableAiAssistant": "এআই সহকারী সক্ষম করুন",
"perConversationCostCeilingUsd": "প্রতি-কথোপকথনের খরচ সিলিং (USD)",
"redactPiiFromMessagesToolOutput": "বার্তা এবং টুল আউটপুট থেকে PII রিড্যাক্ট করুন"
@@ -3343,7 +3342,6 @@
"botUsername": "বট ব্যবহারকারীর নাম",
"channelOptional": "চ্যানেল (ঐচ্ছিক)",
"chatId": "চ্যাট আইডি",
- "chooseHowYouWantToReceive": "আপনি কীভাবে বিজ্ঞপ্তি পেতে চান তা চয়ন করুন৷",
"configureHowYouReceiveAlertsAnd": "আপনি কিভাবে সতর্কতা এবং বিজ্ঞপ্তি পাবেন তা কনফিগার করুন",
"createAWebhookInDiscordServer": "ডিসকর্ডে একটি ওয়েবহুক তৈরি করুন: সার্ভার সেটিংস → ইন্টিগ্রেশন → ওয়েবহুক",
"createAWebhookInYourPersonal": "আপনার ব্যক্তিগত সার্ভার বা DM চ্যানেলে একটি ওয়েবহুক তৈরি করুন",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP পোর্ট",
"smtpUsername": "SMTP ব্যবহারকারীর নাম",
"startTime": "শুরুর সময়",
- "systemWebhooks": "সিস্টেম ওয়েবহুক",
"useTls": "TLS ব্যবহার করুন",
"useUserinfobotOrGetidsbotToFind": "আপনার চ্যাট আইডি খুঁজতে @userinfobot বা @getidsbot ব্যবহার করুন",
"useUserinfobotToGetYourPersonal": "আপনার ব্যক্তিগত চ্যাট আইডি পেতে @userinfobot ব্যবহার করুন",
@@ -4811,7 +4808,6 @@
"iconReference": "আইকন রেফারেন্স",
"localDev": "স্থানীয় দেব",
"migrations": "মাইগ্রেশন",
- "modules": "মডিউল",
"myAccount": "আমার অ্যাকাউন্ট",
"notifications": "বিজ্ঞপ্তি",
"preferences": "পছন্দসমূহ",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "বিকাশকারী সরঞ্জাম এবং ডায়াগনস্টিক সক্ষম করুন৷",
"enableNotifications": "বিজ্ঞপ্তি সক্রিয় করুন",
"enableOrDisable2faForYour": "একটি প্রমাণীকরণকারী অ্যাপের মাধ্যমে আপনার অ্যাকাউন্টের জন্য 2FA সক্ষম বা অক্ষম করুন",
- "enableOrDisableOptionalFeatureAreas": "ঐচ্ছিক বৈশিষ্ট্য এলাকাগুলি সক্ষম বা অক্ষম করুন (ইমেল, WordPress, ইত্যাদি)",
"enableOrDisableUserAccountAccess": "ব্যবহারকারীর অ্যাকাউন্ট অ্যাক্সেস সক্ষম বা অক্ষম করুন",
"enableWhiteLabelModeAndReplace": "সাদা লেবেল মোড সক্ষম করুন এবং ServerKit ব্র্যান্ডিং প্রতিস্থাপন করুন",
"encryptionKey": "এনক্রিপশন কী",
"enforce2faAcrossEveryAccount": "প্রতিটি অ্যাকাউন্ট জুড়ে 2FA প্রয়োগ করুন",
"extensionRegistryUrl": "এক্সটেনশন রেজিস্ট্রি URL",
- "featureModules": "বৈশিষ্ট্য মডিউল",
"generateSingleUseSignInUrls": "ব্যবহারকারীদের জন্য একক-ব্যবহারের সাইন-ইন URLs তৈরি করুন৷",
"genericNotificationWebhook": "জেনেরিক বিজ্ঞপ্তি ওয়েবহুক",
"githubConnection": "GitHub সংযোগ",
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json
index 4ceca4f6..2bb5ec97 100644
--- a/frontend/src/i18n/locales/de.json
+++ b/frontend/src/i18n/locales/de.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Administratorzugriff erforderlich.",
"aiAssistant": "KI-Assistent",
"blockPromptInjectionAttempts": "Blockieren Sie Versuche zur sofortigen Injektion",
- "configureTheInPanelAssistantPowered": "Konfigurieren Sie den In-Panel-Assistenten – unterstützt von Prompture. Der API-Schlüssel wird verschlüsselt gespeichert und niemals von der API zurückgegeben.",
"enableAiAssistant": "Aktivieren Sie den KI-Assistenten",
"perConversationCostCeilingUsd": "Kostenobergrenze pro Gespräch (USD)",
"redactPiiFromMessagesToolOutput": "PII aus Nachrichten und Tool-Ausgaben schwärzen"
@@ -3343,7 +3342,6 @@
"botUsername": "Bot-Benutzername",
"channelOptional": "Kanal (optional)",
"chatId": "Chat-ID",
- "chooseHowYouWantToReceive": "Wählen Sie aus, wie Sie Benachrichtigungen erhalten möchten",
"configureHowYouReceiveAlertsAnd": "Konfigurieren Sie, wie Sie Warnungen und Benachrichtigungen erhalten",
"createAWebhookInDiscordServer": "Erstellen Sie einen Webhook in Discord: Servereinstellungen → Integrationen → Webhooks",
"createAWebhookInYourPersonal": "Erstellen Sie einen Webhook auf Ihrem persönlichen Server oder DM-Kanal",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP-Port",
"smtpUsername": "SMTP-Benutzername",
"startTime": "Startzeit",
- "systemWebhooks": "System-Webhooks",
"useTls": "Verwenden Sie TLS",
"useUserinfobotOrGetidsbotToFind": "Verwenden Sie @userinfobot oder @getidsbot, um Ihre Chat-ID zu finden",
"useUserinfobotToGetYourPersonal": "Verwenden Sie @userinfobot, um Ihre persönliche Chat-ID zu erhalten",
@@ -4811,7 +4808,6 @@
"iconReference": "Symbolreferenz",
"localDev": "Lokaler Entwickler",
"migrations": "Migrationen",
- "modules": "Module",
"myAccount": "Mein Konto",
"notifications": "Benachrichtigungen",
"preferences": "Präferenzen",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Aktivieren Sie Entwicklertools und Diagnosen",
"enableNotifications": "Benachrichtigungen aktivieren",
"enableOrDisable2faForYour": "Aktivieren oder deaktivieren Sie 2FA für Ihr Konto mit einer Authentifizierungs-App",
- "enableOrDisableOptionalFeatureAreas": "Aktivieren oder deaktivieren Sie optionale Funktionsbereiche (E-Mail, WordPress usw.)",
"enableOrDisableUserAccountAccess": "Aktivieren oder deaktivieren Sie den Benutzerkontozugriff",
"enableWhiteLabelModeAndReplace": "Aktivieren Sie den White-Label-Modus und ersetzen Sie das ServerKit-Branding",
"encryptionKey": "Verschlüsselungsschlüssel",
"enforce2faAcrossEveryAccount": "Erzwingen Sie 2FA für jedes Konto",
"extensionRegistryUrl": "URL der Erweiterungsregistrierung",
- "featureModules": "Funktionsmodule",
"generateSingleUseSignInUrls": "Generieren Sie einmalige Anmelde-URLs für Benutzer",
"genericNotificationWebhook": "Allgemeiner Benachrichtigungs-Webhook",
"githubConnection": "GitHub-Verbindung",
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index 1f4546b2..98d57e99 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -2,6 +2,8 @@
"ai": {
"connections": {
"add": "Add a connection…",
+ "browseModels": "Browse models ({{count}})",
+ "chooseModel": "Choose a model",
"choosePreset": "Custom URL, or choose a preset…",
"clearSecret": "Clear saved credential",
"connection": "Connection",
@@ -13,6 +15,8 @@
"deleteTitle": "Delete AI connection?",
"description": "Configure native Prompture providers or connect a gateway such as OmniRoute. Credentials stay encrypted on the server.",
"discover": "Discover models",
+ "discovering": "Discovering…",
+ "discoveryHint": "Discover models from this connection, then browse or enter an exact model ID.",
"endpointHelp": "Use an address reachable from the ServerKit backend. In Docker, localhost refers to the panel container. Changing this URL requires re-entering credentials.",
"makeDefault": "Use as the default for new chats",
"missingDependency": " (dependency required)",
@@ -21,6 +25,7 @@
"modelsFound": "{{count}} models found. You can also enter a model ID manually.",
"name": "Connection name",
"namePlaceholder": "e.g. Team Anthropic or Local OmniRoute",
+ "noModels": "No matching models. Enter a model ID manually.",
"optional": " (optional)",
"panelDefault": "Panel default",
"preset": "Endpoint preset",
@@ -29,12 +34,27 @@
"save": "Save connection",
"saved": "Saved connection",
"savedMessage": "Connection saved. Existing chats keep their connection and model.",
+ "searchModels": "Search models…",
"secretConfigured": "Configured — leave blank to keep",
"selectProvider": "Select a provider…",
"test": "Test connection",
+ "testing": "Testing…",
"title": "Provider connections",
"verified": "Connection verified.",
"working": "Working…"
+ },
+ "settings": {
+ "costHint": "Stops further model calls when reported spending reaches this amount. A call can exceed the remaining amount; models with unknown pricing need a provider-side limit. Set 0 for no limit.",
+ "disabled": "Assistant disabled",
+ "disabledHelp": "The assistant is disabled. An admin can enable it in",
+ "disabledMessage": "Assistant disabled. New messages are blocked; chat history is kept.",
+ "enabledHint": "Changes apply immediately to new messages. Configure the default connection below.",
+ "enabledMessage": "Assistant enabled. New messages can use the default connection.",
+ "intro": "Connect a provider, choose a model, and set the assistant’s limits.",
+ "invalidBudget": "Enter a cost ceiling of zero or more.",
+ "limits": "Limits and protections",
+ "limitsHint": "These settings apply to assistant conversations. Save changes to apply them.",
+ "setupHint": "Save a provider connection below before enabling the assistant."
}
},
"app": {
@@ -42,7 +62,6 @@
"adminAccessRequired": "Admin access required.",
"aiAssistant": "AI Assistant",
"blockPromptInjectionAttempts": "Block prompt-injection attempts",
- "configureTheInPanelAssistantPowered": "Configure the in-panel assistant — powered by Prompture. The API key is stored encrypted and never returned by the API.",
"enableAiAssistant": "Enable AI assistant",
"perConversationCostCeilingUsd": "Per-conversation cost ceiling (USD)",
"redactPiiFromMessagesToolOutput": "Redact PII from messages & tool output"
@@ -3390,7 +3409,6 @@
"botUsername": "Bot Username",
"channelOptional": "Channel (optional)",
"chatId": "Chat ID",
- "chooseHowYouWantToReceive": "Choose how you want to receive notifications",
"configureHowYouReceiveAlertsAnd": "Configure how you receive alerts and notifications",
"createAWebhookInDiscordServer": "Create a webhook in Discord: Server Settings → Integrations → Webhooks",
"createAWebhookInYourPersonal": "Create a webhook in your personal server or DM channel",
@@ -3426,7 +3444,6 @@
"smtpPort": "SMTP Port",
"smtpUsername": "SMTP Username",
"startTime": "Start Time",
- "systemWebhooks": "System Webhooks",
"useTls": "Use TLS",
"useUserinfobotOrGetidsbotToFind": "Use @userinfobot or @getidsbot to find your chat ID",
"useUserinfobotToGetYourPersonal": "Use @userinfobot to get your personal chat ID",
@@ -4859,7 +4876,6 @@
"iconReference": "Icon Reference",
"localDev": "Local Dev",
"migrations": "Migrations",
- "modules": "Modules",
"myAccount": "My Account",
"notifications": "Notifications",
"preferences": "Preferences",
@@ -4955,13 +4971,11 @@
"enableDeveloperToolsAndDiagnostics": "Enable developer tools and diagnostics",
"enableNotifications": "Enable notifications",
"enableOrDisable2faForYour": "Enable or disable 2FA for your account with an authenticator app",
- "enableOrDisableOptionalFeatureAreas": "Enable or disable optional feature areas (Email, WordPress, etc.)",
"enableOrDisableUserAccountAccess": "Enable or disable user account access",
"enableWhiteLabelModeAndReplace": "Enable white label mode and replace ServerKit branding",
"encryptionKey": "Encryption key",
"enforce2faAcrossEveryAccount": "Enforce 2FA across every account",
"extensionRegistryUrl": "Extension registry URL",
- "featureModules": "Feature modules",
"generateSingleUseSignInUrls": "Generate single-use sign-in URLs for users",
"genericNotificationWebhook": "Generic notification webhook",
"githubConnection": "GitHub connection",
@@ -6869,6 +6883,7 @@
"more": "More",
"moreSections": "More sections",
"page": "Page",
+ "retry": "Retry",
"saving": "Saving…",
"state": {
"failed": "Failed",
@@ -7029,13 +7044,19 @@
"notifications": {
"bell": "Notifications",
"bellUnread": "Notifications, {{count}} unread",
+ "deliveryHint": "Configure shared destinations for server alerts. These settings affect everyone and are independent of personal preferences. Save a channel before sending a test.",
+ "deliverySettings": "Delivery settings",
"dismissItem": "Dismiss {{title}}",
"empty": "You’re all caught up.",
"everything": "Everything",
"heading": "Notifications",
+ "loadFailed": "Could not load notification settings. Reload to try again.",
"markAllRead": "Mark all read",
+ "personalChannelsHint": "Choose destinations for your account. Slack and shared webhooks are managed in Delivery settings.",
+ "personalHint": "Control notifications for your account. Save preferences to apply your changes.",
"recentActivity": "Recent system and delivery activity",
"review": "Review",
+ "scope": "Notification settings scope",
"seeAll": "See all notifications"
},
"palette": {
diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json
index 3cd04bf5..2fd8408f 100644
--- a/frontend/src/i18n/locales/es.json
+++ b/frontend/src/i18n/locales/es.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Se requiere acceso de administrador.",
"aiAssistant": "Asistente de IA",
"blockPromptInjectionAttempts": "Bloquear intentos de inyección de prompts",
- "configureTheInPanelAssistantPowered": "Configura el asistente integrado en el panel, con tecnología de Prompture. La clave de API se guarda cifrada y la API nunca la devuelve.",
"enableAiAssistant": "Activar el asistente de IA",
"perConversationCostCeilingUsd": "Límite de costo por conversación (USD)",
"redactPiiFromMessagesToolOutput": "Ocultar PII en mensajes y salida de herramientas"
@@ -3343,7 +3342,6 @@
"botUsername": "Nombre de usuario del bot",
"channelOptional": "Canal (opcional)",
"chatId": "ID de chat",
- "chooseHowYouWantToReceive": "Elige cómo quieres recibir las notificaciones",
"configureHowYouReceiveAlertsAnd": "Configura cómo recibes las alertas y notificaciones",
"createAWebhookInDiscordServer": "Crea un webhook en Discord: Ajustes del servidor → Integraciones → Webhooks",
"createAWebhookInYourPersonal": "Crea un webhook en tu servidor personal o en un canal de mensajes directos",
@@ -3379,7 +3377,6 @@
"smtpPort": "Puerto SMTP",
"smtpUsername": "Nombre de usuario SMTP",
"startTime": "Hora de inicio",
- "systemWebhooks": "Webhooks del sistema",
"useTls": "Usar TLS",
"useUserinfobotOrGetidsbotToFind": "Usa @userinfobot o @getidsbot para encontrar tu ID de chat",
"useUserinfobotToGetYourPersonal": "Usa @userinfobot para obtener tu ID de chat personal",
@@ -4811,7 +4808,6 @@
"iconReference": "Referencia de iconos",
"localDev": "Desarrollo local",
"migrations": "Migraciones",
- "modules": "Módulos",
"myAccount": "Mi cuenta",
"notifications": "Notificaciones",
"preferences": "Preferencias",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Activar las herramientas de desarrollador y los diagnósticos",
"enableNotifications": "Activar notificaciones",
"enableOrDisable2faForYour": "Activar o desactivar 2FA en tu cuenta con una app de autenticación",
- "enableOrDisableOptionalFeatureAreas": "Activar o desactivar áreas de funciones opcionales (correo electrónico, WordPress, etc.)",
"enableOrDisableUserAccountAccess": "Activar o desactivar el acceso a cuentas de usuario",
"enableWhiteLabelModeAndReplace": "Activar el modo de marca blanca y reemplazar la marca de ServerKit",
"encryptionKey": "Clave de cifrado",
"enforce2faAcrossEveryAccount": "Exigir 2FA en todas las cuentas",
"extensionRegistryUrl": "URL del registro de extensiones",
- "featureModules": "Módulos de funciones",
"generateSingleUseSignInUrls": "Generar URLs de inicio de sesión de un solo uso para los usuarios",
"genericNotificationWebhook": "Webhook de notificación genérico",
"githubConnection": "Conexión con GitHub",
diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json
index 4961c86f..b81585a0 100644
--- a/frontend/src/i18n/locales/fr.json
+++ b/frontend/src/i18n/locales/fr.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Accès administrateur requis.",
"aiAssistant": "Assistant IA",
"blockPromptInjectionAttempts": "Bloquer les tentatives d'injection rapide",
- "configureTheInPanelAssistantPowered": "Configurez l'assistant intégré au panneau, optimisé par Prompture. La clé API est stockée cryptée et n'est jamais renvoyée par le API.",
"enableAiAssistant": "Activer l'assistant IA",
"perConversationCostCeilingUsd": "Plafond du coût par conversation (USD)",
"redactPiiFromMessagesToolOutput": "Rédiger les informations personnelles à partir des messages et des résultats de l'outil"
@@ -3343,7 +3342,6 @@
"botUsername": "Nom d'utilisateur du robot",
"channelOptional": "Canal (facultatif)",
"chatId": "Identifiant de discussion",
- "chooseHowYouWantToReceive": "Choisissez comment vous souhaitez recevoir des notifications",
"configureHowYouReceiveAlertsAnd": "Configurez la façon dont vous recevez des alertes et des notifications",
"createAWebhookInDiscordServer": "Créez un webhook dans Discord : Paramètres du serveur → Intégrations → Webhooks",
"createAWebhookInYourPersonal": "Créez un webhook sur votre serveur personnel ou votre canal DM",
@@ -3379,7 +3377,6 @@
"smtpPort": "Port SMTP",
"smtpUsername": "Nom d'utilisateur SMTP",
"startTime": "Heure de début",
- "systemWebhooks": "Webhooks système",
"useTls": "Utiliser TLS",
"useUserinfobotOrGetidsbotToFind": "Utilisez @userinfobot ou @getidsbot pour trouver votre identifiant de chat",
"useUserinfobotToGetYourPersonal": "Utilisez @userinfobot pour obtenir votre identifiant de chat personnel",
@@ -4811,7 +4808,6 @@
"iconReference": "Référence des icônes",
"localDev": "Développement local",
"migrations": "Migrations",
- "modules": "Modules",
"myAccount": "Mon compte",
"notifications": "Notifications",
"preferences": "Préférences",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Activer les outils de développement et les diagnostics",
"enableNotifications": "Activer les notifications",
"enableOrDisable2faForYour": "Activez ou désactivez 2FA pour votre compte avec une application d'authentification",
- "enableOrDisableOptionalFeatureAreas": "Activer ou désactiver les zones de fonctionnalités facultatives (E-mail, WordPress, etc.)",
"enableOrDisableUserAccountAccess": "Activer ou désactiver l'accès au compte utilisateur",
"enableWhiteLabelModeAndReplace": "Activer le mode marque blanche et remplacer la marque ServerKit",
"encryptionKey": "Clé de chiffrement",
"enforce2faAcrossEveryAccount": "Appliquer 2FA sur chaque compte",
"extensionRegistryUrl": "Registre d'extensions URL",
- "featureModules": "Modules de fonctionnalités",
"generateSingleUseSignInUrls": "Générer des URL de connexion à usage unique pour les utilisateurs",
"genericNotificationWebhook": "Webhook de notification générique",
"githubConnection": "Connexion GitHub",
diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json
index e56f4287..8e83e098 100644
--- a/frontend/src/i18n/locales/id.json
+++ b/frontend/src/i18n/locales/id.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Diperlukan akses admin.",
"aiAssistant": "Asisten AI",
"blockPromptInjectionAttempts": "Blokir upaya injeksi cepat",
- "configureTheInPanelAssistantPowered": "Konfigurasikan asisten dalam panel — didukung oleh Prompture. Kunci API disimpan terenkripsi dan tidak pernah dikembalikan oleh API.",
"enableAiAssistant": "Aktifkan asisten AI",
"perConversationCostCeilingUsd": "Batas atas biaya per percakapan (USD)",
"redactPiiFromMessagesToolOutput": "Sunting PII dari pesan & keluaran alat"
@@ -3343,7 +3342,6 @@
"botUsername": "Nama Pengguna Bot",
"channelOptional": "Saluran (opsional)",
"chatId": "ID Obrolan",
- "chooseHowYouWantToReceive": "Pilih bagaimana Anda ingin menerima notifikasi",
"configureHowYouReceiveAlertsAnd": "Konfigurasikan cara Anda menerima peringatan dan pemberitahuan",
"createAWebhookInDiscordServer": "Buat webhook di Discord: Pengaturan Server → Integrasi → Webhook",
"createAWebhookInYourPersonal": "Buat webhook di server pribadi atau saluran DM Anda",
@@ -3379,7 +3377,6 @@
"smtpPort": "Pelabuhan SMTP",
"smtpUsername": "Nama Pengguna SMTP",
"startTime": "Waktu Mulai",
- "systemWebhooks": "Webhook Sistem",
"useTls": "Gunakan TLS",
"useUserinfobotOrGetidsbotToFind": "Gunakan @userinfobot atau @getidsbot untuk menemukan ID obrolan Anda",
"useUserinfobotToGetYourPersonal": "Gunakan @userinfobot untuk mendapatkan ID obrolan pribadi Anda",
@@ -4811,7 +4808,6 @@
"iconReference": "Referensi Ikon",
"localDev": "Pengembang Lokal",
"migrations": "Migrasi",
- "modules": "Modul",
"myAccount": "Akun Saya",
"notifications": "Pemberitahuan",
"preferences": "Preferensi",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Aktifkan alat pengembang dan diagnostik",
"enableNotifications": "Aktifkan notifikasi",
"enableOrDisable2faForYour": "Aktifkan atau nonaktifkan 2FA untuk akun Anda dengan aplikasi autentikator",
- "enableOrDisableOptionalFeatureAreas": "Mengaktifkan atau menonaktifkan area fitur opsional (Email, WordPress, dll.)",
"enableOrDisableUserAccountAccess": "Mengaktifkan atau menonaktifkan akses akun pengguna",
"enableWhiteLabelModeAndReplace": "Aktifkan mode label putih dan ganti merek ServerKit",
"encryptionKey": "Kunci enkripsi",
"enforce2faAcrossEveryAccount": "Terapkan 2FA di setiap akun",
"extensionRegistryUrl": "Registri ekstensi URL",
- "featureModules": "Modul fitur",
"generateSingleUseSignInUrls": "Menghasilkan URL login sekali pakai untuk pengguna",
"genericNotificationWebhook": "Webhook notifikasi umum",
"githubConnection": "Koneksi GitHub",
diff --git a/frontend/src/i18n/locales/it.json b/frontend/src/i18n/locales/it.json
index 263280a9..69d09b3e 100644
--- a/frontend/src/i18n/locales/it.json
+++ b/frontend/src/i18n/locales/it.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "È richiesto l'accesso amministrativo.",
"aiAssistant": "Assistente AI",
"blockPromptInjectionAttempts": "Blocca i tentativi di pronta iniezione",
- "configureTheInPanelAssistantPowered": "Configura l'assistente nel pannello, basato su Prompture. La chiave API viene archiviata crittografata e non viene mai restituita da API.",
"enableAiAssistant": "Abilita l'assistente AI",
"perConversationCostCeilingUsd": "Tetto massimo del costo per conversazione (USD)",
"redactPiiFromMessagesToolOutput": "Oscura le PII dai messaggi e dall'output dello strumento"
@@ -3343,7 +3342,6 @@
"botUsername": "Nome utente del bot",
"channelOptional": "Canale (facoltativo)",
"chatId": "ID chat",
- "chooseHowYouWantToReceive": "Scegli come desideri ricevere le notifiche",
"configureHowYouReceiveAlertsAnd": "Configura il modo in cui ricevi avvisi e notifiche",
"createAWebhookInDiscordServer": "Crea un webhook in Discord: Impostazioni server → Integrazioni → Webhook",
"createAWebhookInYourPersonal": "Crea un webhook nel tuo server personale o nel canale DM",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP Porta",
"smtpUsername": "SMTP Nome utente",
"startTime": "Ora di inizio",
- "systemWebhooks": "Webhook di sistema",
"useTls": "Utilizzare TLS",
"useUserinfobotOrGetidsbotToFind": "Utilizza @userinfobot o @getidsbot per trovare il tuo ID chat",
"useUserinfobotToGetYourPersonal": "Usa @userinfobot per ottenere il tuo ID chat personale",
@@ -4811,7 +4808,6 @@
"iconReference": "Riferimento alle icone",
"localDev": "Sviluppatore locale",
"migrations": "Migrazioni",
- "modules": "Moduli",
"myAccount": "Il mio conto",
"notifications": "Notifiche",
"preferences": "Preferenze",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Abilita gli strumenti e la diagnostica per sviluppatori",
"enableNotifications": "Abilita notifiche",
"enableOrDisable2faForYour": "Abilita o disabilita 2FA per il tuo account con un'app di autenticazione",
- "enableOrDisableOptionalFeatureAreas": "Abilita o disabilita le aree di funzionalità opzionali (E-mail, WordPress, ecc.)",
"enableOrDisableUserAccountAccess": "Abilita o disabilita l'accesso all'account utente",
"enableWhiteLabelModeAndReplace": "Abilita la modalità etichetta bianca e sostituisci il marchio ServerKit",
"encryptionKey": "Chiave di crittografia",
"enforce2faAcrossEveryAccount": "Applica la 2FA su ogni account",
"extensionRegistryUrl": "Registro di estensione URL",
- "featureModules": "Moduli di funzionalità",
"generateSingleUseSignInUrls": "Genera URL di accesso monouso per gli utenti",
"genericNotificationWebhook": "Webhook di notifica generico",
"githubConnection": "Collegamento GitHub",
diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json
index b8371486..d7aa248a 100644
--- a/frontend/src/i18n/locales/ko.json
+++ b/frontend/src/i18n/locales/ko.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "관리자 액세스가 필요합니다.",
"aiAssistant": "AI 어시스턴트",
"blockPromptInjectionAttempts": "프롬프트 주입 시도 차단",
- "configureTheInPanelAssistantPowered": "Prompture에서 제공하는 패널 내 도우미를 구성하세요. API 키는 암호화되어 저장되며 API에 의해 반환되지 않습니다.",
"enableAiAssistant": "AI 어시스턴트 활성화",
"perConversationCostCeilingUsd": "대화당 비용 상한선(USD)",
"redactPiiFromMessagesToolOutput": "메시지 및 도구 출력에서 PII 수정"
@@ -3343,7 +3342,6 @@
"botUsername": "봇 사용자 이름",
"channelOptional": "채널(선택사항)",
"chatId": "채팅 ID",
- "chooseHowYouWantToReceive": "알림 수신 방법을 선택하세요.",
"configureHowYouReceiveAlertsAnd": "경고 및 알림 수신 방법 구성",
"createAWebhookInDiscordServer": "Discord에서 웹훅 생성: 서버 설정 → 통합 → 웹훅",
"createAWebhookInYourPersonal": "개인 서버 또는 DM 채널에 웹훅 생성",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP 포트",
"smtpUsername": "SMTP 사용자 이름",
"startTime": "시작 시간",
- "systemWebhooks": "시스템 웹훅",
"useTls": "TLS 사용",
"useUserinfobotOrGetidsbotToFind": "@userinfobot 또는 @getidsbot을 사용하여 채팅 ID를 찾으세요.",
"useUserinfobotToGetYourPersonal": "@userinfobot을 사용하여 개인 채팅 ID를 받으세요.",
@@ -4811,7 +4808,6 @@
"iconReference": "아이콘 참조",
"localDev": "로컬 개발",
"migrations": "마이그레이션",
- "modules": "모듈",
"myAccount": "내 계정",
"notifications": "알림",
"preferences": "환경설정",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "개발자 도구 및 진단 활성화",
"enableNotifications": "알림 활성화",
"enableOrDisable2faForYour": "인증 앱을 사용하여 계정에 대한 2FA를 활성화 또는 비활성화합니다.",
- "enableOrDisableOptionalFeatureAreas": "선택적 기능 영역(이메일, WordPress 등)을 활성화 또는 비활성화합니다.",
"enableOrDisableUserAccountAccess": "사용자 계정 액세스 활성화 또는 비활성화",
"enableWhiteLabelModeAndReplace": "화이트 라벨 모드 활성화 및 ServerKit 브랜딩 교체",
"encryptionKey": "암호화 키",
"enforce2faAcrossEveryAccount": "모든 계정에 2FA를 시행하세요",
"extensionRegistryUrl": "확장 레지스트리 URL",
- "featureModules": "기능 모듈",
"generateSingleUseSignInUrls": "사용자를 위한 일회용 로그인 URL 생성",
"genericNotificationWebhook": "일반 알림 웹훅",
"githubConnection": "GitHub 연결",
diff --git a/frontend/src/i18n/locales/pl.json b/frontend/src/i18n/locales/pl.json
index a73927e7..adad754f 100644
--- a/frontend/src/i18n/locales/pl.json
+++ b/frontend/src/i18n/locales/pl.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Wymagany dostęp administratora.",
"aiAssistant": "Asystent AI",
"blockPromptInjectionAttempts": "Blokuj próby wstrzyknięcia monitu",
- "configureTheInPanelAssistantPowered": "Skonfiguruj asystenta w panelu — obsługiwanego przez Prompture. Klucz API jest przechowywany w postaci zaszyfrowanej i nigdy nie jest zwracany przez API.",
"enableAiAssistant": "Włącz asystenta AI",
"perConversationCostCeilingUsd": "Pułap kosztu rozmowy (USD)",
"redactPiiFromMessagesToolOutput": "Redaguj informacje umożliwiające identyfikację z komunikatów i wyników narzędzi"
@@ -3343,7 +3342,6 @@
"botUsername": "Nazwa użytkownika bota",
"channelOptional": "Kanał (opcjonalnie)",
"chatId": "Identyfikator czatu",
- "chooseHowYouWantToReceive": "Wybierz sposób, w jaki chcesz otrzymywać powiadomienia",
"configureHowYouReceiveAlertsAnd": "Skonfiguruj sposób otrzymywania alertów i powiadomień",
"createAWebhookInDiscordServer": "Utwórz webhooka w Discord: Ustawienia serwera → Integracje → Webhooki",
"createAWebhookInYourPersonal": "Utwórz webhooka na swoim serwerze osobistym lub kanale DM",
@@ -3379,7 +3377,6 @@
"smtpPort": "Port SMTP",
"smtpUsername": "SMTP Nazwa użytkownika",
"startTime": "Czas rozpoczęcia",
- "systemWebhooks": "Systemowe webhooki",
"useTls": "Użyj TLS",
"useUserinfobotOrGetidsbotToFind": "Użyj @userinfobot lub @getidsbot, aby znaleźć swój identyfikator czatu",
"useUserinfobotToGetYourPersonal": "Użyj @userinfobot, aby uzyskać swój osobisty identyfikator czatu",
@@ -4811,7 +4808,6 @@
"iconReference": "Ikona odniesienia",
"localDev": "Lokalny deweloper",
"migrations": "Migracje",
- "modules": "Moduły",
"myAccount": "Moje konto",
"notifications": "Powiadomienia",
"preferences": "Preferencje",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Włącz narzędzia programistyczne i diagnostykę",
"enableNotifications": "Włącz powiadomienia",
"enableOrDisable2faForYour": "Włącz lub wyłącz 2FA dla swojego konta za pomocą aplikacji uwierzytelniającej",
- "enableOrDisableOptionalFeatureAreas": "Włącz lub wyłącz opcjonalne obszary funkcji (E-mail, WordPress itp.)",
"enableOrDisableUserAccountAccess": "Włącz lub wyłącz dostęp do konta użytkownika",
"enableWhiteLabelModeAndReplace": "Włącz tryb białej etykiety i zastąp oznakowanie ServerKit",
"encryptionKey": "Klucz szyfrowania",
"enforce2faAcrossEveryAccount": "Wymuś 2FA na każdym koncie",
"extensionRegistryUrl": "Rejestr rozszerzeń URL",
- "featureModules": "Moduły funkcyjne",
"generateSingleUseSignInUrls": "Wygeneruj jednorazowe loginy URL dla użytkowników",
"genericNotificationWebhook": "Ogólny webhook powiadomień",
"githubConnection": "Połączenie GitHub",
diff --git a/frontend/src/i18n/locales/pt.json b/frontend/src/i18n/locales/pt.json
index 99e0f4a5..5bc3826b 100644
--- a/frontend/src/i18n/locales/pt.json
+++ b/frontend/src/i18n/locales/pt.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "É necessário acesso de administrador.",
"aiAssistant": "Assistente de IA",
"blockPromptInjectionAttempts": "Bloquear tentativas de injeção imediata",
- "configureTheInPanelAssistantPowered": "Configure o assistente no painel – desenvolvido pela Prompture. A chave da API é armazenada criptografada e nunca retornada pela API.",
"enableAiAssistant": "Habilitar assistente de IA",
"perConversationCostCeilingUsd": "Teto de custo por conversa (USD)",
"redactPiiFromMessagesToolOutput": "Editar PII de mensagens e resultados de ferramentas"
@@ -3343,7 +3342,6 @@
"botUsername": "Nome de usuário do bot",
"channelOptional": "Canal (opcional)",
"chatId": "ID do bate-papo",
- "chooseHowYouWantToReceive": "Escolha como deseja receber notificações",
"configureHowYouReceiveAlertsAnd": "Configure como você recebe alertas e notificações",
"createAWebhookInDiscordServer": "Crie um webhook no Discord: Configurações do servidor → Integrações → Webhooks",
"createAWebhookInYourPersonal": "Crie um webhook em seu servidor pessoal ou canal DM",
@@ -3379,7 +3377,6 @@
"smtpPort": "Porta SMTP",
"smtpUsername": "Nome de usuário SMTP",
"startTime": "Hora de início",
- "systemWebhooks": "Webhooks do sistema",
"useTls": "Usar TLS",
"useUserinfobotOrGetidsbotToFind": "Use @userinfobot ou @getidsbot para encontrar seu ID de chat",
"useUserinfobotToGetYourPersonal": "Use @userinfobot para obter seu ID pessoal de bate-papo",
@@ -4811,7 +4808,6 @@
"iconReference": "Referência de ícone",
"localDev": "Desenvolvedor local",
"migrations": "Migrações",
- "modules": "Módulos",
"myAccount": "Minha conta",
"notifications": "Notificações",
"preferences": "Preferências",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Habilite ferramentas e diagnósticos para desenvolvedores",
"enableNotifications": "Habilitar notificações",
"enableOrDisable2faForYour": "Habilite ou desabilite 2FA para sua conta com um aplicativo autenticador",
- "enableOrDisableOptionalFeatureAreas": "Habilite ou desabilite áreas de recursos opcionais (E-mail, WordPress, etc.)",
"enableOrDisableUserAccountAccess": "Habilitar ou desabilitar o acesso à conta do usuário",
"enableWhiteLabelModeAndReplace": "Habilite o modo de etiqueta em branco e substitua a marca do ServerKit",
"encryptionKey": "Chave de criptografia",
"enforce2faAcrossEveryAccount": "Aplique 2FA em todas as contas",
"extensionRegistryUrl": "URL de registro de extensão",
- "featureModules": "Módulos de recursos",
"generateSingleUseSignInUrls": "Gerar URLs de login de uso único para usuários",
"genericNotificationWebhook": "Webhook de notificação genérico",
"githubConnection": "Conexão GitHub",
diff --git a/frontend/src/i18n/locales/ru.json b/frontend/src/i18n/locales/ru.json
index cd281ef3..d56ef7c9 100644
--- a/frontend/src/i18n/locales/ru.json
+++ b/frontend/src/i18n/locales/ru.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Требуется доступ администратора.",
"aiAssistant": "ИИ-помощник",
"blockPromptInjectionAttempts": "Блокировать попытки быстрого внедрения",
- "configureTheInPanelAssistantPowered": "Настройте встроенного в панель помощника на базе Prompture. Ключ API хранится в зашифрованном виде и никогда не возвращается API.",
"enableAiAssistant": "Включить AI-помощника",
"perConversationCostCeilingUsd": "Максимальная стоимость разговора (долл. США)",
"redactPiiFromMessagesToolOutput": "Удаление личных данных из сообщений и выходных данных инструмента"
@@ -3343,7 +3342,6 @@
"botUsername": "Имя пользователя бота",
"channelOptional": "Канал (необязательно)",
"chatId": "Идентификатор чата",
- "chooseHowYouWantToReceive": "Выберите, как вы хотите получать уведомления",
"configureHowYouReceiveAlertsAnd": "Настройте способ получения оповещений и уведомлений",
"createAWebhookInDiscordServer": "Создайте вебхук в Discord: Настройки сервера → Интеграции → Вебхуки.",
"createAWebhookInYourPersonal": "Создайте вебхук на своем личном сервере или в канале DM.",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP-порт",
"smtpUsername": "Имя пользователя SMTP",
"startTime": "Время начала",
- "systemWebhooks": "Системные вебхуки",
"useTls": "Используйте TLS",
"useUserinfobotOrGetidsbotToFind": "Используйте @userinfobot или @getidsbot, чтобы найти свой идентификатор чата.",
"useUserinfobotToGetYourPersonal": "Используйте @userinfobot, чтобы получить свой личный идентификатор чата.",
@@ -4811,7 +4808,6 @@
"iconReference": "Справочник по значкам",
"localDev": "Локальный разработчик",
"migrations": "Миграции",
- "modules": "Модули",
"myAccount": "Мой счет",
"notifications": "Уведомления",
"preferences": "Предпочтения",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Включить инструменты разработчика и диагностику",
"enableNotifications": "Включить уведомления",
"enableOrDisable2faForYour": "Включите или отключите 2FA для вашей учетной записи с помощью приложения для аутентификации.",
- "enableOrDisableOptionalFeatureAreas": "Включите или отключите дополнительные функциональные области (электронная почта, WordPress и т. д.).",
"enableOrDisableUserAccountAccess": "Включить или отключить доступ к учетной записи пользователя",
"enableWhiteLabelModeAndReplace": "Включите режим белой этикетки и замените фирменную символику ServerKit.",
"encryptionKey": "Ключ шифрования",
"enforce2faAcrossEveryAccount": "Включите 2FA во всех учетных записях",
"extensionRegistryUrl": "URL-адрес реестра расширений",
- "featureModules": "Функциональные модули",
"generateSingleUseSignInUrls": "Создание одноразовых URL-адресов входа для пользователей.",
"genericNotificationWebhook": "Общий вебхук уведомлений",
"githubConnection": "Подключение к GitHub",
diff --git a/frontend/src/i18n/locales/th.json b/frontend/src/i18n/locales/th.json
index 6a21ed9d..0d28c9c5 100644
--- a/frontend/src/i18n/locales/th.json
+++ b/frontend/src/i18n/locales/th.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "จำเป็นต้องเข้าถึงระดับผู้ดูแลระบบ",
"aiAssistant": "ผู้ช่วยเอไอ",
"blockPromptInjectionAttempts": "บล็อกความพยายามในการฉีดพร้อมท์",
- "configureTheInPanelAssistantPowered": "กำหนดค่าผู้ช่วยในแผง — ขับเคลื่อนโดย Prompture คีย์ API จะถูกจัดเก็บแบบเข้ารหัสและไม่เคยส่งคืนโดย API",
"enableAiAssistant": "เปิดใช้งานผู้ช่วย AI",
"perConversationCostCeilingUsd": "เพดานค่าใช้จ่ายต่อการสนทนา (USD)",
"redactPiiFromMessagesToolOutput": "ปกปิด PII จากข้อความและเอาต์พุตของเครื่องมือ"
@@ -3343,7 +3342,6 @@
"botUsername": "ชื่อผู้ใช้บอท",
"channelOptional": "ช่อง (ไม่จำเป็น)",
"chatId": "รหัสแชท",
- "chooseHowYouWantToReceive": "เลือกวิธีที่คุณต้องการรับการแจ้งเตือน",
"configureHowYouReceiveAlertsAnd": "กำหนดค่าวิธีการรับการแจ้งเตือนและการแจ้งเตือน",
"createAWebhookInDiscordServer": "สร้าง webhook ใน Discord: การตั้งค่าเซิร์ฟเวอร์ → บูรณาการ → Webhooks",
"createAWebhookInYourPersonal": "สร้างเว็บฮุคในเซิร์ฟเวอร์ส่วนตัวหรือช่องทาง DM",
@@ -3379,7 +3377,6 @@
"smtpPort": "พอร์ต SMTP",
"smtpUsername": "ชื่อผู้ใช้ SMTP",
"startTime": "เวลาเริ่มต้น",
- "systemWebhooks": "เว็บฮุคของระบบ",
"useTls": "ใช้ TLS",
"useUserinfobotOrGetidsbotToFind": "ใช้ @userinfobot หรือ @getidsbot เพื่อค้นหา ID แชทของคุณ",
"useUserinfobotToGetYourPersonal": "ใช้ @userinfobot เพื่อรับ ID แชทส่วนตัวของคุณ",
@@ -4811,7 +4808,6 @@
"iconReference": "การอ้างอิงไอคอน",
"localDev": "นักพัฒนาท้องถิ่น",
"migrations": "การโยกย้าย",
- "modules": "โมดูล",
"myAccount": "บัญชีของฉัน",
"notifications": "การแจ้งเตือน",
"preferences": "การตั้งค่า",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "เปิดใช้งานเครื่องมือสำหรับนักพัฒนาและการวินิจฉัย",
"enableNotifications": "เปิดใช้งานการแจ้งเตือน",
"enableOrDisable2faForYour": "เปิดหรือปิดใช้งาน 2FA สำหรับบัญชีของคุณด้วยแอปตรวจสอบสิทธิ์",
- "enableOrDisableOptionalFeatureAreas": "เปิดหรือปิดใช้งานพื้นที่คุณสมบัติเสริม (อีเมล, WordPress ฯลฯ)",
"enableOrDisableUserAccountAccess": "เปิดหรือปิดการเข้าถึงบัญชีผู้ใช้",
"enableWhiteLabelModeAndReplace": "เปิดใช้งานโหมดไวท์เลเบลและแทนที่การสร้างแบรนด์ ServerKit",
"encryptionKey": "คีย์การเข้ารหัส",
"enforce2faAcrossEveryAccount": "บังคับใช้ 2FA ในทุกบัญชี",
"extensionRegistryUrl": "ส่วนขยายรีจิสทรี URL",
- "featureModules": "โมดูลคุณสมบัติ",
"generateSingleUseSignInUrls": "สร้าง URL การลงชื่อเข้าใช้แบบใช้ครั้งเดียวสำหรับผู้ใช้",
"genericNotificationWebhook": "เว็บฮุคการแจ้งเตือนทั่วไป",
"githubConnection": "การเชื่อมต่อ GitHub",
diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json
index 774b343a..523a35d6 100644
--- a/frontend/src/i18n/locales/tr.json
+++ b/frontend/src/i18n/locales/tr.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Yönetici erişimi gerekli.",
"aiAssistant": "Yapay Zeka Asistanı",
"blockPromptInjectionAttempts": "İstem ekleme girişimlerini engelle",
- "configureTheInPanelAssistantPowered": "Prompture tarafından desteklenen panel içi asistanı yapılandırın. API anahtarı şifrelenmiş olarak saklanır ve API tarafından asla döndürülmez.",
"enableAiAssistant": "AI asistanını etkinleştir",
"perConversationCostCeilingUsd": "Görüşme başına maliyet tavanı (USD)",
"redactPiiFromMessagesToolOutput": "Mesajlardan ve araç çıktılarından PII'yi çıkarın"
@@ -3343,7 +3342,6 @@
"botUsername": "Bot Kullanıcı Adı",
"channelOptional": "Kanal (isteğe bağlı)",
"chatId": "Sohbet Kimliği",
- "chooseHowYouWantToReceive": "Bildirimleri nasıl almak istediğinizi seçin",
"configureHowYouReceiveAlertsAnd": "Uyarıları ve bildirimleri nasıl alacağınızı yapılandırın",
"createAWebhookInDiscordServer": "Discord'da bir web kancası oluşturun: Sunucu Ayarları → Entegrasyonlar → Web Kancaları",
"createAWebhookInYourPersonal": "Kişisel sunucunuzda veya DM kanalınızda bir web kancası oluşturun",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP Bağlantı Noktası",
"smtpUsername": "SMTP Kullanıcı adı",
"startTime": "Başlangıç Zamanı",
- "systemWebhooks": "Sistem Web Kancaları",
"useTls": "TLS'yi kullanın",
"useUserinfobotOrGetidsbotToFind": "Sohbet kimliğinizi bulmak için @userinfobot veya @getidsbot kullanın",
"useUserinfobotToGetYourPersonal": "Kişisel sohbet kimliğinizi almak için @userinfobot'u kullanın",
@@ -4811,7 +4808,6 @@
"iconReference": "Simge Referansı",
"localDev": "Yerel Geliştirici",
"migrations": "Göçler",
- "modules": "Modüller",
"myAccount": "Hesabım",
"notifications": "Bildirimler",
"preferences": "Tercihler",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Geliştirici araçlarını ve teşhislerini etkinleştirin",
"enableNotifications": "Bildirimleri etkinleştir",
"enableOrDisable2faForYour": "Bir kimlik doğrulama uygulamasıyla hesabınız için 2FA'yı etkinleştirin veya devre dışı bırakın",
- "enableOrDisableOptionalFeatureAreas": "İsteğe bağlı özellik alanlarını etkinleştirin veya devre dışı bırakın (E-posta, WordPress, vb.)",
"enableOrDisableUserAccountAccess": "Kullanıcı hesabı erişimini etkinleştirme veya devre dışı bırakma",
"enableWhiteLabelModeAndReplace": "Beyaz etiket modunu etkinleştirin ve ServerKit markalamayı değiştirin",
"encryptionKey": "Şifreleme anahtarı",
"enforce2faAcrossEveryAccount": "Her hesapta 2FA'yı zorunlu kılın",
"extensionRegistryUrl": "Uzantı kaydı URL",
- "featureModules": "Özellik modülleri",
"generateSingleUseSignInUrls": "Kullanıcılar için tek kullanımlık oturum açma URL'ler oluşturun",
"genericNotificationWebhook": "Genel bildirim web kancası",
"githubConnection": "GitHub bağlantısı",
diff --git a/frontend/src/i18n/locales/vi.json b/frontend/src/i18n/locales/vi.json
index 5d6c48e0..da64cdff 100644
--- a/frontend/src/i18n/locales/vi.json
+++ b/frontend/src/i18n/locales/vi.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "Yêu cầu quyền truy cập của quản trị viên.",
"aiAssistant": "Trợ lý AI",
"blockPromptInjectionAttempts": "Chặn các nỗ lực tiêm nhắc nhở",
- "configureTheInPanelAssistantPowered": "Định cấu hình trợ lý trong bảng điều khiển - được cung cấp bởi Nhắc nhở. Khóa API được lưu trữ dưới dạng mã hóa và không bao giờ được API trả về.",
"enableAiAssistant": "Kích hoạt trợ lý AI",
"perConversationCostCeilingUsd": "Mức trần chi phí cho mỗi cuộc trò chuyện (USD)",
"redactPiiFromMessagesToolOutput": "Sắp xếp lại PII từ thông báo và đầu ra công cụ"
@@ -3343,7 +3342,6 @@
"botUsername": "Tên người dùng bot",
"channelOptional": "Kênh (tùy chọn)",
"chatId": "ID trò chuyện",
- "chooseHowYouWantToReceive": "Chọn cách bạn muốn nhận thông báo",
"configureHowYouReceiveAlertsAnd": "Định cấu hình cách bạn nhận thông báo và thông báo",
"createAWebhookInDiscordServer": "Tạo webhook trong Discord: Cài đặt máy chủ → Tích hợp → Webhooks",
"createAWebhookInYourPersonal": "Tạo webhook trong máy chủ cá nhân hoặc kênh DM của bạn",
@@ -3379,7 +3377,6 @@
"smtpPort": "Cổng SMTP",
"smtpUsername": "Tên người dùng SMTP",
"startTime": "Thời gian bắt đầu",
- "systemWebhooks": "Webhooks hệ thống",
"useTls": "Sử dụng TLS",
"useUserinfobotOrGetidsbotToFind": "Sử dụng @userinfobot hoặc @getidsbot để tìm ID trò chuyện của bạn",
"useUserinfobotToGetYourPersonal": "Sử dụng @userinfobot để nhận ID trò chuyện cá nhân của bạn",
@@ -4811,7 +4808,6 @@
"iconReference": "Tham khảo biểu tượng",
"localDev": "Nhà phát triển địa phương",
"migrations": "Di chuyển",
- "modules": "Mô-đun",
"myAccount": "Tài khoản của tôi",
"notifications": "Thông báo",
"preferences": "Tùy chọn",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "Bật công cụ và chẩn đoán dành cho nhà phát triển",
"enableNotifications": "Bật thông báo",
"enableOrDisable2faForYour": "Bật hoặc tắt 2FA cho tài khoản của bạn bằng ứng dụng xác thực",
- "enableOrDisableOptionalFeatureAreas": "Bật hoặc tắt các vùng tính năng tùy chọn (Email, WordPress, v.v.)",
"enableOrDisableUserAccountAccess": "Bật hoặc tắt quyền truy cập tài khoản người dùng",
"enableWhiteLabelModeAndReplace": "Bật chế độ nhãn trắng và thay thế nhãn hiệu ServerKit",
"encryptionKey": "Khóa mã hóa",
"enforce2faAcrossEveryAccount": "Thực thi 2FA trên mọi tài khoản",
"extensionRegistryUrl": "Sổ đăng ký mở rộng URL",
- "featureModules": "Mô-đun tính năng",
"generateSingleUseSignInUrls": "Tạo URL đăng nhập một lần cho người dùng",
"genericNotificationWebhook": "Webhook thông báo chung",
"githubConnection": "Kết nối GitHub",
diff --git a/frontend/src/i18n/locales/zh-Hans.json b/frontend/src/i18n/locales/zh-Hans.json
index 450d337e..58b46474 100644
--- a/frontend/src/i18n/locales/zh-Hans.json
+++ b/frontend/src/i18n/locales/zh-Hans.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "需要管理员访问权限。",
"aiAssistant": "AI 助手",
"blockPromptInjectionAttempts": "阻止提示注入尝试",
- "configureTheInPanelAssistantPowered": "配置面板内助手 — 由 Prompture 提供支持。 API 密钥以加密方式存储,并且 API 绝不会返回。",
"enableAiAssistant": "启用AI助手",
"perConversationCostCeilingUsd": "每次对话成本上限(美元)",
"redactPiiFromMessagesToolOutput": "从消息和工具输出中编辑 PII"
@@ -3343,7 +3342,6 @@
"botUsername": "机器人用户名",
"channelOptional": "频道(可选)",
"chatId": "聊天ID",
- "chooseHowYouWantToReceive": "选择您希望如何接收通知",
"configureHowYouReceiveAlertsAnd": "配置您接收警报和通知的方式",
"createAWebhookInDiscordServer": "在 Discord 中创建 Webhook:服务器设置 → 集成 → Webhooks",
"createAWebhookInYourPersonal": "在您的个人服务器或 DM 通道中创建 Webhook",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP 端口",
"smtpUsername": "SMTP 用户名",
"startTime": "开始时间",
- "systemWebhooks": "系统Webhook",
"useTls": "使用 TLS",
"useUserinfobotOrGetidsbotToFind": "使用 @userinfobot 或 @getidsbot 查找您的聊天 ID",
"useUserinfobotToGetYourPersonal": "使用@userinfobot获取您的个人聊天ID",
@@ -4811,7 +4808,6 @@
"iconReference": "图标参考",
"localDev": "本地开发",
"migrations": "迁移",
- "modules": "模块",
"myAccount": "我的账户",
"notifications": "通知",
"preferences": "偏好设置",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "启用开发人员工具和诊断",
"enableNotifications": "启用通知",
"enableOrDisable2faForYour": "使用身份验证器应用程序为您的帐户启用或禁用 2FA",
- "enableOrDisableOptionalFeatureAreas": "启用或禁用可选功能区域(电子邮件、WordPress 等)",
"enableOrDisableUserAccountAccess": "启用或禁用用户帐户访问",
"enableWhiteLabelModeAndReplace": "启用白标模式并替换 ServerKit 品牌",
"encryptionKey": "加密密钥",
"enforce2faAcrossEveryAccount": "在每个帐户中实施 2FA",
"extensionRegistryUrl": "扩展注册表 URL",
- "featureModules": "功能模块",
"generateSingleUseSignInUrls": "为用户生成一次性登录 URL",
"genericNotificationWebhook": "通用通知 Webhook",
"githubConnection": "GitHub 连接",
diff --git a/frontend/src/i18n/locales/zh-Hant.json b/frontend/src/i18n/locales/zh-Hant.json
index 87b88925..978d15d2 100644
--- a/frontend/src/i18n/locales/zh-Hant.json
+++ b/frontend/src/i18n/locales/zh-Hant.json
@@ -4,7 +4,6 @@
"adminAccessRequired": "需要管理員存取權限。",
"aiAssistant": "人工智慧助手",
"blockPromptInjectionAttempts": "阻止提示注入嘗試",
- "configureTheInPanelAssistantPowered": "配置面板內助理 — 由 Prompture 提供支援。 API 金鑰以加密方式存儲,並且不會由 API 傳回。",
"enableAiAssistant": "啟用AI助手",
"perConversationCostCeilingUsd": "每次對話成本上限(美元)",
"redactPiiFromMessagesToolOutput": "從訊息和工具輸出編輯 PII"
@@ -3343,7 +3342,6 @@
"botUsername": "機器人用戶名",
"channelOptional": "頻道(可選)",
"chatId": "聊天ID",
- "chooseHowYouWantToReceive": "選擇您希望如何接收通知",
"configureHowYouReceiveAlertsAnd": "配置您接收警報和通知的方式",
"createAWebhookInDiscordServer": "在 Discord 中建立 Webhook:伺服器設定 → 整合 → Webhooks",
"createAWebhookInYourPersonal": "在您的個人伺服器或 DM 頻道中建立 Webhook",
@@ -3379,7 +3377,6 @@
"smtpPort": "SMTP 端口",
"smtpUsername": "SMTP 用戶名",
"startTime": "開始時間",
- "systemWebhooks": "系統網路鉤子",
"useTls": "使用TLS",
"useUserinfobotOrGetidsbotToFind": "使用 @userinfobot 或 @getidsbot 尋找您的聊天 ID",
"useUserinfobotToGetYourPersonal": "使用@userinfobot來取得您的個人聊天ID",
@@ -4811,7 +4808,6 @@
"iconReference": "圖標參考",
"localDev": "本地開發",
"migrations": "遷移",
- "modules": "模組",
"myAccount": "我的帳戶",
"notifications": "通知",
"preferences": "偏好設定",
@@ -4907,13 +4903,11 @@
"enableDeveloperToolsAndDiagnostics": "啟用開發人員工具和診斷",
"enableNotifications": "啟用通知",
"enableOrDisable2faForYour": "使用身份驗證器應用程式為您的帳戶啟用或停用 2FA",
- "enableOrDisableOptionalFeatureAreas": "啟用或停用選用功能區域(電子郵件、WordPress 等)",
"enableOrDisableUserAccountAccess": "啟用或停用用戶帳戶訪問",
"enableWhiteLabelModeAndReplace": "啟用白標模式並取代 ServerKit 品牌",
"encryptionKey": "加密金鑰",
"enforce2faAcrossEveryAccount": "在每個帳戶中實施 2FA",
"extensionRegistryUrl": "擴充註冊表 URL",
- "featureModules": "功能模組",
"generateSingleUseSignInUrls": "為用戶產生一次性登入 URL",
"genericNotificationWebhook": "通用通知 Webhook",
"githubConnection": "GitHub 連接",
diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx
index b0fd8084..fe0857b6 100644
--- a/frontend/src/pages/Settings.jsx
+++ b/frontend/src/pages/Settings.jsx
@@ -20,7 +20,6 @@ import ApiSettingsTab from '../components/settings/ApiSettingsTab';
import MigrationHistoryTab from '../components/settings/MigrationHistoryTab';
import IconReferenceTab from '../components/settings/IconReferenceTab';
import AISettingsTab from '../components/settings/AISettingsTab';
-import ModulesTab from '../components/settings/ModulesTab';
import WebhooksTab from '../components/settings/WebhooksTab';
import AboutTab from '../components/settings/AboutTab';
import PluginSlot from '../components/PluginSlot';
@@ -28,15 +27,15 @@ import { Activity, Code, Database, Layers, Link2, PaintBucket, Sparkles, Trash2,
import { Button } from '@/components/ui/button';
import { SegControl } from '@/components/ds';
import PageLayout from '../layouts/PageLayout';
-import { useNavigate } from 'react-router-dom';
+import { useNavigate, useParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
-const VALID_TABS = ['profile', 'security', 'connections', 'appearance', 'sidebar', 'whitelabel', 'notifications', 'system', 'users', 'activity', 'site', 'sso', 'api', 'webhooks', 'ai', 'modules', 'migrations', 'recyclebin', 'developer', 'about'];
+const VALID_TABS = ['profile', 'security', 'connections', 'appearance', 'sidebar', 'whitelabel', 'notifications', 'system', 'users', 'activity', 'site', 'sso', 'api', 'webhooks', 'ai', 'migrations', 'recyclebin', 'developer', 'about'];
// Tabs that belong to the server-wide "Administration" group (admin-only); the
// rest are personal "My Account" settings. Drives the two-way section switch so
// personal prefs aren't interleaved with destructive system controls.
-const ADMIN_TABS = ['users', 'activity', 'site', 'connections', 'sso', 'api', 'webhooks', 'ai', 'modules', 'migrations', 'recyclebin', 'system', 'developer'];
+const ADMIN_TABS = ['users', 'activity', 'site', 'connections', 'sso', 'api', 'webhooks', 'ai', 'migrations', 'recyclebin', 'system', 'developer'];
const Settings = () => {
const { t } = useTranslation();
@@ -44,10 +43,15 @@ const Settings = () => {
const { isAdmin } = useAuth();
const [devMode, setDevMode] = useState(false);
const navigate = useNavigate();
+ const { tab: requestedTab } = useParams();
// Which top-level settings group is showing. Derived from the active tab so
// deep links (e.g. /settings/users) open the right group; non-admins only
// ever see "My Account", so any admin tab collapses back to it for them.
+ useEffect(() => {
+ if (requestedTab === 'modules') navigate('/marketplace', { replace: true });
+ }, [requestedTab, navigate]);
+
const activeGroup = isAdmin && ADMIN_TABS.includes(activeTab) ? 'admin' : 'account';
useEffect(() => {
@@ -264,14 +268,6 @@ const Settings = () => {
<Sparkles size={18} />
{t('app.settings.aiAssistant', 'AI Assistant')}
</Button>
- <Button
- variant="ghost"
- className={`settings-nav-item ${activeTab === 'modules' ? 'active' : ''}`}
- onClick={() => setActiveTab('modules')}
- >
- <Layers size={18} />
- {t('app.settings.modules', 'Modules')}
- </Button>
<Button
variant="ghost"
className={`settings-nav-item ${activeTab === 'migrations' ? 'active' : ''}`}
@@ -339,7 +335,6 @@ const Settings = () => {
{activeTab === 'api' && isAdmin && <ApiSettingsTab />}
{activeTab === 'webhooks' && isAdmin && <WebhooksTab />}
{activeTab === 'ai' && isAdmin && <AISettingsTab />}
- {activeTab === 'modules' && isAdmin && <ModulesTab />}
{activeTab === 'migrations' && isAdmin && <MigrationHistoryTab />}
{activeTab === 'system' && isAdmin && <SystemTab />}
{activeTab === 'developer' && devMode && isAdmin && <IconReferenceTab />}
diff --git a/frontend/src/styles/_mixins.scss b/frontend/src/styles/_mixins.scss
index 5ee04352..b7695941 100644
--- a/frontend/src/styles/_mixins.scss
+++ b/frontend/src/styles/_mixins.scss
@@ -97,7 +97,7 @@
width: 100%;
padding: $space-3 $space-4;
background: $bg-body;
- border: 1px solid $border-subtle;
+ border: 1px solid $border-default;
border-radius: $radius-lg;
color: $text-primary;
font-size: $font-size-base;
diff --git a/frontend/src/styles/components/_api-settings.scss b/frontend/src/styles/components/_api-settings.scss
index 1a80a327..745972c8 100644
--- a/frontend/src/styles/components/_api-settings.scss
+++ b/frontend/src/styles/components/_api-settings.scss
@@ -6,6 +6,10 @@
display: flex;
flex-direction: column;
gap: $space-6;
+
+ .settings-card__header { align-items: center; flex-wrap: wrap; }
+ .api-settings__revoke { color: $danger; }
+ .stat-strip__item { background: $bg-body; }
}
// ─── Tables ────────────────────────────────────────────
diff --git a/frontend/src/styles/components/_empty-state.scss b/frontend/src/styles/components/_empty-state.scss
index 80522d3a..f8ff6382 100644
--- a/frontend/src/styles/components/_empty-state.scss
+++ b/frontend/src/styles/components/_empty-state.scss
@@ -30,6 +30,7 @@
// When nested inside a card, drop the card-in-card double background.
.card &,
+ .settings-card &,
.card-body & {
background: transparent;
border: none;
diff --git a/frontend/src/styles/components/_forms.scss b/frontend/src/styles/components/_forms.scss
index 53e07824..0431d044 100644
--- a/frontend/src/styles/components/_forms.scss
+++ b/frontend/src/styles/components/_forms.scss
@@ -68,10 +68,25 @@ display: grid;
}
&__control {
- // Ensure shadcn inputs, selects, textareas fill the width.
- > * {
+ // Native controls and component controls share the same field contract.
+ // Exclude checkboxes/radios and buttons: their intrinsic size matters.
+ > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not(.ui-input),
+ > select,
+ > textarea:not(.ui-textarea) {
+ @include input-base();
+ }
+
+ > input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
+ > select,
+ > textarea,
+ > .ui-select-trigger {
width: 100%;
}
+
+ > select { cursor: pointer; }
+
+ > input[type="checkbox"],
+ > input[type="radio"] { accent-color: $accent-primary; }
}
&__hint {
@@ -224,10 +239,18 @@ display: flex;
.settings-form {
margin-bottom: 0;
- background: transparent;
- border: none;
- border-radius: 0;
- padding: 0;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ // Forms already inside a card inherit its surface and spacing.
+ .settings-card & {
+ background: transparent;
+ border: 0;
+ border-radius: 0;
+ padding: 0;
+ }
.form-group {
margin-bottom: $space-4;
@@ -248,7 +271,7 @@ display: flex;
width: 100%;
padding: $space-3;
background: $bg-hover;
- border: 1px solid $border-subtle;
+ border: 1px solid $border-default;
border-radius: $radius-md;
color: $text-primary;
font-size: $font-size-sm;
diff --git a/frontend/src/styles/components/_global-statusbar.scss b/frontend/src/styles/components/_global-statusbar.scss
index e347c770..8b0924d4 100644
--- a/frontend/src/styles/components/_global-statusbar.scss
+++ b/frontend/src/styles/components/_global-statusbar.scss
@@ -13,11 +13,10 @@
gap: 2px;
padding-inline: 6px;
border-block-start: 1px solid var(--border-soft);
- background: color-mix(in srgb, var(--surface) 96%, var(--bg-body));
+ background: var(--bg-sidebar);
color: var(--text-faint);
font-family: $font-main;
font-size: 11.5px;
- box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
&__segment,
.statusbar-select {
diff --git a/frontend/src/styles/components/_notifications.scss b/frontend/src/styles/components/_notifications.scss
index a276a273..ec5d8b8b 100644
--- a/frontend/src/styles/components/_notifications.scss
+++ b/frontend/src/styles/components/_notifications.scss
@@ -2,50 +2,6 @@
// NOTIFICATION SETTINGS STYLES
// ============================================
-// Notification Tabs
-.notification-tabs {
- display: flex;
- gap: $space-2;
- margin-bottom: $space-6;
- padding-bottom: $space-4;
- border-bottom: 1px solid $border-subtle;
-}
-
-.notification-tab {
- display: flex;
- align-items: center;
- gap: $space-2;
- padding: $space-3 $space-4;
- background: transparent;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- color: $text-secondary;
- font-size: $font-size-sm;
- font-weight: $font-weight-medium;
- cursor: pointer;
- transition: all $transition-fast;
-
- svg {
- stroke-width: 2;
- }
-
- &:hover {
- background: $bg-hover;
- border-color: $border-default;
- color: $text-primary;
- }
-
- &.active {
- background: $accent-glow;
- border-color: $accent-primary;
- color: $accent-primary;
-
- svg {
- stroke: $accent-primary;
- }
- }
-}
-
// User Notification Preferences
.user-notification-prefs {
display: flex;
@@ -79,46 +35,31 @@
}
.channel-toggles,
-.category-toggles {
- display: flex;
- flex-wrap: wrap;
+.category-toggles,
+.severity-toggles {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
gap: $space-3;
}
.channel-toggle,
-.category-toggle {
+.category-toggle,
+.severity-toggle {
display: flex;
align-items: center;
- gap: $space-2;
- padding: $space-2 $space-3;
+ gap: $space-3;
+ padding: $space-3;
background: $bg-card;
- border: 1px solid $border-subtle;
+ border: 1px solid $border-default;
border-radius: $radius-md;
cursor: pointer;
- transition: all $transition-fast;
-
- input[type="checkbox"] {
- accent-color: $accent-primary;
- }
-
- span {
- font-size: $font-size-sm;
- color: $text-secondary;
- }
-
- &:hover {
- background: $bg-hover;
- border-color: $border-default;
- }
-
- &:has(input:checked) {
- background: $accent-glow;
- border-color: fade($accent-primary-raw, 40%);
+ color: $text-primary;
+ font-size: $font-size-sm;
- span {
- color: $text-primary;
- }
- }
+ .form-group & { display: flex; margin-bottom: 0; color: $text-primary; }
+ > span { flex: 1; order: -1; }
+ &:hover { background: $bg-hover; }
+ &:focus-within { border-color: $accent-primary; }
}
.notification-channels {
@@ -140,6 +81,7 @@
}
.channel-header {
+ @include focus-ring();
display: flex;
align-items: center;
gap: $space-4;
@@ -205,7 +147,7 @@
.channel-config {
padding: $space-6;
border-top: 1px solid $border-subtle;
- background: $bg-body;
+ background: $bg-card;
}
.toggle-switch-label {
@@ -218,65 +160,6 @@
}
}
-.severity-toggles {
- display: flex;
- flex-wrap: wrap;
- gap: $space-2;
-}
-
-.severity-toggle {
- display: flex;
- align-items: center;
- gap: $space-1;
- padding: $space-1 $space-2;
- border-radius: $radius-sm;
- background: $bg-hover;
- cursor: pointer;
- transition: all 0.2s;
- font-size: $font-size-sm;
-
- input {
- display: none;
- }
-
- span {
- padding: 2px $space-1;
- border-radius: $radius-sm;
- }
-
- &.critical span {
- background: fade($danger-raw, 20%);
- color: $danger;
- }
-
- &.warning span {
- background: fade($warning-raw, 20%);
- color: $warning;
- }
-
- &.info span {
- background: fade($accent-primary-raw, 20%);
- color: $accent-primary;
- }
-
- &.success span {
- background: fade($success-raw, 20%);
- color: $success;
- }
-
- input:checked + span {
- font-weight: 600;
- }
-
- &:has(input:not(:checked)) {
- opacity: 0.5;
- }
-
- &:hover {
- opacity: 1;
- }
-}
-
.channel-actions {
display: flex;
justify-content: flex-end;
diff --git a/frontend/src/styles/components/_ui.scss b/frontend/src/styles/components/_ui.scss
index 88fd75bd..b98ff2e6 100644
--- a/frontend/src/styles/components/_ui.scss
+++ b/frontend/src/styles/components/_ui.scss
@@ -41,7 +41,7 @@
width: 100%;
padding: 0 $space-3 + 1; // 13px
background: $bg-body;
- border: 1px solid $border-subtle;
+ border: 1px solid $border-default;
border-radius: $radius-lg;
color: $text-primary;
font-family: inherit;
diff --git a/frontend/src/styles/layout/_sidebar.scss b/frontend/src/styles/layout/_sidebar.scss
index 28aaa041..da6be3a9 100644
--- a/frontend/src/styles/layout/_sidebar.scss
+++ b/frontend/src/styles/layout/_sidebar.scss
@@ -6,7 +6,7 @@
width: $sidebar-width;
// Subtle top→bottom gradient (theme-aware: dark rail in dark mode, light in
// light mode). Redesign "infra console" look — see docs/REDESIGN_MAP.md §2.
- background: linear-gradient(180deg, var(--bg-sidebar), var(--bg-body));
+ background: var(--bg-sidebar);
border-right: 1px solid $border-subtle;
display: flex;
flex-direction: column;
diff --git a/frontend/src/styles/pages/_settings.scss b/frontend/src/styles/pages/_settings.scss
index 6effe9ac..7bc55481 100644
--- a/frontend/src/styles/pages/_settings.scss
+++ b/frontend/src/styles/pages/_settings.scss
@@ -85,7 +85,7 @@
}
&.active {
- @include status-variant(var(--accent-bright), var(--accent-bg));
+ @include status-variant(var(--text-primary), var(--accent-bg));
}
}
@@ -122,7 +122,7 @@
}
&.active {
- @include status-variant(var(--accent-bright), var(--accent-bg));
+ @include status-variant(var(--text-primary), var(--accent-bg));
svg {
stroke: var(--accent-bright);
@@ -145,6 +145,10 @@
.settings-content {
min-width: 0;
+ // Status is carried by the tint and border; copy keeps readable contrast.
+ .alert { color: $text-primary; }
+ .settings-card > .form-group:last-child { margin-bottom: 0; }
+
// Settings panes used to drop their table straight onto the page
// background, so a tab read as unfinished next to /servers or /services —
// those sit their grid on a panel (`.wp-list__card`). Same panel, declared
@@ -774,6 +778,18 @@
display: flex;
gap: $space-2;
margin-top: $space-3;
+
+ &--footer {
+ justify-content: flex-end;
+ flex-wrap: wrap;
+ gap: $space-3;
+ padding-top: $space-4;
+ border-top: 1px solid $border-default;
+
+ @media (max-width: $breakpoint-sm) {
+ > .btn { flex: 1 1 100%; }
+ }
+ }
}
.invite-result-note {
@@ -2533,7 +2549,13 @@
}
// Semantic layouts and controls; declarations preserved from the legacy compatibility layer.
-.settings-notification-option { display: flex; align-items: center; gap: 0.75rem; }
+.settings-notification-option {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ > .ui-switch { order: 1; }
+ > .ui-label { flex: 1; margin-bottom: 0; line-height: 1.5; }
+}
.settings-site-action-label { display: flex; align-items: center; gap: 0.5rem; }
.settings-webhook-actions { text-align: right; }
.settings-webhook-action-icon { margin-inline-end: 0.5rem; }
@@ -2545,3 +2567,33 @@
.settings-webhook-name { font-weight: $font-weight-medium; }
.settings-webhook-form > * + * { margin-top: 1rem; }
.settings-webhook-secret-field > * + * { margin-top: 0.5rem; }
+
+// Connection editor: one surface, grouped credentials, responsive model browser.
+.ai-connections {
+ .form-row > * { min-width: 0; }
+ &__fields {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: $space-4;
+ @media (max-width: $breakpoint-sm) { grid-template-columns: 1fr; }
+ }
+ .settings-actions { flex-wrap: wrap; margin-top: $space-4; }
+}
+
+.sk-model-picker {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ > .ui-input { min-width: 0; flex: 1; }
+ > button { flex-shrink: 0; }
+ &__menu {
+ width: min(520px, calc(100vw - 32px));
+ padding: 0;
+ }
+ &__name { flex: 1; overflow-wrap: anywhere; font-family: $font-mono; }
+ @media (max-width: $breakpoint-sm) {
+ flex-direction: column;
+ align-items: stretch;
+ > .ui-input { flex: auto; }
+ }
+}