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

Subscription page: Display pricing table is current plan is a free one #10047

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

PopDaph
Copy link
Contributor

@PopDaph PopDaph commented Jan 17, 2025

Description

The goal of this PR is to allow the workspaces in Free Pilot to subscribe autonomously on Pro plan.
I could have whitelisted those plan code but I figured out testing that the current active subscription does not involve payment with Stripe will be more future proof, we won't have to maintain a list of code.

Review with hidden whitespaces: https://github.com/dust-tt/dust/pull/10047/files?diff=split&w=1

Risk

Can be rolled back.

Deploy Plan

Deploy front.

@PopDaph PopDaph requested a review from flvndvd January 17, 2025 09:17
display="subscribe"
/>
</div>
{displayPricingTable && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this will also display the pricing table for entreprise plans?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope enterprise plans have a stripeSubscriptionId since payment is involved!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(You can't create an enterprise sub without a stripeSubscriptionId)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah misread the === null.

@PopDaph PopDaph requested a review from flvndvd January 17, 2025 09:43
@PopDaph PopDaph merged commit b82a648 into main Jan 17, 2025
4 checks passed
@PopDaph PopDaph deleted the subscription-page-pricing-table branch January 17, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants