Skip to content

Commit 1be7c97

Browse files
authored
chore(billing): tighten usage-based billing copy
First pass of copy rewrites over the usage-based billing surfaces added in the cutover stack (#3485, #3487, #3488). - Announcement modal: shorter description; reframe the models bullet around open-source vs frontier; "$X/mo" and split "Adjust it any time…" sentences. - Usage-limit / model-gate modal: rewrite the model-gate body (now two paragraphs) and trim the free-tier org-limit body. - Plan & usage page: tighten the free and subscribed plan-card blurbs. Renders the model-gate body's paragraph break via whitespace-pre-line. Generated-By: PostHog Code Task-Id: 8dff0a32-c536-4b09-b5a1-087e800b4600
1 parent 5298cb9 commit 1be7c97

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/core/src/billing/usageLimitContent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe("usageLimitContent", () => {
99
subscribed: false,
1010
});
1111
expect(content.title).toBe("Unlock premium models");
12-
expect(content.description).toContain("This model isn't");
12+
expect(content.description).toContain("open-source model");
1313
expect(content.actionLabel).toBe("Add payment method");
1414
});
1515

packages/core/src/billing/usageLimitContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function usageLimitContent(args: {
1818
return {
1919
title: "Unlock premium models",
2020
description:
21-
"This model isn't included in the free tier. Add a payment method to your organization to unlock all models — you only pay for what you use. You can keep working now by switching to an included model.",
21+
"To use this model, add a payment method to your account. Your first $20 of usage is on us each month - you only pay for what you use beyond that.\n\nOr, you can keep working now by switching to an open-source model.",
2222
actionLabel: "Add payment method",
2323
dismissLabel: "Not now",
2424
};
@@ -30,7 +30,7 @@ export function usageLimitContent(args: {
3030
title: "Free usage used up",
3131
description: `Your organization has used up its included PostHog Code usage.${
3232
resetLabel ? ` ${resetLabel}.` : ""
33-
} Add a payment method to keep going — you only pay for what you use.`,
33+
} Add a payment method to keep going.`,
3434
actionLabel: "Add payment method",
3535
dismissLabel: "Not now",
3636
};

packages/ui/src/features/billing/UsageBillingAnnouncementModal.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ export function UsageBillingAnnouncementModal() {
6868
</Flex>
6969
<Dialog.Description>
7070
<Text className="text-sm">
71-
Seat-based plans are gone — PostHog Code is now usage-based. You
72-
only pay for what you use.
71+
Seat-based plans are gone. PostHog Code is now usage-based.
7372
</Text>
7473
</Dialog.Description>
7574
<Flex direction="column" gap="2" className="text-sm">
@@ -78,19 +77,20 @@ export function UsageBillingAnnouncementModal() {
7877
is included.
7978
</Text>
8079
<Text color="gray">
81-
• Premium models need a payment method; an open model stays free.
80+
• Open-source models are always available. Access frontier models
81+
by adding a payment method.
8282
</Text>
8383
<Text color="gray">
8484
{spendLimitUsd != null ? (
8585
<>
8686
• Your organization's spend limit is{" "}
87-
<Text weight="medium">{`${formatUsdAmount(spendLimitUsd)}/month`}</Text>{" "}
88-
— adjust it any time in billing settings.
87+
<Text weight="medium">{`${formatUsdAmount(spendLimitUsd)}/mo`}</Text>
88+
. Adjust it any time in billing settings.
8989
</>
9090
) : (
9191
<>
92-
• A default <Text weight="medium">$50/month</Text> spend limit
93-
applies — adjust it any time in billing settings.
92+
• A default spend limit of <Text weight="medium">$50/mo</Text>{" "}
93+
applies. Adjust it any time in billing settings.
9494
</>
9595
)}
9696
</Text>

packages/ui/src/features/billing/UsageLimitModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function UsageLimitModal() {
5757
<Dialog.Title className="mb-0">{content.title}</Dialog.Title>
5858
</Flex>
5959
<Dialog.Description>
60-
<Text color="gray" className="text-sm">
60+
<Text color="gray" className="whitespace-pre-line text-sm">
6161
{content.description}
6262
</Text>
6363
</Dialog.Description>

packages/ui/src/features/settings/sections/PlanUsageSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export function PlanUsageSettings() {
131131
</Text>
132132
<Text className="text-(--gray-11) text-sm">
133133
{freeTier
134-
? "Your organization's first $20 of usage each month is included, with access to open models. Add a payment method to unlock premium models — you only pay for what you use."
135-
: "Your organization pays for PostHog Code usage at cost — no seats, no subscriptions. The first $20 each month is included."}
134+
? "Your org's first $20 of usage each month is included, with access to open models. Add a payment method to unlock premium models, and only pay for what you use."
135+
: "Your organization pays for PostHog Code usage at cost. The first $20 each month is included."}
136136
</Text>
137137
</Flex>
138138
{subscribed && (

0 commit comments

Comments
 (0)