fix: misc UI changes (#2175)

# What does this PR do?

- Add pre-req to run the server (install deps)
- Fix the static build

Closes: https://github.com/meta-llama/llama-stack/issues/2174

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-05-15 22:03:05 +02:00 committed by GitHub
parent 1a6d4af5e9
commit 3cc15f7d15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 30 additions and 23 deletions

View file

@ -2,7 +2,13 @@
## Getting Started
First, run the development server:
First, install dependencies:
```bash
npm install next react react-dom
```
Then, run the development server:
```bash
npm run dev

View file

@ -22,7 +22,7 @@ import { AppSidebar } from "@/components/app-sidebar"
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<html lang="en" className={`${geistSans.variable} ${geistMono.variable}`}>
<body>
<SidebarProvider>
<AppSidebar />

View file

@ -1,4 +1,5 @@
import { MessageSquareText, MessagesSquare } from "lucide-react"
import Link from "next/link"
import {
Sidebar,
@ -30,7 +31,7 @@ export function AppSidebar() {
return (
<Sidebar>
<SidebarHeader>
<a href="/">Llama Stack</a>
<Link href="/">Llama Stack</Link>
</SidebarHeader>
<SidebarContent>
<SidebarGroup>
@ -40,10 +41,10 @@ export function AppSidebar() {
{logItems.map((item) => (
<SidebarMenuItem key={item.title}>
<SidebarMenuButton asChild>
<a href={item.url}>
<Link href={item.url}>
<item.icon />
<span>{item.title}</span>
</a>
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
))}

View file

@ -15,9 +15,9 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.510.0",
"next": "15.3.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "^15.3.2",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwind-merge": "^3.3.0"
},
"devDependencies": {

View file

@ -16,9 +16,9 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.510.0",
"next": "15.3.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "^15.3.2",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwind-merge": "^3.3.0"
},
"devDependencies": {