🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(ui): display current application version
Marc Klingen3f5ee4664a88
diff --git a/src/components/LangfuseLogo.tsx b/src/components/LangfuseLogo.tsxindex 5503147323..00a8fdc009 100644--- a/src/components/LangfuseLogo.tsx+++ b/src/components/LangfuseLogo.tsx@@ -1,3 +1,4 @@+import { VERSION } from "@/src/constants/VERSION";import { cn } from "@/src/utils/tailwind";export const LangfuseIcon = ({@@ -20,9 +21,11 @@ export const LangfuseIcon = ({export const LangfuseLogo = ({className,size = "sm",+ version = false,}: {size?: "sm" | "xl";className?: string;+ version?: boolean;}) => (<div className={cn("flex items-center", className)}><LangfuseIcon size={size === "sm" ? 16 : 20} />@@ -34,5 +37,6 @@ export const LangfuseLogo = ({>Langfuse</span>+ {version && <span className="ml-2 text-xs text-gray-400">{VERSION}</span>}</div>);diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsxindex 7a032c5b44..b5775aa8ec 100644--- a/src/components/layouts/layout.tsx+++ b/src/components/layouts/layout.tsx@@ -198,7 +198,7 @@ export default function Layout(props: PropsWithChildren) {</Transition.Child>{/* Sidebar component, swap this element with another sidebar if you like */}<div className="flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 py-4">- <LangfuseLogo size="xl" />+ <LangfuseLogo version size="xl" /><nav className="flex flex-1 flex-col"><ul role="list" className="flex flex-1 flex-col gap-y-7"><li>@@ -312,7 +312,7 @@ export default function Layout(props: PropsWithChildren) {<div className="hidden xl:fixed xl:inset-y-0 xl:z-50 xl:flex xl:w-72 xl:flex-col">{/* Sidebar component, swap this element with another sidebar if you like */}<div className="flex h-screen grow flex-col gap-y-5 border-r border-gray-200 bg-white pt-7">- <LangfuseLogo size="xl" className="mb-2 px-6" />+ <LangfuseLogo version size="xl" className="mb-2 px-6" /><nav className="flex h-full flex-1 flex-col overflow-y-auto px-6 pb-3"><ul role="list" className="flex h-full flex-col gap-y-4"><li>@@ -487,7 +487,7 @@ export default function Layout(props: PropsWithChildren) {<span className="sr-only">Open sidebar</span><Bars3Icon className="h-6 w-6" aria-hidden="true" /></button>- <LangfuseLogo className="flex-1" />+ <LangfuseLogo version className="flex-1" /><Menu as="div" className="relative"><Menu.Button className="flex items-center gap-x-4 text-sm font-semibold leading-6 text-gray-900"><span className="sr-only">Open user menu</span>