Skip to content

Tys paywall #16

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Tys paywall #16

wants to merge 6 commits into from

Conversation

Kitenite
Copy link

Description

Added three pricing options with logic in the buttons based on the plan a user is currently on.

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes


Important

Adds new pricing plans and updates subscription logic and UI components to handle these plans.

  • Behavior:
    • Adds three new pricing plans: FREE, LAUNCH, and SCALE in UsagePlanType.
    • Updates checkoutWithStripe() in index.ts to accept a plan parameter.
    • Modifies listenForPaymentMessages() in payments.ts to handle different plans.
    • Updates getPlanFromServer() in subscription.ts to handle new plan types.
  • UI Components:
    • Updates PricingCard in PricingCard.tsx to display new plans and handle button logic.
    • Modifies SubscriptionModal in PricingPage.tsx to include new plans and checkout logic.
  • Localization:
    • Adds translations for new plans in translation.json for both English and Chinese.
  • Database:
    • Updates usage_plan_values enum in db.ts to include free and pro.

This description was created by Ellipsis for e8ad0c9. It will automatically update as commits are pushed.

thughey added 6 commits April 2, 2025 13:11
Updated where the plan info was being pulled from to match the current setup with the pro and basic plan.
Added logic for the title and button text of the pricing card for the current plan.
@Kitenite Kitenite mentioned this pull request May 14, 2025
6 tasks
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