diff --git a/apps/smart-ssh-community/frontend/e2e/tests/add-ai-provider-dialog.spec.ts b/apps/smart-ssh-community/frontend/e2e/tests/add-ai-provider-dialog.spec.ts index 54b415c71..a91ccfd20 100644 --- a/apps/smart-ssh-community/frontend/e2e/tests/add-ai-provider-dialog.spec.ts +++ b/apps/smart-ssh-community/frontend/e2e/tests/add-ai-provider-dialog.spec.ts @@ -34,3 +34,25 @@ test("add provider dialog: title and actions usable, body scrolls, focus returns await expect(page.getByRole("button", { name: "AI Provider", exact: true })).toBeVisible(); await expect(addButton).toBeFocused(); }); + +// Issue #1377: the add action sits in the section header and the dialog fields use `Field`. +test("add provider: header button is reachable, dialog fields have accessible names", async ({ app }) => { + await app.launch(populated()); + const page = app.page; + await page.getByRole("button", { name: "Settings", exact: true }).click(); + await page.getByRole("button", { name: "AI Provider", exact: true }).click(); + const addButton = page.getByRole("button", { name: "Add Provider", exact: true }); + await expect(addButton).toHaveCount(1); + await addButton.focus(); + await expect(addButton).toBeFocused(); + await page.keyboard.press("Enter"); + + const dialog = page.getByRole("dialog", { name: "Add Provider" }); + await expect(dialog).toBeVisible(); + for (const name of ["Name", "API Key"]) { + await expect(dialog.getByLabel(name, { exact: false }).first()).toBeVisible(); + } + await expect(dialog.getByRole("combobox").first()).toBeVisible(); + await dialog.getByRole("button", { name: /Advanced/ }).click(); + await expect(dialog.getByLabel(/Max. response length/).first()).toBeVisible(); +}); diff --git a/apps/smart-ssh-community/frontend/e2e/tests/ai-mcp-rules-review.spec.ts b/apps/smart-ssh-community/frontend/e2e/tests/ai-mcp-rules-review.spec.ts index 4dcae50ea..a4d61a339 100644 --- a/apps/smart-ssh-community/frontend/e2e/tests/ai-mcp-rules-review.spec.ts +++ b/apps/smart-ssh-community/frontend/e2e/tests/ai-mcp-rules-review.spec.ts @@ -70,7 +70,11 @@ for (const category of ["AI Provider", "MCP Server"]) { await settings.getByRole("button", { name: "Add Provider", exact: true }).click(); const add = page.getByRole("dialog", { name: "Add Provider" }); await add.getByRole("button", { name: /Advanced/ }).click(); + // The visual-order check reads unscrolled positions, so the open + // advanced section must fit without scrolling the dialog body. await add.getByRole("button", { name: "+ Header", exact: true }).click(); + const size = page.viewportSize(); + if (size && size.width >= 1000) await page.setViewportSize({ width: size.width, height: 1000 }); await expectTabOrderFollowsVisualOrder(page, add); await expectNoClippedText(add); }); @@ -110,3 +114,34 @@ test("filter rules: Tab order, edit form and test panel, long values", async ({ await expectNoClippedText(ruleDialog); await captureScreen(page, "filter-rules-edit"); }); + +// Issue #1377: both risk switches have accessible names, sit in the Tab order +// after the provider list and toggle with the keyboard. +test("settings: AI Provider risk switches are labelled, in Tab order and toggle", async ({ app }) => { + await app.launch({ + ...longContent(), + commands: { + ...longContent().commands, + set_risk_second_opinion_settings: { result: null }, + set_red_risk_always_confirm: { result: null }, + }, + }); + const page = app.page; + const dialog = await openSettings(page, "AI Provider"); + const second = dialog.getByRole("checkbox", { name: "Enable AI second opinion" }); + const red = dialog.getByRole("checkbox", { name: "Always confirm on red risk" }); + await expect(second).toBeVisible(); + await expect(red).toBeVisible(); + const before = await second.isChecked(); + await second.focus(); + await expect(second).toBeFocused(); + await page.keyboard.press("Space"); + await expect(second).toBeChecked({ checked: !before }); + await page.keyboard.press("Tab"); + // Focus moved on (not lost to body) and eventually reaches the second switch. + await expect(page.locator("body")).not.toBeFocused(); + const redBefore = await red.isChecked(); + await red.focus(); + await page.keyboard.press("Space"); + await expect(red).toBeChecked({ checked: !redBefore }); +}); diff --git a/apps/smart-ssh-community/frontend/e2e/tests/ai-provider-screens.spec.ts b/apps/smart-ssh-community/frontend/e2e/tests/ai-provider-screens.spec.ts new file mode 100644 index 000000000..bee8425aa --- /dev/null +++ b/apps/smart-ssh-community/frontend/e2e/tests/ai-provider-screens.spec.ts @@ -0,0 +1,31 @@ +// Issue #1377: review screenshots of the AI Provider settings and the add-provider dialog +// (SCREENSHOT_LABEL=before|after, SCREENSHOT_SCHEME=dark). +import { expect, openSettings, test } from "../support/app"; +import { aiProvider, populated } from "../support/data"; +import { captureScreen } from "../support/screenshots"; + +const scheme = process.env.SCREENSHOT_SCHEME === "dark" ? "dark" : "light"; + +test("review screenshots: AI provider settings and add dialog", async ({ app }) => { + await app.launch({ + ...populated(), + commands: { set_risk_second_opinion_settings: { result: null } }, + aiProviders: [ + aiProvider({ id: "p-1", displayName: "Primary", providerType: "generic_openai_compatible", baseUrl: "https://llm.example.com/v1", isActive: true }), + aiProvider({ id: "p-2", displayName: "Backup", baseUrl: null, isActive: false }), + ], + }); + const page = app.page; + if (scheme === "dark") await page.emulateMedia({ colorScheme: "dark" }); + const dialog = await openSettings(page, "AI Provider"); + await expect(dialog.getByText("Primary").first()).toBeVisible(); + const second = dialog.getByRole("checkbox", { name: /second opinion/i }).first(); + await second.check({ force: true }); + await captureScreen(page, `settings-aiprovider-${scheme}`); + + await dialog.getByRole("button", { name: "Add Provider", exact: true }).click(); + const add = page.getByRole("dialog", { name: "Add Provider" }); + await expect(add).toBeVisible(); + await add.getByRole("button", { name: /Advanced/ }).click(); + await captureScreen(page, `add-provider-dialog-${scheme}`); +}); diff --git a/apps/smart-ssh-community/frontend/src/components/AddAiProviderDialog.tsx b/apps/smart-ssh-community/frontend/src/components/AddAiProviderDialog.tsx index 04cced628..9cf9ef88a 100644 --- a/apps/smart-ssh-community/frontend/src/components/AddAiProviderDialog.tsx +++ b/apps/smart-ssh-community/frontend/src/components/AddAiProviderDialog.tsx @@ -9,7 +9,7 @@ import { testAiProviderCredentials, updateAiProvider, } from "../api/api"; -import { Button, Icon } from "./ui"; +import { Button, Field, Icon } from "./ui"; import { DialogFrame } from "./ui/DialogFrame"; import { commandErrorText, translateErrorCode } from "../api/errorCodes"; import { effectiveApiKey, OLLAMA_BASE_URL } from "../lib/ollama"; @@ -29,7 +29,7 @@ import { sameDiscoveryInputs, shouldAutoDiscover, } from "../lib/modelDiscoveryTrigger"; -import { CARD_CLASS, FIELD_CLASS, LABEL_CLASS, LABEL_TEXT_CLASS } from "./aiProviderFormStyles"; +import { CARD_CLASS, FIELD_CLASS } from "./aiProviderFormStyles"; const PROVIDER_TYPES: ProviderType[] = [ "openai", @@ -315,9 +315,10 @@ export function AddAiProviderDialog({
)}{t("aiProvider.redRiskAlwaysConfirmHint")}
-{t("aiProvider.redRiskAlwaysConfirmHint")}
+{t("aiProvider.ollamaProbeFoundHeading")}
-{providers.some((p) => p.isActive) ? t("aiProvider.ollamaProbeFoundHintInactive") diff --git a/apps/smart-ssh-community/frontend/src/components/aiProviderFormStyles.ts b/apps/smart-ssh-community/frontend/src/components/aiProviderFormStyles.ts index 2ea95b885..c5122f1a6 100644 --- a/apps/smart-ssh-community/frontend/src/components/aiProviderFormStyles.ts +++ b/apps/smart-ssh-community/frontend/src/components/aiProviderFormStyles.ts @@ -25,7 +25,5 @@ import { FIELD_CONTROL_CLASS } from "./ui"; * `font: inherit`) — Nutzereingaben erschienen halbfett. Der Text-Stil * liegt jetzt auf einem separaten `` um den Label-Text, nicht mehr * auf dem Label-Element. */ -export const CARD_CLASS = "rounded-lg border border-border bg-surface/40 p-4"; -export const LABEL_CLASS = "block text-sm"; -export const LABEL_TEXT_CLASS = "font-medium text-fg-soft"; +export const CARD_CLASS = "border border-border bg-surface/40 p-4"; export const FIELD_CLASS = FIELD_CONTROL_CLASS; diff --git a/apps/smart-ssh-community/frontend/src/locales/cs/common.json b/apps/smart-ssh-community/frontend/src/locales/cs/common.json index 2c4e592a7..936744d82 100644 --- a/apps/smart-ssh-community/frontend/src/locales/cs/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/cs/common.json @@ -584,6 +584,7 @@ "ollamaProbeRetry": "Hledat znovu", "ollamaProbeNotFoundHeading": "Lokální Ollama nenalezena (výchozí port 11434).", "ollamaProbeNotFoundInstructions": "Nainstalujte Ollamu z ollama.com, spusťte ji a načtěte model (např. `ollama pull llama3`), poté hledejte znovu.", + "typeLabel": "Typ", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/da/common.json b/apps/smart-ssh-community/frontend/src/locales/da/common.json index 0e8bb15b1..3c150222e 100644 --- a/apps/smart-ssh-community/frontend/src/locales/da/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/da/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Søg igen", "ollamaProbeNotFoundHeading": "Ingen lokal Ollama fundet (standardport 11434).", "ollamaProbeNotFoundInstructions": "Installér Ollama fra ollama.com, start den og indlæs en model (f.eks. `ollama pull llama3`), og søg derefter igen.", + "typeLabel": "Slags", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/de/common.json b/apps/smart-ssh-community/frontend/src/locales/de/common.json index 369deaa91..e3f4d562b 100644 --- a/apps/smart-ssh-community/frontend/src/locales/de/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/de/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Erneut suchen", "ollamaProbeNotFoundHeading": "Kein lokales Ollama gefunden (Standard-Port 11434).", "ollamaProbeNotFoundInstructions": "Ollama von ollama.com installieren, starten und ein Modell laden (z. B. `ollama pull llama3`), dann erneut suchen.", + "typeLabel": "Typ", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/el/common.json b/apps/smart-ssh-community/frontend/src/locales/el/common.json index 52df3a988..df27d330c 100644 --- a/apps/smart-ssh-community/frontend/src/locales/el/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/el/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Νέα αναζήτηση", "ollamaProbeNotFoundHeading": "Δεν βρέθηκε τοπικό Ollama (προεπιλεγμένη θύρα 11434).", "ollamaProbeNotFoundInstructions": "Εγκαταστήστε το Ollama από το ollama.com, ξεκινήστε το και φορτώστε ένα μοντέλο (π.χ. `ollama pull llama3`) και μετά αναζητήστε ξανά.", + "typeLabel": "Τύπος", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/en/common.json b/apps/smart-ssh-community/frontend/src/locales/en/common.json index ac3c62262..6f661c862 100644 --- a/apps/smart-ssh-community/frontend/src/locales/en/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/en/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Search again", "ollamaProbeNotFoundHeading": "No local Ollama found (default port 11434).", "ollamaProbeNotFoundInstructions": "Install Ollama from ollama.com, start it and load a model (e.g. `ollama pull llama3`), then search again.", + "typeLabel": "Type", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/es/common.json b/apps/smart-ssh-community/frontend/src/locales/es/common.json index 1576e9d9f..3cd84480d 100644 --- a/apps/smart-ssh-community/frontend/src/locales/es/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/es/common.json @@ -582,6 +582,7 @@ "ollamaProbeRetry": "Buscar de nuevo", "ollamaProbeNotFoundHeading": "No se encontró ningún Ollama local (puerto predeterminado 11434).", "ollamaProbeNotFoundInstructions": "Instale Ollama desde ollama.com, inícielo y cargue un modelo (p. ej. `ollama pull llama3`); después vuelva a buscar.", + "typeLabel": "Tipo", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/fi/common.json b/apps/smart-ssh-community/frontend/src/locales/fi/common.json index 276b3af92..ec5568aaa 100644 --- a/apps/smart-ssh-community/frontend/src/locales/fi/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/fi/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Etsi uudelleen", "ollamaProbeNotFoundHeading": "Paikallista Ollamaa ei löytynyt (oletusportti 11434).", "ollamaProbeNotFoundInstructions": "Asenna Ollama osoitteesta ollama.com, käynnistä se ja lataa malli (esim. `ollama pull llama3`), ja etsi sitten uudelleen.", + "typeLabel": "Tyyppi", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/fr/common.json b/apps/smart-ssh-community/frontend/src/locales/fr/common.json index 3559a0d87..9a2da7a3a 100644 --- a/apps/smart-ssh-community/frontend/src/locales/fr/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/fr/common.json @@ -582,6 +582,7 @@ "ollamaProbeRetry": "Rechercher à nouveau", "ollamaProbeNotFoundHeading": "Aucun Ollama local trouvé (port par défaut 11434).", "ollamaProbeNotFoundInstructions": "Installez Ollama depuis ollama.com, démarrez-le et chargez un modèle (p. ex. `ollama pull llama3`), puis relancez la recherche.", + "typeLabel": "Genre", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/hi/common.json b/apps/smart-ssh-community/frontend/src/locales/hi/common.json index 87c65b3e2..82a490bd8 100644 --- a/apps/smart-ssh-community/frontend/src/locales/hi/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/hi/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "फिर खोजें", "ollamaProbeNotFoundHeading": "कोई स्थानीय Ollama नहीं मिला (डिफ़ॉल्ट पोर्ट 11434)।", "ollamaProbeNotFoundInstructions": "ollama.com से Ollama इंस्टॉल करें, उसे शुरू करें और एक मॉडल लोड करें (जैसे `ollama pull llama3`), फिर दोबारा खोजें।", + "typeLabel": "प्रकार", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/hu/common.json b/apps/smart-ssh-community/frontend/src/locales/hu/common.json index 6e9e49f95..ba0a491db 100644 --- a/apps/smart-ssh-community/frontend/src/locales/hu/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/hu/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Keresés újra", "ollamaProbeNotFoundHeading": "Nem található helyi Ollama (alapértelmezett port: 11434).", "ollamaProbeNotFoundInstructions": "Telepítse az Ollamát az ollama.com oldalról, indítsa el, töltsön be egy modellt (pl. `ollama pull llama3`), majd keressen újra.", + "typeLabel": "Típus", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/id/common.json b/apps/smart-ssh-community/frontend/src/locales/id/common.json index 529d4474a..36f48387c 100644 --- a/apps/smart-ssh-community/frontend/src/locales/id/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/id/common.json @@ -578,6 +578,7 @@ "ollamaProbeRetry": "Cari lagi", "ollamaProbeNotFoundHeading": "Ollama lokal tidak ditemukan (port default 11434).", "ollamaProbeNotFoundInstructions": "Instal Ollama dari ollama.com, jalankan, dan muat model (mis. `ollama pull llama3`), lalu cari lagi.", + "typeLabel": "Jenis", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/it/common.json b/apps/smart-ssh-community/frontend/src/locales/it/common.json index 69d05c63c..bd405a2e1 100644 --- a/apps/smart-ssh-community/frontend/src/locales/it/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/it/common.json @@ -582,6 +582,7 @@ "ollamaProbeRetry": "Cerca di nuovo", "ollamaProbeNotFoundHeading": "Nessun Ollama locale trovato (porta predefinita 11434).", "ollamaProbeNotFoundInstructions": "Installi Ollama da ollama.com, lo avvii e carichi un modello (ad es. `ollama pull llama3`), poi cerchi di nuovo.", + "typeLabel": "Tipo", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/ja/common.json b/apps/smart-ssh-community/frontend/src/locales/ja/common.json index 171f7099c..068b647a7 100644 --- a/apps/smart-ssh-community/frontend/src/locales/ja/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/ja/common.json @@ -578,6 +578,7 @@ "ollamaProbeRetry": "再検索", "ollamaProbeNotFoundHeading": "ローカルのOllamaが見つかりません(既定のポート 11434)。", "ollamaProbeNotFoundInstructions": "ollama.comからOllamaをインストールして起動し、モデルを読み込んで(例: `ollama pull llama3`)から、もう一度検索してください。", + "typeLabel": "種類", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/ko/common.json b/apps/smart-ssh-community/frontend/src/locales/ko/common.json index 3058f2d9b..e7d7be37f 100644 --- a/apps/smart-ssh-community/frontend/src/locales/ko/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/ko/common.json @@ -578,6 +578,7 @@ "ollamaProbeRetry": "다시 검색", "ollamaProbeNotFoundHeading": "로컬 Ollama를 찾을 수 없습니다(기본 포트 11434).", "ollamaProbeNotFoundInstructions": "ollama.com에서 Ollama를 설치하고 실행한 뒤 모델을 받고(예: `ollama pull llama3`) 다시 검색하십시오.", + "typeLabel": "유형", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/nb/common.json b/apps/smart-ssh-community/frontend/src/locales/nb/common.json index c8077e97e..83a45dfc0 100644 --- a/apps/smart-ssh-community/frontend/src/locales/nb/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/nb/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Søk igjen", "ollamaProbeNotFoundHeading": "Ingen lokal Ollama funnet (standardport 11434).", "ollamaProbeNotFoundInstructions": "Installer Ollama fra ollama.com, start den og last en modell (f.eks. `ollama pull llama3`), og søk deretter igjen.", + "typeLabel": "Sort", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/nl/common.json b/apps/smart-ssh-community/frontend/src/locales/nl/common.json index cbe718f5c..345bb3120 100644 --- a/apps/smart-ssh-community/frontend/src/locales/nl/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/nl/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Opnieuw zoeken", "ollamaProbeNotFoundHeading": "Geen lokale Ollama gevonden (standaardpoort 11434).", "ollamaProbeNotFoundInstructions": "Installeer Ollama van ollama.com, start het en laad een model (bijv. `ollama pull llama3`), en zoek daarna opnieuw.", + "typeLabel": "Type", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/pl/common.json b/apps/smart-ssh-community/frontend/src/locales/pl/common.json index 783271efb..eba2aa3b5 100644 --- a/apps/smart-ssh-community/frontend/src/locales/pl/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/pl/common.json @@ -584,6 +584,7 @@ "ollamaProbeRetry": "Szukaj ponownie", "ollamaProbeNotFoundHeading": "Nie znaleziono lokalnej Ollamy (domyślny port 11434).", "ollamaProbeNotFoundInstructions": "Zainstaluj Ollamę z ollama.com, uruchom ją i pobierz model (np. `ollama pull llama3`), a potem wyszukaj ponownie.", + "typeLabel": "Typ", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/pt-BR/common.json b/apps/smart-ssh-community/frontend/src/locales/pt-BR/common.json index d2abef5a7..35d7a9824 100644 --- a/apps/smart-ssh-community/frontend/src/locales/pt-BR/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/pt-BR/common.json @@ -582,6 +582,7 @@ "ollamaProbeRetry": "Pesquisar novamente", "ollamaProbeNotFoundHeading": "Nenhum Ollama local encontrado (porta padrão 11434).", "ollamaProbeNotFoundInstructions": "Instale o Ollama em ollama.com, inicie-o e carregue um modelo (p. ex., `ollama pull llama3`) e pesquise novamente.", + "typeLabel": "Tipo", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/ro/common.json b/apps/smart-ssh-community/frontend/src/locales/ro/common.json index e4d2ee600..d3049683c 100644 --- a/apps/smart-ssh-community/frontend/src/locales/ro/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/ro/common.json @@ -582,6 +582,7 @@ "ollamaProbeRetry": "Caută din nou", "ollamaProbeNotFoundHeading": "Niciun Ollama local găsit (port implicit 11434).", "ollamaProbeNotFoundInstructions": "Instalați Ollama de la ollama.com, porniți-l și încărcați un model (de ex. `ollama pull llama3`), apoi căutați din nou.", + "typeLabel": "Tip", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/ru/common.json b/apps/smart-ssh-community/frontend/src/locales/ru/common.json index b9e5b9a96..a76f28d98 100644 --- a/apps/smart-ssh-community/frontend/src/locales/ru/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/ru/common.json @@ -584,6 +584,7 @@ "ollamaProbeRetry": "Искать снова", "ollamaProbeNotFoundHeading": "Локальный Ollama не найден (порт по умолчанию 11434).", "ollamaProbeNotFoundInstructions": "Установите Ollama с ollama.com, запустите его и загрузите модель (например, `ollama pull llama3`), затем повторите поиск.", + "typeLabel": "Тип", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/sv/common.json b/apps/smart-ssh-community/frontend/src/locales/sv/common.json index de0c06c3b..70815455c 100644 --- a/apps/smart-ssh-community/frontend/src/locales/sv/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/sv/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Sök igen", "ollamaProbeNotFoundHeading": "Ingen lokal Ollama hittades (standardport 11434).", "ollamaProbeNotFoundInstructions": "Installera Ollama från ollama.com, starta den och läs in en modell (t.ex. `ollama pull llama3`), sök sedan igen.", + "typeLabel": "Typ", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/tr/common.json b/apps/smart-ssh-community/frontend/src/locales/tr/common.json index d1c772b3c..75e7f1523 100644 --- a/apps/smart-ssh-community/frontend/src/locales/tr/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/tr/common.json @@ -580,6 +580,7 @@ "ollamaProbeRetry": "Yeniden ara", "ollamaProbeNotFoundHeading": "Yerel Ollama bulunamadı (varsayılan bağlantı noktası 11434).", "ollamaProbeNotFoundInstructions": "Ollama'yı ollama.com'dan kurun, başlatın ve bir model yükleyin (örn. `ollama pull llama3`), sonra yeniden arayın.", + "typeLabel": "Tür", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/uk/common.json b/apps/smart-ssh-community/frontend/src/locales/uk/common.json index 4dfd1e700..3a532cfa4 100644 --- a/apps/smart-ssh-community/frontend/src/locales/uk/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/uk/common.json @@ -584,6 +584,7 @@ "ollamaProbeRetry": "Шукати знову", "ollamaProbeNotFoundHeading": "Локальної Ollama не знайдено (типовий порт 11434).", "ollamaProbeNotFoundInstructions": "Встановіть Ollama з ollama.com, запустіть її та завантажте модель (напр. `ollama pull llama3`), потім шукайте знову.", + "typeLabel": "Тип", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/vi/common.json b/apps/smart-ssh-community/frontend/src/locales/vi/common.json index e4f91c3cb..befb0cc3a 100644 --- a/apps/smart-ssh-community/frontend/src/locales/vi/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/vi/common.json @@ -578,6 +578,7 @@ "ollamaProbeRetry": "Tìm lại", "ollamaProbeNotFoundHeading": "Không tìm thấy Ollama cục bộ (cổng mặc định 11434).", "ollamaProbeNotFoundInstructions": "Cài đặt Ollama từ ollama.com, khởi động và tải một mô hình (ví dụ `ollama pull llama3`), rồi tìm lại.", + "typeLabel": "Loại", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/apps/smart-ssh-community/frontend/src/locales/zh-Hans/common.json b/apps/smart-ssh-community/frontend/src/locales/zh-Hans/common.json index 37f6f8086..32c8aca79 100644 --- a/apps/smart-ssh-community/frontend/src/locales/zh-Hans/common.json +++ b/apps/smart-ssh-community/frontend/src/locales/zh-Hans/common.json @@ -578,6 +578,7 @@ "ollamaProbeRetry": "重新搜索", "ollamaProbeNotFoundHeading": "未找到本地 Ollama(默认端口 11434)。", "ollamaProbeNotFoundInstructions": "请从 ollama.com 安装 Ollama,启动并加载一个模型(例如 `ollama pull llama3`),然后重新搜索。", + "typeLabel": "类型", "providerTypes": { "openai": "OpenAI", "anthropic": "Anthropic", diff --git a/changelog.d/issue-1377-ai-provider-settings-redesign.md b/changelog.d/issue-1377-ai-provider-settings-redesign.md new file mode 100644 index 000000000..0ba4aefe1 --- /dev/null +++ b/changelog.d/issue-1377-ai-provider-settings-redesign.md @@ -0,0 +1,2 @@ +### Changed +- The AI provider settings show providers as a grid with connection details, model and status, and the risk options as switches in one card.