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 2024-04-15] [$500] One character jumps after cursor when typing fast #39360

Closed
1 of 6 tasks
m-natarajan opened this issue Apr 1, 2024 · 21 comments
Closed
1 of 6 tasks
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

@m-natarajan
Copy link

m-natarajan commented Apr 1, 2024

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


Version Number: 1.4.58-4
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: @mountiny
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1711707948520499

Action Performed:

  1. Open any chat
  2. Type fast in the composer

Expected Result:

All the characters added should be before the cursor

Actual Result:

One character jumps after the cursor.
NOTE: Very hard to reproduce. I had to type 2 lines to reproduce this bug

Workaround:

unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Recording.2929.mp4
Screen.Recording.2024-03-29.at.10.22.06.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0109e66f48fc7c7130
  • Upwork Job ID: 1775928557129052160
  • Last Price Increase: 2024-04-04
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 1, 2024
Copy link

melvin-bot bot commented Apr 1, 2024

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

@ZhenjaHorbach
Copy link
Contributor

Actually, problem related with MarkdownTextInput and with this useEffect

https://github.com/Expensify/react-native-live-markdown/blob/main/src/MarkdownTextInput.web.tsx#L527-L533

When we quickly enter text, desynchronization occurs with the current value from the props and with the current value of the input itself
As a result, we select the previous characters from props

As far as I know, these problems are being fixed by the creators of the component
But I think in order to fix this We can use debounce function to make sure that the values are kept in sync when entering text

@thienlnam
Copy link
Contributor

Added to the tracking issue, going to upgrade this to a high since I can reproduce pretty reliably on Desktop

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Apr 3, 2024

I agree with the cause being what @ZhenjaHorbach found here. In my testing, I put a debugger and I can see that contentSelection has the wrong values (36), while it should really have 37 which is the current text length.

image

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 4, 2024
@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Apr 4, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 4, 2024
Copy link

melvin-bot bot commented Apr 4, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 4, 2024
@Expensify Expensify deleted a comment from melvin-bot bot Apr 4, 2024
@thienlnam thienlnam removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 4, 2024
@thienlnam thienlnam assigned shubham1206agra and unassigned rojiphil Apr 4, 2024
@thienlnam thienlnam changed the title One character jumps "after" cursor when typing fast One character jumps after cursor when typing fast Apr 4, 2024
@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Apr 4, 2024
@melvin-bot melvin-bot bot changed the title One character jumps after cursor when typing fast [$500] One character jumps after cursor when typing fast Apr 4, 2024
Copy link

melvin-bot bot commented Apr 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0109e66f48fc7c7130

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 4, 2024
Copy link

melvin-bot bot commented Apr 4, 2024

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

@thienlnam thienlnam removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 4, 2024
@BartoszGrajdek
Copy link
Contributor

This should be fixed now! 😄

@bfitzexpensify
Copy link
Contributor

Asked for this to be re-tested in #qa - https://expensify.slack.com/archives/C9YU7BX5M/p1712330327767509

@kavimuru
Copy link

kavimuru commented Apr 5, 2024

Issue fixed.

2024-04-05.18.59.14.mov
2024-04-05.19.09.06.mov

@bfitzexpensify
Copy link
Contributor

Great - closing.

@thienlnam
Copy link
Contributor

@bfitzexpensify Could we get a reviewer payment to @shubham1206agra for this issue?

@thienlnam thienlnam reopened this Apr 5, 2024
@bfitzexpensify
Copy link
Contributor

We can - @shubham1206agra, offer sent

@c3024
Copy link
Contributor

c3024 commented Apr 5, 2024

@thienlnam

Follow-up issues are being paid separately so can we make a payment issue and finish it for this review of react native live markdown for web?

@thienlnam
Copy link
Contributor

There's already an existing payment issue for that #37387

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Apr 8, 2024
@melvin-bot melvin-bot bot changed the title [$500] One character jumps after cursor when typing fast [HOLD for payment 2024-04-15] [$500] One character jumps after cursor when typing fast Apr 8, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

Copy link

melvin-bot bot commented Apr 8, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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 2024-04-15. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Apr 8, 2024

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:

  • [@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
  • [@shubham1206agra] 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:
  • [@shubham1206agra] 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:
  • [@shubham1206agra] Determine if we should create a regression test for this bug.
  • [@shubham1206agra] 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.
  • [@bfitzexpensify] 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 and removed Weekly KSv2 labels Apr 14, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

Payment Summary

Upwork Job

BugZero Checklist (@bfitzexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1775928557129052160/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@bfitzexpensify
Copy link
Contributor

@shubham1206agra please accept the Upwork job offer for https://www.upwork.com/jobs/~017cf6471b3178918c - thank you!

@bfitzexpensify
Copy link
Contributor

Payment complete. Closing this one out.

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