:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix: allow self-service enterprise in local dev (#61479)
Reece Jones79a0026827f5
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 6877ca7f1e96..83b871314318 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6211,7 +6211,7 @@ snapshots:scenes-app-web-analytics--web-analytics-dashboard-loading--light:hash: v1.k794b7964.86d2e5319eeddd603f5ca5b3da1fe1156d198f9d543dc5e5ad9cf0068faeb521.4i-CGLH6Jyfjj_hg-B6BtjyrJRQScB1RHuMy0Av-MgUscenes-other-billing--billing--dark:- hash: v1.k794b7964.4915bd031af89b1ee6a155b5889fa7bd5754b8d0f1a6a94dc323229b540df234.gh3QiniHy0PGoZEERCN8SsJPx5gfQgTQeMYtkLUlFfE+ hash: v1.k794b7964.7d8d15966d60d5c51ac111ecad259fb4bbe471cbc293fc270ebf2f56809c8d85.90swJKlcQ3DfRle4imvs1QT0vP0TYxJsqA_8dQEbl2Escenes-other-billing--billing--light:hash: v1.k794b7964.50ab945fccfc7839f092829b0c11d948d32743916a84b6692d2ff64f0802dc35.kUQ7v-S8ANgYS99Xyi4mLb0oYTlDa7zqQkEr8q-298wscenes-other-billing--billing-purchase-credits-modal--dark:@@ -6223,9 +6223,9 @@ snapshots:scenes-other-billing--billing-unsubscribe-modal--light:hash: v1.k794b7964.b676dda14727516b10f340ebb626babaee98152329868ac8aa8c5a3a90ee26d1.MxyCnRf692V5gtPnmOsCTnxMCAAt__URa4rJQJENBZwscenes-other-billing--billing-with-credit-cta--dark:- hash: v1.k794b7964.facbcfe5d375b41994873fcf6a7611c452c070363524076c811e32a3dd3de0b9.LORm3kYgtVjl8dlNp766_klLlyeiiMzOSkR7ac6CZxE+ hash: v1.k794b7964.f027901c551fefc309467e357708702657f59c1139e1373784231bc1fc77b894.5qfmzAj0onFZ8nLq8V1nrLNNWer8xRn9Y0rR6uv72Loscenes-other-billing--billing-with-credit-cta--light:- hash: v1.k794b7964.cdaa59ea0ee6daec15aad76bd42b17a0336557f928b8f60922a889afe5fd9078.v916EatJIuK_lqABP7bG_9OKEUn1hzrI3Bx2SmPZPlU+ hash: v1.k794b7964.7b58cfc361ce6931755b0f72a40ea689c0d54045a94ec1a0e5f1433d8cfa6abb.KLMJgDlCQcWBWudUXBx8UesSNqUlnwljzU7_-31nkwgscenes-other-billing--billing-with-credits--dark:hash: v1.k794b7964.457257072f4ee70056be2e1a4551fc098644ce363246c8ce4727a636d6231a06.RvIsfP2a2yPEOYspq28VMp3DZx-mY_nAbnb5OsRGHVUscenes-other-billing--billing-with-credits--light:@@ -6239,29 +6239,29 @@ snapshots:scenes-other-billing--billing-with-limit-and-100-percent-discount--light:hash: v1.k794b7964.c60133947fb5ef34eaf37fa21bb0390bccff77b1b5fe49e01e9f5a7b239a7c04.oIDvDkc41HCJUBwamg0ahQQYn3NNsIX7cLFMOTjk4VEscenes-other-billing--billing-without-icon-keys--dark:- hash: v1.k794b7964.e0fcc55b627ad32f7291950fcf7a849e67abed7345069914cdacdaca5694bf84.KSOhHtIaxGpMfpAcweJxdqyZcx3g4odqrFPsNMeqmfY+ hash: v1.k794b7964.63f3b3219654c4a0d4e51ddb159ba03c1fc398d34a93284bada4e661b0c8f50f.BI4VJSEkVAXi_kI1NGcHmtiJHDT8AJUlFdSR_45X9d8scenes-other-billing--billing-without-icon-keys--light:hash: v1.k794b7964.2cb9ec40b586321cdf938f7b81ee9f8e02150b8ea22d210ad564fcc9943c89bf.4wnhJJr-IdlW6Zf93k3TxFlb3YXJaoEk4LpSM85kHqAscenes-other-billing-product--billing-product-inclusion-only-with-addon--dark:- hash: v1.k794b7964.717de8f9bc2bb227a9a997fdac6fa38b587896513fe3a79fe1bedde4b906474d.UIRIMRCPzx2gNDFlc1ubzPOc0WGbg11_ZtSjby97REU+ hash: v1.k794b7964.e89a6dd81cab92e698b48df14551e13c7eeb3780fb7995c278d1d8bc3c7a3a1b.p9KdLWg_7XmhaCJDcL51QlrV4XLx4MJr_bmWWAH4Z8Iscenes-other-billing-product--billing-product-inclusion-only-with-addon--light:- hash: v1.k794b7964.7bef1d47e4e038c1a86a3af7a19414fcc328d1ab0f1696a5661783965d0d6856.1sf-osMXbcEceiN1SlULPqEEV2jHR5WTyu2omb_EImg+ hash: v1.k794b7964.be1b6b47e48233c3db4510f102fa515bde864d846222d1cbb673a48c18fdaf3a.otOrusrEQpnWmMH4bqCjTyKKb8CTtlflSV8oV71TicQscenes-other-billing-product--billing-product-platform-addons-on-legacy-teams--dark:- hash: v1.k794b7964.cf105e9d8eaa2e6eaa79a1322600d6a2112d9a7fdccce5348d3f2fdaf943fcbd.HZzj8qUI6LnpxV_Gr8Uo01N11w5yupZbc6xe377PJNk+ hash: v1.k794b7964.e2a6e21d6647d29ddac2722b891c9c91524cd6ce1e78ed7f5e36d71d7e413c6e.7ldJwJp-u5x2S6OfxNd8gW_GAZqMwKUxQpF3Y84KbgMscenes-other-billing-product--billing-product-platform-addons-on-legacy-teams--light:- hash: v1.k794b7964.bd05411bd5118914ff31c17772f97a8c17a65e5750f52096c7f1bed552821f07.3wJyaPK9dBl63XWIu5oBheFU_g_HS8ZFaamykHWYQAQ+ hash: v1.k794b7964.ae113b23608f9538187b220ce4facac01bbb4a892f68ae22e6898ea5b6271f7f.WVCQy1LPPyN0NxwK0Icwg_73YOTGntCUuDZfGxQ6JHYscenes-other-billing-product--billing-product-platform-addons-on-scale--dark:- hash: v1.k794b7964.44a68a6c75b765c2dbae2bf5d7597b2b9b95655cb475882e8ceded5815039c00.R_hJ9T6g5_HgjenXAxJ6WCnm6BzJauTfDsjCVjLi-Tw+ hash: v1.k794b7964.0e508c0e1bc4df5963bdf7363bda159b2001e92b5d824c11a400976c32cb2184.-k1bs1b-3_BlShmgtvLv3E23ls_5Or8f87sUz-TUxpUscenes-other-billing-product--billing-product-platform-addons-on-scale--light:- hash: v1.k794b7964.00482255eba591196c0bb6d87f15de9a10c66e82e7ccca5a8b085c30964f14a5.scivrCHgVWLJJ9gNtJO5UowLuVOfL3JDntc8g8kFIqM+ hash: v1.k794b7964.744f0a5e6d616aaf5ff33fdbb261372fc314dd8b601a717e2ea856d57d47d106.LOYvSZx0yGirsDJv9nM7OiZ9YQ8o2qD08xxZZjlYd38scenes-other-billing-product--billing-product-platform-addons-trial-available--dark:- hash: v1.k794b7964.717de8f9bc2bb227a9a997fdac6fa38b587896513fe3a79fe1bedde4b906474d.z5KL4hh14ao9SojxJT-PIFurih48blUfEh2CdAGsr9o+ hash: v1.k794b7964.e89a6dd81cab92e698b48df14551e13c7eeb3780fb7995c278d1d8bc3c7a3a1b.d1stZOJWTwfDm1g3wzuhoD2XmEeflGDBp8JFlncBmukscenes-other-billing-product--billing-product-platform-addons-trial-available--light:- hash: v1.k794b7964.7bef1d47e4e038c1a86a3af7a19414fcc328d1ab0f1696a5661783965d0d6856.gRQNmzIiPLgbny-OvGRI82NwgLA6gL31MRRceY_NdLw+ hash: v1.k794b7964.be1b6b47e48233c3db4510f102fa515bde864d846222d1cbb673a48c18fdaf3a.IPgG5lyUjq42WtgrlJxxBEI3_svRzd0Ki2ZHR9N8ak8scenes-other-billing-product--billing-product-platform-addons-trial-used--dark:- hash: v1.k794b7964.7366f1713576e5ddddfbff49233444c7905aaef1ef80e19cff12e15852180c4b.-Vu1-NJ12gaqB1cWzNC6AkTaWaURb-UozsaBheTIQPQ+ hash: v1.k794b7964.7cdccf06fea640e727e971f361d5b3c88b4995c15a977f6d3534f9fbdd977396.ecEskd1d1tETrJqFzz_4pTRamKqtHyqnXOY-3ZkeZpEscenes-other-billing-product--billing-product-platform-addons-trial-used--light:- hash: v1.k794b7964.595c01922311d29b2b82b405205ac9deca61aa14728eb0aface8d29ae4b49cec.m6w-VUzHkTBS4zkiYaVbHI9Sr7ZKwC62OVoGIRA7YuY+ hash: v1.k794b7964.0073a1307ee06197d6b436baa800399cd3145dc3268295a04cd217c09cd36ee2.Zxf1K6OEnB5nrM4k7twwfLGNNB7DtRbT7Eigx-OJvjcscenes-other-billing-product--billing-product-temporarily-free--dark:hash: v1.k794b7964.abfc609467b20b57eb791b21f873cfc492a6759d2e665fc2c1e33cb5f7dde4dd.4kZgG10YvmglygsAJNnEmLdEEHV_i-o1fD4HTZPQ-bEscenes-other-billing-product--billing-product-temporarily-free--light:diff --git a/frontend/src/scenes/billing/BillingProductAddonActions.tsx b/frontend/src/scenes/billing/BillingProductAddonActions.tsxindex 965f71dec283..605b1059031d 100644--- a/frontend/src/scenes/billing/BillingProductAddonActions.tsx+++ b/frontend/src/scenes/billing/BillingProductAddonActions.tsx@@ -7,6 +7,7 @@ import { LemonButton, LemonButtonProps, LemonTag } from '@posthog/lemon-ui'import { TRIAL_CANCELLATION_SURVEY_ID, UNSUBSCRIBE_SURVEY_ID } from 'lib/constants'import { More } from 'lib/lemon-ui/LemonButton/More'import { eventUsageLogic } from 'lib/utils/eventUsageLogic'+import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'import { BillingProductV2AddonType } from '~/types'@@ -39,6 +40,7 @@ export const BillingProductAddonActions = ({}: BillingProductAddonActionsProps): JSX.Element => {const { billing, billingError, currentPlatformAddon, unusedPlatformAddonAmount, switchPlanLoading } =useValues(billingLogic)+ const { preflight } = useValues(preflightLogic)const {currentAndUpgradePlans,billingProductLoading,@@ -271,7 +273,8 @@ export const BillingProductAddonActions = ({} else if (billing?.trial && billing?.trial?.target === addon.type) {// Current trial on this addoncontent = renderTrialActions()- } else if (addon.type === 'enterprise') {+ } else if (addon.type === 'enterprise' && !preflight?.is_debug) {+ // In local development, show the standard "Add" purchase flow instead of the sales "Contact us" button.content = (<LemonButton type="primary" to="https://posthog.com/talk-to-a-human" targetBlank>Contact us