-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: prototype of referral system in console #142
Open
travis
wants to merge
27
commits into
main
Choose a base branch
from
feat/referral-program
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use server actions for now
server actions are confusing and weren't working properly
travis
temporarily deployed
to
preview-142/merge
October 25, 2024 10:25
— with
GitHub Actions
Inactive
Website preview 🔗✨ |
and get referral creator working on both pages
travis
temporarily deployed
to
preview-142/merge
November 6, 2024 00:03
— with
GitHub Actions
Inactive
travis
temporarily deployed
to
preview-142/merge
November 6, 2024 00:14
— with
GitHub Actions
Inactive
also record refcode in the plan gate, too
travis
temporarily deployed
to
preview-142/merge
November 6, 2024 01:59
— with
GitHub Actions
Inactive
travis
temporarily deployed
to
preview-142/merge
November 6, 2024 18:15
— with
GitHub Actions
Inactive
travis
temporarily deployed
to
preview-142/merge
November 7, 2024 00:39
— with
GitHub Actions
Inactive
extracted from original implementation in #142
travis
added a commit
to storacha/referrals-service
that referenced
this pull request
Nov 8, 2024
extracted from original implementation in storacha/console#142
travis
added a commit
to storacha/referrals-service
that referenced
this pull request
Nov 8, 2024
extracted from original implementation in storacha/console#142
travis
added a commit
to storacha/referrals-service
that referenced
this pull request
Nov 8, 2024
extracted from original implementation in storacha/console#142
3 tasks
bugfixes, autogenerate refcode when possible
for some reason the UI isn't updating in the preview env - I suspect this is because we haven't told SWR it needs to refresh and its refresh behavior is more liberal in development
I was thinking the state would be shared between invocations of the hook and that's just not the case! I'd need to introduce a context to get it to work the way I expected. DOH. move to an argument passing style because that's easier than introducing a context, for now
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR spikes out a referral system that stores data in Cloudflare's D1. It allows anonymous or logged-in users to create referral codes associated with their email addresses, and records the referral code a user used to sign up for an account. It does not implement the discounts and other rewards associated with the referral system - these are expected to be handled manually in the first released version and implemented as automated systems later, so are a non-goal of this PR.
Referrals service
The referrals service has been extracted to its own worker:
storacha/referrals-service#1
User Experience
The UX is just about dialed in - need to do a pass on the copy and some minor layout stuff, but if you have any thoughts on the big picture now is a great time to chime in!
TODOs