From 092f302529d480139cc21dd6300ea7144759ed99 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Sun, 20 Sep 2026 02:28:29 +0200 Subject: [PATCH] ui : match the backend list to the MCP server cards Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash --- .../app/backends/BackendCard.svelte | 37 +++++++++++-------- .../app/backends/BackendPresetCard.svelte | 2 +- .../app/backends/SettingsBackends.svelte | 2 +- .../app/dialogs/DialogBackends.svelte | 10 ++--- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/tools/ui/src/lib/components/app/backends/BackendCard.svelte b/tools/ui/src/lib/components/app/backends/BackendCard.svelte index 556fefe772..412e5a439c 100644 --- a/tools/ui/src/lib/components/app/backends/BackendCard.svelte +++ b/tools/ui/src/lib/components/app/backends/BackendCard.svelte @@ -3,10 +3,10 @@ import { Pencil, Server, Trash2 } from '@lucide/svelte'; import { DialogConfirmation } from '$lib/components/app/dialogs'; import Logo from '$lib/components/app/misc/Logo.svelte'; + import { Badge } from '$lib/components/ui/badge'; import { Button } from '$lib/components/ui/button'; import * as Card from '$lib/components/ui/card'; import { Switch } from '$lib/components/ui/switch'; - import { ICON_CLASS_DEFAULT } from '$lib/constants'; import type { Backend, BackendProtocol } from '$lib/types'; const PROTOCOL_LABELS: Record = { @@ -14,6 +14,8 @@ openai: 'OpenAI' }; + const CARD_ICON_CLASS = 'h-5 w-5'; + interface Props { backend: Backend; isLocal?: boolean; @@ -32,37 +34,33 @@
- + {#snippet fallback()} {#if isLocal} - + {:else} - + {/if} {/snippet}
-

{backend.name}

+

{backend.name}

{displayUrl}

-
+
{#if isLocal} - - Built-in - + Built-in {/if} - - {protocolLabel} - + {protocolLabel}
-
+
onToggle?.(value)} /> @@ -72,15 +70,22 @@
{#if !isLocal} -
-