Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clerk-js): Introduce matrix layout option for <PricingTable /> #5393

Merged
merged 21 commits into from
Mar 21, 2025

Conversation

alexcarpenter
Copy link
Member

@alexcarpenter alexcarpenter commented Mar 18, 2025

Description

Introduce matrix layout option for <PricingTable />

<PricingTable
  layout='matrix'
  highlightPlan='...'
/>

Resolves COM-145

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:

Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 21, 2025 2:45pm

Copy link

changeset-bot bot commented Mar 19, 2025

🦋 Changeset detected

Latest commit: d80aebd

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

@alexcarpenter alexcarpenter changed the title feat(clerk-js): <PricingTableMatrix /> feat(clerk-js): Introduce matrix layout option for <PricingTable /> Mar 20, 2025
@alexcarpenter alexcarpenter marked this pull request as ready for review March 20, 2025 21:50
@alexcarpenter alexcarpenter requested a review from aeliox March 20, 2025 21:50
))}
</Box>
<>
{mode !== 'modal' && props.layout === 'matrix' ? (
Copy link
Member

Choose a reason for hiding this comment

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

Do we have PricingTableModalProps and do they reflect this condition ?

Copy link
Member Author

Choose a reason for hiding this comment

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

There isn't a PricingTableModal like SignInModal. We are just ensuring when the pricing table is used within the UserProfile, that it uses the default layout and not the matrix.

Copy link
Member

Choose a reason for hiding this comment

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

Got it, i missed the part where mode refers to UP as modal.

@alexcarpenter alexcarpenter merged commit 2080625 into main Mar 21, 2025
30 checks passed
@alexcarpenter alexcarpenter deleted the alexcarpenter/com-145-pricingtable-matrix-layout branch March 21, 2025 14:54
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.

3 participants