[HOLD for payment 2021-09-16] UX - Improve coloring and message when completing password requirements
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Create a new account
- Click on the magic link
- Set a password with the correct requirements
Expected Result:
The password hint is always there in gray, and it only changes color to red when the entered password doesn't meet the requirements
Actual Result:
Message about password requirements turns green and it can be confusing to the user since it looks like a warning. Message from @marcaaron explains it better:
is it a weird UX to be told how to structure the password if there is nothing wrong with how you entered it? Feels like a warning but it’s green and messes with my brain :sweat_smile:
Workaround:
No need, UX issue.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.0.85-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Upwork job URL: https://www.upwork.com/jobs/~01145c1edaadf21433
From @marcaaron https://expensify.slack.com/archives/C01GTK53T8Q/p1628820476311400
Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Proposal
1st approach:
Remove this condition. We don't need to color the hint text green if the password is valid. https://github.com/Expensify/App/blob/8b10c1c1a0267eb66ef8fdc6e0049f9b101836a2/src/pages/settings/NewPasswordForm.js#L89-L91
2nd approach:
Remove everything related passwordHintStyle
https://github.com/Expensify/App/blob/8b10c1c1a0267eb66ef8fdc6e0049f9b101836a2/src/pages/settings/NewPasswordForm.js#L85-L91
Create new function
isInvalidPassword() {
return this.state.passwordHintError && this.props.password && !this.isValidPassword();
}
Refactor the hint text
<Text
style={[
styles.textLabelSupporting,
styles.mt1,
this.isInvalidPassword() && styles.formError
]}
>
{this.props.translate('setPasswordPage.newPasswordPrompt')}
</Text>
In PasswordPage.js change password page, we're hiding the password hint as soon as it matches all the requirements.
Issue reproducible! Adding External and Monthly labels as it can definitely be done by a contributor and it does not seem like a priority.
Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
There should be a message about password being strong or a checkmark when the user sets a password with the correct requirements
@shawnborton have we decided exactly what we want here? Perhaps we can mock that up quickly before we create the Upwork job.
I think we can just remove the logic that adds the green color to the text. I think it's okay if we don't have some kind of message/checkmark if the password is correct.
Yeah I agree. I think this would ideally just work like this...
- User enters password and it passes validation. No additional feedback is shown.
- User enters password and it does not pass validation - hint is shown with RED text.
- User fixes password and the hint is removed entirely. No green text. No message.
Thoughts?
I was thinking that the password hint is always there in gray, and it only changes color to red when the entered password doesn't meet the requirements. I think that's a bit more simple of an approach and doesn't need to hide/show anything.
Got it, nice. That works too :)
I was thinking that the password hint is always there in gray, and it only changes color to red when the entered password doesn't meet the requirements.
@shawnborton That was my proposal 😄
😄 well, I'd say it's a great proposal @kakajann!
@trjExpensify Eep! 4 days overdue now. Issues have feelings too...
@trjExpensify Still overdue 6 days?! Let's take care of this!
@trjExpensify 10 days overdue. I'm getting more depressed than Marvin.
👋 Just come back from OoO, Melv. Posted the job here: https://www.upwork.com/jobs/~01145c1edaadf21433. @kakajann if you're interested, feel free to apply and then I can assign this issue to you.
Triggered auto assignment to @thienlnam (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@kakajann 🟢 to https://github.com/Expensify/App/issues/4660#issuecomment-898784405 the 1st proposal here
Assigning you to the issue - please apply to the upwork job
My bad, un-assigning for the meantime until you are applied and contracted for the job
I'll apply for a job and will raise a pr tonight