🪢 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(cloud): usage indicator only on hobby plan (#4257)
Marc Klingen0d1b4f384a9e
diff --git a/web/src/ee/features/billing/components/UsageTracker.tsx b/web/src/ee/features/billing/components/UsageTracker.tsxindex 86a524138e..e2e3527a8a 100644--- a/web/src/ee/features/billing/components/UsageTracker.tsx+++ b/web/src/ee/features/billing/components/UsageTracker.tsx@@ -2,7 +2,10 @@ import { api } from "@/src/utils/api";import { useQueryProjectOrOrganization } from "@/src/features/projects/hooks";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { MAX_OBSERVATIONS_FREE_PLAN } from "@/src/ee/features/billing/constants";-import { useHasOrgEntitlement } from "@/src/features/entitlements/hooks";+import {+ useHasOrgEntitlement,+ useOrganizationPlan,+} from "@/src/features/entitlements/hooks";import {Card,CardContent,@@ -16,6 +19,7 @@ import Link from "next/link";export const UsageTracker = () => {const { organization } = useQueryProjectOrOrganization();const hasEntitlement = useHasOrgEntitlement("cloud-billing");+ const plan = useOrganizationPlan();const hasAccess = useHasOrganizationAccess({organizationId: organization?.id,scope: "langfuseCloudBilling:CRUD",@@ -38,7 +42,8 @@ export const UsageTracker = () => {usageQuery.isLoading ||!usageQuery.data ||!hasAccess ||- !hasEntitlement+ !hasEntitlement ||+ plan !== "cloud:hobby") {return null;}