From a0578f00073cda61a1f9f9357e7f57b8912d9ac1 Mon Sep 17 00:00:00 2001 From: Benson Wong Date: Sun, 28 Jun 2026 03:53:14 +0000 Subject: [PATCH] ui: reorganize sidebar and add Settings page Reorder sidebar menu to Activity, Playground, Models, Logs. Remove the ll header icon and replace it with the connection status indicator moved from the footer. Add a Settings page (gear icon) at the bottom that surfaces the build information that was previously hidden behind the status indicator's tooltip. - move ConnectionStatus into Sidebar.Header, drop build-info tooltip - add Settings.svelte route showing version/commit/build date - register /settings route and title in App.svelte --- ui-svelte/src/App.svelte | 3 + ui-svelte/src/components/AppSidebar.svelte | 148 +++++++++--------- .../src/components/ConnectionStatus.svelte | 5 +- ui-svelte/src/routes/Settings.svelte | 32 ++++ 4 files changed, 113 insertions(+), 75 deletions(-) create mode 100644 ui-svelte/src/routes/Settings.svelte diff --git a/ui-svelte/src/App.svelte b/ui-svelte/src/App.svelte index 7f4a15c5..31a2fd11 100644 --- a/ui-svelte/src/App.svelte +++ b/ui-svelte/src/App.svelte @@ -9,6 +9,7 @@ import Performance from "./routes/Performance.svelte"; import Playground from "./routes/Playground.svelte"; import PlaygroundStub from "./routes/PlaygroundStub.svelte"; + import Settings from "./routes/Settings.svelte"; import * as Sidebar from "$lib/components/ui/sidebar/index.js"; import * as Tooltip from "$lib/components/ui/tooltip/index.js"; import { Separator } from "$lib/components/ui/separator/index.js"; @@ -23,6 +24,7 @@ "/models/:id": ModelDetail, "/logs": LogViewer, "/activity": Activity, + "/settings": Settings, "/performance": Performance, "*": PlaygroundStub, }; @@ -32,6 +34,7 @@ "/models": "Models", "/activity": "Activity", "/logs": "Logs", + "/settings": "Settings", "/performance": "Performance", }; diff --git a/ui-svelte/src/components/AppSidebar.svelte b/ui-svelte/src/components/AppSidebar.svelte index 930ef672..0f8cfd10 100644 --- a/ui-svelte/src/components/AppSidebar.svelte +++ b/ui-svelte/src/components/AppSidebar.svelte @@ -1,6 +1,6 @@
diff --git a/ui-svelte/src/routes/Settings.svelte b/ui-svelte/src/routes/Settings.svelte new file mode 100644 index 00000000..e81e8a5b --- /dev/null +++ b/ui-svelte/src/routes/Settings.svelte @@ -0,0 +1,32 @@ + + +
+
+

Settings

+
+ +
+

Build Information

+
+
+
Event Stream
+
{$connectionState ?? "unknown"}
+
+
+
API Version
+
{$versionInfo?.version ?? "unknown"}
+
+
+
Commit Hash
+
{$versionInfo?.commit?.substring(0, 7) ?? "unknown"}
+
+
+
Build Date
+
{$versionInfo?.build_date ?? "unknown"}
+
+
+
+