mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-27 06:28:50 +00:00
disable attachments and update sidebar
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
f7c9651ca7
commit
7946a2b552
2 changed files with 38 additions and 5 deletions
|
@ -23,12 +23,15 @@ import {
|
||||||
SidebarHeader,
|
SidebarHeader,
|
||||||
} from "@/components/ui/sidebar";
|
} 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 = [
|
const logItems = [
|
||||||
{
|
|
||||||
title: "Chat Playground",
|
|
||||||
url: "/chat-playground",
|
|
||||||
icon: MessageCircle,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Chat Completions",
|
title: "Chat Completions",
|
||||||
url: "/logs/chat-completions",
|
url: "/logs/chat-completions",
|
||||||
|
@ -60,6 +63,35 @@ export function AppSidebar() {
|
||||||
<Link href="/">Llama Stack</Link>
|
<Link href="/">Llama Stack</Link>
|
||||||
</SidebarHeader>
|
</SidebarHeader>
|
||||||
<SidebarContent>
|
<SidebarContent>
|
||||||
|
{/* Chat Playground as its own section */}
|
||||||
|
<SidebarGroup>
|
||||||
|
<SidebarGroupContent>
|
||||||
|
<SidebarMenu>
|
||||||
|
<SidebarMenuItem>
|
||||||
|
<SidebarMenuButton
|
||||||
|
asChild
|
||||||
|
className={cn(
|
||||||
|
"justify-start",
|
||||||
|
pathname.startsWith(chatPlaygroundItem.url) &&
|
||||||
|
"bg-gray-200 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Link href={chatPlaygroundItem.url}>
|
||||||
|
<chatPlaygroundItem.icon
|
||||||
|
className={cn(
|
||||||
|
pathname.startsWith(chatPlaygroundItem.url) && "text-gray-900 dark:text-gray-100",
|
||||||
|
"mr-2 h-4 w-4",
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
<span>{chatPlaygroundItem.title}</span>
|
||||||
|
</Link>
|
||||||
|
</SidebarMenuButton>
|
||||||
|
</SidebarMenuItem>
|
||||||
|
</SidebarMenu>
|
||||||
|
</SidebarGroupContent>
|
||||||
|
</SidebarGroup>
|
||||||
|
|
||||||
|
{/* Logs section */}
|
||||||
<SidebarGroup>
|
<SidebarGroup>
|
||||||
<SidebarGroupLabel>Logs</SidebarGroupLabel>
|
<SidebarGroupLabel>Logs</SidebarGroupLabel>
|
||||||
<SidebarGroupContent>
|
<SidebarGroupContent>
|
||||||
|
|
|
@ -254,6 +254,7 @@ export function MessageInput({
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className="h-8 w-8"
|
className="h-8 w-8"
|
||||||
aria-label="Attach a file"
|
aria-label="Attach a file"
|
||||||
|
disabled={true}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
const files = await showFileUploadDialog()
|
const files = await showFileUploadDialog()
|
||||||
addFiles(files)
|
addFiles(files)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue