Skip to content

: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.

Clean up feature flag onboarding-platform-packages after experiment 379304 (#110904)

posthog[bot]17520249fdf7
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index fe85783afc20..db80feec3677 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -438,7 +438,6 @@ export const FEATURE_FLAGS = {
ONBOARDING_HIDE_BREADCRUMBS: 'onboarding-hide-breadcrumbs', // owner: @fercgomes #team-growth, multivariate=true, hides breadcrumbs during onboarding to reduce distractions
ONBOARDING_MOBILE_INSTALL_HELPER: 'onboarding-mobile-install-helper', // owner: @fercgomes #team-growth multivariate=control,test — target $device_type=Mobile at the flag level
ONBOARDING_NAVBAR: 'onboarding-navbar', // owner: @fercgomes #team-growth, hides the navbar during onboarding to reduce distractions multivariate=true
- ONBOARDING_PLATFORM_PACKAGES: 'onboarding-platform-packages', // owner: @mjwarren3 #team-growth multivariate=control,test — surfaces platform packages with a free trial on the plans step after subscribing
ONBOARDING_PRODUCT_SELECTION_HEADING: 'onboarding-product-selection-heading', // owner: @fercgomes #team-growth, payload overrides the heading copy on the first onboarding page
ONBOARDING_SESSION_REPLAY_MEDIA: 'onboarding-session-replay-media', // owner: @fercgomes #team-growth multivariate=control,screenshot,demo
ONBOARDING_SOCIAL_PROOF_INFO: 'onboarding-social-proof-info', // owner: @fercgomes #team-growth, payload overrides social proof strings per product
diff --git a/frontend/src/scenes/onboarding/legacy/billing/OnboardingUpgradeStep.tsx b/frontend/src/scenes/onboarding/legacy/billing/OnboardingUpgradeStep.tsx
index fc0ba9ded77b..b3553b86bd7a 100644
--- a/frontend/src/scenes/onboarding/legacy/billing/OnboardingUpgradeStep.tsx
+++ b/frontend/src/scenes/onboarding/legacy/billing/OnboardingUpgradeStep.tsx
@@ -7,8 +7,6 @@ import { LemonButton, Spinner } from '@posthog/lemon-ui'
import { pngHoggie } from 'lib/brand/hoggies'
import { useHogfetti } from 'lib/components/Hogfetti/Hogfetti'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { billingLogic } from 'scenes/billing/billingLogic'
import { PlatformAddonComparison } from 'scenes/billing/PlatformAddonComparison'
@@ -28,7 +26,6 @@ type OnboardingUpgradeStepProps = {
export const OnboardingUpgradeStep: OnboardingStepComponentType<OnboardingUpgradeStepProps> = ({ product }) => {
const { billing, billingLoading } = useValues(billingLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const { goToNextStep } = useActions(onboardingLogic)
const { reportOnboardingStepSkipped, reportOnboardingStepCompleted } = useActions(eventUsageLogic)
@@ -41,8 +38,7 @@ export const OnboardingUpgradeStep: OnboardingStepComponentType<OnboardingUpgrad
}
const platformProduct = billing?.products?.find((p) => p.type === ProductKey.PLATFORM_AND_SUPPORT)
- const showPlatformPackages =
- !!product.subscribed && featureFlags[FEATURE_FLAGS.ONBOARDING_PLATFORM_PACKAGES] === 'test' && !!platformProduct
+ const showPlatformPackages = !!product.subscribed && !!platformProduct
// The platform package the org is now on, whether via a free trial (billing.trial.target — a
// 'paid'-plan trial won't match a platform addon) or a direct subscribe ("Add" when no trial is left).
const trialAddon = platformProduct?.addons?.find((addon) => addon.type === billing?.trial?.target)
diff --git a/frontend/src/scenes/onboarding/legacy/billing/PlanCards.tsx b/frontend/src/scenes/onboarding/legacy/billing/PlanCards.tsx
index 7b2b9536dd1d..3af9c9fd06ed 100644
--- a/frontend/src/scenes/onboarding/legacy/billing/PlanCards.tsx
+++ b/frontend/src/scenes/onboarding/legacy/billing/PlanCards.tsx
@@ -10,8 +10,6 @@ import { LemonButton } from '@posthog/lemon-ui'
import { pngHoggie } from 'lib/brand/hoggies'
import { BillingUpgradeCTA } from 'lib/components/BillingUpgradeCTA'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { pluralize } from 'lib/utils/strings'
import { billingLogic } from 'scenes/billing/billingLogic'
@@ -68,17 +66,9 @@ export function formatDataRetentionFeature(feature?: BillingFeatureType): string
export const PlanCard: React.FC<PlanCardProps> = ({ planData, product, highlight, hogPosition = 'top-right' }) => {
const { billing } = useValues(billingLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const { billingProductLoading } = useValues(billingProductLogic({ product }))
const { reportOnboardingStepCompleted } = useActions(eventUsageLogic)
- // When platform packages are surfaced after subscribing (experiment on), there are more features
- // to unlock beyond pay-as-you-go, so soften the paid CTA from "Unlock all features".
- const ctaText =
- planData.plan === Plan.RIDICULOUSLY_CHEAP && featureFlags[FEATURE_FLAGS.ONBOARDING_PLATFORM_PACKAGES] === 'test'
- ? 'Unlock more features'
- : planData.ctaText
-
const [isHovering, setIsHovering] = useState<boolean | undefined>(undefined)
const { goToNextStep } = useActions(onboardingLogic)
const { startPaymentEntryFlow } = useActions(paymentEntryLogic)
@@ -216,7 +206,7 @@ export const PlanCard: React.FC<PlanCardProps> = ({ planData, product, highlight
fullWidth
tabIndex={-1}
>
- {ctaText}
+ {planData.ctaText}
</BillingUpgradeCTA>
)}
{planData.ctaAction === 'next' && (
@@ -271,7 +261,8 @@ const PLANS_DATA: PlanData[] = [
{ name: 'Group analytics + Data pipeline addons', available: true },
{ name: 'Happy hedgehogs', available: true },
],
- ctaText: 'Unlock all features',
+ // Platform packages are offered after subscribing, so pay-as-you-go doesn't unlock everything.
+ ctaText: 'Unlock more features',
ctaAction: 'billing',
},
]