Skip to content

feat(v2): v2-native sign-up (V2Register)#467

Merged
samxu01 merged 2 commits into
mainfrom
feat/v2-register
Jun 1, 2026
Merged

feat(v2): v2-native sign-up (V2Register)#467
samxu01 merged 2 commits into
mainfrom
feat/v2-register

Conversation

@samxu01
Copy link
Copy Markdown
Contributor

@samxu01 samxu01 commented Jun 1, 2026

Summary

Completes the v2 auth pair. /v2/register rendered the legacy MUI Register form — inconsistent with V2Login + the new landing now that v2 is the default. Adds a v2-native V2Register:

  • Reuses the .v2-login styles + adds a username field; matches V2Login exactly
  • Honors the invite-only registration policy (redirects to /v2/register/invite-required when invite-only + no ?invite)
  • POSTs /api/auth/register, surfaces the backend's message in a success state with a "Continue to sign in" CTA (the backend may send a verification email rather than a usable session — same flow the legacy form used)
  • Routes /v2/registerV2Register
  • Register e2e tests updated to the v2 selectors ("Create account", v2 success state)

Test plan

  • CI: lint + tsc + jest + E2E (the register specs now exercise V2Register)
  • Local/dev: /v2/register renders the v2 form; "Sign in" link → /v2/login; submit shows the success state

samxu01 and others added 2 commits June 1, 2026 18:27
/v2/register rendered the legacy MUI Register form — inconsistent with the
v2 login + landing now that v2 is the default. Add V2Register, reusing the
.v2-login styles (+ a username field), honoring the invite-only policy and
surfacing the backend's register message with a sign-in handoff. Route
/v2/register → V2Register. Update register e2e to the v2 selectors
("Create account", v2 success state).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two visual bugs caught in browser verification:
- The bare <form> picked up a dark global background — make the <form> carry
  .v2-login__card (matching V2Login) so the card renders white.
- .v2-login__submit lost to the global button reset (transparent fill) — scope
  it as .v2-root button.v2-login__submit so the accent applies. Also fixes the
  pre-existing latent unstyled submit button on V2Login.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@samxu01 samxu01 merged commit 62248a5 into main Jun 1, 2026
12 of 13 checks passed
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.

1 participant