feat(localizations,shared,ui): Change invite members CTA based on available seats#8612
feat(localizations,shared,ui): Change invite members CTA based on available seats#8612dstaley wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| return null; | ||
| }; | ||
|
|
||
| export const getPaidSeatsUnitTier = (unitPrice: BillingPlanUnitPrice | null): BillingPlanUnitPriceTier | null => { |
There was a problem hiding this comment.
It would be great to add a unit test for this helper
| return organization.membersCount + organization.pendingInvitationsCount > seatLimit; | ||
| }; | ||
|
|
||
| export const organizationAndInvitationsExceedsPurchasedSeats = ( |
There was a problem hiding this comment.
this one is pretty simple, but perhaps a happy path unit test?
Description
This PR updates the "Send invitations" button text to "Purchase additional seats" when the organization is on a per-seat cost plan and is attempting to invite more members than their current subscription item entitles them to.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change