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:
1 parent
463bc2cb47
commit
c3ff497050
30 files changed
+2028
-11
No files matched your search
@@ -4,6 +4,7 @@ import {
|
||||
BadgeCheck,
|
||||
Ban,
|
||||
Calendar,
|
||||
CalendarCheck,
|
||||
CalendarDays,
|
||||
ClipboardList,
|
||||
Cog,
|
||||
@@ -11,6 +12,7 @@ import {
|
||||
FileText,
|
||||
Filter,
|
||||
Gavel,
|
||||
Gift,
|
||||
HelpCircle,
|
||||
Image,
|
||||
KeyRound,
|
||||
@@ -526,6 +528,20 @@ export const ADMIN_NAV_GROUPS: AdminNavGroup[] = [
|
||||
permission: PERMS.SHOP_VIEW,
|
||||
matchPrefixes: ["/admin/calendar"],
|
||||
},
|
||||
{
|
||||
href: "/admin/referrals",
|
||||
labelKey: "referrals",
|
||||
icon: Gift,
|
||||
permission: PERMS.REFERRALS_VIEW,
|
||||
matchPrefixes: ["/admin/referrals"],
|
||||
},
|
||||
{
|
||||
href: "/admin/daily-rewards",
|
||||
labelKey: "dailyRewards",
|
||||
icon: CalendarCheck,
|
||||
permission: PERMS.DAILY_REWARDS_VIEW,
|
||||
matchPrefixes: ["/admin/daily-rewards"],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user