Skip to content

Integrate autumn pricing and update scan credits#1

Draft
Ganthology wants to merge 7 commits intomainfrom
cursor/integrate-autumn-pricing-and-update-scan-credits-9334
Draft

Integrate autumn pricing and update scan credits#1
Ganthology wants to merge 7 commits intomainfrom
cursor/integrate-autumn-pricing-and-update-scan-credits-9334

Conversation

@Ganthology
Copy link
Copy Markdown
Owner

Implement a credit-based pricing system with credit consumption for all basic scans and add credit management features.


Open in Cursor Open in Web

@cursor
Copy link
Copy Markdown

cursor bot commented Sep 29, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
llm-score Error Error Sep 30, 2025 0:45am

cursoragent and others added 2 commits September 30, 2025 07:38
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>
@cursor cursor bot force-pushed the cursor/integrate-autumn-pricing-and-update-scan-credits-9334 branch from f37045d to 3ce44d9 Compare September 30, 2025 07:40
- 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
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