Skip to content

feat(web): fold Get Pro checkout onto Home - #1671

Merged
kk-agent merged 4 commits into
mainfrom
cursor/home-get-pro-checkout-aaa9
Sep 8, 2026
Merged

feat(web): fold Get Pro checkout onto Home#1671
kk-agent merged 4 commits into
mainfrom
cursor/home-get-pro-checkout-aaa9

Conversation

@groupthinking

@groupthinking groupthinking commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Follows #1668 (CoS authorized 2026-09-08 after HOME SIGNED). No new GitHub issue. Includes CoS AMBER copy guard (2026-09-08): Home must not claim arbitrary-video production E2E or a guaranteed transcript.

Outcome

Cold / on uvai.io still sells (hero + paste + Workflow Pro $39/$390, Ship quote, Maintain $199) and now hosts the live Get Pro checkout: Cloudflare Turnstile + monthly/annual toggle + Continue to UVAI Workflow Pro checkout. That uses the existing ProCheckoutButtonPOST /api/billing/checkout path (same Stripe cs_live session as /pricing). Paste → Studio handoff is unchanged.

Hero copy is scoped to live truth: paste opens the Studio workbench and starts a hashed Video Pack run. Transcript quality varies by source — not a guaranteed production E2E. G.A.T.E. stays parked. Layout OG, JSON-LD HowTo, and OG image alt match that same scope.

Scope

  • Included:
    • HomeProCheckout client island on / reusing ProCheckoutButton (Turnstile widget + $39/mo / $390/yr).
    • Nav Get Pro targets /#get-pro so checkout starts on Home.
    • /pricing stays the deeper plans page and still checkouts.
    • Home See all plans still links to /pricing.
    • Honest Home h1/subcopy, layout OG/Twitter description, JSON-LD HowTo, OG image copy.
    • Tests: home-sell surface (including AMBER copy guard), Playwright smoke for Home checkout controls + paste handoff.
  • Explicitly excluded:
    • Origin G.A.T.E., ClipToAction, tmp uvai, new Stripe SKUs.
    • Maintain $199 / Ship quote checkout (copy-only).
    • Changes to Turnstile sitekey, Stripe price IDs, or checkout success/cancel URLs (still return to /pricing).
    • Footer “Evidence-gated…” line and pricing catalog copy (sitewide, not this Home hero).

Risk

  • Risk level: low
  • Failure mode: If NEXT_PUBLIC_TURNSTILE_SITE_KEY is missing, Home shows the existing “Checkout unavailable — Turnstile not configured.” copy instead of a fake purchase. Stripe still fail-closes without STRIPE_PRICE_PRO_* in production. Preview HTML for the first deploy of this branch showed that Turnstile-unavailable message (preview env may not include the production sitekey). The production sitekey is hostname-bound to uvai.io, so localhost Turnstile reports verification failed (expected).
  • Rollback: revert this PR; Home Get Pro becomes a /pricing link again and the prior hero strings return.

Verification

Tied to head SHA 42987e952.

  • Focused tests: cd apps/web && npx vitest run — 88 files, 559 passed / 1 skipped
  • RED then GREEN: home-sell test failed without HomeProCheckout, then passed; AMBER copy guard asserts honest hero + OG/JSON-LD strings
  • Local Next http://127.0.0.1:3000/ (prior head): sell hero, paste, $39/$390/$199, Get Pro island, monthly→annual switches button to $390/yr
  • Paste https://www.youtube.com/watch?v=auJzb1D-fag/studio?video=
  • Local /pricing still has Continue to UVAI Workflow Pro $39/mo checkout
  • Vercel preview dpl_87FNQvNfuShakRAQmniRbLgTHKZM (pre-AMBER): Get Pro island on /, $39/$390/$199, paste, Nav /#get-pro. Preview showed “Checkout unavailable — Turnstile not configured.”
  • Required CI on 42987e952
  • Review threads resolved
  • Manual QA on post-AMBER Vercel preview / uvai.io after this copy-guard deploy

Production evidence

Vercel preview for v0-uvai: https://v0-uvai-git-cursor-home-get-pro-checkout-aaa9-garv1.vercel.app (SSO-protected). Production QA after merge:

  1. Cold load https://uvai.io/ — honest hero (“Open the Studio workbench” + transcript-quality caveat), paste field, $39 / $390 / $199, Get Pro checkout island (not “Loading studio…”).
  2. Complete Turnstile → Continue to UVAI Workflow Pro $39/mo checkout → Stripe Checkout cs_live at $39/mo (or annual $390).
  3. https://uvai.io/pricing still checkouts.
  4. Paste https://www.youtube.com/watch?v=auJzb1D-fag/studio?video=.

Do not expect a completed Turnstile widget on localhost — sitekey 0x4AAAAAADzjWY_dLlugDWUJ is bound to uvai.io. Confirm Turnstile on production uvai.io (preview may lack NEXT_PUBLIC_TURNSTILE_SITE_KEY).

Agent handoff

Open in Web Open in Cursor 

Reuse ProCheckoutButton and Turnstile on cold / so Workflow Pro
$39/$390 checkout no longer requires leaving for /pricing. Keep
pricing as the deeper plans page and leave paste→Studio intact.

Co-authored-by: Hayden <groupthinking@users.noreply.github.com>
@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Sep 8, 2026 9:25am UTC

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 42987e9.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 3bbf9523-063a-4829-94cf-b0aeaa85d663


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Improvements or additions to documentation javascript Pull requests that update javascript code tests labels Sep 8, 2026
@groupthinking
groupthinking marked this pull request as ready for review September 8, 2026 09:19
Copilot AI balanced review requested due to automatic review settings September 8, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Client navigation during Turnstile loading can leave the Pricing checkout permanently disabled, and toggle behavior lacks functional coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Moves the existing Workflow Pro checkout onto Home while retaining Pricing and Studio flows.

Changes:

  • Adds Home checkout with monthly/annual selection and Turnstile.
  • Redirects navigation’s Get Pro CTA to the Home checkout.
  • Updates documentation and automated smoke coverage.
File summaries
File Description
apps/web/src/app/page.tsx Mounts the Home checkout.
apps/web/src/components/home/HomeProCheckout.tsx Implements the checkout island.
apps/web/src/components/Nav.tsx Targets Home’s checkout anchor.
apps/web/src/lib/__tests__/home-sell-surface.test.ts Checks Home checkout integration.
apps/web/playwright/smoke.spec.ts Adds checkout smoke assertions.
apps/web/REVENUE-PROCESS.md Documents both checkout entry points.
apps/web/src/lib/billing/PLAN.md Records implementation and verification.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +53 to +55
await expect(page.getByRole('button', { name: /Monthly checkout/i })).toBeVisible();
await expect(page.getByRole('button', { name: /Annual checkout/i })).toBeVisible();
await expect(page.getByTestId('pro-checkout-button')).toBeVisible();
Comment on lines +58 to +61
<ProCheckoutButton
annual={annual}
label={`Continue to ${WORKFLOW_PRO_PRODUCT_NAME} ${workflowProPriceLabel(annual)} checkout`}
/>
CoS AMBER: Home sells Studio workbench + variable transcript quality,
not arbitrary-video production E2E. Get Pro checkout fold stays.

Co-authored-by: Hayden <groupthinking@users.noreply.github.com>
@cursor

cursor Bot commented Sep 8, 2026

Copy link
Copy Markdown

@coderabbitai review

cursoragent and others added 2 commits September 8, 2026 09:24
Keep Get Pro checkout on Home. Stop layout, HowTo, and OG image from
claiming a guaranteed transcript or production E2E.

Co-authored-by: Hayden <groupthinking@users.noreply.github.com>
Co-authored-by: Hayden <groupthinking@users.noreply.github.com>

@vercel vercel Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Turnstile widget never mounts when an existing script tag is still loading, leaving the checkout button permanently disabled after a client-side navigation.

Fix on Vercel

@kk-agent
kk-agent merged commit ce2279c into main Sep 8, 2026
23 of 24 checks passed
@kk-agent
kk-agent deleted the cursor/home-get-pro-checkout-aaa9 branch September 8, 2026 09:26
@linear-code

linear-code Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

GRV-492

@cursor

cursor Bot commented Sep 8, 2026

Copy link
Copy Markdown

AMBER copy landed in the merged head (42987e952): Home hero is “Open the Studio workbench” + transcript quality varies / not a guaranteed production E2E. Get Pro checkout fold is unchanged.

Production QA on https://uvai.io/ :

  1. Honest hero (not “Ship the work” / “Not a demo”).
  2. Get Pro island: Turnstile → Continue to UVAI Workflow Pro $39/mo → cs_live.
  3. /pricing still checkouts.
  4. Paste https://www.youtube.com/watch?v=auJzb1D-fag/studio?video=.

Preview showed “Checkout unavailable — Turnstile not configured.” Production must have NEXT_PUBLIC_TURNSTILE_SITE_KEY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation javascript Pull requests that update javascript code tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants