Files
Kaname/src/components/app-nav.tsx
T
Pascal LinxweilerandClaude Opus 5.5 276108932d
Release / release (push) Successful in 12m32s
Release 0.15.0: endpoints instead of deployments
Kaname keeps two jobs: the model downloader and benchmarks. Benchmarks
now run against endpoints (any OpenAI-compatible server added by URL,
with an optional server-side API key and hand-written hardware notes)
instead of deployments Kaname started itself.

Removed: runtimes, deployments, sweeps, resource telemetry, hardware
detection, the /api/v1 API with tokens and guardrails, and all Docker
access. The quality eval's coding tests run in a network-less sandbox
container that shares only an exchange folder with the worker.

The previous state is kept in branch backup / tag backup-0.14.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 21:43:42 +01:00

45 lines
1.5 KiB
TypeScript

"use client";
import { GaugeIcon, LibraryIcon, ServerIcon, SettingsIcon } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils";
const LINKS = [
{
href: "/",
label: "Library",
icon: LibraryIcon,
active: (p: string) => !["/settings", "/endpoints", "/benchmarks"].some((x) => p.startsWith(x)),
},
{ href: "/endpoints", label: "Endpoints", icon: ServerIcon, active: (p: string) => p.startsWith("/endpoints") },
{ href: "/benchmarks", label: "Benchmarks", icon: GaugeIcon, active: (p: string) => p.startsWith("/benchmarks") },
{ href: "/settings", label: "Settings", icon: SettingsIcon, active: (p: string) => p.startsWith("/settings") },
];
/** Main navigation; model and job pages count as part of the library. */
export function AppNav() {
const pathname = usePathname();
return (
<nav className="flex items-center gap-1 text-sm">
{LINKS.map((l) => {
const active = l.active(pathname);
return (
<Link
key={l.href}
href={l.href}
aria-current={active ? "page" : undefined}
className={cn(
"flex items-center gap-1.5 rounded-md px-2.5 py-1.5 transition-colors",
active ? "bg-muted font-medium text-foreground" : "text-muted-foreground hover:bg-muted/60 hover:text-foreground",
)}
>
<l.icon className="size-4" />
<span className="hidden sm:inline">{l.label}</span>
</Link>
);
})}
</nav>
);
}