feat: Referrals embed
What does this PR do?
- Created a clean /refer page with proper loading states and dub embed
- Set up the API endpoint to generate user-specific referral tokens
- Implemented theme support so it looks good in both light/dark modes
- This PR adds the ability for users to earn affiliate commissions through a Dub-powered referral system.
Demo
https://www.loom.com/share/86aadaaf8fef486387fde9ebfae73305
Mandatory Tasks (DO NOT REMOVE)
- [x] I have self-reviewed the code (A decent size PR without self-review might be rejected).
- [x] I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
- [x] I confirm automated tests are in place that prove my fix is effective or that my feature works.
How should this be tested?
- Go to /refer (bottom of sidebar)
- See Dub.co embed pop up
- Have a shareable affiliate link
Hey there and thank you for opening this pull request! 👋🏼
We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.
Details:
No release type found in pull request title "feat:referrals embed". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/
Available types:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing tests or correcting existing tests
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
- chore: Other changes that don't modify src or test files
- revert: Reverts a previous commit
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| cal | ⬜️ Ignored (Inspect) | Visit Preview | Mar 20, 2025 2:01pm | |
| calcom-web-canary | ⬜️ Ignored (Inspect) | Visit Preview | Mar 20, 2025 2:01pm |
Graphite Automations
"Add consumer team as reviewer" took an action on this PR • (03/04/25)
1 reviewer was added to this PR based on Keith Williams's automation.
"Add foundation team as reviewer" took an action on this PR • (03/04/25)
1 reviewer was added to this PR based on Keith Williams's automation.
"Add community label" took an action on this PR • (03/20/25)
1 label was added to this PR based on Keith Williams's automation.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
| Package | New capabilities | Transitives | Size | Publisher |
|---|---|---|---|---|
| npm/[email protected] | None | 0 |
5.65 kB | goto-bus-stop |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎
This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.
yarn.lock is messed up. Created a new PR #20258