feat(v2): v2-native sign-up (V2Register)#467
Merged
Merged
Conversation
/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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the v2 auth pair.
/v2/registerrendered the legacy MUIRegisterform — inconsistent withV2Login+ the new landing now that v2 is the default. Adds a v2-nativeV2Register:.v2-loginstyles + adds a username field; matchesV2Loginexactly/v2/register/invite-requiredwhen invite-only + no?invite)/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)/v2/register→V2RegisterTest plan
V2Register)/v2/registerrenders the v2 form; "Sign in" link →/v2/login; submit shows the success state