feat(clerk-js,localizations,shared,ui): Render credits#7880
Conversation
…empts and statements
🦋 Changeset detectedLatest commit: 4f1fe33 The changes in this PR will be included in the next version bump. This PR includes changesets to release 20 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThe changes add support for displaying proration and account credits across the billing system. A new changeset bumps minor versions for multiple packages. The BillingSubscriptionItem type gains a new optional credits field of type BillingCredits. New localization strings are added for proration credit, account credit, and payer credit captions. The PaymentAttemptPage component is updated to display two separate credit blocks sourced from subscriptionItem.credits. The StatementPage component is modified to render proration and payer credits with appropriate conditional checks and null guards. 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
This PR updates the rendering of credits in statements and payment attempts to use the new
creditsfield which contains both proration credits and account credits.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit