Skip to content

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

chore: add docs to nav and overflow of score comment (#1620)

Richard Krümmelb0dbae98e89a
diff --git a/web/src/components/grouped-score-badge.tsx b/web/src/components/grouped-score-badge.tsx
index f7740d305b..48ef33181c 100644
--- a/web/src/components/grouped-score-badge.tsx
+++ b/web/src/components/grouped-score-badge.tsx
@@ -40,7 +40,7 @@ export const GroupedScoreBadges = ({
<HoverCardTrigger className="ml-1 inline-block cursor-pointer">
<MessageCircle size={12} />
</HoverCardTrigger>
- <HoverCardContent>
+ <HoverCardContent className="overflow-hidden whitespace-normal break-normal">
<p>{s.comment}</p>
</HoverCardContent>
</HoverCard>
diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsx
index 0f94a0ec34..5b7ae1a90a 100644
--- a/web/src/components/layouts/layout.tsx
+++ b/web/src/components/layouts/layout.tsx
@@ -502,6 +502,7 @@ const MainNavigation: React.FC<{
"group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6",
)}
onClick={onNavitemClick}
+ target={item.newTab ? "_blank" : undefined}
>
{item.icon && (
<item.icon
@@ -580,6 +581,7 @@ const MainNavigation: React.FC<{
: "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",
"flex w-full items-center gap-x-3 rounded-md py-2 pl-9 pr-2 text-sm leading-6",
)}
+ target={subItem.newTab ? "_blank" : undefined}
>
{subItem.name}
{subItem.label && (
diff --git a/web/src/components/layouts/routes.ts b/web/src/components/layouts/routes.ts
index c432168b5d..fe913ddee2 100644
--- a/web/src/components/layouts/routes.ts
+++ b/web/src/components/layouts/routes.ts
@@ -9,6 +9,7 @@ import {
Settings,
UsersIcon,
PenSquareIcon,
+ LibraryBig,
TerminalIcon,
} from "lucide-react";
@@ -21,6 +22,7 @@ export type Route = {
pathname?: string; // link, ignored if children
children?: Array<Route>; // folder
bottom?: boolean; // bottom of the sidebar, only for first level routes
+ newTab?: boolean; // open in new tab
};
export const ROUTES: Route[] = [
@@ -93,6 +95,13 @@ export const ROUTES: Route[] = [
icon: Settings,
bottom: true,
},
+ {
+ name: "Docs",
+ pathname: "https://langfuse.com/docs",
+ icon: LibraryBig,
+ bottom: true,
+ newTab: true,
+ },
{
name: "Support",
pathname: "/project/[projectId]/support",