-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Web - Chat - Some emojis change when there is markdown in the message #32833
Comments
Job added to Upwork: https://www.upwork.com/jobs/~015728063279fccae6 |
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issueWeb - Chat - Some emojis change when there is markdown in the message What is the root cause of that problem?This happens only on Windows due to the difference in the the rendering engine used on bold and normal text. Bold text uses Why such difference in renderer? Becuase of this line in const differByLineBreaksOnly = Str.replaceAll(html, '<br />', '\n') === text; This is true only for plain text. This makes the difference in engine Why only Windows? In App/src/styles/fontFamily/multiFontFamily.ts Lines 21 to 25 in cf918b6
We changed But we haven't taken this consideration for singleFontFamily yet. Due to this, we aren't passing That's why the bold text emojis default to What changes do you think we should make in order to solve the problem?Add Result What alternative solutions did you explore? (Optional) |
@kbecciv I'm on Staging v1.4.11-6 and can't repro this.
Can you define Also, you're missing a step - there should be something like: 4. Click |
I can't repro this issue. |
@jliexpensify This can be repro on Windows platform only |
ProposalPlease re-state the problem that we are trying to solve in this issue.Windows emojis change when there is markdown in the message. What is the root cause of that problem?When there's any HTML (fragments/markdown..) on the comment, the The App/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.js Lines 76 to 81 in 38b3990
Until here we have 2 issues:
What changes do you think we should make in order to solve the problem?We can use CSS 1- Set the defualt font at body style Lines 37 to 41 in 8bef4bb
to: body {
overflow: hidden;
overscroll-behavior: none;
touch-action: none;
font-family: 'ExpensifyNeue-Regular, Windows Segoe UI Emoji, Segoe UI Emoji, Noto Color Emoji';
} 2- Add // new emojiRenderfonts adding inherit
const emojiRenderfonts = ['inherit', 'Windows Segoe UI Emoji', ..._.values(singleFontFamily)];
....
systemFonts={_.values(emojiRenderfonts)}
} 3- Set new base style here baseStyle={styles.webViewStyles.htmlRenderFontStyle} where htmlRenderFontStyle: {
fontFamily: 'inherit',
color: theme.text,
fontSize: variables.fontSizeNormal,
flex: 1,
lineHeight: variables.fontSizeNormalHeight,
...writingDirection.ltr,
}, 4- remove This solution with inherit will make the element style grap the font-family from the body tag. Where we can put all fonts we need without issues. I tested only on Windows, we can add OS validation for the new style props oassed to |
@jliexpensify here's the full list of icons: https://emojipedia.org/microsoft |
Thanks @dragnoir - @abdulrahuman5196 we have some proposals for review now |
Hi, Will review today |
@abdulrahuman5196 Please hold this on #31389 |
Thanks @shubham1206agra - have updated the title. Let us know when the other GH is resolved, cheers! |
@jliexpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Off hold, the below hit production a bit ago. Found this cuz I have this other emoji+markdown issue but I don't think it's directly related |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@jliexpensify, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Not overdue, waiting for @kbecciv to re-test/Applause to re-test weekly. |
Not overdue, waiting for a retest from Applause. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
1 similar comment
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Waiting for a retest |
Issue not reproducible during KI retests. (First week) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Issue not reproducible during KI retests. (Second week) |
Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.11-1
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Emojis should match the emojis selected when drafting the message.
Actual Result:
Some emojis change when there is a markdown in the message.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6309294_1702313214146.2023-12-11_17-39-41.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: