App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-10] Set Password button appears enabled when password form is in an invalid state

Open anthony-hull opened this issue 5 years ago β€’ 22 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:

log out set LS key "credentials": {"login":"[email protected]"} navigate to: https://new.expensify.com/setpassword/123/123

Expected Result:

set password button should be disabled at first it should stay disabled until the password form is valid

Actual Result:

The Set Password button is green regardless of form state

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround? yes

Platform:

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: I can see this on prod at the moment Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: image

Expensify/Expensify Issue URL:

View all open jobs on GitHub

anthony-hull avatar Aug 18 '21 17:08 anthony-hull

Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 18 '21 17:08 MelvinBot

Proposal: https://github.com/Expensify/App/blob/4492fe18cf1f44d689b0ee0eb1aeb305e02ec78c/src/pages/SetPasswordPage.js#L95-L101 add: isDisabled={!this.state.isFormValid}

anthony-hull avatar Aug 18 '21 17:08 anthony-hull

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

MelvinBot avatar Aug 23 '21 19:08 MelvinBot

@shawnborton Is this an issue? or is it by design?

anthony-hull avatar Aug 25 '21 15:08 anthony-hull

I think this is an issue, yes. The button shouldn't work until the fields are filled out correctly.

shawnborton avatar Aug 25 '21 16:08 shawnborton

@sakluger 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

MelvinBot avatar Aug 25 '21 19:08 MelvinBot

Thanks for the report and sorry for the delay! I've reproduced the issue, and it's definitely not working as designed, so I'm passing this along to engineering to review your proposal.

sakluger avatar Aug 25 '21 19:08 sakluger

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

MelvinBot avatar Aug 25 '21 19:08 MelvinBot

Looks good for UpWork - adding external label

NikkiWines avatar Aug 26 '21 17:08 NikkiWines

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

MelvinBot avatar Aug 26 '21 17:08 MelvinBot

Hmm you unassigned me @NikkiWines was by accident? Haha.

SofiedeVreese avatar Aug 26 '21 22:08 SofiedeVreese

Oops yes, sorry. Meant to just unassign myself.

NikkiWines avatar Aug 26 '21 22:08 NikkiWines

Haha all good, on it!

SofiedeVreese avatar Aug 26 '21 22:08 SofiedeVreese

Posted on Upwork: https://www.upwork.com/jobs/~013f3adad55b5d2fd9

SofiedeVreese avatar Aug 27 '21 00:08 SofiedeVreese

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

MelvinBot avatar Aug 27 '21 00:08 MelvinBot

Proposed solution:

  • add isDisabled Prop to <Button /> component
  • pass !this.state.isFormValid to the isDisabled Prop

https://github.com/Expensify/App/blob/4492fe18cf1f44d689b0ee0eb1aeb305e02ec78c/src/pages/SetPasswordPage.js#L95-L101

AbednegoTM avatar Aug 28 '21 11:08 AbednegoTM

Looks pretty straightforward. All yours @anthony-hull.

marcaaron avatar Aug 30 '21 18:08 marcaaron

@anthony-hull I've just hired you in Upwork!

SofiedeVreese avatar Aug 30 '21 22:08 SofiedeVreese

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

botify avatar Sep 01 '21 17:09 botify

πŸš€ Deployed to staging by @marcaaron in version: 1.0.91-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 02 '21 01:09 botify