-
Notifications
You must be signed in to change notification settings - Fork 618
Link to team billing page in faucet button on free plan #8429
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
base: main
Are you sure you want to change the base?
Link to team billing page in faucet button on free plan #8429
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughWhen canClaimFaucetQuery indicates Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FaucetButton
participant BillingPage as "/billing"
User->>FaucetButton: Click / interact
FaucetButton->>FaucetButton: Evaluate canClaimFaucetQuery.data
alt paid-plan-required
FaucetButton->>User: Render upsell button (arrow icon)
User->>BillingPage: Follow link -> /billing
else other disabled reasons (throttle/unsupported)
FaucetButton->>User: Render disabled button with reason
end
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-07-07T21:21:47.488ZApplied to files:
📚 Learning: 2025-07-31T16:17:42.753ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (2)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Comment |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8429 +/- ##
=======================================
Coverage 54.83% 54.83%
=======================================
Files 919 919
Lines 60865 60865
Branches 4141 4141
=======================================
Hits 33373 33373
Misses 27390 27390
Partials 102 102
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds a new condition to the `FaucetButton` component to handle cases where a paid plan is required to access the faucet. It provides a user-friendly message and a link to upgrade their plan.
### Detailed summary
- Added a check for `canClaimFaucetQuery.data.type` being `"paid-plan-required"`.
- Rendered a button linking to the billing page with a message about upgrading the plan.
- Removed a TODO comment regarding upselling plans.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Enhanced faucet button experience for premium plan scenarios. The button now provides a direct link to manage billing and subscription options when a plan upgrade is required, replacing the previous notification message with a more actionable interface.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
588ea30 to
8f74c85
Compare

PR-Codex overview
This PR enhances the
FaucetButtoncomponent by introducing a new condition to handle cases where a paid plan is required to access the faucet. It provides a link to upgrade the plan if the user is on a free plan.Detailed summary
canClaimFaucetQuery.data.typebeing"paid-plan-required".Summary by CodeRabbit