feat(referrals): add referral attribution and daily login rewards

- Track referral attribution at registration via ?ref code with
  same-IP and duplicate-pair guards
- Add daily login rewards with streak tracking, claim flow and
  sendCurrency payout backed by RCON with DB fallback
- Add admin pages for referral settings and the daily reward schedule
- Add migration 0033 with tables, seed schedule, settings and ACL grants
- Add admin.referrals.* and admin.dailyrewards.* permission slugs
- Localize new copy in en, nl and it
This commit is contained in:
openhands
2026-09-20 12:29:01 +02:00
parent 463bc2cb47
commit c3ff497050
30 changed files with 2028 additions and 11 deletions
@@ -146,6 +146,10 @@ const expectedManifests = [
PERMS.SHOP_VIEW,
PERMS.CATALOG_EDIT,
PERMS.SHOP_EDIT,
PERMS.REFERRALS_VIEW,
PERMS.REFERRALS_EDIT,
PERMS.DAILY_REWARDS_VIEW,
PERMS.DAILY_REWARDS_EDIT,
],
routes: [],
},