-
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
Feature Request: Insert a space after an emoji is selected #11100
Comments
Triggered auto assignment to @sonialiap ( |
Proposal: App/src/pages/home/report/ReportActionCompose.js Lines 312 to 325 in 3335b18
addEmojiToTextBox(emoji) {
+ const emojiWithSpace = emoji + ' '
const newComment = this.comment.slice(0, this.state.selection.start)
+ + emojiWithSpace + this.comment.slice(this.state.selection.end, this.comment.length);
const newComment = this.comment.slice(0, this.state.selection.start)
- + emoji + this.comment.slice(this.state.selection.end, this.comment.length);
this.textInput.setNativeProps({
text: newComment,
});
this.setState(prevState => ({
selection: {
- start: prevState.selection.start + emoji.length,
- end: prevState.selection.start + emoji.length,
+ start: prevState.selection.start + emojiWithSpace.length,
+ end: prevState.selection.start + emojiWithSpace.length,
},
}));
this.updateComment(newComment);
} |
The suggestion sounds good to me 👍 |
Triggered auto assignment to @grgia ( |
@sobitneupane thanks for the timely proposal! I think @grgia already had some changes locally so she went ahead and made a PR. |
Oooooh, this might be one of those rare (first time I've seen it) situations where a proposal was submitted before the
Per our CONTRIBUTING.md |
Ah yes, I'm sorry. There was no label so I assumed I could fix it, now I know for next time. |
@grgia For the fix, did you use/reference code that @sobitneupane proposed? |
Chatted with @grgia, she's new to the team and was unaware of our process. Technically, per our CONTRIBUTING.md, since the proposal was submitted before the @sobitneupane , please apply here https://www.upwork.com/jobs/~0106db93cef35496f5 and confirm in this issue once you have. |
Applied. |
@sobitneupane , hired, please let me know when you accept and I'll pay |
@mallenexpensify I am getting error while trying to accept your offer. |
hmmmm @sobitneupane , maybe try again? This is what I'm seeing |
No luck. Unable to accept offer for this job. I was able to accept offer for other jobs though. |
How about this one @sobitneupane https://www.upwork.com/jobs/~014ab10dacdb6c00ad |
Accepted Offer. Thanks @mallenexpensify. |
You're welcome @sobitneupane . You're paid and both Upwork jobs are closed. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Problem:
When sending messages and including an emoji, after you've selected the emoji and continue to type your message, a space isn't added so it looks like :woo-homer:this.
Solution:
By default, add a space after :ralph: so that the user can continue to type without having to add another space
Context/Examples/Screenshots/Notes: The space after :milhouse: is default in Slack so many people are used to it being added. We're also working on allowing the ability to type emoji names (GH), ala :granpa: and the space after :granpa: is also default in Slack and what people are used to.
Action Performed:
Expected Result:
User should see space after an emoji is selected
Actual Result:
When sending messages and including an emoji, after you've selected the emoji and continue to type your message, a space isn't added so it looks like :woo-homer:this.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.1-0
Reproducible in staging?:
Reproducible in production?:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @mallenexpensify
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1662746279291419
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: