Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2023-07-17] [$1000] OS Safari - All 6 digits visible in first digit slot when using OTP autofill #20642

Closed
1 of 6 tasks
kavimuru opened this issue Jun 13, 2023 · 48 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Jun 13, 2023

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. Go to new.expensify.com in Safari on iOS.
  2. Enter your phone number.
  3. Click on the code that appears in the keyboard autofill.
  4. Notice that in the first digit placeholder, all 6 digits are visible but in other slots the correct digits are visible.

Expected Result:

Each digit should be visible in its own slot.

Actual Result:

All digits are visible in the first slot, in the other slots (2nd to 6th), correct digits are visible.

Workaround:

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

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.24-5
Reproducible in staging?: needs reproduction ( I don't have iphone with sim)
Reproducible in production?: needs reproduction ( I don't have iphone with sim)
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

magic_code_bug.MP4

Expensify/Expensify Issue URL:
Issue reported by: @Nikhil-Vats)
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686154610357189

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013ac63cca1c7fc022
  • Upwork Job ID: 1669104099919405056
  • Last Price Increase: 2023-06-21
@kavimuru kavimuru added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jun 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

Triggered auto assignment to @stephanieelliott (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@KALLL
Copy link

KALLL commented Jun 13, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

On OTP autofill all 6 digits are visible on the first field

What is the root cause of that problem?

The maxLength for each individual OTP field has been set to be Length of the OTP = 6

<TextInput
ref={(ref) => (inputRefs.current[index] = ref)}
autoFocus={index === 0 && props.autoFocus}
inputMode="numeric"
textContentType="oneTimeCode"
name={props.name}
maxLength={props.maxLength}

maxLength: CONST.MAGIC_CODE_LENGTH,

What changes do you think we should make in order to solve the problem?

We don't have to change the defaultProps maxLength value as it is being used for other purposes like decomposeString()
but we can change the maxLength of the TextInput :
Inside the TextInput doing maxLength={1} like

<TextInput
                                ref={(ref) => (inputRefs.current[index] = ref)}
                                autoFocus={index === 0 && props.autoFocus}
                                inputMode="numeric"
                                textContentType="oneTimeCode"
                                name={props.name}
                                maxLength={1}

will solve the problem.

What alternative solutions did you explore? (Optional)

Another possible solution is to use the onChangeText prop instead of the value prop to handle the autofill logic

@stephanieelliott
Copy link
Contributor

I was able to repro this

@stephanieelliott stephanieelliott added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Jun 14, 2023
@melvin-bot melvin-bot bot changed the title OS Safari - All 6 digits visible in first digit slot when using OTP autofill [$1000] OS Safari - All 6 digits visible in first digit slot when using OTP autofill Jun 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 14, 2023

Job added to Upwork: https://www.upwork.com/jobs/~013ac63cca1c7fc022

@melvin-bot
Copy link

melvin-bot bot commented Jun 14, 2023

Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jun 14, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 14, 2023

Triggered auto assignment to @neil-marcellini (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@stephanieelliott stephanieelliott added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jun 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 15, 2023

Triggered auto assignment to @conorpendergrast (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot

This comment was marked as duplicate.

@stephanieelliott
Copy link
Contributor

Reapplying the Bug label to get another BZ member on this while I am OOO til July 3. Thanks @conorpendergrast, I'll grab this back from you when I return!

@thesahindia
Copy link
Member

The above proposal looks good, I will test it today.

@KALLL
Copy link

KALLL commented Jun 17, 2023

@thesahindia Hello, I was wondering if you had a chance to test my proposal for the OTP autofill issue. I would appreciate any feedback or questions you might have.

@melvin-bot melvin-bot bot added the Overdue label Jun 19, 2023
@conorpendergrast
Copy link
Contributor

Waiting for @thesahindia to review now!

@melvin-bot melvin-bot bot removed the Overdue label Jun 19, 2023
@thesahindia
Copy link
Member

thesahindia commented Jun 19, 2023

Sorry for the delay. I just tested this on mWeb and the solution didn't work for me.

trim.945A2E05-73A7-4D92-8B8C-68EBC4880E7F.MOV

@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Jul 10, 2023
@melvin-bot melvin-bot bot changed the title [$1000] OS Safari - All 6 digits visible in first digit slot when using OTP autofill [HOLD for payment 2023-07-17] [$1000] OS Safari - All 6 digits visible in first digit slot when using OTP autofill Jul 10, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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

If no regressions arise, payment will be issued on 2023-07-17. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
  • [@thesahindia] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@thesahindia] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@thesahindia] Determine if we should create a regression test for this bug.
  • [@thesahindia] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 17, 2023
@neil-marcellini
Copy link
Contributor

Bump @thesahindia

@melvin-bot melvin-bot bot removed the Overdue label Jul 18, 2023
@stephanieelliott
Copy link
Contributor

Sent offer to @Nikhil-Vats and @thesahindia on Upwork
@ginsuma I can't find you on Upwork, can you please propose for the job so that I can hire you? https://www.upwork.com/jobs/~01820b37e46a5ddb5e

@Nikhil-Vats
Copy link
Contributor

@stephanieelliott I didn't get any offer so I have applied for the job with the reporting amount.

@thesahindia
Copy link
Member

It was a regression from #18771. I have left a comment there. But I think we should skip the checklist because it was an extreme edge case that we couldn't have prevented.

Steps for the test case -

  1. Open new dot in Safari on iOS.
  2. Go to login page
  3. Enter your phone number.
  4. Click on the code that appears in the keyboard autofill.
  5. Verify you don't see all six digits in the first digit slot

@thesahindia
Copy link
Member

@stephanieelliott, I will request money on new dot. You can close the issue after paying others.

@ginsuma
Copy link
Contributor

ginsuma commented Jul 19, 2023

@stephanieelliott I submitted on Upwork.

@melvin-bot melvin-bot bot added the Overdue label Jul 21, 2023
@neil-marcellini
Copy link
Contributor

Not over due, bump @stephanieelliott

@melvin-bot melvin-bot bot removed the Overdue label Jul 21, 2023
@stephanieelliott
Copy link
Contributor

Extended offers to @Nikhil-Vats and @ginsuma, will pay this ASAP once you accept!

@Nikhil-Vats
Copy link
Contributor

Done @stephanieelliott

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@neil-marcellini
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@stephanieelliott
Copy link
Contributor

@Nikhil-Vats and @ginsuma have been paid
Regression test: https://github.com/Expensify/Expensify/issues/302570
@thesahindia will be requesting payment via newdot

@JmillsExpensify
Copy link

@stephanieelliott Can you provide amounts on that payment summary? I need this to pay @thesahindia

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Oct 5, 2023

Sure, here ya go @JmillsExpensify!

Summarizing payment on this issue:

Upwork job is here, no bonus is included on final payout

@JmillsExpensify
Copy link

$1,000 payment approved for @thesahindia based on BZ summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants