Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ui

Marc Klingen55bebf3ad98f
diff --git a/src/components/layouts/header.tsx b/src/components/layouts/header.tsx
index c88b1534b8..2e00e37fcf 100644
--- a/src/components/layouts/header.tsx
+++ b/src/components/layouts/header.tsx
@@ -63,7 +63,7 @@ export default function Header(props: {
{props.title}
</h2>
</div>
- <div className="mt-4 flex flex-shrink-0 md:ml-4 md:mt-0">
+ {/* <div className="mt-4 flex flex-shrink-0 md:ml-4 md:mt-0">
<button
type="button"
className="inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
@@ -76,7 +76,7 @@ export default function Header(props: {
>
Publish
</button>
- </div>
+ </div> */}
</div>
</div>
);
diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsx
index 23fb35398d..c4605d8d07 100644
--- a/src/components/layouts/layout.tsx
+++ b/src/components/layouts/layout.tsx
@@ -16,11 +16,13 @@ import {
import Link from "next/link";
import { useRouter } from "next/router";
import clsx from "clsx";
+import { Joystick } from "lucide-react";
const navigationPaths = [
{ name: "Dashboard", href: "/", icon: HomeIcon },
{ name: "Traces", href: "/traces", icon: UsersIcon },
{ name: "LLM Calls", href: "/llm-calls", icon: DocumentDuplicateIcon },
+ { name: "Playground", href: "/playground", icon: Joystick },
];
const teams = [
{ id: 1, name: "Heroicons", href: "#", initial: "H", current: false },
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 70763e272b..067604699c 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -2,6 +2,7 @@ import { ChevronRightIcon } from "@heroicons/react/20/solid";
import { CommandLineIcon, MegaphoneIcon } from "@heroicons/react/24/outline";
import clsx from "clsx";
import { SiPython } from "react-icons/si";
+import Header from "../components/layouts/header";
const items = [
{
@@ -29,53 +30,56 @@ const items = [
export default function Start() {
return (
- <div className="mx-auto max-w-lg">
- <h2 className="text-base font-semibold leading-6 text-gray-900">
- Integrate langfuse
- </h2>
- <p className="mt-1 text-sm text-gray-500">
- Use one of the following reference to start monitoring your application
- with langfuse application
- </p>
- <ul
- role="list"
- className="mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"
- >
- {items.map((item, itemIdx) => (
- <li key={itemIdx}>
- <div className="group relative flex items-start space-x-3 py-4">
- <div className="flex-shrink-0">
- <span
- className={clsx(
- item.iconColor,
- "inline-flex h-10 w-10 items-center justify-center rounded-lg"
- )}
- >
- <item.icon
- className="h-6 w-6 text-white"
+ <>
+ <Header title="Dashboard" />
+ <div>
+ <h2 className="text-base font-semibold leading-6 text-gray-900">
+ Integrate langfuse
+ </h2>
+ <p className="mt-1 text-sm text-gray-500">
+ Use one of the following reference to start monitoring your
+ application with langfuse application
+ </p>
+ <ul
+ role="list"
+ className="mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"
+ >
+ {items.map((item, itemIdx) => (
+ <li key={itemIdx}>
+ <div className="group relative flex items-start space-x-3 py-4">
+ <div className="flex-shrink-0">
+ <span
+ className={clsx(
+ item.iconColor,
+ "inline-flex h-10 w-10 items-center justify-center rounded-lg"
+ )}
+ >
+ <item.icon
+ className="h-6 w-6 text-white"
+ aria-hidden="true"
+ />
+ </span>
+ </div>
+ <div className="min-w-0 flex-1">
+ <div className="text-sm font-medium text-gray-900">
+ <a href={item.href}>
+ <span className="absolute inset-0" aria-hidden="true" />
+ {item.name}
+ </a>
+ </div>
+ <p className="text-sm text-gray-500">{item.description}</p>
+ </div>
+ <div className="flex-shrink-0 self-center">
+ <ChevronRightIcon
+ className="h-5 w-5 text-gray-400 group-hover:text-gray-500"
aria-hidden="true"
/>
- </span>
- </div>
- <div className="min-w-0 flex-1">
- <div className="text-sm font-medium text-gray-900">
- <a href={item.href}>
- <span className="absolute inset-0" aria-hidden="true" />
- {item.name}
- </a>
</div>
- <p className="text-sm text-gray-500">{item.description}</p>
- </div>
- <div className="flex-shrink-0 self-center">
- <ChevronRightIcon
- className="h-5 w-5 text-gray-400 group-hover:text-gray-500"
- aria-hidden="true"
- />
</div>
- </div>
- </li>
- ))}
- </ul>
- </div>
+ </li>
+ ))}
+ </ul>
+ </div>
+ </>
);
}
diff --git a/src/pages/playground.tsx b/src/pages/playground.tsx
new file mode 100644
index 0000000000..70684580b8
--- /dev/null
+++ b/src/pages/playground.tsx
@@ -0,0 +1,5 @@
+import Header from "../components/layouts/header";
+
+export default function Playground() {
+ return <Header title="Playground" />;
+}