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

Reactify sign up and profile forms #437

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Reactify sign up and profile forms #437

merged 1 commit into from
Jan 11, 2024

Conversation

amCap1712
Copy link
Member

Use formik library to aid in reactifying the forms. This is useful in providing form validation feedback to the user without requiring the user to submit it first.

@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

Unit Test Results

  1 files  ±0    1 suites  ±0   11s ⏱️ ±0s
67 tests ±0  67 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9dd3a87. ± Comparison against base commit 12f5c6d.

@amCap1712
Copy link
Member Author

Not to merge in master, just for review and then close.

Copy link
Contributor

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good at a glance. I tested on test and read through the PR.

I haven't used Formik before so take the review with a grain of salt :D
However everything I tested worked fine, except a broken link (not introduced in this PR).

Broken link is on the /login page, the "Create a free MetaBrainz account" links to /Login with a capital L, which A) is a broken link and B) probably wouldn't be the right link anyway since I'm already on /login

frontend/js/src/forms/ProfileEdit.tsx Show resolved Hide resolved
frontend/js/src/forms/SignupNonCommercial.tsx Show resolved Hide resolved
@MonkeyDo
Copy link
Contributor

MonkeyDo commented Oct 5, 2023

The early form validation works great!
image

@reosarevok
Copy link
Member

I'm not sure what is the right PR (if any) for the actual sign up form for a non-supporter account, but the error messages there were inconsistent when I tested it (some were uppercased, some lowercase, etc) but it otherwise worked fairly well.

Use formik library to aid in reactifying the forms. This is useful in providing
form validation feedback to the user without requiring the user to submit it first.
Copy link

Test Results

67 tests  ±0   67 ✅ ±0   8s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 9edbd7e. ± Comparison against base commit 17f660b.

@amCap1712
Copy link
Member Author

@reosarevok I haven't opened a PR for that yet.

@amCap1712 amCap1712 merged commit 3fb648d into master Jan 11, 2024
2 checks passed
@amCap1712 amCap1712 deleted the formik branch January 11, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants