feat(clerk-js,localizations,shared,ui): Render seat costs in PricingTable#7917
feat(clerk-js,localizations,shared,ui): Render seat costs in PricingTable#7917dstaley wants to merge 5 commits intofeat/seat-based-billingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| } | ||
|
|
||
| function Card(props: CardProps) { | ||
| console.log('Card', props); |
There was a problem hiding this comment.
🙃 There's another console.log here
| export function PricingTableSBB(): MockScenario { | ||
| const user = UserService.create(); | ||
| const session = SessionService.create(user); | ||
| const money = (amount: number) => ({ |
| if (seatUnitPrice.tiers.length === 1) { | ||
| const tier = seatUnitPrice.tiers[0]; | ||
|
|
||
| if (tier.feePerBlock.amount === 0 && tier.endsAfterBlock !== null) { |
There was a problem hiding this comment.
❔ what happens if amount === 0 and ends after block is null (unlimited)?
There was a problem hiding this comment.
added support for that! It'll now render Unlimited seats.
Description
This PR adds support for rendering seat costs in the PricingTable component for seat-based plans.
Testing Instructions
pnpm i && turbo build, thenpnpm dev:sandboxto start the sandbox and go to it athttp://localhost:4000scenario.setScenario(AVAILABLE_SCENARIOS.PricingTableSBB)components.pricingTable.setProps({ for: 'org' })Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change