hcengineering / hcengineering/platform

Some of emojis are not displayed properly as icons

Open
#4,942 0 comments 0 reactions 1 assignee Claimed by @aonnikov View on GitHub
Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Some of emojis are not displayed properly when used as a document or project icon.

**Steps to reproduce**

1. Edit a project in Tracker
2. Click Choose Icon
3. Select 1️⃣ icon as the project icon
4. Click Save button

![](https://front.hc.engineering/files?workspace=platform&file=e87cddcd-8edc-4d10-85ba-40f52d336300&width=391)

**Actual behavior**

Project icon changes to ‘1’ displayed as text, not as emoji

![](https://front.hc.engineering/files?workspace=platform&file=96e4f079-2171-4dc1-895e-82991dfa5a2d&width=355)

**Expected behavior**

Project icon is displayed properly as an emoji

**Root cause**

Emojis are stored as numbers and we use `String.fromCodepoint` and `emoji.codePointAt(0)` to convert between string and number representation. But the sample emoji consists of three codepoints hence we don’t display it properly.

View in Huly UBERF-5971

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.