Skip to content

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

feat(v4-migration): add v4 features pitch with docs links to upgrade sidebar header (#16087)

Max Deichmanndde55d0cfa07
diff --git a/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx b/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
index d9c825985e..9c926804e9 100644
--- a/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
@@ -1064,11 +1064,34 @@ describe("V4MigrationHeaderContent", () => {
expect(screen.getByText("Upgrade to v4")).toBeInTheDocument();
expect(screen.queryByText(/Project 1/)).not.toBeInTheDocument();
+ expect(screen.getByText(/Langfuse v4 is live/)).toHaveTextContent(
+ "Langfuse v4 is live: a re-architecture of our data model and database tables. It is up to 165× more performant in UI and on APIs. It also enables new features such as full-text search, a new filter search bar, alerts, code evaluators, and the Langfuse Assistant. Complete the action items below to switch this project over. See docs.",
+ );
expect(
- screen.getByText(/Complete the action items below/),
- ).toHaveTextContent(
- "Langfuse v4 is here: real-time ingestion and up to 165× faster queries. Complete the action items below to switch this project over. See docs.",
+ screen.getByRole("link", { name: "full-text search" }),
+ ).toHaveAttribute(
+ "href",
+ "https://langfuse.com/docs/observability/features/full-text-search",
+ );
+ expect(
+ screen.getByRole("link", { name: "new filter search bar" }),
+ ).toHaveAttribute(
+ "href",
+ "https://langfuse.com/docs/observability/features/filter-search-bar",
);
+ expect(screen.getByRole("link", { name: "alerts" })).toHaveAttribute(
+ "href",
+ "https://langfuse.com/docs/metrics/features/alerts",
+ );
+ expect(
+ screen.getByRole("link", { name: "code evaluators" }),
+ ).toHaveAttribute(
+ "href",
+ "https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators",
+ );
+ expect(
+ screen.getByRole("link", { name: "Langfuse Assistant" }),
+ ).toHaveAttribute("href", "https://langfuse.com/docs/langfuse-assistant");
expect(screen.getByRole("link", { name: "See docs." })).toHaveAttribute(
"href",
"https://langfuse.com/docs/v4",
@@ -1104,9 +1127,7 @@ describe("V4MigrationHeaderContent", () => {
expect(
screen.queryByText(/Complete the action items below/),
).not.toBeInTheDocument();
- expect(
- screen.getByText(/Langfuse v4 is here: real-time ingestion/),
- ).toBeInTheDocument();
+ expect(screen.getByText(/Langfuse v4 is live/)).toBeInTheDocument();
expect(
screen.queryByText(/some features may stop working/),
).not.toBeInTheDocument();
diff --git a/web/src/features/v4-migration/V4MigrationContent.tsx b/web/src/features/v4-migration/V4MigrationContent.tsx
index f6b07a0110..ab65b841f5 100644
--- a/web/src/features/v4-migration/V4MigrationContent.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.tsx
@@ -100,6 +100,15 @@ const EXPERIMENT_OTEL_INGESTION_URL =
const SDK_OVERVIEW_URL = "https://langfuse.com/docs/observability/sdk/overview";
const OTEL_INTEGRATION_URL =
"https://langfuse.com/integrations/native/opentelemetry";
+// v4 feature docs linked from the upgrade header pitch.
+const FULL_TEXT_SEARCH_URL =
+ "https://langfuse.com/docs/observability/features/full-text-search";
+const FILTER_SEARCH_BAR_URL =
+ "https://langfuse.com/docs/observability/features/filter-search-bar";
+const ALERTS_URL = "https://langfuse.com/docs/metrics/features/alerts";
+const CODE_EVALUATORS_URL =
+ "https://langfuse.com/docs/evaluation/evaluation-methods/code-evaluators";
+const LANGFUSE_ASSISTANT_URL = "https://langfuse.com/docs/langfuse-assistant";
// Hassieb's 2 minute walkthrough of the upgrade steps. Linked (not embedded)
// from the Need help footer, so the panel stays free of YouTube player
// chrome and the CSP frame-src stays untouched. Cloud only: the video covers
@@ -1032,9 +1041,47 @@ export function V4MigrationHeaderContent({
</div>
<div className="text-muted-foreground flex flex-col gap-2 text-sm leading-relaxed">
<p>
+ Langfuse v4 is live: a re-architecture of our data model and database
+ tables. It is up to 165× more performant in UI and on APIs. It also
+ enables new features such as{" "}
+ <ExternalLink
+ href={FULL_TEXT_SEARCH_URL}
+ analytics={{ section: "header", link: "full_text_search_docs" }}
+ >
+ full-text search
+ </ExternalLink>
+ , a{" "}
+ <ExternalLink
+ href={FILTER_SEARCH_BAR_URL}
+ analytics={{ section: "header", link: "filter_search_bar_docs" }}
+ >
+ new filter search bar
+ </ExternalLink>
+ ,{" "}
+ <ExternalLink
+ href={ALERTS_URL}
+ analytics={{ section: "header", link: "alerts_docs" }}
+ >
+ alerts
+ </ExternalLink>
+ ,{" "}
+ <ExternalLink
+ href={CODE_EVALUATORS_URL}
+ analytics={{ section: "header", link: "code_evaluators_docs" }}
+ >
+ code evaluators
+ </ExternalLink>
+ , and the{" "}
+ <ExternalLink
+ href={LANGFUSE_ASSISTANT_URL}
+ analytics={{ section: "header", link: "langfuse_assistant_docs" }}
+ >
+ Langfuse Assistant
+ </ExternalLink>
+ .
{actionNeeded
- ? "Langfuse v4 is here: real-time ingestion and up to 165× faster queries. Complete the action items below to switch this project over. "
- : "Langfuse v4 is here: real-time ingestion and up to 165× faster queries. "}
+ ? " Complete the action items below to switch this project over."
+ : ""}{" "}
<V4MigrationDocsLink />
</p>
{actionNeeded && <V4MigrationDeadlineNote />}