Skip to content

feat(clerk-js,localizations,shared,ui): Render credits#7880

Merged
dstaley merged 3 commits intomainfrom
ds.fix/credits-statement-payment
Feb 18, 2026
Merged

feat(clerk-js,localizations,shared,ui): Render credits#7880
dstaley merged 3 commits intomainfrom
ds.fix/credits-statement-payment

Conversation

@dstaley
Copy link
Member

@dstaley dstaley commented Feb 18, 2026

Description

This PR updates the rendering of credits in statements and payment attempts to use the new credits field which contains both proration credits and account credits.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • New Features
    • Proration credits now displayed on payment attempts and billing statements
    • Account credits now displayed on payment attempts and billing statements

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: 4f1fe33

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 20 packages
Name Type
@clerk/localizations Minor
@clerk/clerk-js Minor
@clerk/shared Minor
@clerk/ui Minor
@clerk/react Patch
@clerk/chrome-extension Patch
@clerk/expo Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue Patch

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

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 18, 2026 9:20pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

The 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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: adding support for rendering credits (both proration and account credits) across multiple packages (clerk-js, localizations, shared, ui).

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 18, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7880

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7880

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7880

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7880

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7880

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7880

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@7880

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7880

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7880

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7880

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@7880

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7880

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7880

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7880

@clerk/react

npm i https://pkg.pr.new/@clerk/react@7880

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7880

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7880

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7880

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7880

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@7880

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7880

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7880

commit: 4f1fe33

Copy link
Contributor

@mauricioabreu mauricioabreu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@dstaley dstaley merged commit 222202e into main Feb 18, 2026
39 checks passed
@dstaley dstaley deleted the ds.fix/credits-statement-payment branch February 18, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments