Skip to content

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

fix(ui): mark copy ClickHouse query as internal (#18054)

Marc Klingen09a1b8484b66
diff --git a/web/src/components/HeaderActionMenuRow.tsx b/web/src/components/HeaderActionMenuRow.tsx
index f53224daf3..0a3c1ce312 100644
--- a/web/src/components/HeaderActionMenuRow.tsx
+++ b/web/src/components/HeaderActionMenuRow.tsx
@@ -63,6 +63,7 @@ export function HeaderActionMenuRows({
key={item.id}
label={item.title}
icon={Icon && <Icon className="h-4 w-4" />}
+ badge={item.badge}
variant={item.variant}
disabled={item.disabled !== undefined}
disabledReason={item.disabled?.reason}
diff --git a/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx b/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx
index 0a758d6490..ce69c7e30e 100644
--- a/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx
+++ b/web/src/components/design-system/DropdownMenu/DropdownMenu.tsx
@@ -122,6 +122,7 @@ type DropdownMenuItem = {
id: string;
title: string;
tooltip?: string;
+ badge?: React.ReactNode;
icon?: LucideIcon;
searchBehavior?: SearchBehavior;
type: "item";
@@ -661,6 +662,9 @@ function DropdownMenuNode({
>
{item.title}
</span>
+ {item.badge ? (
+ <span className="ml-2 shrink-0">{item.badge}</span>
+ ) : null}
</Link>
) : (
<button
@@ -685,6 +689,9 @@ function DropdownMenuNode({
>
{item.title}
</span>
+ {item.badge ? (
+ <span className="ml-2 shrink-0">{item.badge}</span>
+ ) : null}
</button>
)}
{renderedSecondaryAction}
diff --git a/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx b/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx
index f15bfdb3b8..af14c0908a 100644
--- a/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx
+++ b/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx
@@ -12,6 +12,7 @@ import {
} from "@/src/features/events";
import { copyTextToClipboard } from "@/src/utils/clipboard";
import { type ObservationType } from "@langfuse/shared";
+import { InternalFeatureBadge } from "@/src/features/feature-flags";
import { useWebCalloutAction } from "@/src/features/web-callouts";
type IdItem = {
@@ -239,6 +240,7 @@ export function DetailHeaderActionsMenuController({
type: "item" as const,
id: "copy-clickhouse-query",
title: "Copy ClickHouse query",
+ badge: <InternalFeatureBadge />,
icon: copiedId === clickHouseQuery ? CheckIcon : CopyIcon,
onClick: () => handleCopy(clickHouseQuery),
},