From b3f7ba523f644224364d155b575fa3f9f13c5eb9 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Wed, 10 Jun 2026 16:48:30 +0900 Subject: feat(chat,app): Model view in sidebar + split key/model selectors - move the model picker out of the chat header into a dedicated "Model" sidebar view; sidebar now seeds two default panels (Model on top, Extensions below) - split the single model dropdown into two stacked selects: a key selector (distinct credential keys) + a model selector (models under the current key) - pure model-select helpers (splitModelName/joinModelName/modelKeys/modelsForKey), split on the FIRST slash so multi-slash model names stay intact - onSelect still emits the full `/` string (ChatRequest.model unchanged) --- src/app/App.svelte | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/app') diff --git a/src/app/App.svelte b/src/app/App.svelte index ff6b1ca..f02797e 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -12,7 +12,13 @@ // The view kinds offered in the sidebar's dropdown. Generic data — the // `viewContent` snippet below maps each kind id to its renderer. - const viewKinds = [{ id: "extensions", label: "Extensions" }] as const; + const viewKinds = [ + { id: "model", label: "Model" }, + { id: "extensions", label: "Extensions" }, + ] as const; + + // Default sidebar layout: a Model panel on top, Extensions below. + const initialViews = ["model", "extensions"] as const; // Frontend module list for the "Loaded Modules" view, AGGREGATED from each // feature's public `manifest` export so it can't drift from what's actually @@ -100,14 +106,6 @@ {/if} -
- -
-
{#key store.activeConversationId} @@ -137,7 +135,7 @@ class="flex h-full w-80 flex-col gap-2 overflow-y-auto border-l border-base-300 bg-base-100 p-3 transition-transform duration-300 ease-out" style="transform: translateX({sidebarOpen ? '0' : '100%'})" > - +
@@ -158,7 +156,9 @@ {#snippet viewContent(kind: string)} - {#if kind === "extensions"} + {#if kind === "model"} + + {:else if kind === "extensions"}

Frontend modules

-- cgit v1.2.3