Skip to content

feat(invite): My Referrals screen — a user's own invite history + earnings - #682

Merged
islandbitcoin merged 2 commits into
mainfrom
feat/my-referrals-screen
Aug 8, 2026
Merged

islandbitcoin merged 2 commits into
mainfrom
feat/my-referrals-screen

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

What

The Circles-style fast-follow: Invite a friend gains a View my referrals link opening a new MyReferrals screen backed by the authed myReferrals query (flash #468).

  • Every invite the user sent, newest first: contact + status line (Invited / Joined / Expired)
  • Rewards-gated copy — while backend referralRewardEnabled is 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.
  • Empty + error states; pull-to-refresh.

Implementation

  • public-schema.graphql + front-end query + regenerated codegen (deterministic); row type derived from the generated query
  • i18n: MyReferrals section added in en/index.ts (the hand-edited source), exported en.json, propagated to all 23 locales — drift check green
  • 6 screen tests incl. the rewards-disabled gating case; full suite 278/278; tsc + lint-changed clean

⚠️ Merge/deploy ordering

flash #468 must be merged + deployed to TEST before this merges — dev builds hit TEST, and an unknown myReferrals field fails the whole query server-side (same rule as referralRewardEnabled). Ships in the next store cut after the current P3 bundle.

🤖 Generated with Claude Code

Dread and others added 2 commits August 7, 2026 15:52
…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
@islandbitcoin
islandbitcoin merged commit af6402e into main Aug 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant