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): OrgProfile billing page and new subscription methods #5423

Merged
merged 27 commits into from
Mar 26, 2025

Conversation

aeliox
Copy link
Contributor

@aeliox aeliox commented Mar 21, 2025

Description

Adds billing page (and PricingTable) to the OrgProfile along with the new usePlans hook.

Also adds two subscription methods to get active subscriptions for the current user and the current org.

Renames the PlanDetailDrawer -> SubscriptionDetailDrawer.

Resolves COM-184 COM-146

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

changeset-bot bot commented Mar 21, 2025

🦋 Changeset detected

Latest commit: 3fbf27d

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

This PR includes changesets to release 22 packages
Name Type
@clerk/localizations Patch
@clerk/clerk-js Patch
@clerk/shared Patch
@clerk/types Patch
@clerk/clerk-react Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/elements Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue Patch
@clerk/themes 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

Copy link

vercel bot commented Mar 21, 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 26, 2025 6:16pm

@aeliox aeliox changed the title feat(commerce): OrgProfile billing page and new subscription methods feat(clerk-js): OrgProfile billing page and new subscription methods Mar 21, 2025
Copy link
Member

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

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

It looks like maybe the pricing table and checkout components are re-rendering multiple times causing the table to flicker on load, then opening checkout opens drawer/closes then reopens.

Screen.Recording.2025-03-24.at.11.31.01.AM.mov

Copy link
Member

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

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

Looking good so far, do you think there will be redirect urls for both checkout complete and subscription cancel callbacks?

@aeliox aeliox merged commit e20fb6b into main Mar 26, 2025
30 checks passed
@aeliox aeliox deleted the keiran/org-profile-pricing-table branch March 26, 2025 19:18
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.

6 participants