feat: Implement Stripe billing with Free and Pro subscription plans - #3
Merged
Merged
Conversation
- Add two subscription tiers: Free (1 calendar, 1 destination, daily sync) and Pro ($8/month with unlimited calendars, unlimited destinations, 15-min sync, priority support) - Update Plan enum from FREE/PAID to FREE/PRO with comprehensive plan limits module - Add database fields for tracking subscription (stripe_subscription_id, stripe_current_period_end) - Enhance Stripe webhook handler to handle full subscription lifecycle (created, updated, deleted, payment_succeeded, payment_failed) - Create plan-gating utility for checking feature access based on subscription - Update billing page UI to show current plan, usage stats, and upgrade CTA - Update pricing page with accurate Free and Pro plan features - Update landing page pricing section to reflect $8/month Pro plan Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Backend
Planenum fromFREE/PAIDtoFREE/PROwith comprehensive limits module (packages/shared/src/types/plan.ts)stripe_subscription_id,stripe_current_period_endon orgs tablecustomer.subscription.created- New subscription provisioningcustomer.subscription.updated- Plan changes and renewalscustomer.subscription.deleted- Downgrade to Freeinvoice.payment_succeeded- Successful payment trackinginvoice.payment_failed- Payment failure notificationsplan-gating.tsutility for feature access checksFrontend
org-billing-form.tsx) to show:Database Migration
New migration
0002_confused_lionheart.sqladds:stripe_subscription_idcolumn to orgs tablestripe_current_period_endcolumn to orgs tablestripe_subscription_idTest plan
yarn workspace web tsc --noEmitFollow-ups
Generated with Claude Code