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-14] [$2000] Magic code field is flickering & doesn't allow to enter the whole code. #18218

Closed
1 of 6 tasks
kavimuru opened this issue Apr 30, 2023 · 105 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 Apr 30, 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. Sign in with email/number.
  2. Try to enter the magic code.

Expected Result:

The user should be able to enter the full magic code without any flickering

Actual Result:

Magic code field is flickering & doesn't allow to enter the whole code.

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: 1.3.8.8
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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

Screen.Recording.2023-04-30.at.8.23.07.PM.mov

Expensify/Expensify Issue URL:
Issue reported by: @priyeshshah11
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682850385671169

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010ae7819b08b2814c
  • Upwork Job ID: 1656789033045995520
  • Last Price Increase: 2023-05-26
@kavimuru kavimuru added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 30, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Apr 30, 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

@arielgreen
Copy link
Contributor

Cannot reproduce:
2023-05-02_21-18-12 (1)

@aimane-chnaif
Copy link
Contributor

@arielgreen let's keep this one open. This doesn't happen on real device but still annoying for developers as they have trouble signin on iOS simulator without any workaround.
We continue investigating this issue, though not a priority.
cc: @cristipaval @BeeMargarida

@BeeMargarida
Copy link
Contributor

BeeMargarida commented May 3, 2023

Just to leave a note that this only happen in iOS 16.4 simulators and the root cause is happening in all TextInputs (not only MagicCodeInput). Investigation into this was mentioned here

@tgolen
Copy link
Contributor

tgolen commented May 11, 2023

I am reopening this because this is blocking me from developing and properly testing a new feature. We need to get this resolved ASAP.

@tgolen tgolen removed the Needs Reproduction Reproducible steps needed label May 11, 2023
@arielgreen arielgreen added the External Added to denote the issue can be worked on by a contributor label May 11, 2023
@melvin-bot melvin-bot bot changed the title Magic code field is flickering & doesn't allow to enter the whole code. [$1000] Magic code field is flickering & doesn't allow to enter the whole code. May 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

Job added to Upwork: https://www.upwork.com/jobs/~010ae7819b08b2814c

@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

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

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

melvin-bot bot commented May 11, 2023

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

@arielgreen
Copy link
Contributor

Thanks for clarifying, getting a job set up.

@priyeshshah11
Copy link
Contributor

Proposal

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

Magic code input doesn't work well on iOS simulators where it doesn't allow us to enter any input.

What is the root cause of that problem?

The root cause of this issue is that the RN TextInput incorrectly fires a Backspace event after every key stroke which clears the input as soon as we add it.

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

We should debounce the onKeyPress function to ignore the backspace events if it is fired straight after (say <200ms) the actual number input event.

magic-code.mov

@s77rt @tgolen

@getusha
Copy link
Contributor

getusha commented May 12, 2023

I am unable to reproduce this one. anyone able to? on IOS native right?

@priyeshshah11
Copy link
Contributor

I am unable to reproduce this one. anyone able to? on IOS native right?

I am able to but I think it only happens in the iOS simulator.

@getusha
Copy link
Contributor

getusha commented May 12, 2023

I am able to but I think it only happens in the iOS simulator.

I am testing on iOS simulator

Screen.Recording.2023-05-12.at.8.17.46.AM.mov

@priyeshshah11
Copy link
Contributor

that just means that it is inconsistent, I don't know why.

@sakluger sakluger removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 26, 2023
@sakluger
Copy link
Contributor

I've sent out contracts to @priyeshshah11 and @s77rt so that we're ready to go once the fix is merged/deployed.

@sakluger
Copy link
Contributor

PR is still in review.

@sakluger
Copy link
Contributor

sakluger commented Jul 3, 2023

Just checking in, is the PR ready to merge? Or are you still waiting for @mountiny's re-review?

@s77rt
Copy link
Contributor

s77rt commented Jul 3, 2023

@sakluger Waiting for @mountiny I guess he is still OOO

@aimane-chnaif
Copy link
Contributor

#21316 is merged but still happening to me 😞
Tested on iPhone 14 Pro - iOS 16.4 Simulator

@s77rt
Copy link
Contributor

s77rt commented Jul 5, 2023

@aimane-chnaif Try clear the pods and run pod install

@BeeMargarida
Copy link
Contributor

BeeMargarida commented Jul 5, 2023

Seems to be working fine now in main after the merge. I built the pods again npx pod-install ios, uninstalled the app from the simulator and then ran the app with npm run ios

Video of iOS 16.4 simulator
Screen.Recording.2023-07-05.at.10.29.40.mov

@mountiny
Copy link
Contributor

mountiny commented Jul 5, 2023

Merged, sorry I was ooo, merged.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 7, 2023
@melvin-bot melvin-bot bot changed the title [$2000] Magic code field is flickering & doesn't allow to enter the whole code. [HOLD for payment 2023-07-14] [$2000] Magic code field is flickering & doesn't allow to enter the whole code. Jul 7, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.37-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-14. 🎊

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 - @priyeshshah11 (sent offer)
  • Contributor that fixed the issue - expert contributor @BeeMargarida
  • Contributor+ that helped on the issue and/or PR - @s77rt

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 7, 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:

  • [@s77rt] The PR that introduced the bug has been identified. Link to the PR:
  • [@s77rt] 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:
  • [@s77rt] 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:
  • [@s77rt] Determine if we should create a regression test for this bug.
  • [@s77rt] 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.
  • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@s77rt
Copy link
Contributor

s77rt commented Jul 7, 2023

@Expensify Expensify deleted a comment from melvin-bot bot Jul 12, 2023
@sakluger
Copy link
Contributor

Regarding payment, I sent an offer through Upwork to @priyeshshah11.

@s77rt are you still getting paid through Upwork or do you request through NewDot now?

@s77rt
Copy link
Contributor

s77rt commented Jul 12, 2023

@sakluger Upwork.

@sakluger
Copy link
Contributor

Sounds good @s77rt, just sent an offer through Upwork.

@s77rt
Copy link
Contributor

s77rt commented Jul 13, 2023

@sakluger Accepted! Thanks!

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 13, 2023
@mountiny
Copy link
Contributor

Will be completed soon

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@sakluger
Copy link
Contributor

Paid out all the contracts, thanks again everyone!

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