App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-16] UX - Improve coloring and message when completing password requirements

Open isagoico opened this issue 5 years ago • 27 comments

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:

  1. Create a new account
  2. Click on the magic link
  3. 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 image

Upwork job URL: https://www.upwork.com/jobs/~01145c1edaadf21433

View all open jobs on Upwork


From @marcaaron https://expensify.slack.com/archives/C01GTK53T8Q/p1628820476311400

isagoico avatar Aug 13 '21 23:08 isagoico

Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 13 '21 23:08 MelvinBot

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>

kakajann avatar Aug 14 '21 00:08 kakajann

In PasswordPage.js change password page, we're hiding the password hint as soon as it matches all the requirements.

mananjadhav avatar Aug 14 '21 06:08 mananjadhav

Issue reproducible! Adding External and Monthly labels as it can definitely be done by a contributor and it does not seem like a priority.

luacmartins avatar Aug 16 '21 15:08 luacmartins

Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Aug 16 '21 15:08 MelvinBot

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.

trjExpensify avatar Aug 19 '21 10:08 trjExpensify

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.

shawnborton avatar Aug 20 '21 08:08 shawnborton

Yeah I agree. I think this would ideally just work like this...

  1. User enters password and it passes validation. No additional feedback is shown.
  2. User enters password and it does not pass validation - hint is shown with RED text.
  3. User fixes password and the hint is removed entirely. No green text. No message.

Thoughts?

marcaaron avatar Aug 20 '21 18:08 marcaaron

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.

shawnborton avatar Aug 21 '21 08:08 shawnborton

Got it, nice. That works too :)

marcaaron avatar Aug 23 '21 17:08 marcaaron

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 😄

kakajann avatar Aug 23 '21 21:08 kakajann

😄 well, I'd say it's a great proposal @kakajann!

shawnborton avatar Aug 24 '21 07:08 shawnborton

@trjExpensify Eep! 4 days overdue now. Issues have feelings too...

MelvinBot avatar Aug 24 '21 19:08 MelvinBot

@trjExpensify Still overdue 6 days?! Let's take care of this!

MelvinBot avatar Aug 26 '21 19:08 MelvinBot

@trjExpensify 10 days overdue. I'm getting more depressed than Marvin.

MelvinBot avatar Aug 30 '21 19:08 MelvinBot

👋 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.

trjExpensify avatar Aug 31 '21 09:08 trjExpensify

Triggered auto assignment to @thienlnam (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Aug 31 '21 09:08 MelvinBot

@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

thienlnam avatar Aug 31 '21 17:08 thienlnam

My bad, un-assigning for the meantime until you are applied and contracted for the job

thienlnam avatar Sep 02 '21 19:09 thienlnam

I'll apply for a job and will raise a pr tonight

kakajann avatar Sep 02 '21 20:09 kakajann