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

[$1000] Web/ Chrome- Chat - Messages with flags are displayed with contra code #13070

Closed
kbecciv opened this issue Nov 27, 2022 · 27 comments
Closed
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Nov 27, 2022

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:

Precondition: In mWeb (iOS Safari)

  1. Go to URL https://staging.new.expensify.com/
  2. Log in with any account
  3. Navigate to a conversation
  4. Write a message and add a flag (in this case Ukraine)
    In Web - Chrome browser (FireFox browser is supporting the Flags, not Chrome)
  5. Verify the text is correctly displayed

Expected Result:

Messages with flags are displayed correctly and the user can see text, emoji and flags including.

Actual Result:

Messages with flags are displayed incorrectly. Instead of moisture in a text message letters UA.

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web/Chrome

Version Number: 1.2.32.1

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Screenshot 2022-11-26 204347

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit

@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 27, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 27, 2022

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

@kbecciv
Copy link
Author

kbecciv commented Nov 27, 2022

Just FYI, we checked the Firefox browser and flag emoji is displayed correctly.

image (1)

@s77rt
Copy link
Contributor

s77rt commented Nov 27, 2022

Proposal

diff --git a/src/styles/fontFamily/emoji/index.js b/src/styles/fontFamily/emoji/index.js
index 5a1a79984b..23647ad6db 100644
--- a/src/styles/fontFamily/emoji/index.js
+++ b/src/styles/fontFamily/emoji/index.js
@@ -1,5 +1,5 @@
 // In windows and ubuntu, we need these system fonts for emojis to work properly
 // otherwise few of them will appear as black and white
-const emojiFont = 'GTAmericaExp-Regular, Segoe UI Emoji, Noto Color Emoji';
+const emojiFont = 'GTAmericaExp-Regular, Noto Color Emoji, Segoe UI Emoji';
 
 export default emojiFont;

Details

Noto Color Emoji should be used first and only fallback to Segoe UI Emoji.
Segoe UI Emoji does not support flag emojis.

@stephanieelliott
Copy link
Contributor

Hey @JmillsExpensify, should this go to you as part of WAQ Emojis?

@JmillsExpensify
Copy link

I'm pretty overloaded on bugs at the moment, so would you mind pushing this one forward? I'll still make sure it's on the larger tracking issue.

@JmillsExpensify
Copy link

That said, I'm not totally sure I understand the reproduction steps. What does this mean?

Messages with flags are displayed incorrectly. Instead of moisture in a text message letters UA.

@stephanieelliott
Copy link
Contributor

Oh no problem, yep I got this one! Just wanted to make sure I was following process 😊

@stephanieelliott
Copy link
Contributor

Yeah also @kbecciv I am not able to reproduce this using the steps you provided -- I tried Chrome and Safari. Can you re-test and confirm this is still occurring for you, and if so update the repro steps?

image

image

@stitesExpensify stitesExpensify self-assigned this Nov 30, 2022
@stitesExpensify
Copy link
Contributor

I believe that this is only reproducible on Windows @stephanieelliott. MacOS does a good job of supporting flags natively

@s77rt
Copy link
Contributor

s77rt commented Nov 30, 2022

The problem is on the font. I guess mac doesn't have Segoe font and it fallback to Noto

@stitesExpensify stitesExpensify added the External Added to denote the issue can be worked on by a contributor label Nov 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Web/ Chrome- Chat - Messages with flags are displayed with contra code [$1000] Web/ Chrome- Chat - Messages with flags are displayed with contra code Nov 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

Job added to Upwork: https://www.upwork.com/jobs/~012f5ca8abe85c1110

@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

📣 @s77rt You have been assigned to this job by @stitesExpensify!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

Current assignee @stitesExpensify is eligible for the External assigner, not assigning anyone new.

@stitesExpensify
Copy link
Contributor

@s77rt feel free to fix this, your proposal looks good to me

@stephanieelliott
Copy link
Contributor

Cool! Wow we're really making moves here, thanks @stitesExpensify 😁

@s77rt
Copy link
Contributor

s77rt commented Nov 30, 2022

Applied in Upwork (+50% bonus)
PR is ready

@melvin-bot melvin-bot bot added the Overdue label Dec 5, 2022
@stitesExpensify
Copy link
Contributor

PR is up, we are deciding on whether to merge it since it doesn't fix it on all platforms.

@melvin-bot melvin-bot bot removed the Overdue label Dec 5, 2022
@marcaaron marcaaron removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 7, 2022
@melvin-bot melvin-bot bot added the Overdue label Dec 7, 2022
@JmillsExpensify JmillsExpensify added the Reviewing Has a PR in review label Dec 7, 2022
@melvin-bot melvin-bot bot removed the Overdue label Dec 7, 2022
@stephanieelliott
Copy link
Contributor

It sounds like this solution will only fix the issue for users who downloaded fonts (which I'm guessing is not many). Can the we open this back up for proposals @stitesExpensify?

@stitesExpensify
Copy link
Contributor

I think we should actually just pay our Contributor and C+ and close this. This is a Windows/Linux problem, not an us problem.

I mentioned this in the PR, but for the future we have considered making all emojis custom images, or licensing from apple, both of which would solve this problem. However, both of those options are large undertakings that we are not going to do for a while so I think we can skip it for now.

@stephanieelliott
Copy link
Contributor

Cool, with that context I agree that we should just pay and close. Unless anyone disagrees, I'll take care of payments later on today.

@stitesExpensify
Copy link
Contributor

Great, thanks!

@stephanieelliott
Copy link
Contributor

We're ready to pay this one out in Upwork--@sobitneupane, waiting for you to accept the invite, @s77rt please accept the offer I sent over. Thanks!

@sobitneupane
Copy link
Contributor

@stephanieelliott Accepted

1 similar comment
@s77rt
Copy link
Contributor

s77rt commented Dec 14, 2022

@stephanieelliott Accepted

@stephanieelliott
Copy link
Contributor

All paid up!

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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants