-
Notifications
You must be signed in to change notification settings - Fork 621
Add billing warning and open invoice filtering #6718
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
Add billing warning and open invoice filtering #6718
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6718 +/- ##
=======================================
Coverage 54.93% 54.93%
=======================================
Files 890 890
Lines 56002 56002
Branches 3820 3820
=======================================
Hits 30762 30762
Misses 25145 25145
Partials 95 95
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
# Add Warning for Teams with Invalid Payment Methods This PR adds a warning message for teams with invalid payment methods, preventing them from upgrading plans until they resolve outstanding invoices. ## Changes: - Added a warning component that displays when a team has an `invalidPayment` billing status - Added a filter to view only open invoices in the invoices page - Updated the `getTeamInvoices` function to accept an optional `status` parameter - Disabled checkout buttons for teams with invalid payment methods - Added a warning in the cancel plan modal for teams with unpaid invoices - Added a link to direct users to pay their outstanding invoices These changes help users understand why they can't upgrade their plan and guides them to resolve payment issues.
2b83d5e to
7682298
Compare

Add Warning for Teams with Invalid Payment Methods
This PR adds a warning message for teams with invalid payment methods, preventing them from upgrading plans until they resolve outstanding invoices.
Changes:
invalidPaymentbilling statusgetTeamInvoicesfunction to accept an optionalstatusparameterThese changes help users understand why they can't upgrade their plan and guides them to resolve payment issues.
PR-Codex overview
This PR enhances billing and invoice management features, adding filters and improving user notifications regarding invoice statuses. It also integrates billing status checks into various components for better user experience.
Detailed summary
billingStatusprop to multiple components.BillingFilterfor invoice status selection.BillingHistoryto display messages for no open invoices.CancelPlanButtonto show warnings for unpaid invoices.CheckoutButtonto display a warning for invalid payment methods.