Skip to content

Fix duplicate analysis route handler#20

Draft
DealPatrol wants to merge 5 commits into
mainfrom
cursor/setup-dev-env-de78
Draft

Fix duplicate analysis route handler#20
DealPatrol wants to merge 5 commits into
mainfrom
cursor/setup-dev-env-de78

Conversation

@DealPatrol
Copy link
Copy Markdown
Owner

@DealPatrol DealPatrol commented Apr 26, 2026

Summary

  • Remove the duplicated imports and duplicate GET handler in app/api/analyses/[id]/route.ts.
  • Add shared CodeVault branding, theme switching, and a more polished landing page trust section.
  • Add a Stripe Checkout billing flow with pricing UI, server-side subscription session creation, and success/cancel pages.
  • Harden analysis blueprint generation by using Anthropic directly, validating Claude model config, and accepting common Claude JSON response variants.
  • Keep failed SSE analysis runs visibly failed in the UI instead of flipping them to complete.

Testing

  • pnpm install --frozen-lockfile
  • pnpm lint
  • pnpm build
  • node --input-type=module -e "...parseAnalysisBlueprintOutput harness..."
  • pnpm dev --hostname 0.0.0.0
  • curl -s -i -X POST http://127.0.0.1:3000/api/stripe/checkout -H 'Content-Type: application/json' -d '{"planId":"codevault-pro"}'
  • curl -s -i -X POST http://127.0.0.1:3000/api/stripe/checkout -H 'Content-Type: application/json' -d '{"planId":"bad-plan"}'
  • Browser walkthrough confirmed the Stripe pricing UI renders and shows the expected missing-key state locally.

Walkthrough

codevault_stripe_billing_ui_demo.mp4

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 26, 2026

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

Project Deployment Actions Updated (UTC)
repo-app-architect Ready Ready Preview, Comment Apr 27, 2026 7:14pm
v0-repo-app-architect Ready Ready Preview, Comment, Open in v0 Apr 27, 2026 7:14pm

Request Review

Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
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