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

[$250] Chat - Space Not Added After Emoji Selection in Composer #39822

Closed
2 of 6 tasks
izarutskaya opened this issue Apr 8, 2024 · 16 comments
Closed
2 of 6 tasks

[$250] Chat - Space Not Added After Emoji Selection in Composer #39822

izarutskaya opened this issue Apr 8, 2024 · 16 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering 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

Comments

@izarutskaya
Copy link

izarutskaya commented Apr 8, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v1.4.61-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): abebemiherat@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

1, Navigate to any chat.
2, Add emojis in the composer.

Expected Result:

Upon selecting emojis, notice that a space is not added after the emojis.

Actual Result:

After selecting emojis in the composer, a space should be added after each emoji.

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

Bug6442195_1712579372354.emoji.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018b8b77d54dddade1
  • Upwork Job ID: 1777400833001480193
  • Last Price Increase: 2024-04-08
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

Triggered auto assignment to @grgia (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Apr 8, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 8, 2024
@melvin-bot melvin-bot bot removed the Hourly KSv2 label Apr 8, 2024
Copy link
Contributor

github-actions bot commented Apr 8, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@izarutskaya
Copy link
Author

@garrettmknight I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

This might be related to Live Markdown Preview.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb.

@Julesssss
Copy link
Contributor

This might be related to Live Markdown Preview.

Yeah, or maybe also the emoji picker/keyboard issue. if so I'd much rather raise those as non-blocking issues and not revert these major PRs

@garrettmknight
Copy link
Contributor

I don't think this is a deploy blocker.

@garrettmknight garrettmknight added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment labels Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~018b8b77d54dddade1

@melvin-bot melvin-bot bot changed the title Chat - Space Not Added After Emoji Selection in Composer [$250] Chat - Space Not Added After Emoji Selection in Composer Apr 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 8, 2024
@garrettmknight garrettmknight added Daily KSv2 and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@ikevin127
Copy link
Contributor

Note

I remember the exact same issue was opened 7 months ago: Chat - Space is not added after an emoji is selected

But in this case:

This might be related to Live Markdown Preview.

I think @tomekzaw might be right since there were no other major changes to the Composer recently, therefore that would be the first place I'd look at for the root cause.

Anyway the issue mentioned from 7 months ago can definitely help give more context and check some other possible root causes off the list.

@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

It seems like this bug has been fixed in the meantime as I cannot reproduce it on current prod (Firefox and Chrome):

Screen.Recording.2024-04-08.at.23.13.57.mov

There was an issue with text cursor placed incorrectly (one character earlier than it should be) when typing – perhaps this bug was another symptom?

Please confirm that this bug is no longer present and close this issue if confirmed, thanks!

@ikevin127
Copy link
Contributor

From the OP video it looks like it wasn't just the cursor position, since there's clearly no spaces between the 3 emojis:
Screenshot 2024-04-09 at 00 29 51

Just pulled latest main and I confirm that the issue is still present (consistently):

MacOS: Chrome / Safari
web.mov
iOS: mWeb Safari
ios-mweb.MP4

I looked at what's actually happening frame-by-frame and I noticed that on the first selected emoji there's actually an empty space and also a newline but shortly after selection we can notice how the Live Markdown Preview (most likely, not sure though) is formatting and removing the space and newline, leaving us with the emoji without a space (cursor right after it):

MacOS: Chrome / Safari (frame-by-frame)
frame-by-frame.mov

And weirdly, it looks like the space of the first emoji is maintained on iOS: mWeb Safari (see video above) as long as the user adds emojis without focusing the Composer, but not for the subsequent emojis. The space is not maintained for the first emoji if the Composer is focused (cursor visible) when adding the subsequent emojis.

cc @tomekzaw Any thoughts ?

@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

Indeed, the bug is reproducible on current main (8af9eae) but not on production 🤔

@garrettmknight garrettmknight added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 9, 2024
@Skalakid
Copy link
Contributor

I think this issue has been already fixed in #39934. I can't reproduce it on the lates main now.

emojis.with.space.after.mov
Screen.Recording.2024-04-10.at.09.31.42.mov

@garrettmknight
Copy link
Contributor

Fixed on staging and prod, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering 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
Projects
None yet
Development

No branches or pull requests

7 participants