From 7946a2b552195d20b8effba68a003e30716d2369 Mon Sep 17 00:00:00 2001 From: Francisco Javier Arceo Date: Mon, 21 Jul 2025 00:08:56 -0400 Subject: [PATCH] disable attachments and update sidebar Signed-off-by: Francisco Javier Arceo --- .../ui/components/layout/app-sidebar.tsx | 42 ++++++++++++++++--- .../ui/components/ui/message-input.tsx | 1 + 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/llama_stack/ui/components/layout/app-sidebar.tsx b/llama_stack/ui/components/layout/app-sidebar.tsx index 007f88537..9fa98d86b 100644 --- a/llama_stack/ui/components/layout/app-sidebar.tsx +++ b/llama_stack/ui/components/layout/app-sidebar.tsx @@ -23,12 +23,15 @@ import { SidebarHeader, } from "@/components/ui/sidebar"; +// Extracted Chat Playground item +const chatPlaygroundItem = { + title: "Chat Playground", + url: "/chat-playground", + icon: MessageCircle, +}; + +// Removed Chat Playground from log items const logItems = [ - { - title: "Chat Playground", - url: "/chat-playground", - icon: MessageCircle, - }, { title: "Chat Completions", url: "/logs/chat-completions", @@ -60,6 +63,35 @@ export function AppSidebar() { Llama Stack + {/* Chat Playground as its own section */} + + + + + + + + {chatPlaygroundItem.title} + + + + + + + + {/* Logs section */} Logs diff --git a/llama_stack/ui/components/ui/message-input.tsx b/llama_stack/ui/components/ui/message-input.tsx index 32761260d..3e582e9a2 100644 --- a/llama_stack/ui/components/ui/message-input.tsx +++ b/llama_stack/ui/components/ui/message-input.tsx @@ -254,6 +254,7 @@ export function MessageInput({ variant="outline" className="h-8 w-8" aria-label="Attach a file" + disabled={true} onClick={async () => { const files = await showFileUploadDialog() addFiles(files)