App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-10-07] Use number pad keyboard when field input will only include numbers in VBA flow

Open kevinksullivan opened this issue 5 years ago • 15 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Problem

The keyboard does not "match" certain fields that should only include numbers within the VBA flow, which requires users to tap through to numbers within their keyboard manually. Here is where this occurs:

Company Information Step

  • Zip Code
  • ~Incorporation Date~

Personal Information Step

  • ~DOB~
  • SSN
  • Zip Code

Action Performed:

  1. Create workspace
  2. Go through VBA flow with test credentials

Solution

Use the number pad whenever a field within the VBA flow will only include digits, like so:

9AEA0125-71FF-4240-A754-212413B02881_1_105_c

Platform:

  • iOS
  • Android

Reproducible in staging?: Yes Reproducible in production?: Yes

Notes/Photos/Videos:

We should use the number pad in scenarios like this one:

image

View all open jobs on GitHub

kevinksullivan avatar Sep 17 '21 15:09 kevinksullivan

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

MelvinBot avatar Sep 17 '21 15:09 MelvinBot

Proposal

Adding keyboardType={CONST.KEYBOARD_TYPE.PHONE_PAD} on the respective ExpensiTextInput(s) should fix this issue.

thesahindia avatar Sep 17 '21 16:09 thesahindia

Upwork job is here: https://www.upwork.com/jobs/~010b5eef0fab29284e

JmillsExpensify avatar Sep 17 '21 19:09 JmillsExpensify

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

MelvinBot avatar Sep 17 '21 19:09 MelvinBot

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

MelvinBot avatar Sep 17 '21 19:09 MelvinBot

@kevinksullivan it looks like we ask for hyphens for Incorporation Date in the field label seen below, I think we should use a different keyboard type for that one.

image

@thesahindia your proposal makes sense for the fields except for Incorporation Date since there is no hyphen for number pad on iOS. Can you propose a different keyboardType for that one to ensure it can be filled out on iOS?

Jag96 avatar Sep 17 '21 22:09 Jag96

@Jag96

Proposal

We need to use keyBoardType

For fields DOB, Incorporation Date -

iOS - numbers-and-punctuation Android - numeric or phone-pad

We can write a new method getDateKeyboardType in libs folder to get approritate keyboardType for platforms.
Implementation like we already do for getEmailKeyboardType Or even simpler one like this -> getOperatingSystem

For other fields

numeric or phone-pad is enough, we can use the existing constants

Santhosh-Sellavel avatar Sep 18 '21 14:09 Santhosh-Sellavel

@thesahindia your proposal makes sense for the fields except for Incorporation Date since there is no hyphen for number pad on iOS. Can you propose a different keyboardType for that one to ensure it can be filled out on iOS

I think we can just leave it as it is for now it is already being handled here

thesahindia avatar Sep 19 '21 11:09 thesahindia

@Jag96 I agree with @thesahindia. We already have a separate issue for that one

JmillsExpensify avatar Sep 21 '21 05:09 JmillsExpensify

Sounds good, @thesahindia your proposal looks good then, feel free to start on a PR once you've been hired in Upwork. @JmillsExpensify let's hire @thesahindia for this one.

Jag96 avatar Sep 21 '21 17:09 Jag96

Upwork job is here: https://www.upwork.com/jobs/~010b5eef0fab29284e

Hey @JmillsExpensify, I think this job is for an another issue:https://github.com/Expensify/App/issues/5303

thesahindia avatar Sep 21 '21 17:09 thesahindia

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.3-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pulls/5513\n

If no regressions arise, payment will be issued on 2021-10-07. :confetti_ball:

botify avatar Sep 30 '21 15:09 botify

Hi team, I couldn't find the job for this issue on Upwork.

cc: @JmillsExpensify @Jag96

thesahindia avatar Oct 01 '21 16:10 thesahindia

@thesahindia I couldn't find it either, I just created a new posting and invited you, thanks for the heads up! https://www.upwork.com/jobs/~01a1e4563f1db799d8

Jag96 avatar Oct 04 '21 17:10 Jag96

Paid!

Jag96 avatar Oct 18 '21 22:10 Jag96