🪢 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
feat(billing): add contact sales button for enterprise plan (#10401)
Marc Klingen4e365ca3b928
diff --git a/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsx b/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsxindex 0492ae15a3..6c4433b122 100644--- a/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsx+++ b/web/src/ee/features/billing/components/BillingSwitchPlanDialog.tsx@@ -255,34 +255,46 @@ export const BillingSwitchPlanDialog = ({</div>) : (// The default behavior when the user is not on a paid plan.- <ActionButton- onClick={() => {- if (organization) {- setProcessingPlanId(product.stripeProductId);+ <div className="mt-2 flex gap-1">+ <ActionButton+ onClick={() => {+ if (organization) {+ setProcessingPlanId(product.stripeProductId);- // idempotency key for mutation operations with the stripe api- let opId = _opId;- if (!opId) {- opId = nanoid();- setOpId(opId);- }+ // idempotency key for mutation operations with the stripe api+ let opId = _opId;+ if (!opId) {+ opId = nanoid();+ setOpId(opId);+ }- mutCreateCheckoutSession.mutate({- orgId: organization.id,- stripeProductId: product.stripeProductId,- opId: opId,- });+ mutCreateCheckoutSession.mutate({+ orgId: organization.id,+ stripeProductId: product.stripeProductId,+ opId: opId,+ });+ }+ }}+ disabled={+ organization?.cloudConfig?.stripe+ ?.activeProductId === product.stripeProductId}- }}- disabled={- organization?.cloudConfig?.stripe?.activeProductId ===- product.stripeProductId- }- className="w-full"- loading={processingPlanId === product.stripeProductId}- >- Select plan- </ActionButton>+ className="w-full"+ loading={processingPlanId === product.stripeProductId}+ >+ {product.checkout?.cta ? "Select" : "Select plan"}+ </ActionButton>+ {/* Optional checkout CTA button for non-paid plan users */}+ {product.checkout?.cta && (+ <ActionButton+ variant="secondary"+ href={product.checkout.cta.href}+ className="w-full"+ >+ {product.checkout.cta.label}+ </ActionButton>+ )}+ </div>)}</div>);diff --git a/web/src/ee/features/billing/utils/stripeCatalogue.ts b/web/src/ee/features/billing/utils/stripeCatalogue.tsindex 9f7368bea4..39df10a825 100644--- a/web/src/ee/features/billing/utils/stripeCatalogue.ts+++ b/web/src/ee/features/billing/utils/stripeCatalogue.ts@@ -16,6 +16,10 @@ type StripeProduct = {price: string;usagePrice: string;mainFeatures: string[];+ cta?: {+ label: string;+ href: string;+ };} | null;};@@ -104,6 +108,10 @@ export const stripeProducts: StripeProduct[] = ["Support SLA","Dedicated support engineer",],+ cta: {+ label: "Contact Sales",+ href: "https://langfuse.com/talk-to-us",+ },},},];