Skip to content

feat(clerk-js,localizations,shared,ui): Render seat costs in PricingTable#7917

Open
dstaley wants to merge 5 commits intofeat/seat-based-billingfrom
ds.feat/sbb-pricing-table-display
Open

feat(clerk-js,localizations,shared,ui): Render seat costs in PricingTable#7917
dstaley wants to merge 5 commits intofeat/seat-based-billingfrom
ds.feat/sbb-pricing-table-display

Conversation

@dstaley
Copy link
Member

@dstaley dstaley commented Feb 24, 2026

Description

This PR adds support for rendering seat costs in the PricingTable component for seat-based plans.

CleanShot 2026-02-24 at 13 40 28@2x

Testing Instructions

  • Checkout locally, run pnpm i && turbo build, then pnpm dev:sandbox to start the sandbox and go to it at http://localhost:4000
  • Open the development tools console
  • run scenario.setScenario(AVAILABLE_SCENARIOS.PricingTableSBB)
  • after refresh run components.pricingTable.setProps({ for: 'org' })
  • navigate to the pricing table page
  • confirm rendered plans match designs

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:

@vercel
Copy link

vercel bot commented Feb 24, 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 24, 2026 8:32pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

⚠️ No Changeset found

Latest commit: d5f9dea

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

}

function Card(props: CardProps) {
console.log('Card', props);
Copy link
Contributor

Choose a reason for hiding this comment

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

🙃 There's another console.log here

export function PricingTableSBB(): MockScenario {
const user = UserService.create();
const session = SessionService.create(user);
const money = (amount: number) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

💯 cool

if (seatUnitPrice.tiers.length === 1) {
const tier = seatUnitPrice.tiers[0];

if (tier.feePerBlock.amount === 0 && tier.endsAfterBlock !== null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

❔ what happens if amount === 0 and ends after block is null (unlimited)?

Copy link
Member Author

Choose a reason for hiding this comment

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

added support for that! It'll now render Unlimited seats.

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