From 5b91260e1a404b42fd79bcfd4703f95c27eb17c1 Mon Sep 17 00:00:00 2001 From: Cam Pedersen Date: Wed, 13 May 2026 10:54:46 -0700 Subject: [PATCH] feat(auth): redesign sign-in popups + modal in v3 design language MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OAuth popup at /auth/popup.html broke at runtime because its inline script was refused by the site CSP (script-src 'self'), leaving users stuck on a blank "Completing sign-in…" screen. Extract the IIFE to a sibling popup.js, matching the desktop.html/desktop.js pattern that already exists. While both auth bridge pages were open, rebuild them around the v3 tokens (#0E0E10 stage, #1A1A1D chrome, Inter/SF Pro, 6px radii, brand pink #F92672) and the Splash visual vocabulary: large vcad. wordmark with brand-pink dot, indeterminate shimmer progress bar, primary CTA in brand pink. Drops Berkeley Mono since v3 reserves it for code. Same pass on AuthModal.tsx: - Wordmark text-3xl -> text-5xl to mirror Splash - Remove idle dot pulse, top edge gradient, backdrop blur - Opaque bg-surface, rounded-xl dialog, rounded-md controls - Lower buttons to h-10, tighten typography hierarchy - Replace Phosphor monochrome icons with the official 4-color Google G and a GitHub Octocat that uses currentColor so it tracks the theme - Autofocus the email field on open via onOpenAutoFocus (Radix's default focused the close button) Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/app/public/auth/desktop.html | 178 ++++++++++++------- packages/app/public/auth/desktop.js | 4 + packages/app/public/auth/popup.html | 196 +++++++++++---------- packages/app/public/auth/popup.js | 34 ++++ packages/auth/src/components/AuthModal.tsx | 156 +++++++++------- 5 files changed, 352 insertions(+), 216 deletions(-) create mode 100644 packages/app/public/auth/popup.js diff --git a/packages/app/public/auth/desktop.html b/packages/app/public/auth/desktop.html index 15dfbdc2..66902971 100644 --- a/packages/app/public/auth/desktop.html +++ b/packages/app/public/auth/desktop.html @@ -8,50 +8,56 @@
-
- - Desktop sign-in +
vcad.
+

Opening the desktop app…

+ -

Opening the desktop app…

-
- - Continue in browser +
+ + Continue in browser