Skip to content

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

chore(v4): remove CTA banners (#14706)

Nimar9c06064738eb
diff --git a/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx b/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx
index 9ee6cc9861..2e76b5ee08 100644
--- a/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx
+++ b/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx
@@ -45,26 +45,6 @@ const PaymentBanner = dynamic(
},
);
-const V4EnabledBanner = dynamic(
- () =>
- import("@/src/features/events/components/V4EnabledBanner").then((mod) => ({
- default: mod.V4EnabledBanner,
- })),
- {
- ssr: false,
- },
-);
-
-const V4PromoBanner = dynamic(
- () =>
- import("@/src/features/events/components/V4PromoBanner").then((mod) => ({
- default: mod.V4PromoBanner,
- })),
- {
- ssr: false,
- },
-);
-
/** Grouped navigation structure returned by processNavigation */
type GroupedNavigation = {
ungrouped: NavigationItem[];
@@ -191,8 +171,6 @@ export function AuthenticatedLayout({
<SidebarProvider>
<div className="flex h-dvh w-full flex-col">
<PaymentBanner />
- <V4EnabledBanner />
- <V4PromoBanner />
<div className="pt-banner-offset flex min-h-0 flex-1">
<AppSidebar
navItems={navigation.mainNavigation}
diff --git a/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx b/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx
index c4d9567805..63a9e2bb33 100644
--- a/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx
+++ b/web/src/features/datasets/components/DatasetRunItemsByRunTable.tsx
@@ -30,15 +30,8 @@ export function DatasetRunItemsByRunTable(props: {
datasetId: string;
datasetRunId: string;
datasetVersion?: Date | null;
- onLoadingChange?: (isLoading: boolean) => void;
}) {
- const {
- projectId,
- datasetId,
- datasetRunId,
- datasetVersion,
- onLoadingChange,
- } = props;
+ const { projectId, datasetId, datasetRunId, datasetVersion } = props;
const { setDetailPageList } = useDetailPageLists();
const [paginationState, setPaginationState] = useQueryParams({
pageIndex: withDefault(NumberParam, 0),
@@ -69,14 +62,6 @@ export function DatasetRunItemsByRunTable(props: {
filter: userFilterState,
});
- useEffect(() => {
- onLoadingChange?.(runItems.isFetching);
-
- return () => {
- onLoadingChange?.(false);
- };
- }, [onLoadingChange, runItems.isFetching]);
-
const datasetRunItemsFilterOptions =
datasetRunItemsFilterOptionsResponse.data;
diff --git a/web/src/features/events/components/V4EnabledBanner.tsx b/web/src/features/events/components/V4EnabledBanner.tsx
deleted file mode 100644
index 5d63d3a44c..0000000000
--- a/web/src/features/events/components/V4EnabledBanner.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-import { useEffect, useRef } from "react";
-import Link from "next/link";
-import { ZapIcon, X, ExternalLink } from "lucide-react";
-import { useSession } from "next-auth/react";
-import { Button } from "@/src/components/ui/button";
-import useLocalStorage from "@/src/components/useLocalStorage";
-import {
- useTopBanner,
- useTopBannerRegistration,
-} from "@/src/features/top-banner";
-import { useV4Beta } from "@/src/features/events/hooks/useV4Beta";
-
-const CHANGELOG_URL =
- "https://langfuse.com/changelog/2026-03-10-simplify-for-scale";
-const DISMISSED_STORAGE_KEY = "v4-beta-enabled-banner:v1:dismissed";
-const V4_BETA_BANNER_ID = "v4-beta-enabled-banner";
-const V4_BETA_BANNER_ORDER = 20;
-
-export function V4EnabledBanner() {
- const session = useSession();
- const { isBetaEnabled } = useV4Beta();
- const { getTopBannerOffset } = useTopBanner();
- const [isDismissed, setIsDismissed] = useLocalStorage<boolean>(
- DISMISSED_STORAGE_KEY,
- false,
- );
- const bannerRef = useRef<HTMLDivElement>(null);
-
- const isAuthenticated = session.status === "authenticated";
- const isVisible = isAuthenticated && isBetaEnabled && !isDismissed;
- const topOffset = getTopBannerOffset(V4_BETA_BANNER_ORDER);
-
- useEffect(() => {
- if (!isAuthenticated || isBetaEnabled || !isDismissed) {
- return;
- }
-
- setIsDismissed(false);
- }, [isAuthenticated, isBetaEnabled, isDismissed, setIsDismissed]);
-
- useTopBannerRegistration({
- bannerId: V4_BETA_BANNER_ID,
- order: V4_BETA_BANNER_ORDER,
- isVisible,
- elementRef: bannerRef,
- });
-
- if (!isVisible) {
- return null;
- }
-
- const dismissBanner = () => {
- setIsDismissed(true);
- };
-
- return (
- <div
- ref={bannerRef}
- className="bg-light-blue text-foreground fixed right-0 left-0 z-50 border-b"
- style={{ top: `${topOffset}px` }}
- role="status"
- aria-live="polite"
- >
- <div className="flex items-center gap-2 py-1.5 pl-3">
- <ZapIcon className="h-4 w-4 shrink-0" />
- <p className="flex flex-1 flex-row gap-1 text-sm">
- <span className="font-semibold">
- Faster Langfuse experience enabled (preview).
- </span>{" "}
- Missing real-time data? Upgrade your Langfuse SDK to the latest major
- version.{" "}
- <Link
- href={CHANGELOG_URL}
- target="_blank"
- className="flex flex-row items-center gap-1 underline underline-offset-2"
- >
- Learn more
- <ExternalLink className="h-3 w-3" />
- </Link>
- </p>
- <Button
- variant="ghost"
- size="sm"
- className="h-6 w-6 p-0"
- onClick={dismissBanner}
- aria-label="Dismiss Preview (fast) banner"
- title="Dismiss"
- >
- <X className="h-4 w-4" />
- </Button>
- </div>
- </div>
- );
-}
diff --git a/web/src/features/events/components/V4PromoBanner.tsx b/web/src/features/events/components/V4PromoBanner.tsx
deleted file mode 100644
index f274776d1e..0000000000
--- a/web/src/features/events/components/V4PromoBanner.tsx
+++ /dev/null
@@ -1,148 +0,0 @@
-import { useRef } from "react";
-import { useRouter } from "next/router";
-import Link from "next/link";
-import { ZapIcon, X, ExternalLink } from "lucide-react";
-import { useSession } from "next-auth/react";
-import { Button } from "@/src/components/ui/button";
-import useLocalStorage from "@/src/components/useLocalStorage";
-import {
- useTopBanner,
- useTopBannerRegistration,
-} from "@/src/features/top-banner";
-import { useV4Beta } from "@/src/features/events/hooks/useV4Beta";
-import { V4IntroDialog } from "@/src/features/events/components/V4IntroDialog";
-import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
-
-const CHANGELOG_URL =
- "https://langfuse.com/changelog/2026-03-10-simplify-for-scale";
-const DISMISSED_STORAGE_KEY = "v4-beta-promo-banner:v1:dismissed";
-const V4_BETA_PROMO_BANNER_ID = "v4-beta-promo-banner";
-const V4_BETA_PROMO_BANNER_ORDER = 25;
-
-const PAGE_MESSAGES: Record<string, string> = {
- "/project/[projectId]": "Faster dashboards available.",
- "/project/[projectId]/dashboards": "Faster dashboards available.",
- "/project/[projectId]/dashboards/[dashboardId]":
- "Faster dashboards available.",
- "/project/[projectId]/traces": "Faster trace UI available.",
- "/project/[projectId]/traces/[traceId]": "Faster trace UI available.",
-};
-
-export function V4PromoBanner() {
- const router = useRouter();
- const session = useSession();
- const {
- isBetaEnabled,
- canToggleV4,
- enableWithIntro,
- showIntroDialog,
- confirmIntroDialog,
- dismissIntroDialog,
- isLoading,
- } = useV4Beta();
- const capture = usePostHogClientCapture();
- const { getTopBannerOffset } = useTopBanner();
- const [isDismissed, setIsDismissed] = useLocalStorage<boolean>(
- DISMISSED_STORAGE_KEY,
- false,
- );
- const bannerRef = useRef<HTMLDivElement>(null);
-
- const isAuthenticated = session.status === "authenticated";
-
- // Match the v4BetaToggleVisible logic from navigationFilters.ts.
- const isToggleVisible = canToggleV4;
- const pageMessage = PAGE_MESSAGES[router.pathname];
-
- const isVisible =
- isAuthenticated &&
- !isBetaEnabled &&
- !isDismissed &&
- isToggleVisible &&
- !!pageMessage;
-
- const topOffset = getTopBannerOffset(V4_BETA_PROMO_BANNER_ORDER);
-
- useTopBannerRegistration({
- bannerId: V4_BETA_PROMO_BANNER_ID,
- order: V4_BETA_PROMO_BANNER_ORDER,
- isVisible,
- elementRef: bannerRef,
- });
-
- if (!isVisible) {
- return (
- <V4IntroDialog
- open={showIntroDialog}
- onConfirm={confirmIntroDialog}
- onDismiss={dismissIntroDialog}
- />
- );
- }
-
- return (
- <div
- ref={bannerRef}
- className="bg-light-blue text-foreground fixed right-0 left-0 z-50 border-b"
- style={{ top: `${topOffset}px` }}
- role="status"
- aria-live="polite"
- >
- <div className="flex items-center gap-2 py-1.5 pl-3">
- <ZapIcon className="h-4 w-4 shrink-0" />
- <p
- className="flex flex-1 gap-1 overflow-hidden text-sm"
- title={`${pageMessage} Enable the Fast (Preview) toggle for a more performant experience.`}
- >
- <span
- className="truncate"
- title={`${pageMessage} Enable the Fast (Preview) toggle for a more performant experience.`}
- >
- <span className="hidden font-semibold md:inline">
- {pageMessage}
- </span>{" "}
- Enable the{" "}
- <button
- className="inline cursor-pointer font-semibold underline underline-offset-2"
- onClick={() => {
- enableWithIntro({
- onSuccess: () => {
- capture("sidebar:v4_beta_toggled", { enabled: true });
- },
- });
- }}
- disabled={isLoading}
- >
- Fast (Preview)
- </button>{" "}
- toggle for a more performant experience.{" "}
- </span>
-
- <Link
- href={CHANGELOG_URL}
- target="_blank"
- className="flex flex-row items-center gap-1 whitespace-nowrap underline underline-offset-2"
- >
- Learn more
- <ExternalLink className="h-3 w-3 shrink-0" />
- </Link>
- </p>
- <Button
- variant="ghost"
- size="sm"
- className="h-6 w-6 shrink-0 p-0"
- onClick={() => setIsDismissed(true)}
- aria-label="Dismiss banner"
- title="Dismiss"
- >
- <X className="h-4 w-4 shrink-0" />
- </Button>
- </div>
- <V4IntroDialog
- open={showIntroDialog}
- onConfirm={confirmIntroDialog}
- onDismiss={dismissIntroDialog}
- />
- </div>
- );
-}
diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx
index d7d4287adc..4803ca3b3a 100644
--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx
+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx
@@ -1,11 +1,10 @@
-import { useCallback, useRef, useState } from "react";
import { Button } from "@/src/components/ui/button";
import { JSONView } from "@/src/components/ui/CodeJsonViewer";
import { DatasetRunItemsByRunTable } from "@/src/features/datasets/components/DatasetRunItemsByRunTable";
import { DeleteDatasetRunButton } from "@/src/features/datasets/components/DeleteDatasetRunButton";
import { DetailPageNav } from "@/src/features/navigate-detail-pages/DetailPageNav";
import { api } from "@/src/utils/api";
-import { Columns3, Info, MoreVertical } from "lucide-react";
+import { Columns3, MoreVertical } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/router";
import Page from "@/src/components/layouts/page";
@@ -23,18 +22,12 @@ import {
} from "@/src/components/ui/side-panel";
import { Skeleton } from "@/src/components/ui/skeleton";
import { LocalIsoDate } from "@/src/components/LocalIsoDate";
-import { Alert, AlertDescription, AlertTitle } from "@/src/components/ui/alert";
-import { useV4Beta } from "@/src/features/events/hooks/useV4Beta";
-import { V4IntroDialog } from "@/src/features/events/components/V4IntroDialog";
export default function Dataset() {
const router = useRouter();
const projectId = router.query.projectId as string;
const datasetId = router.query.datasetId as string;
const runId = router.query.runId as string;
- const [areRunItemsLoadingTooLong, setAreRunItemsLoadingTooLong] =
- useState(false);
- const runItemsLoadingTimeoutRef = useRef<number | null>(null);
const dataset = api.datasets.byId.useQuery({
datasetId,
@@ -45,34 +38,6 @@ export default function Dataset() {
projectId,
runId,
});
- const {
- isBetaEnabled: isFastPreviewEnabled,
- canToggleV4,
- enableWithIntro,
- showIntroDialog,
- confirmIntroDialog,
- dismissIntroDialog,
- isLoading: isFastPreviewToggleLoading,
- } = useV4Beta();
-
- const showSlowRunItemsAlert =
- areRunItemsLoadingTooLong && !isFastPreviewEnabled && canToggleV4;
-
- const handleRunItemsLoadingChange = useCallback((isLoading: boolean) => {
- if (runItemsLoadingTimeoutRef.current !== null) {
- window.clearTimeout(runItemsLoadingTimeoutRef.current);
- runItemsLoadingTimeoutRef.current = null;
- }
-
- setAreRunItemsLoadingTooLong(false);
-
- if (isLoading) {
- runItemsLoadingTimeoutRef.current = window.setTimeout(() => {
- setAreRunItemsLoadingTooLong(true);
- runItemsLoadingTimeoutRef.current = null;
- }, 5_000);
- }
- }, []);
return (
<Page
@@ -133,35 +98,11 @@ export default function Dataset() {
>
<div className="grid flex-1 grid-cols-[1fr_auto] overflow-hidden">
<div className="flex h-full flex-col overflow-hidden">
- {showSlowRunItemsAlert ? (
- <Alert variant="info" className="m-3 mb-0 w-auto shrink-0">
- <Info className="h-4 w-4" />
- <AlertTitle>
- Loading dataset run items is taking longer than usual
- </AlertTitle>
- <AlertDescription className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
- <span>
- Enable Fast Preview for a more performant experiment run view.
- </span>
- <Button
- type="button"
- variant="outline"
- size="sm"
- className="w-fit"
- onClick={() => enableWithIntro()}
- disabled={isFastPreviewToggleLoading}
- >
- Enable Fast Preview
- </Button>
- </AlertDescription>
- </Alert>
- ) : null}
<DatasetRunItemsByRunTable
projectId={projectId}
datasetId={datasetId}
datasetRunId={runId}
datasetVersion={run.data?.datasetVersion}
- onLoadingChange={handleRunItemsLoadingChange}
/>
</div>
<SidePanel
@@ -211,11 +152,6 @@ export default function Dataset() {
</SidePanelContent>
</SidePanel>
</div>
- <V4IntroDialog
- open={showIntroDialog}
- onConfirm={confirmIntroDialog}
- onDismiss={dismissIntroDialog}
- />
</Page>
);
}