From b20be6dcd1c853c38eb5fca5cb7884d768589cd3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 27 Jun 2026 12:05:19 +0000 Subject: [PATCH] ui: convert Image, Speech, Audio interfaces to shadcn buttons Replace .btn elements and inline SVG icons with shadcn Button and @lucide/svelte icons in the image, speech and audio playground tabs. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01UmuGqwNBJNEAMaWsdCDqUC --- .../playground/AudioInterface.svelte | 45 ++++++----------- .../playground/ImageInterface.svelte | 32 ++++++------ .../playground/SpeechInterface.svelte | 50 ++++++++----------- 3 files changed, 52 insertions(+), 75 deletions(-) diff --git a/ui-svelte/src/components/playground/AudioInterface.svelte b/ui-svelte/src/components/playground/AudioInterface.svelte index 4f002eb7..c4a5e8a1 100644 --- a/ui-svelte/src/components/playground/AudioInterface.svelte +++ b/ui-svelte/src/components/playground/AudioInterface.svelte @@ -4,6 +4,8 @@ import { transcribeAudio } from "../../lib/audioApi"; import { playgroundStores } from "../../stores/playgroundActivity"; import ModelSelector from "./ModelSelector.svelte"; + import { Button } from "$lib/components/ui/button/index.js"; + import { Copy, Check } from "@lucide/svelte"; const selectedModelStore = persistentStore("playground-audio-model", ""); @@ -169,22 +171,19 @@ {:else if transcriptionResult}
-

Transcription Result

- +
{transcriptionResult} @@ -223,33 +222,21 @@ onchange={handleFileSelect} bind:this={fileInput} /> - +
{#if isTranscribing} - + {:else} - - + + {/if}
{/if} diff --git a/ui-svelte/src/components/playground/ImageInterface.svelte b/ui-svelte/src/components/playground/ImageInterface.svelte index db684d61..0e832327 100644 --- a/ui-svelte/src/components/playground/ImageInterface.svelte +++ b/ui-svelte/src/components/playground/ImageInterface.svelte @@ -7,6 +7,7 @@ import ModelSelector from "./ModelSelector.svelte"; import ExpandableTextarea from "./ExpandableTextarea.svelte"; import type { ImageApiMode, SdApiLora, SdApiLoraRef } from "../../lib/types"; + import { Button } from "$lib/components/ui/button/index.js"; const selectedModelStore = persistentStore("playground-image-model", ""); const selectedSizeStore = persistentStore("playground-image-size", "1024x1024"); @@ -226,12 +227,9 @@ {#if isSdapi} - + {/if}
@@ -330,13 +328,14 @@
LoRAs
- + {#if lorasLoaded && availableLoras.length > 0} {#if $selectedModelStore && !getVoicesCache()[$selectedModelStore]} - + + {/if}
@@ -285,15 +280,9 @@ {/if} - + @@ -327,24 +316,25 @@ />
{#if isGenerating} - + {:else} - - +