🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(web): disambiguate cloud status from v4 migration in sidebar (#16294)
Trang Nguyen297018949f04
diff --git a/web/src/components/layouts/routes.tsx b/web/src/components/layouts/routes.tsxindex 2fb4aca8ad..62352a9489 100644--- a/web/src/components/layouts/routes.tsx+++ b/web/src/components/layouts/routes.tsx@@ -201,22 +201,12 @@ export const ROUTES: Route[] = [section: RouteSection.Main,},{- title: "Upgrade",- icon: Sparkle,- pathname: "/project/[projectId]/settings/billing",- section: RouteSection.Secondary,- entitlements: ["cloud-billing"],- organizationRbacScope: "langfuseCloudBilling:CRUD",- show: ({ organization }) => organization?.plan === "cloud:hobby",- },- {- title: "Upgrade",- icon: Sparkle,- pathname: "/organization/[organizationId]/settings/billing",+ title: "Update",+ pathname: "",section: RouteSection.Secondary,- entitlements: ["cloud-billing"],- organizationRbacScope: "langfuseCloudBilling:CRUD",- show: ({ organization }) => organization?.plan === "cloud:hobby",+ show: ({ projectId, v4UpgradeUiAvailable }) =>+ v4UpgradeUiAvailable && projectId !== undefined,+ menuNode: <V4MigrationNavItem />,},{title: "Cloud Status",@@ -224,14 +214,6 @@ export const ROUTES: Route[] = [pathname: "",menuNode: <CloudStatusMenu />,},- {- title: "Update",- pathname: "",- section: RouteSection.Secondary,- show: ({ projectId, v4UpgradeUiAvailable }) =>- v4UpgradeUiAvailable && projectId !== undefined,- menuNode: <V4MigrationNavItem />,- },{title: "V4 Preview",pathname: "",@@ -239,6 +221,24 @@ export const ROUTES: Route[] = [featureFlag: "v4BetaToggleVisible",menuNode: <V4SidebarToggle />,},+ {+ title: "Upgrade Plan",+ icon: Sparkle,+ pathname: "/project/[projectId]/settings/billing",+ section: RouteSection.Secondary,+ entitlements: ["cloud-billing"],+ organizationRbacScope: "langfuseCloudBilling:CRUD",+ show: ({ organization }) => organization?.plan === "cloud:hobby",+ },+ {+ title: "Upgrade Plan",+ icon: Sparkle,+ pathname: "/organization/[organizationId]/settings/billing",+ section: RouteSection.Secondary,+ entitlements: ["cloud-billing"],+ organizationRbacScope: "langfuseCloudBilling:CRUD",+ show: ({ organization }) => organization?.plan === "cloud:hobby",+ },{title: "Settings",pathname: "/project/[projectId]/settings",diff --git a/web/src/features/cloud-status-notification/components/CloudStatusMenu.tsx b/web/src/features/cloud-status-notification/components/CloudStatusMenu.tsxindex 7179d5eb8f..2e0a42d792 100644--- a/web/src/features/cloud-status-notification/components/CloudStatusMenu.tsx+++ b/web/src/features/cloud-status-notification/components/CloudStatusMenu.tsx@@ -20,23 +20,26 @@ export function CloudStatusMenu() {return null;}- // Don't show anything while loading or if there's no incident- if (isLoading || data?.status === null || data?.status === "operational") {+ // Only show during an actual incident; maintenance (incl. scheduled)+ // isn't worth a nav item+ if (+ isLoading ||+ (data?.status !== "degraded" && data?.status !== "downtime")+ ) {return null;}return (- <SidebarMenuButton asChild tooltip="Status">+ <SidebarMenuButton asChild tooltip="Active incident"><Linkhref="https://status.langfuse.com"target="_blank"rel="noopener noreferrer">- <div className="relative mx-1 flex h-2 w-2 items-center justify-center">- <span className="absolute inline-flex h-2 w-2 animate-ping rounded-full bg-yellow-500 opacity-75"></span>- <span className="relative inline-flex h-2 w-2 rounded-full bg-yellow-600"></span>+ <div className="relative mx-1 flex h-2 w-2 shrink-0 items-center justify-center">+ <span className="bg-destructive inline-flex h-2 w-2 rounded-full" /></div>- Status+ Active incident</Link></SidebarMenuButton>);diff --git a/web/src/features/v4-migration/V4MigrationNavItem.tsx b/web/src/features/v4-migration/V4MigrationNavItem.tsxindex 7bb85777e6..db6898bb52 100644--- a/web/src/features/v4-migration/V4MigrationNavItem.tsx+++ b/web/src/features/v4-migration/V4MigrationNavItem.tsx@@ -34,18 +34,14 @@ export function V4MigrationNavItem() {};return (- <div className="px-2 py-2 group-data-[collapsible=icon]:hidden">- <SidebarMenuButton- onClick={handleClick}- tooltip={label}- className="border-input w-full gap-1.5 rounded-full border pr-2 pl-[9px]"- >- <span className="h-2 w-2 shrink-0 rounded-full bg-orange-400 dark:bg-orange-400" />- <span className="truncate font-bold" title={label}>- {label}- </span>- <ChevronRight className="text-muted-foreground ml-auto h-4 w-4 shrink-0" />- </SidebarMenuButton>- </div>+ <SidebarMenuButton onClick={handleClick} tooltip={label}>+ <div className="relative mx-1 flex h-2 w-2 shrink-0 items-center justify-center">+ <span className="inline-flex h-2 w-2 rounded-full bg-orange-400" />+ </div>+ <span className="truncate font-bold" title={label}>+ {label}+ </span>+ <ChevronRight className="text-muted-foreground ml-auto h-4 w-4 shrink-0" />+ </SidebarMenuButton>);}