[Bug]: Add real-time password strength indicator and validation hints on login/signup#232
Open
Rojimijar1 wants to merge 1 commit into
Open
Conversation
Contributor
|
@Rojimijar1 is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds an animated password strength/checklist UI to the registration form to guide users toward meeting password requirements.
Changes:
- Introduced
PasswordChecklistcomponent with rule checks and a strength meter. - Replaced the static “Minimum 7 characters.” hint with an
AnimatePresence-animated hint/checklist swap.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+508
to
+520
| <AnimatePresence mode="wait"> | ||
| {user_values.password.length > 0 ? ( | ||
| <PasswordChecklist password={user_values.password} /> | ||
| ) : ( | ||
| <motion.p | ||
| key="hint" | ||
| className="mt-1 text-[11px]" | ||
| style={{ color: "rgba(255,255,255,0.3)" }} | ||
| > | ||
| Minimum 7 characters. | ||
| </motion.p> | ||
| )} | ||
| </AnimatePresence> |
Comment on lines
+199
to
+208
| <div className="grid grid-cols-2 gap-1"> | ||
| {checks.map((c, idx) => ( | ||
| <div | ||
| key={idx} | ||
| className="flex items-center gap-1.5 text-[10px]" | ||
| style={{ color: c.valid ? "#4ade80" : "rgba(255,255,255,0.4)" }}> | ||
| <span>{c.valid ? "✓" : "○"}</span> | ||
| <span>{c.label}</span> | ||
| </div> | ||
| ))} |
Comment on lines
+201
to
+207
| <div | ||
| key={idx} | ||
| className="flex items-center gap-1.5 text-[10px]" | ||
| style={{ color: c.valid ? "#4ade80" : "rgba(255,255,255,0.4)" }}> | ||
| <span>{c.valid ? "✓" : "○"}</span> | ||
| <span>{c.label}</span> | ||
| </div> |
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.
Description
Adds a real-time password validation checklist on the signup page. As the user types their password, it shows live feedback on which requirements are met (length, uppercase letter, number, special character) along with a password strength indicator.
Changes
PasswordChecklistcomponent inRegister.jsxRelated Issue
Fixes #191
Screenshots