You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(referral): gate the Plus reward behind referral_plus_reward
Review feedback (capJavert): the page promised and displayed a free
Plus month with no backend granting it and a reward period inferred
from referral timestamps rather than entitlement data. Put the promise
back behind `referral_plus_reward` (default false): with it off the
page reads "Grow the community" and promises nothing; flip it on only
once fulfillment / authoritative entitlement data lands.
Mark the two referral notification types as placeholders in code — no
backend emits them yet, so they are not complete.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Already on Plus? The free month is added to your subscription.
127
139
</Typography>
128
140
)}
129
-
<InviteRewardProgress
130
-
className="mt-4"
131
-
joinedCount={joinedCount}
132
-
referredUsers={referredUsers}
133
-
rewardPeriod={rewardPeriodFor(referredUsers)}
134
-
/>
141
+
{showReward&&(
142
+
<InviteRewardProgress
143
+
className="mt-4"
144
+
joinedCount={joinedCount}
145
+
referredUsers={referredUsers}
146
+
rewardPeriod={rewardPeriodFor(referredUsers)}
147
+
/>
148
+
)}
135
149
</Section>
136
150
<Sectiontitle="Your invitation link">
137
151
<InviteLinkInput
@@ -284,6 +298,20 @@ export const ExistingPlusMember: Story = {
284
298
},
285
299
};
286
300
301
+
exportconstRewardFlagOff: Story={
302
+
name: 'Reward flag off (default)',
303
+
args: {joinedCount: 1,showReward: false},
304
+
decorators: [withInvite()],
305
+
parameters: {
306
+
docs: {
307
+
description: {
308
+
story:
309
+
'What ships until `referral_plus_reward` is switched on: no reward promise and no tracker, just the referral tooling. The flag defaults off because no backend grants the free month yet.',
0 commit comments