: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(billing): accurate usage limit message for Inbox (#80304)
danazoub8de5f99093a
diff --git a/frontend/src/scenes/billing/billing-utils.spec.ts b/frontend/src/scenes/billing/billing-utils.spec.tsindex df8cabf7e9c0..6a28758e7b4e 100644--- a/frontend/src/scenes/billing/billing-utils.spec.ts+++ b/frontend/src/scenes/billing/billing-utils.spec.ts@@ -445,6 +445,10 @@ describe('getUsageLimitConsequence', () => {expect(getUsageLimitConsequence('PostHog AI')).toEqual('PostHog AI will be unavailable')})+ it('should return specific message for Inbox', () => {+ expect(getUsageLimitConsequence('Inbox')).toEqual('Inbox agents will be paused')+ })+it('should return generic message for other products', () => {expect(getUsageLimitConsequence('Session replay')).toEqual('data loss may occur')expect(getUsageLimitConsequence('Product analytics')).toEqual('data loss may occur')@@ -489,6 +493,14 @@ describe('buildUsageLimitExceededMessage', () => {)})+ it('should build message for Inbox with specific consequence', () => {+ const result = buildUsageLimitExceededMessage([{ name: 'Inbox', subscribed: true }])+ expect(result.title).toEqual('Usage limit exceeded')+ expect(result.message).toEqual(+ 'You have exceeded the usage limit for Inbox. Please increase your billing limit or Inbox agents will be paused.'+ )+ })+it('should build message for PostHog AI with other products', () => {const result = buildUsageLimitExceededMessage([{ name: 'PostHog AI', subscribed: true },diff --git a/frontend/src/scenes/billing/billing-utils.ts b/frontend/src/scenes/billing/billing-utils.tsindex ea450347443e..a80c14cad5f2 100644--- a/frontend/src/scenes/billing/billing-utils.ts+++ b/frontend/src/scenes/billing/billing-utils.ts@@ -665,6 +665,9 @@ export function getUsageLimitConsequence(productName: string): string {if (productName === 'PostHog AI') {return 'PostHog AI will be unavailable'}+ if (productName === 'Inbox') {+ return 'Inbox agents will be paused'+ }return 'data loss may occur'}