feat: use registration API without name fields

Closed
DA
2d ago
+319-178

Summary (AI generated)

Register accounts through the existing Capgo POST /auth/register API using email and password. Collect first and last names together on the console's mandatory About you screen before Your goal, implemented in capgo.app #3744.

Preserve CAPTCHA, device metadata, referral and first-touch attribution read at submission, PostHog/Datafast, Affonso and hashed OpenAI Ads conversion identity/deduplication. Reject credential-bearing HTTP redirects and incomplete session responses; failed requests restore the form for retry.

Motivation (AI generated)

Reduce signup friction while preserving account identity collection and conversion measurement. This uses the already-merged registration API; Better Auth is outside this change.

Business Impact (AI generated)

Visitors enter two fewer signup fields. Backend optional-name compatibility and durable PostHog/Bento identity synchronization are already merged in #3751/#3752. Console #3744 replaces #3647 and keeps the V6 experiment at 0%; rollout activation is a separate decision. Coordinate website deployment with the approved console rollout so eligible users reach the required-name screen.

Test Plan (AI generated)

  • 30 tests / 93 assertions: signup script, real HTTP 307/308 credential-forwarding protection, API responses, A/B routing, RSS and attribution.
  • All workspace checks, including Astro and translation workers.
  • Production web build, SEO, contrast and Prettier.
  • Desktop/mobile before/after captures against main d9fa830a2, head fd011cf09.

Visual changes (AI generated)

Download the self-contained before/after/diff report. Captured 2026-10-20 with the repository visual-diff workflow. Testimonial carousel content can vary. Capture artifacts remain gitignored.

Visual diff

Generated with bun run visual-diff:compare (2 screenshots, fuzz 1%).

StatusSuiteRouteViewportDiff (px)
changedweb/register//desktop73300
changedweb/register//mobile66508

Summary:

  • identical: 0
  • minor: 0
  • changed: 2

Diff images are in .visual-diff/diff/ (local only, gitignored).

Summary by CodeRabbit

  • New Features
    • Registration now asks only for an email address and password; first and last name fields are no longer part of the form.
    • Registration requests include CAPTCHA verification, referral details, and device information when available.
  • Bug Fixes
    • When registration fails, users see an error message and can retry without reloading the page.
    • Successful registration redirects users to the console login page with their session information.