-
Notifications
You must be signed in to change notification settings - Fork 6
Bug/re submit password form #1764
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
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1764 +/- ##
==========================================
+ Coverage 41.26% 41.58% +0.32%
==========================================
Files 534 535 +1
Lines 23506 23509 +3
Branches 6940 7753 +813
==========================================
+ Hits 9699 9776 +77
+ Misses 13766 13096 -670
- Partials 41 637 +596 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…r' for token validation
…-form [VRT] Update baselines for bug/re-submit-password-form
|
If I understand correctly, the original bug was because the event handler on the button didn't do anything as long as there was an "error", and the fix is that we now only skip the request if there are validation errors. Also, the client-side validation now correctly prevents empty passwords from being submitted. Looks good to me. I'm glad the Physics notes:
Ada notes:
I also want to thank you, from the bottom of my heart, for creating test cases for the password reset page. It's been such a relief I didn't need to try all the error cases by hand. I still manually tested the happy path and some error cases (including on the registration page). Overall, this PR is very thoughtfully considered and makes great changes! I left a few more comments -- not so much because there was anything wrong with the original versions from the PR, but because I wanted to take the opportunity to discuss these. They're just suggestions, please feel free to ignore any of them! |
|
Thanks @barna-isaac, I've updated the margin and added a
We're not particularly consistent with how we show server-side errors like this, but we use this approach in the registration flow so I'll leave it like this for now. We could probably use a design review of how we do this in general. |
…ug/re-submit-password-form
…-form [VRT] Update baselines for bug/re-submit-password-form
…ug/re-submit-password-form
The bug that necessitated this PR was due to our "general error" logic from Redux; we want to block submission if the password reset token from the URL is invalid, but other server-side errors (including submitting an invalid password!) also manifest as a general error which blocked submission. There's another card to move away from this general error business, and at that point I'll revisit the
todos in this PR.I also noticed this page was fairly hideous, so I mostly rebuilt it using
SetPasswordInput. I've also refactoredSetPasswordInputto rely less on state from the parent so it's easier to reuse - for example, the parent no longer needs to track what's in the confirmation field or perform that equality check.