: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
feat(billing): note startup credit exclusions on the billing page (#81988)
Joe Martina4ce9a41ba01
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 7618f47804bd..26ace7c8ab5d 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -7758,6 +7758,10 @@ snapshots:hash: v1.k794b7964.3aeba40d04a6226aeae25c8200dfc1bb74f34ba545f1294dab4293a63d7896c9.ANAwCdWwZqiMOI2A2gxChSERhIOiXhGfgnkygj1g1foscenes-other-billing--billing--light:hash: v1.k794b7964.5f8b924682d9559deaa6475ff343555090fde4c698b2fe38974b65a6e5e0057b.YuyS1jntLfGAqEfElxa_JW7bd6t9zzUrTkhZ2pJYfPg+ scenes-other-billing--billing-on-startup-plan--dark:+ hash: v1.k794b7964.327140e7888b473bf72795b84b3524a8effa471cdf5da775e81e9b060ae5ae5b.DyCRhAUTLZNQm4YUA_GDmPQ-FXb0z7XI0x0p8me4E8s+ scenes-other-billing--billing-on-startup-plan--light:+ hash: v1.k794b7964.b086982ce16a9753467cb3c1f0211f6237645e32c9b8c7ae6ef7354d42fca71d.8l6mR6Mwd61jrzB0Y3FpRm9oUetB1MxkF5hNmfnDYe8scenes-other-billing--billing-purchase-credits-modal--dark:hash: v1.k794b7964.6e796c6b85111be979b53ee5eea0a61da0816a519d8b7262607eb5a02ee90b17.1Ir7Y5HD9bAF0h5L3F-TYo73R5sg36-11r1cyIIHInwscenes-other-billing--billing-purchase-credits-modal--light:diff --git a/frontend/src/scenes/billing/Billing.stories.tsx b/frontend/src/scenes/billing/Billing.stories.tsxindex 5f7f7685b076..06de03c03665 100644--- a/frontend/src/scenes/billing/Billing.stories.tsx+++ b/frontend/src/scenes/billing/Billing.stories.tsx@@ -6,7 +6,7 @@ import billingJsonWith100PercentDiscount from '~/mocks/fixtures/_billing_with_10import billingJsonWithCredits from '~/mocks/fixtures/_billing_with_credits.json'import billingJsonWithDiscount from '~/mocks/fixtures/_billing_with_discount.json'import preflightJson from '~/mocks/fixtures/_preflight.json'-import { BillingType } from '~/types'+import { BillingType, StartupProgramLabel } from '~/types'import { Billing } from './Billing'import { PurchaseCreditsModal } from './PurchaseCreditsModal'@@ -67,6 +67,21 @@ export const _Billing: Story = {},}+export const BillingOnStartupPlan: Story = {+ render: () => {+ useStorybookMocks({+ get: {+ '/api/billing/': {+ ...billingJson,+ startup_program_label: StartupProgramLabel.Startup,+ },+ },+ })++ return <Billing />+ },+}+export const BillingWithDiscount: Story = {render: () => {useStorybookMocks({diff --git a/frontend/src/scenes/billing/BillingHero.tsx b/frontend/src/scenes/billing/BillingHero.tsxindex 5f8484ec943d..28682c3fce58 100644--- a/frontend/src/scenes/billing/BillingHero.tsx+++ b/frontend/src/scenes/billing/BillingHero.tsx@@ -119,15 +119,24 @@ const BADGE_CONFIG: Record<BillingPlan | StartupProgramLabel, CopyVariation> = {subtitle: "You're on the startup plan.",backgroundColor: 'bg-warning-highlight',getDescription: (_billingPlan: BillingPlan, scrollToProduct: (productType: string) => void) => (- <p>- If you're growing like crazy, you might want to check out our{' '}- {scrollToProduct ? (- <Link onClick={() => scrollToProduct('platform_and_support')}>Platform packages</Link>- ) : (- 'Platform packages'- )}- .- </p>+ <>+ <p>+ If you're growing like crazy, you might want to check out our{' '}+ {scrollToProduct ? (+ <Link onClick={() => scrollToProduct('platform_and_support')}>Platform packages</Link>+ ) : (+ 'Platform packages'+ )}+ .+ </p>+ <p className="text-xs text-secondary mb-0">+ Credits can't be used for every product and tool. Check{' '}+ <Link to="https://posthog.com/startups" target="_blank">+ posthog.com/startups+ </Link>{' '}+ for details.+ </p>+ </>),},[StartupProgramLabel.YC]: {@@ -146,6 +155,13 @@ const BADGE_CONFIG: Record<BillingPlan | StartupProgramLabel, CopyVariation> = {)}.</p>+ <p className="text-xs text-secondary mb-0">+ Credits can't be used for every product and tool. Check{' '}+ <Link to="https://posthog.com/startups" target="_blank">+ posthog.com/startups+ </Link>{' '}+ for details.+ </p></>),},