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

[$250] Chat - Double strike through is applied for emojis #54618

Open
2 of 8 tasks
IuliiaHerets opened this issue Dec 27, 2024 · 22 comments
Open
2 of 8 tasks

[$250] Chat - Double strike through is applied for emojis #54618

IuliiaHerets opened this issue Dec 27, 2024 · 22 comments
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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 27, 2024

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: 9.0.79-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Redmi note 10s Android 13
App Component: Chat Report View

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Open a chat
  3. Enter ~😗~
  4. Send the message

Expected Result:

Double strike through must not be applied for emojis.

Actual Result:

Double strike through is applied for emojis.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6702931_1735302419927.screenrecorder-2024-12-27-08-47-23-706.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021876648717605677908
  • Upwork Job ID: 1876648717605677908
  • Last Price Increase: 2025-01-07
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 27, 2024
Copy link

melvin-bot bot commented Dec 27, 2024

Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@Shahidullah-Muffakir
Copy link
Contributor

It will be fixed by this PR Expensify/react-native-live-markdown#591

@bernhardoj
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Double strike-through is seen on emoji.

What is the root cause of that problem?

We previously prevented the emoji from being formatted in #40617. The strikethrough style is applied from the parent (<del>) and the emoji itself. In that PR, we apply an inline-flex style so the emoji won't be affected by the parent strikethrough style.

But in #47547, we changed it to inline because selecting the text with emoji won't have the same height.
image

Compared to when using inline.
image

What changes do you think we should make in order to solve the problem?

I think it's more important to prevent the emoji from being formatted compared to making sure the selection height to be same and it's barely noticeable too, so I suggest to use inline-flex back and add `textDecorationLine: 'none' to override the text decoration style on the emoji itself.

const emojiDefaultStyles: EmojiDefaultStyles = {
...FontUtils.fontFamily.platform.EXP_NEUE,
...display.dInline,
};

const emojiDefaultStyles: EmojiDefaultStyles = {
    ...FontUtils.fontFamily.platform.EXP_NEUE,
    ...display.dInlineFlex,
    textDecorationLine: 'none',
};

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A

@parasharrajat
Copy link
Member

parasharrajat commented Dec 28, 2024

@bernhardoj Do we have any other solution to this problem?

@parasharrajat
Copy link
Member

This looks like a duplicate issue of #14676.

@bernhardoj
Copy link
Contributor

It was solved months ago, but it happens again.

@melvin-bot melvin-bot bot added the Overdue label Dec 29, 2024
@bfitzexpensify
Copy link
Contributor

I agree that this is a duplicate of #14676

@bernhardoj
Copy link
Contributor

@bfitzexpensify I wouldn't say it's a dupe because that issue is solved months ago, but this issue happens again, so we should fix it again.

@parasharrajat
Copy link
Member

I agree with you but Expensify/react-native-live-markdown#591 is solving this issue at lib level.

@bernhardoj
Copy link
Contributor

It's not a live markdown issue.

@parasharrajat
Copy link
Member

Oh, correct. It was very confusing from the issue.

@parasharrajat
Copy link
Member

@bfitzexpensify Could you please reopen this issue. Looks like it a valid issue. I misinterpreted the above PR. It is solving the issue on TextInput.

We are talking about sending messages here. It was solved in #14676 long back but it looks like the
but recently something broke it.

Can I be C+ on this issue given that I have already dug into this issue?

@bernhardoj
Copy link
Contributor

@bfitzexpensify hi, can you recheck this one please?

@bfitzexpensify bfitzexpensify reopened this Jan 7, 2025
@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Jan 7, 2025
@melvin-bot melvin-bot bot changed the title Chat - Double strike through is applied for emojis [$250] Chat - Double strike through is applied for emojis Jan 7, 2025
Copy link

melvin-bot bot commented Jan 7, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 7, 2025
Copy link

melvin-bot bot commented Jan 7, 2025

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

@bfitzexpensify bfitzexpensify added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Jan 7, 2025
Copy link

melvin-bot bot commented Jan 7, 2025

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

@parasharrajat
Copy link
Member

@bernhardoj Is there another way to Keep the selection fix?

@bernhardoj
Copy link
Contributor

I was looking for that when working on the proposal, but I can't find another way to prevent a child element from getting affected by the parent strike-through without using the inline-flex style.

@parasharrajat
Copy link
Member

May be we can target the selection issue and find some other solution that works for it.

@bernhardoj
Copy link
Contributor

I have no idea for that.

Copy link

melvin-bot bot commented Jan 10, 2025

@parasharrajat @bfitzexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jan 10, 2025
@parasharrajat
Copy link
Member

Waiting to see a few more proposals while I test this myself.

@melvin-bot melvin-bot bot removed the Overdue label Jan 10, 2025
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 Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

5 participants