-
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-07-10] [$1000] Web - Chat - Empty space is added after adding an emoji by typing in web platform #21584
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
I was able to reproduce this in the Android mobile app - that's the only platform that has the extra space in front of the emoji. All other platforms have no space after the emoji. I'm not sure if it's possible, but ideally when we fix this, we can check to see if there are similar spacing issues in other places (like maybe we use the same component in different places). |
Job added to Upwork: https://www.upwork.com/jobs/~012ef8342a4645c7a1 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?Currently we do not have the check if the emoji is at last and insert it conditionally which What changes do you think we should make in order to solve the problem?We should make sure to add space after emoji selection/insertion if the emoji is being inserted at the end. App/src/pages/home/report/ReportActionCompose.js Lines 669 to 677 in 09a7432
we will have to check if the emoji is being inserted last and update the comment accordingly as the following code: this.updateComment(ComposerUtils.insertText(this.comment, this.state.selection, isEmojiAtEnd ? `${emoji} ` : emoji)); Also we have to make sure we update the selection correctly with the condition above this.setState((prevState) => ({
selection: {
start: ... + (isEmojiAtEnd ? CONST.SPACE_LENGTH : 0),
end: ... + (isEmojiAtEnd ? CONST.SPACE_LENGTH : 0),
},
})); we also have to remove Line 227 in 09a7432
What alternative solutions did you explore? (Optional)N/A |
here is similar issue: #20705 |
Here is a previous thread that discuss the expected behavior on adding emojis. |
This comment was marked as off-topic.
This comment was marked as off-topic.
📣 @liondancing! 📣
|
This comment was marked as abuse.
This comment was marked as abuse.
Proposal from @getusha looks good to me #21584 (comment) |
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@getusha proposal removes the space when adding an emoji from the suggestion, but this issue mentions the space from typing the complete emoji code (in mobile), i.e. I'm not posting any proposal because based on the thread I posted here, the behavior is already working as expected, except we decide to change it |
@bernhardoj after the change, it will not add space on every method. am i missing something? thanks |
Typing the complete emoji code will be handled by EmojiUtils.replaceEmojis Lines 245 to 249 in e5f00f8
That's why the space is there only on mobile screens. |
@bernhardoj as i understand correctly we should fix both issues to have the same behaviour in choosing emoji and typing the full one. |
I agree with @narefyev91. |
📣 @getusha You have been assigned to this job by @luacmartins! |
I've reported the same issue in past, I think we need to update the reporter in the issue here. |
Hey @getusha @narefyev91 @luacmartins - I just noticed that we discussed this previously in Slack, and the space is added intentionally after an emoji. I just updated the GH issue description - could you please update your proposal and PR to make sure that we add a space in all platforms? Thanks! |
@narefyev91 @luacmartins I have updated my proposal to make it consistent across platforms and the PR is ready |
🎯 ⚡️ Woah @narefyev91 / @getusha, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
Nice work everyone! I sent out offers through upwork to @SofoniasN and @getusha. @narefyev91 works for Callstack so we pay outside of Upwork. |
|
Hey @chiragxarora your bug report mention space after emoji inconsistencies with in a platform but the issue i reported and @getusha fixed is the inconsistencies across platforms. @sakluger couldnt tell if the upwork offer was pulled back due to this issue if it was i hope this clarifies it, Thanks in advance. |
Hey guys, any new updates on the issue @sakluger? Thanks in advance |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.35-5 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-10. 🎊 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:
|
Hey @chiragxarora - This same question/issue has come up 4 or 5 times over the past 8 months, and it was reported by someone different every time. Originally, it was raised here, then here, and I think one or two other times. I'm still going to award the reporting bonus to @SofoniasN because their report got us talking about this behavior again, so I think it's fair to reward them. It's definitely a tricky situation, but I think that's the most fair decision in this case. |
@sakluger Thank you for the thoughtful consideration! |
@SofoniasN sorry, I'm not sure what happened, I didn't take back the offer. I just tried resending, let me know if you didn't receive it. |
@sakluger No worries. I have accepted the offer, I am waiting on your approval! Thanks |
Hey @narefyev91 could you please complete the BZ checklist? Thanks! |
I sent payments to @SofoniasN and @getusha (with efficiency bonus). Just waiting for the BZ checklist before closing out this issue. Given that this issue has come up a few times now, I think it would be helpful to document the correct behavior by adding a regression test. |
|
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:
There should always be a space added after an emoji.
Actual Result:
Inconsistent spacing after a smiley (or any emoji) on different platforms. A space is added in the Android mobile app, but no space is added next to the emoji in web, the desktop app, or in the iOS app.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.30-5
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
2023_06_26_06_42_17.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @SofoniasN
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687428313003479
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: