App icon indicating copy to clipboard operation
App copied to clipboard

On Login screen use email keyboard type and disable auto complete

Open dharammachra opened this issue 5 years ago • 26 comments

If you haven’t already, check out our contributing guidelines for onboarding!


Platform - iOS version: v1.0.1-452

Action Performed (reproducible steps):

On Login screen when user enter the user name, email keyboard is not showing and auto complete is enable.

Auto correction

Expected Result: On Login screen use email keyboard type and disable auto complete

Actual Result: Email keyboard is not showing and auto complete is enable

Function found here.

Logs - JS/Android/iOS (if applicable): n/a

Logs - JS/Android/iOS (if applicable):

dharammachra avatar Feb 19 '21 20:02 dharammachra

cc @Expensify/contributor-management - Thoughts on this issue?

AndrewGable avatar Feb 19 '21 21:02 AndrewGable

I think that makes sense. The email keyboard time seems to basically be the default keyboard with an @ symbol. This input can take phone numbers or email addresses, but I can't think of a better keyboard type to use.

cc @sylveawong since you're working on the login stuff.

puneetlath avatar Feb 19 '21 21:02 puneetlath

@AndrewGable @puneetlath - I am attaching the Linkedin keyboard( email-address type) for your reference. Linkedin also have same input user name and mobile number, so we can use same keyboard type here.

I made the changes in code, please find the attached screenshot and let me know if it seems fine for you.

IMG-8402

Email-address

dharammachra avatar Feb 21 '21 11:02 dharammachra

Ok, makes sense to me.

puneetlath avatar Feb 22 '21 20:02 puneetlath

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

MelvinBot avatar Mar 31 '21 20:03 MelvinBot

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

MelvinBot avatar Apr 01 '21 10:04 MelvinBot

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

MelvinBot avatar May 06 '21 23:05 MelvinBot

As far as I can tell this one looked like it was ready to work on but no one is assigned :)

marcaaron avatar May 06 '21 23:05 marcaaron

Just checking if an iPhone user can reproduce this: https://expensify.slack.com/archives/C01SKUP7QR0/p1620890935125100

kadiealexander avatar May 13 '21 07:05 kadiealexander

Just helping out since this is a Daily - based on the Slack convo, it sounds like this would be a new feature to the iOS keyboard so posting to Upwork!

Internal Upwork job posting - https://www.upwork.com/ab/applicants/1393116767644647424/job-details External Upwork job posting - https://www.upwork.com/jobs/~01576dddefce7e76db

Waiting for proposals!

Christinadobrzyn avatar May 14 '21 08:05 Christinadobrzyn

We can use the default react native text input props autoCompleteType={"off"} and keyboardType={"email-address"}.

This should definitely resolve the issue.

dipan97 avatar May 14 '21 10:05 dipan97

@AndrewGable @kadiealexander @Christinadobrzyn - I had provided my solution above in the defect with screen shot. I am using react native text input props autoCompletet = false in LoginFormNarrow.js and LoginFormWide.js.

This should definitely resolve the issue.

So could you please assign this task to me in Upwork, I already submit my proposal for same in Upwork job .

dharammachra avatar May 14 '21 10:05 dharammachra

Proposal 📄

On Login, screen use email keyboard type and disable auto complete

Approach 👨🏼‍💻

File of concern : src/pages/signin/LoginForm.js

  1. In order to disable the auto complete we need to modify the current auto complete prop
- autoCompleteType="femail"
+ autoCompleteType="off"
  1. For email keyboard, we need to add the following prop
+ keyboardType="email-address"

Testing 🧪

Adding snapshot-based test would make sure that we didn’t override this in future

Demo

Expected Delivery Time

Approx 1-2 Days.

Previous Experience

  • https://github.com/Expensify/Expensify.cash/issues/2811

pranshuchittora avatar May 14 '21 13:05 pranshuchittora

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

MelvinBot avatar May 18 '21 04:05 MelvinBot

@pranshuchittora @dipan97 have the same solution as @dharammachra so I will give the issue creator some time to respond here first.

@dharammachra are you still interested in working on this?

marcaaron avatar May 18 '21 23:05 marcaaron

@marcaaron @kadiealexander - Yes Marc I am interesting in working on this.

dharammachra avatar May 19 '21 08:05 dharammachra

Awesome! Job offer sent, feel free to get going on a PR @dharammachra

kadiealexander avatar May 19 '21 20:05 kadiealexander

Hey @dharammachra! how are you getting on with the PR? Is there anything you need help with?

kadiealexander avatar May 25 '21 01:05 kadiealexander

@kadiealexander - I was facing issue with gpg singed commit, resolved now, will send the merge request. Thanks

dharammachra avatar May 25 '21 08:05 dharammachra

@kadiealexander @marcaaron - Hi Marc, I have created a new PR #3128, so could you please review. Also can I close previous PR #3114 that have issue with deleted account.

dharammachra avatar May 25 '21 19:05 dharammachra