Integrate autumn pricing and update scan credits#1
Draft
Ganthology wants to merge 7 commits intomainfrom
Draft
Conversation
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Integrates a credit system to manage user scans. Users now purchase credits, which are consumed upon scan completion. Includes API endpoints for credit management, frontend components for display and purchase, and database schema updates. Co-authored-by: ray.ganbk <ray.ganbk@gmail.com>
Co-authored-by: ray.ganbk <ray.ganbk@gmail.com>
f37045d to
3ce44d9
Compare
- Added credits module to generated API types - Fixed all credit-related API calls to use proper function references - Resolved build conflicts after rebase - TypeScript compilation now passes successfully
- Move pricing section outside of AuthGuard to be visible to everyone - Add fallback prop to AuthGuard component for conditional rendering - Keep scanner functionality behind authentication - Show credits display and dashboard link only to authenticated users - Improve user onboarding by showing pricing upfront
- Replace stacked pricing with side-by-side login/pricing layout - Add clickable pricing cards that trigger sign-up flow - Store selected package in localStorage for post-login purchase - Redirect to pricing page after login with selected package highlighted - Add visual feedback: selected package gets green styling and animation - Improve CTA text and hover states for better conversion - Create seamless user journey from pricing selection to purchase
- Move pricing UI into AuthGuard instead of using complex fallback approach - Replace original login component with side-by-side login + pricing layout - Fix JSX syntax errors and build issues - Pricing now shows INSTEAD OF the old login screen, not alongside it - Clean, professional layout that doesn't push content around - Clickable pricing cards trigger sign-in flow with selected package stored
- New users automatically get 1 free credit when they sign up - Updated AuthGuard to highlight the free plan prominently - Added welcome messages and free credit indicators throughout UI - Updated credits initialization to record free credit transaction - Enhanced pricing page to show special free plan section for new users - Added 'free credit' badge in credits display component - Updated pricing messaging to focus on 'need more credits' after free use - Improved onboarding experience with clear free-to-start messaging
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.
Implement a credit-based pricing system with credit consumption for all basic scans and add credit management features.