[HOLD for payment 2021-09-10] Set Password button appears enabled when password form is in an invalid state
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:

Expensify/Expensify Issue URL:
Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Proposal:
https://github.com/Expensify/App/blob/4492fe18cf1f44d689b0ee0eb1aeb305e02ec78c/src/pages/SetPasswordPage.js#L95-L101
add:
isDisabled={!this.state.isFormValid}
@sakluger Eep! 4 days overdue now. Issues have feelings too...
@shawnborton Is this an issue? or is it by design?
I think this is an issue, yes. The button shouldn't work until the fields are filled out correctly.
@sakluger 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
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.
Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Looks good for UpWork - adding external label
Triggered auto assignment to @SofiedeVreese (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Hmm you unassigned me @NikkiWines was by accident? Haha.
Oops yes, sorry. Meant to just unassign myself.
Haha all good, on it!
Posted on Upwork: https://www.upwork.com/jobs/~013f3adad55b5d2fd9
Triggered auto assignment to @marcaaron (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Proposed solution:
- add
isDisabledProp to<Button />component - pass
!this.state.isFormValidto theisDisabledProp
https://github.com/Expensify/App/blob/4492fe18cf1f44d689b0ee0eb1aeb305e02ec78c/src/pages/SetPasswordPage.js#L95-L101
Looks pretty straightforward. All yours @anthony-hull.
@anthony-hull I've just hired you in Upwork!
: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.
π Deployed to staging by @marcaaron in version: 1.0.91-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |