Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referral program #4590

Merged
merged 19 commits into from
May 1, 2024
Merged

Referral program #4590

merged 19 commits into from
May 1, 2024

Conversation

MauAraujo
Copy link
Contributor

@MauAraujo MauAraujo commented Apr 29, 2024

POR-

What does this PR do?

This PR adds a referral program for granting certain credits to users who refer 5 other users.

It includes a lot of boilerplate code, but the most important parts for reviewing are:

  • New ReferralsPage in the dashboard
  • Moved all credit specific endpoints to credits.go handler
  • When creating a user, a random referral code is generated for them
  • Users are able to use a referral link for the register page with the referral code
  • Users can claim their reward once across projects once they meet the conditions

@MauAraujo MauAraujo marked this pull request as ready for review April 30, 2024 16:04
@MauAraujo MauAraujo enabled auto-merge (squash) May 1, 2024 20:32
@MauAraujo MauAraujo merged commit 3e5320e into master May 1, 2024
9 checks passed
@MauAraujo MauAraujo deleted the referral-program branch May 1, 2024 20:36
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.

3 participants