From 0ae56b1eb9c9e7e4da41846a037b8e55afae7590 Mon Sep 17 00:00:00 2001 From: Benson Wong Date: Sun, 28 Jun 2026 04:22:01 +0000 Subject: [PATCH] ui: convert chat settings panel to a dialog Replace the inline settings panel with a modal Dialog that pops up over the chat interface, matching the CaptureDialog pattern. --- .../playground/ChatInterface.svelte | 119 ++++++++++-------- 1 file changed, 65 insertions(+), 54 deletions(-) diff --git a/ui-svelte/src/components/playground/ChatInterface.svelte b/ui-svelte/src/components/playground/ChatInterface.svelte index 6b0e260b..19b8e28e 100644 --- a/ui-svelte/src/components/playground/ChatInterface.svelte +++ b/ui-svelte/src/components/playground/ChatInterface.svelte @@ -13,6 +13,7 @@ import { Textarea } from "$lib/components/ui/textarea/index.js"; import { Label } from "$lib/components/ui/label/index.js"; import * as Select from "$lib/components/ui/select/index.js"; + import * as Dialog from "$lib/components/ui/dialog/index.js"; import { X } from "@lucide/svelte"; const selectedModelStore = persistentStore("playground-selected-model", ""); @@ -319,7 +320,7 @@
-
- - {#if showSettings} -
-
- - v && endpointStore.set(v as Endpoint)} - > - /{$endpointStore} - - /v1/chat/completions - /v1/messages - /v1/responses - - -
-
- -