-
Notifications
You must be signed in to change notification settings - Fork 810
improvement: plans comparison & updated UI of pricing #1031
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
Conversation
Warning Rate limit exceeded@ameer2468 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 23 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (8)
WalkthroughIntroduces a new ComparePlans component and integrates it into PricingPage, restructures Pro/Commercial cards and art components’ styling and features, adds a QuestionMarkIcon, and updates Button disabled styles. Adds checkout flows (guest, commercial, subscription) within ComparePlans, and adjusts enterprise and FAQ sections on the pricing page. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant CP as ComparePlans
participant AUTH as AuthContext
participant API as Server API
participant TOAST as Toast
U->>CP: Click "Download" (Free)
CP-->>U: Navigate to /download
U->>CP: Click "Desktop License"
CP->>API: POST /api/commercial/checkout
alt success (URL)
API-->>CP: { url }
CP-->>U: Redirect to url
else error
API-->>CP: { error }
CP->>TOAST: Show error
end
U->>CP: Click "Cap Pro"
CP->>AUTH: Check auth + subscription
alt not authenticated
CP->>API: POST /api/settings/billing/guest-checkout
API-->>CP: { url | error }
alt url
CP-->>U: Redirect to url
else error
CP->>TOAST: Show error
end
else authenticated
CP->>API: POST /api/settings/billing/subscribe
alt newly subscribing
API-->>CP: { url }
CP-->>U: Redirect to url
else already subscribed
API-->>CP: { status: already_subscribed }
CP->>TOAST: Inform already subscribed
else error
API-->>CP: { error }
CP->>TOAST: Show error
end
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1953805
to
617ec79
Compare
Summary by CodeRabbit