Skip to content

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

feat(web): explain v4 migration in upgrade panel, banner, and preview toggle UX (#15543)

Trang Nguyen0a42971e8be5
diff --git a/web/src/components/layouts/routes.tsx b/web/src/components/layouts/routes.tsx
index 94bb098571..daa4661a76 100644
--- a/web/src/components/layouts/routes.tsx
+++ b/web/src/components/layouts/routes.tsx
@@ -27,8 +27,8 @@ import { type Session } from "next-auth";
import { type OrganizationScope } from "@/src/features/rbac/constants/organizationAccessRights";
import { SupportButton } from "@/src/components/nav/support-button";
import { V4MigrationNavItem } from "@/src/features/v4-migration/V4MigrationNavItem";
-import { BookACallButton } from "@/src/components/nav/book-a-call-button";
import { V4SidebarToggle } from "@/src/features/events/components/V4SidebarToggle";
+import { BookACallButton } from "@/src/components/nav/book-a-call-button";
import { SidebarMenuButton } from "@/src/components/ui/sidebar";
import { KeyboardShortcut } from "@/src/components/ui/keyboard-shortcut";
import { useCommandMenu } from "@/src/features/command-k-menu/CommandMenuProvider";
@@ -221,13 +221,6 @@ export const ROUTES: Route[] = [
pathname: "",
menuNode: <CloudStatusMenu />,
},
- {
- title: "Preview (fast)",
- pathname: "",
- section: RouteSection.Secondary,
- featureFlag: "v4BetaToggleVisible",
- menuNode: <V4SidebarToggle />,
- },
{
title: "Update",
pathname: "",
@@ -236,6 +229,13 @@ export const ROUTES: Route[] = [
show: ({ projectId }) => projectId !== undefined,
menuNode: <V4MigrationNavItem />,
},
+ {
+ title: "V4 Preview",
+ pathname: "",
+ section: RouteSection.Secondary,
+ featureFlag: "v4BetaToggleVisible",
+ menuNode: <V4SidebarToggle />,
+ },
{
title: "Settings",
pathname: "/project/[projectId]/settings",
diff --git a/web/src/features/events/components/V4SidebarToggle.tsx b/web/src/features/events/components/V4SidebarToggle.tsx
index 969b4cd19f..def7298479 100644
--- a/web/src/features/events/components/V4SidebarToggle.tsx
+++ b/web/src/features/events/components/V4SidebarToggle.tsx
@@ -9,16 +9,18 @@ import {
import { useV4Beta } from "@/src/features/events/hooks/useV4Beta";
import { V4IntroDialog } from "@/src/features/events/components/V4IntroDialog";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
+import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";
import { ZapIcon } from "lucide-react";
+import { useId } from "react";
import { useRouter } from "next/router";
import {
singleRunToExperimentsUrl,
toExperimentsResultsUrl,
} from "@/src/features/experiments/utils/experimentUrlTranslation";
-const PREVIEW_FAST_DESCRIPTION =
+const V4_PREVIEW_LABEL = "V4 Preview";
+const V4_PREVIEW_DESCRIPTION =
"Get a more performant Langfuse experience. Upgrade SDKs to the latest major for real-time data. This is a personal setting.";
-const PREVIEW_FAST_DESCRIPTION_ID = "preview-fast-toggle-description";
function asSingleValue(value: string | string[] | undefined) {
return Array.isArray(value) ? value[0] : value;
@@ -29,7 +31,11 @@ function asArrayValue(value: string | string[] | undefined) {
return Array.isArray(value) ? value : [value];
}
-export function V4SidebarToggle() {
+// Shared behavior for every V4 Preview toggle surface: session-backed state,
+// intro dialog on first enable, and the datasets/experiments URL translation
+// that keeps the current page valid after switching. `source` distinguishes
+// the surfaces in the shared v4_beta_toggled event.
+function useV4PreviewToggle(source: "sidebar" | "migration_panel") {
const router = useRouter();
const {
isBetaEnabled,
@@ -43,10 +49,6 @@ export function V4SidebarToggle() {
} = useV4Beta();
const capture = usePostHogClientCapture();
- if (!canToggleV4) {
- return null;
- }
-
const redirectAfterToggle = (enabled: boolean) => {
const projectId = asSingleValue(router.query.projectId);
if (!projectId) return;
@@ -84,25 +86,52 @@ export function V4SidebarToggle() {
}
};
- const handleToggle = (enabled: boolean) => {
+ // afterToggle, when given, replaces the default same-page URL translation
+ // and runs only after the toggle actually committed (mutation + session
+ // update done, intro dialog confirmed rather than dismissed).
+ const handleToggle = (enabled: boolean, afterToggle?: () => void) => {
+ const onSuccess = () => {
+ capture("sidebar:v4_beta_toggled", { enabled, source });
+ if (afterToggle) {
+ afterToggle();
+ } else {
+ redirectAfterToggle(enabled);
+ }
+ };
if (enabled) {
- enableWithIntro({
- onSuccess: () => {
- capture("sidebar:v4_beta_toggled", { enabled: true });
- redirectAfterToggle(true);
- },
- });
+ enableWithIntro({ onSuccess });
} else {
- setBetaEnabled(false, {
- onSuccess: () => {
- capture("sidebar:v4_beta_toggled", { enabled: false });
- redirectAfterToggle(false);
- },
- });
+ setBetaEnabled(false, { onSuccess });
}
};
- const fastPreviewLabel = "Fast (Preview)";
+ return {
+ isBetaEnabled,
+ canToggleV4,
+ isLoading,
+ handleToggle,
+ showIntroDialog,
+ confirmIntroDialog,
+ dismissIntroDialog,
+ };
+}
+
+export function V4SidebarToggle() {
+ const {
+ isBetaEnabled,
+ canToggleV4,
+ isLoading,
+ handleToggle,
+ showIntroDialog,
+ confirmIntroDialog,
+ dismissIntroDialog,
+ } = useV4PreviewToggle("sidebar");
+ const v4UpgradeUiEnabled = useV4UpgradeUiEnabled();
+
+ // v4-upgrade users get this toggle inside the migration panel instead.
+ if (!canToggleV4 || v4UpgradeUiEnabled) {
+ return null;
+ }
return (
<>
@@ -116,9 +145,9 @@ export function V4SidebarToggle() {
<Label
htmlFor="v4-beta-toggle"
className="block min-w-0 flex-1 cursor-pointer truncate text-sm font-normal"
- title={fastPreviewLabel}
+ title={V4_PREVIEW_LABEL}
>
- {fastPreviewLabel}
+ {V4_PREVIEW_LABEL}
</Label>
</div>
<Tooltip>
@@ -130,17 +159,17 @@ export function V4SidebarToggle() {
checked={isBetaEnabled}
onCheckedChange={handleToggle}
disabled={isLoading}
- aria-label="Toggle Preview (fast)"
- aria-describedby={PREVIEW_FAST_DESCRIPTION_ID}
+ aria-label="Toggle V4 Preview"
+ aria-describedby="v4-preview-sidebar-description"
/>
</div>
</TooltipTrigger>
<TooltipContent side="right" className="max-w-xs text-xs">
- {PREVIEW_FAST_DESCRIPTION}
+ {V4_PREVIEW_DESCRIPTION}
</TooltipContent>
</Tooltip>
- <span id={PREVIEW_FAST_DESCRIPTION_ID} className="sr-only">
- {PREVIEW_FAST_DESCRIPTION}
+ <span id="v4-preview-sidebar-description" className="sr-only">
+ {V4_PREVIEW_DESCRIPTION}
</span>
</div>
</SidebarMenuButton>
@@ -152,3 +181,67 @@ export function V4SidebarToggle() {
</>
);
}
+
+// Panel-row variant of the toggle, rendered inside the v4-migration panel's
+// "Want to review first?" section. Toggling in either direction jumps to the
+// project's traces page (the panel stays open across the navigation) so users
+// see the switched experience immediately.
+export function V4PreviewToggleRow({ projectId }: { projectId?: string }) {
+ const router = useRouter();
+ // Panel and modal can render this row at the same time, so ids must be
+ // instance-scoped for the label/description associations to hold.
+ const toggleId = useId();
+ const descriptionId = useId();
+ const {
+ isBetaEnabled,
+ canToggleV4,
+ isLoading,
+ handleToggle,
+ showIntroDialog,
+ confirmIntroDialog,
+ dismissIntroDialog,
+ } = useV4PreviewToggle("migration_panel");
+
+ if (!canToggleV4) {
+ return null;
+ }
+
+ const handlePanelToggle = (enabled: boolean) => {
+ handleToggle(
+ enabled,
+ projectId ? () => router.push(`/project/${projectId}/traces`) : undefined,
+ );
+ };
+
+ return (
+ <>
+ <div className="flex items-center gap-2">
+ <span className="shrink-0 text-sm">V3</span>
+ <Switch
+ id={toggleId}
+ size="sm"
+ checked={isBetaEnabled}
+ onCheckedChange={handlePanelToggle}
+ disabled={isLoading}
+ aria-label="Toggle V4 Preview"
+ aria-describedby={descriptionId}
+ />
+ <Label
+ htmlFor={toggleId}
+ className="block min-w-0 cursor-pointer truncate text-sm font-normal"
+ title={V4_PREVIEW_LABEL}
+ >
+ {V4_PREVIEW_LABEL}
+ </Label>
+ <span id={descriptionId} className="sr-only">
+ {V4_PREVIEW_DESCRIPTION}
+ </span>
+ </div>
+ <V4IntroDialog
+ open={showIntroDialog}
+ onConfirm={confirmIntroDialog}
+ onDismiss={dismissIntroDialog}
+ />
+ </>
+ );
+}
diff --git a/web/src/features/organizations/components/ProjectOverview.tsx b/web/src/features/organizations/components/ProjectOverview.tsx
index afee313615..de50b4175c 100644
--- a/web/src/features/organizations/components/ProjectOverview.tsx
+++ b/web/src/features/organizations/components/ProjectOverview.tsx
@@ -34,6 +34,7 @@ import ContainerPage from "@/src/components/layouts/container-page";
import { type Session } from "next-auth";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
import { AgentToolsBanner } from "@/src/features/developer-tools/components/AgentToolsBanner";
+import { V4MigrationBanner } from "@/src/features/v4-migration/V4MigrationBanner";
import { V4MigrationProjectChip } from "@/src/features/v4-migration/V4MigrationProjectChip";
import { api } from "@/src/utils/api";
import { formatCompactRelativeTime } from "@/src/utils/dates";
@@ -327,6 +328,7 @@ export const OrganizationProjectOverview = () => {
const router = useRouter();
const queryOrgId = router.query.organizationId;
const session = useSession();
+ const v4UpgradeUiEnabled = useV4UpgradeUiEnabled();
const canCreateOrg = session.data?.user?.canCreateOrganizations;
const organizations = session.data?.user?.organizations;
const [{ search }, setQueryParams] = useQueryParams({ search: StringParam });
@@ -385,7 +387,7 @@ export const OrganizationProjectOverview = () => {
),
}}
>
- <AgentToolsBanner />
+ {v4UpgradeUiEnabled ? <V4MigrationBanner /> : <AgentToolsBanner />}
{showOnboarding && <Onboarding />}
{organizations
.map((org) => {
diff --git a/web/src/features/posthog-analytics/usePostHogClientCapture.ts b/web/src/features/posthog-analytics/usePostHogClientCapture.ts
index d0544b2e8a..c2eec4a26c 100644
--- a/web/src/features/posthog-analytics/usePostHogClientCapture.ts
+++ b/web/src/features/posthog-analytics/usePostHogClientCapture.ts
@@ -317,6 +317,7 @@ export const events = {
],
v4_migration: [
"in_app_agent_opened",
+ "coding_agent_prompt_viewed",
"coding_agent_prompt_copied",
"delay_badge_clicked",
"project_chip_clicked",
@@ -325,6 +326,10 @@ export const events = {
"status_row_clicked",
"update_required_badge_clicked",
"migrate_evals_with_agent_clicked",
+ "overview_banner_status_clicked",
+ "overview_banner_docs_clicked",
+ "panel_status_link_clicked",
+ "panel_docs_link_clicked",
],
// Filter/search-bar usage analytics (LFE-10781). METADATA ONLY — payloads
// never carry a raw filter value, search text, or AI prompt (PII). Only
diff --git a/web/src/features/v4-migration/V4MigrationBanner.tsx b/web/src/features/v4-migration/V4MigrationBanner.tsx
new file mode 100644
index 0000000000..30effb7e10
--- /dev/null
+++ b/web/src/features/v4-migration/V4MigrationBanner.tsx
@@ -0,0 +1,64 @@
+import Link from "next/link";
+import { Zap } from "lucide-react";
+import { Callout } from "@/src/components/ui/callout";
+import { Button } from "@/src/components/ui/button";
+import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
+
+const V4_DOCS_URL = "https://langfuse.com/docs/v4";
+// Shorter than the Callout default (30d) so the banner resurfaces while the
+// migration deadline approaches.
+const DISMISS_TTL_MS = 7 * 24 * 60 * 60 * 1000;
+
+/**
+ * Org-overview banner announcing v4 with links to the migration status page
+ * and docs. Replaces the agent-tools banner for v4-upgrade users.
+ */
+export function V4MigrationBanner() {
+ const capture = usePostHogClientCapture();
+
+ return (
+ <Callout
+ className="mb-4"
+ id="v4-migration-banner:v1"
+ ttlMs={DISMISS_TTL_MS}
+ variant="info"
+ align="middle"
+ actions={() => (
+ <>
+ <Button asChild size="sm" variant="secondary">
+ <Link
+ href="/v4-migration"
+ onClick={() =>
+ capture("v4_migration:overview_banner_status_clicked")
+ }
+ >
+ Check status
+ </Link>
+ </Button>
+ <Button asChild size="sm" variant="secondary">
+ <a
+ href={V4_DOCS_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() =>
+ capture("v4_migration:overview_banner_docs_clicked")
+ }
+ >
+ Docs
+ </a>
+ </Button>
+ </>
+ )}
+ >
+ <div className="flex items-center gap-2">
+ <Zap className="h-4 w-4 shrink-0" />
+ <span>
+ <span className="font-bold">
+ Langfuse v4 is here: real-time and up to 165× faster.
+ </span>{" "}
+ All projects need an upgrade.
+ </span>
+ </div>
+ </Callout>
+ );
+}
diff --git a/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx b/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
index 2382e168f6..382f5709ff 100644
--- a/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
@@ -56,6 +56,12 @@ vi.mock("@/src/features/in-app-agent/components/InAppAiAgentProvider", () => ({
useInAppAiAgent: () => ({ setOpen: vi.fn(), submit: vi.fn() }),
}));
+// The toggle row pulls in session + tRPC state via useV4Beta; stub it so the
+// content tests need no SessionProvider or tRPC client.
+vi.mock("@/src/features/events/components/V4SidebarToggle", () => ({
+ V4PreviewToggleRow: () => null,
+}));
+
vi.mock("@/src/components/ui/collapsible", () => ({
Collapsible: ({ children }: { children: React.ReactNode }) => (
<div>{children}</div>
diff --git a/web/src/features/v4-migration/V4MigrationContent.tsx b/web/src/features/v4-migration/V4MigrationContent.tsx
index dd5906ef60..48084d19b8 100644
--- a/web/src/features/v4-migration/V4MigrationContent.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.tsx
@@ -1,4 +1,4 @@
-import { type ReactNode } from "react";
+import { type ReactNode, useState } from "react";
import { useRouter } from "next/router";
import Link from "next/link";
import {
@@ -35,6 +35,7 @@ import {
import { numberFormatter } from "@/src/utils/numbers";
import { formatCompactRelativeTime } from "@/src/utils/dates";
import { useProject } from "@/src/features/projects/hooks";
+import { V4PreviewToggleRow } from "@/src/features/events/components/V4SidebarToggle";
import {
useEvalUpgradeAssistantPlan,
V4_CODING_AGENT_PROMPT,
@@ -50,6 +51,8 @@ const OTEL_V4_MIGRATION_URL =
"https://langfuse.com/integrations/native/opentelemetry/migration-to-v4";
const DEPRECATED_API_MIGRATION_URL =
"https://langfuse.com/faq/all/deprecated-api-migration";
+const OBSERVATIONS_DATA_MODEL_URL =
+ "https://langfuse.com/docs/observability/data-model#observations-and-traces";
const DEPRECATED_INTEGRATION_MIGRATION_URLS: Record<string, string> = {
PostHog:
"https://langfuse.com/integrations/analytics/posthog#migrate-export-source",
@@ -277,36 +280,75 @@ function V4MigrationSdkSection({ sdk }: { sdk: V4MigrationSdkState }) {
);
}
-// Title, description, and the primary agent CTA.
+// Title, description, and the primary agent CTA. The CTA is two-step: the
+// first click reveals the prompt so users can see what they hand to their
+// agent, the second click copies it.
export function V4MigrationHeaderContent({
projectName,
+ onNavigate,
}: {
projectName?: string;
+ /** Fires when an internal link is followed so the surface can close. */
+ onNavigate?: () => void;
}) {
+ const capture = usePostHogClientCapture();
const handleCopyPrompt = useCopyMigrationPrompt();
+ const [promptVisible, setPromptVisible] = useState(false);
+
+ const handleShowPrompt = () => {
+ capture("v4_migration:coding_agent_prompt_viewed");
+ setPromptVisible(true);
+ };
return (
<>
- <p className="mb-1.5 text-lg font-bold">
- {projectName ? (
- <>
- Review v4 migration for{" "}
- <span className="underline">{projectName}</span>
- </>
- ) : (
- "Review v4 migration"
- )}
- </p>
+ <div className="mb-1.5 flex items-baseline justify-between gap-2">
+ <p className="min-w-0 text-lg font-bold">
+ {projectName ? <>Migrate {projectName} to v4</> : "Migrate to v4"}
+ </p>
+ <Link
+ href="/v4-migration"
+ onClick={() => {
+ capture("v4_migration:panel_status_link_clicked");
+ onNavigate?.();
+ }}
+ className="shrink-0 text-sm underline"
+ >
+ Migration Status
+ </Link>
+ </div>
<p className="text-muted-foreground mb-3 text-sm leading-relaxed">
- Review the items below and update anything still using the legacy data
- model.
+ <ExternalLink href={V4_DOCS_URL} className="text-inherit underline">
+ Langfuse v4
+ </ExternalLink>{" "}
+ is here: real-time, up to 165× faster, plus new dashboards, alerting,
+ sessions, and trace view. This project still uses the previous setup,
+ which stops working soon.
</p>
- <div className="flex flex-wrap items-center gap-2">
- <RainbowButton className="w-full" onClick={handleCopyPrompt}>
- <Copy className="mr-1.5 h-4 w-4 shrink-0" />
- <span className="min-w-0 truncate" title="Copy prompt for agents">
- Copy prompt for agents
- </span>
+ <div className="flex flex-col gap-2">
+ {promptVisible && (
+ <div className="bg-muted/50 max-h-44 overflow-y-auto rounded-md border p-3">
+ <code className="text-muted-foreground font-mono text-xs leading-5 break-words whitespace-pre-wrap">
+ {V4_CODING_AGENT_PROMPT}
+ </code>
+ </div>
+ )}
+ <RainbowButton
+ className="w-full"
+ onClick={promptVisible ? handleCopyPrompt : handleShowPrompt}
+ >
+ {promptVisible ? (
+ <>
+ <Copy className="mr-1.5 h-4 w-4 shrink-0" />
+ <span className="min-w-0 truncate" title="Copy prompt">
+ Copy prompt
+ </span>
+ </>
+ ) : (
+ <span className="min-w-0 truncate" title="Update SDK with agents">
+ Update SDK with agents
+ </span>
+ )}
</RainbowButton>
</div>
</>
@@ -369,37 +411,44 @@ export function V4MigrationDetailsContent({
return (
<>
<div className="flex flex-col gap-3">
- <div className="flex items-center gap-2 text-base font-bold">
- <LibraryBig className="h-4 w-4" /> Want to review first?
- </div>
- <div className="flex items-center gap-2">
- <Button variant="outline" asChild className="min-w-0 flex-1">
- <a href={V4_DOCS_URL} target="_blank" rel="noopener noreferrer">
- <span className="min-w-0 truncate" title="Documentation">
- Documentation
- </span>
- </a>
- </Button>
- <Button variant="outline" asChild className="min-w-0 flex-1">
- <Link href="/v4-migration" onClick={onNavigate}>
- <span className="min-w-0 truncate" title="Check migration status">
- Check migration status
- </span>
- </Link>
- </Button>
+ <div className="flex items-center justify-between gap-2">
+ <div className="flex items-center gap-2 text-base font-bold">
+ <LibraryBig className="h-4 w-4" /> Want to review first?
+ </div>
+ <V4PreviewToggleRow projectId={projectId} />
</div>
+ <p className="text-muted-foreground text-sm">
+ The latest SDK no longer sets trace input and output; v4{" "}
+ <ExternalLink
+ href={OBSERVATIONS_DATA_MODEL_URL}
+ className="text-inherit underline"
+ >
+ infers them from observations
+ </ExternalLink>
+ . Use this toggle to compare both views while you upgrade.
+ </p>
</div>
<Separator />
<div className="flex flex-col gap-3">
- <div className="flex items-center gap-2 text-base font-bold">
- <TriangleAlert className="h-4 w-4" /> What happens if I don&apos;t
- update?
+ <div className="flex items-center justify-between gap-2">
+ <div className="flex items-center gap-2 text-base font-bold">
+ <TriangleAlert className="h-4 w-4" /> What happens if I don&apos;t
+ update?
+ </div>
+ <a
+ href={V4_DOCS_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => capture("v4_migration:panel_docs_link_clicked")}
+ className="text-foreground shrink-0 text-sm underline"
+ >
+ Documentation
+ </a>
</div>
<p className="text-muted-foreground text-sm">
- Some features will stop working{" "}
- <span className="text-dark-yellow">soon</span>.
+ Some features will stop working soon.
</p>
<div>
<V4MigrationSdkSection sdk={migrationData.sdk} />
@@ -492,8 +541,7 @@ export function V4MigrationDetailsContent({
<>
<p className="text-muted-foreground mb-2 text-sm">
You&apos;ve called these deprecated endpoints in the last{" "}
- {V4_MIGRATION_LOOKBACK_DAYS} days. They stop working{" "}
- <span className="text-dark-yellow">soon</span>; the{" "}
+ {V4_MIGRATION_LOOKBACK_DAYS} days. They stop working soon; the{" "}
<ExternalLink href={DEPRECATED_API_MIGRATION_URL}>
migration guide
</ExternalLink>{" "}
diff --git a/web/src/features/v4-migration/V4MigrationModal.tsx b/web/src/features/v4-migration/V4MigrationModal.tsx
index 46814549df..dc2ff42797 100644
--- a/web/src/features/v4-migration/V4MigrationModal.tsx
+++ b/web/src/features/v4-migration/V4MigrationModal.tsx
@@ -56,10 +56,13 @@ function V4MigrationModalContent({
closeOnInteractionOutside
>
<DialogTitle className="sr-only">
- {`Review v4 migration for ${project.name}`}
+ {`Migrate ${project.name} to v4`}
</DialogTitle>
<DialogBody className="gap-0 p-4">
- <V4MigrationHeaderContent projectName={project.name} />
+ <V4MigrationHeaderContent
+ projectName={project.name}
+ onNavigate={() => setOpen(false)}
+ />
<Separator className="my-6" />
<div className="flex flex-col gap-6">
<V4MigrationDetailsContent
diff --git a/web/src/features/v4-migration/V4MigrationPanel.tsx b/web/src/features/v4-migration/V4MigrationPanel.tsx
index c5e05e644c..7cfa458f05 100644
--- a/web/src/features/v4-migration/V4MigrationPanel.tsx
+++ b/web/src/features/v4-migration/V4MigrationPanel.tsx
@@ -52,7 +52,10 @@ export const V4MigrationPanel = ({
</div>
<div className="flex-1 overflow-y-auto border-t">
<div className="bg-background sticky top-0 z-[1] px-4 pt-4">
- <V4MigrationHeaderContent projectName={project?.name} />
+ <V4MigrationHeaderContent
+ projectName={project?.name}
+ onNavigate={() => setOpen(false)}
+ />
<Separator className="mt-6" />
</div>
diff --git a/web/src/features/v4-migration/V4MigrationStatusPage.tsx b/web/src/features/v4-migration/V4MigrationStatusPage.tsx
index 52cdc35c64..d941270172 100644
--- a/web/src/features/v4-migration/V4MigrationStatusPage.tsx
+++ b/web/src/features/v4-migration/V4MigrationStatusPage.tsx
@@ -2,9 +2,8 @@ import { useState, type ReactNode } from "react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useSession } from "next-auth/react";
-import { ArrowRight, Copy } from "lucide-react";
+import { ArrowRight } from "lucide-react";
import ContainerPage from "@/src/components/layouts/container-page";
-import { RainbowButton } from "@/src/components/magicui/rainbow-button";
import { Card } from "@/src/components/ui/card";
import {
Table,
@@ -504,11 +503,6 @@ function V4MigrationStatusPageContent() {
const isChecking =
session.status === "loading" ||
readiness.some((state) => state === "checking");
- const projectsNeedingAction = readiness.filter(
- (state) => state === "action-needed",
- ).length;
- const shouldShowUpdateAllButton =
- !isChecking && totalProjects > 0 && projectsNeedingAction > 0;
return (
<ContainerPage
@@ -543,14 +537,6 @@ function V4MigrationStatusPageContent() {
)}
</div>
</div>
- {shouldShowUpdateAllButton && (
- <RainbowButton onClick={handleCopyPrompt}>
- <Copy className="mr-1.5 h-4 w-4 shrink-0" />
- <span className="min-w-0 truncate" title="Update all with agents">
- Update all with agents
- </span>
- </RainbowButton>
- )}
</Card>
{orgs.map((org) => (