App icon indicating copy to clipboard operation
App copied to clipboard

Pressing 'Enter' key in Password field submits form when submit button is disabled

Open aldo-expensify opened this issue 5 years ago β€’ 20 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. Navigate to /bank-account/company. (Web)
  2. Click the Password field at the end
  3. Press Enter key

Expected Result:

Nothing should have happened since the 'Save & Continue' button is disabled

Actual Result:

Submit action was triggered even if the 'Save & Continue' button was disabled. If the checkbox at the end is the only thing left to be filled, there isn't any red mark indicating that this is what is missing.

https://user-images.githubusercontent.com/87341702/129963638-5cbcbc94-e725-47c2-a15b-cab3d9aefd6f.mov

Workaround:

Doesn't block the flow, users can use the app normally

Platform:

Where is this issue occurring?

  • Web
  • Desktop App
  • Mobile Web

Not sure about these:

  • iOS
  • Android

View all open jobs on GitHub

aldo-expensify avatar Aug 18 '21 19:08 aldo-expensify

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

MelvinBot avatar Aug 18 '21 19:08 MelvinBot

Oh yeah, this is weird. I'm also a tad confused because in your video you haven't filled in the other fields and we don't provide feedback that those need to be filled out too. Can they actually be left blank, @MitchExpensify @kevinksullivan what's the intended outcome here?

trjExpensify avatar Aug 19 '21 10:08 trjExpensify

Oh yeah, this is weird. I'm also a tad confused because in your video you haven't filled in the other fields and we don't provide feedback that those need to be filled out too. Can they actually be left blank, @MitchExpensify @kevinksullivan what's the intended outcome here?

The current implementation puts an error message on a single field (first or last it finds?, not sure), even if all of them have errors. If I fixed the error with the password, another field would get the error message. Maybe we should try to show all error messages at once?

Related GH issues:

https://github.com/Expensify/Expensify/issues/171620 https://github.com/Expensify/App/issues/4730

aldo-expensify avatar Aug 19 '21 23:08 aldo-expensify

You shouldn't be able to continue with any empty fields.

I think it makes sense to highlight all fields that are in error.

MitchExpensify avatar Aug 20 '21 02:08 MitchExpensify

Hm yeah every field is required, and we should be highlighting every field that has an error when someone tries to move forward. @aldo-expensify does your PR also fix this issue and show the error message for ALL field errors, or should we create a separate one?

kevinksullivan avatar Aug 23 '21 17:08 kevinksullivan

That PR doesn't address the part of showing all field errors. I suggest creating a new issue and then I can work on a PR against that

aldo-expensify avatar Aug 23 '21 17:08 aldo-expensify

Separate issue for not outlining all errors ^

kevinksullivan avatar Aug 23 '21 18:08 kevinksullivan

Separate issue for not outlining all errors ^

thanks @kevinksullivan

aldo-expensify avatar Aug 23 '21 22:08 aldo-expensify

@trjExpensify Huh... This is 4 days overdue. Who can take care of this?

MelvinBot avatar Aug 24 '21 19:08 MelvinBot

Ok so we are fixing the red outlines and removing the growls altogether in https://github.com/Expensify/App/issues/4785 , but we still need a PR to make sure you cannot hit enter and continue a flow whenever Save and Continue is disabled throughout each step of the VBA flow, right @aldo-expensify ?

kevinksullivan avatar Aug 26 '21 00:08 kevinksullivan

Ok so we are fixing the red outlines and removing the growls altogether in #4785 , but we still need a PR to make sure you cannot hit enter and continue a flow whenever Save and Continue is disabled throughout each step of the VBA flow, right @aldo-expensify ?

Yes we do, I can work on that tomorrow morning, unless we want to outsource to upwork?

aldo-expensify avatar Aug 26 '21 01:08 aldo-expensify

If you have some scope to pick this up, it'd be great @aldo-expensify !

MitchExpensify avatar Aug 26 '21 15:08 MitchExpensify

Not sure why botify closed this

MitchExpensify avatar Aug 26 '21 18:08 MitchExpensify

πŸš€ Deployed to staging by @luacmartins in version: 1.0.88-3 πŸš€

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

botify avatar Aug 30 '21 17:08 botify

πŸš€ Deployed to production by @roryabraham in version: 1.0.90-2 πŸš€

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

botify avatar Sep 01 '21 01:09 botify

@kevinksullivan, @aldo-expensify Eep! 4 days overdue now. Issues have feelings too...

MelvinBot avatar Sep 06 '21 19:09 MelvinBot

Not overdue

MitchExpensify avatar Sep 06 '21 21:09 MitchExpensify

Should we close this? Botify shows that IOS deploy failed, but since that was a while ago, I guess there were other deploys after that including this? I tested in new.expensify.com and it seems to be fixed there.

aldo-expensify avatar Sep 07 '21 17:09 aldo-expensify

The #deployer slack room is a good place to ask deploy-related questions such as this. In the case of this deploy comment, we were able to finish deploying 1.0.90-2 to production manually. So yeah this was deployed on all platforms 8 days ago.

roryabraham avatar Sep 08 '21 16:09 roryabraham

The #deployer slack room is a good place to ask deploy-related questions such as this. In the case of this deploy comment, we were able to finish deploying 1.0.90-2 to production manually. So yeah this was deployed on all platforms 8 days ago.

Thanks @roryabraham , will ask there next time :)

aldo-expensify avatar Sep 08 '21 19:09 aldo-expensify