Skip to content

Commit 6978b88

Browse files
committed
Remove misleading "per month" from referral messaging
Referral bonuses are one-time credits, not monthly recurring. Updated: - Referral landing page - Profile referrals section - Banner component - Grant credits description - Billing knowledge docs
1 parent 70812c3 commit 6978b88

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/billing/knowledge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This package contains Codebuff's billing and credit management system.
77
The billing system handles:
88

99
- Credit balance calculation and tracking
10-
- Monthly credit grants and resets
10+
- Credit grants and resets
1111
- Auto top-up functionality
1212
- Credit grant operations (referrals, purchases, etc.)
1313

packages/billing/src/grant-credits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export async function triggerMonthlyResetAndGrant(params: {
487487
...params,
488488
amount: referralBonus,
489489
type: 'referral',
490-
description: 'Monthly referral bonus',
490+
description: 'Referral bonus',
491491
expiresAt: newResetDate, // Referral credits expire at next reset
492492
operationId: referralOperationId,
493493
tx,

web/src/app/profile/components/referrals-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function ReferralsSection() {
124124
</CardTitle>
125125
<CardDescription className="text-green-700 dark:text-green-300">
126126
Refer a friend and <b>you'll both</b> earn {CREDITS_REFERRAL_BONUS}{' '}
127-
credits per month!{' '}
127+
bonus credits!{' '}
128128
</CardDescription>
129129
</CardHeader>
130130
<CardContent>

web/src/app/referrals/[code]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default async function ReferralPage({
121121
>
122122
<CardWithBeams
123123
title={`${referrerDisplayName} invited you to Codebuff!`}
124-
description={`Sign up and you'll both earn ${CREDITS_REFERRAL_BONUS} bonus credits per month.`}
124+
description={`Sign up and you'll both earn ${CREDITS_REFERRAL_BONUS} bonus credits.`}
125125
content={
126126
<div className="text-center text-muted-foreground">
127127
Follow the steps below to get started, then redeem your referral

web/src/components/ui/banner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ function BannerContent() {
4545
{isPersonalReferral ? (
4646
<>
4747
{capitalize(referrer)} got you an extra {CREDITS_REFERRAL_BONUS}{' '}
48-
credits per month!
48+
bonus credits!
4949
</>
5050
) : (
5151
<>
52-
Refer a friend, and earn {CREDITS_REFERRAL_BONUS} credits per
53-
month for both of you!
52+
Refer a friend, and earn {CREDITS_REFERRAL_BONUS} bonus credits
53+
for both of you!
5454
</>
5555
)}{' '}
5656
<Link

0 commit comments

Comments
 (0)