Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify handle validation during signup #3763

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Apr 30, 2024

Why

Seems that maybe we think it's cleaner to just present possible validation errors after an error is encountered. It does improve the UI a good bit. This reworks the validation logic to do that.

Test Plan

Test the various possible error states:

  • Handle is longer than 253 chars
  • Handle is shorter than 3 chars
  • Handle starts or ends with a hyphen
  • Handle contains invalid characters (anything other than numbers, letters, and hyphens)
  • A taken handle should also show an error after submitting
Screen.Recording.2024-04-29.at.10.43.23.PM.mov

Copy link

render bot commented Apr 30, 2024

Copy link

Old size New size Diff
6.44 MB 6.44 MB -1.84 KB (-0.03%)

@haileyok haileyok requested a review from gaearon April 30, 2024 07:54
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