Auth pages get Mike 2.1 tokens and a required firm-name field

hosman20 migrates the login and signup pages to the new design system and makes organisation name mandatory at signup. Small change in the form, deliberate signal about product direction.

intakebranding

Commit 3c8ffa8 ports frontend/src/app/login/page.tsx and signup/page.tsx from the upstream layout onto the Mike 2.1 token set. The login card moves from bg-white border-gray-200 rounded-2xl to bg-surface border-border rounded-xl with a centered 460px max-width. The new SiteLogo mark replaces the old. Error handling switches from catch (error: any) to a typed catch (err: unknown) with an instanceof Error guard.

The functional change worth noting: the Organisation field is now required. The signup form labels it "Firm name" and the button reads "Start free trial." WorkOS SSO and magic-link flows visible in the design frames are not wired yet.

Two smoke tests in app/__tests__/auth-pages.smoke.test.tsx verify the form fields render. They mock next/navigation, the Supabase client, the profile API, and the auth context, so they run without any backend.

So what Worth a look if you want to gate signup to B2B accounts - the required firm-name field is a one-line form change but reflects a product decision. Skip if you're staying on the upstream consumer flow.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from hosman20/mike-2.0, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
3c8ffa8f feat(auth): migrate login and signup to Mike 2.1 chrome z 2026-05-13 ↗ GitHub
commit body
Batch 2 - port login + signup pages from .pen frames
(S9ZQTA/tbg1h/gtQ5F login, V3Q1xu signup) to Mike 2.1 design.

- Login + signup forms rebuilt against new tokens + primitives.
- site-logo updated to Mike 2.1 mark.
- Organisation field made REQUIRED (B2B product).
- Confirm-password field preserved (functionality preservation).
- WorkOS-SSO and magic-link buttons NOT lifted (no wired primitive).
- 2 smoke tests in app/__tests__/auth-pages.smoke.test.tsx.

Agent ID: a98a89fd5a4635549 (general-purpose).

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-404.md from inside the repo you want the changes in.

⬇ Download capture-thread-404.md