-
Notifications
You must be signed in to change notification settings - Fork 3k
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-05-25] [$1000] Emoji gets added in between the text when selecting text and add new emoji by search and enter #18515
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji gets added in between the text when selecting text and add new emoji by search and enter What is the root cause of that problem?App/src/pages/home/report/ReportActionCompose.js Lines 534 to 542 in d120f6a
When hitting enter on the keyboard, the setState function is executed before ComposerUtils.insertText function is called so that the second param of ComposerUtils.insertText function (selection) is incorrect. This problem doesn't happen when we click by mouse The root cause is: React may batch multiple setState() calls into a single update for performance. (ref) What changes do you think we should make in order to solve the problem?We should insert emoji before updating the selection state like this
What alternative solutions did you explore? (Optional)NA |
Cannot reproduce |
@anmurali Please try again with these steps:
Make sure that you click enter in keyboard to select emoji in step 6 |
I did do that, but I selected the emoji with a click rather than by hitting enter |
Job added to Upwork: https://www.upwork.com/jobs/~01bf65aebce0e7ee33 |
Current assignee @anmurali is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @dangrous ( |
Waiting for proposals |
Thanks @dukenv0307, for the proposal! Before the PR #17346 we used the selection state before it's update in this file. So it makes sense that we move it early before the new @dangrous Let's go with @dukenv0307 proposal. 🎀 👀 🎀 C+ reviewed! |
Ah yep, that makes sense to me! Assigning this now! @dukenv0307 out of curiosity, do you know why does it fire immediately on |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.15-12 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-05-25. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
@mollfpr do you have time to take a look at that checklist? Thanks! |
https://expensify.slack.com/archives/C049HHMV9SM/p1684989964993659
I think we should; it's easy to miss this kind of bug while testing/review.
Propose regression step
|
Test looks good to me! |
Bump @anmurali to help with the payment |
I can't find either of you on Upwork since I only have your GH and Slack profile handles. Asked here |
@anmurali here's my profile: https://www.upwork.com/freelancers/~01f5cbe690701118a2 |
Added regression test - https://github.com/Expensify/Expensify/issues/288154 |
Thanks @anmurali, I have accepted the offer. |
Are we still waiting on the accepted offers, or are we good to close? |
Paid. |
@anmurali would you mind checking the above comment? Thanks! |
Added bonus to @dukenv0307 and @mollfpr |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should remove the emojis as it does normally when we select the emoji by clicking on it.
Actual Result:
App adds emoji in the middle of existing emojis
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?
Version Number: 1.3.11.2
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
Notes/Photos/Videos: Any additional supporting documentation
emojis.added.in.middle.of.existing.emojis.on.select.and.add.mp4
Recording.506.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683280230048149
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: