Commit 8c44fcb
Remove referrals feature while preserving existing referral data
Strip the /refer-friends CLI command, web referral pages, affiliate
sponsee routes, and one-time referral redemption API. Simplify the
profile referrals section to a read-only list of who you referred.
Keep DB schema, legacy monthly bonus grants, and the GrantType enum
so historical referrals continue to pay out.
Restore creator attribution for freebuff only: /get-started already
accepts ?referrer=<name> and persists it; /onboard fires a
FREEBUFF_REFERRER_ATTRIBUTED PostHog event with \$set_once on first
visit post-login. /onboard now redirects logged-out visitors to
/get-started (or /login when an auth_code is present) and greets
logged-in users with an optional "{Name} invited you to try Freebuff!"
header. Fixes a pre-existing bug where auth_code was dropped when
/onboard redirected unauthenticated users.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent b01d2e3 commit 8c44fcb
59 files changed
Lines changed: 46 additions & 3874 deletions
File tree
- cli/src
- __tests__
- helpers
- commands
- __tests__
- components
- data
- hooks
- __tests__
- utils
- __tests__
- common/src
- constants
- testing/fixtures
- types/contracts
- util
- freebuff/web/src
- app
- api/auth/cli/code
- onboard
- components
- login
- sign-in
- web
- src
- __tests__/e2e
- app
- [sponsee]
- affiliates
- api
- auth/cli/code
- referrals
- [code]
- __tests__
- user/profile
- v1
- me
- __tests__
- onboard
- profile/components
- referrals/[code]
- components
- login
- onboard
- referral
- sign-in
- ui
- db
- lib
- server
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| |||
0 commit comments