Repository navigation
feat(invite): My Referrals screen — a user's own invite history + earnings - #682
Merged
Merged
Conversation
…nings The Circles-style fast-follow: Settings -> Invite a friend gains a "View my referrals" link opening a new MyReferrals screen backed by the authed myReferrals query (flash #468). Shows every invite the user sent with a status line (Invited / Joined / Expired), and — ONLY while the backend referralRewardEnabled flag is on — a lifetime-earnings header, per-row "you earned $X" (the inviter's leg only) and pending-reward counts. With the flag off the screen still works, showing joined counts with zero money copy — it can never promise a reward the backend won't pay (same gate as the home-screen invite card). - public-schema + front-end query + regenerated codegen (deterministic) - i18n: MyReferrals section in en/index.ts (the hand-edited source), exported en.json + propagated to all 23 locales; drift check green - row type derived from the generated query (no hand-rolled casts) - 6 screen tests incl. the rewards-disabled gating case DEPLOY ORDER: flash #468 must be live in the queried env before this ships (dev builds hit TEST) — same rule as referralRewardEnabled. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
…als link Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01C7z7o9J18BWbUnYJcemMtg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The Circles-style fast-follow: Invite a friend gains a View my referrals link opening a new MyReferrals screen backed by the authed
myReferralsquery (flash #468).referralRewardEnabledis on: lifetime-earnings header, per-row "Joined — you earned $X" (the inviter's leg only) and pending-reward count. Flag off → joined-count header, zero money copy. Same gate as the home-screen invite card: this screen can never promise a reward the backend won't pay.Implementation
public-schema.graphql+ front-end query + regenerated codegen (deterministic); row type derived from the generated queryMyReferralssection added inen/index.ts(the hand-edited source), exporteden.json, propagated to all 23 locales — drift check greenflash #468 must be merged + deployed to TEST before this merges — dev builds hit TEST, and an unknown
myReferralsfield fails the whole query server-side (same rule asreferralRewardEnabled). Ships in the next store cut after the current P3 bundle.🤖 Generated with Claude Code