stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

Create referral link for our referral program and make it live on any page #184

Open ecurrencyhodler opened 7 months ago

ecurrencyhodler commented 7 months ago

Context

We are creating a referral program to pay out rewards automatically to hunters that refer. We are going to track referrals by adding a p query to the end of a url that contains their uuid such as ?p=123456. This uuid will then get saved locally inside of the local storage of the browser of the referred hunter. The property we will use to save this uuid is referred_by.

Create the url query that automatically gets generated if a user is logged in. Make sure this new url query is also included in any "copy" buttons on our website.

This blocks:

183

Design

The url should like this on any given page of our site: https://community.sphinx.chat/bounties?p=123456

Acceptance Criteria

Here is an example unit test

Here is an example component test

NengakDakup commented 7 months ago

@ecurrencyhodler 😁

abdulganiyy commented 6 months ago

Assign this to me.