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

Closed
2 of 8 tasks
IuliiaHerets opened this issue Dec 27, 2024 · 39 comments
Closed
2 of 8 tasks

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

IuliiaHerets opened this issue Dec 27, 2024 · 39 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-28
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?

@bfitzexpensify bfitzexpensify moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Jan 13, 2025
Copy link

melvin-bot bot commented Jan 14, 2025

@parasharrajat, @bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@parasharrajat
Copy link
Member

Waiting for proposals.

@melvin-bot melvin-bot bot removed the Overdue label Jan 14, 2025
Copy link

melvin-bot bot commented Jan 14, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Jan 17, 2025
@bfitzexpensify
Copy link
Contributor

No need for a bounty increase, this is a low priority issue.

@melvin-bot melvin-bot bot removed the Overdue label Jan 17, 2025
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Jan 20, 2025
@bfitzexpensify
Copy link
Contributor

Nice. OK, if it's not reproducible, let's close this out for now.

@github-project-automation github-project-automation bot moved this from Bugs and Follow Up Issues to Done in [#whatsnext] #expense Jan 20, 2025
@melvin-bot melvin-bot bot removed the Overdue label Jan 20, 2025
@bernhardoj
Copy link
Contributor

@bfitzexpensify I think we should still fix the bug where the emoji is getting strikethrough-ed (because that's what we did previously in #14676). Also, technically, there are still two strikethroughs, but now they're on the same line.

@bfitzexpensify
Copy link
Contributor

Ah, so the 'not reproducible' was basically saying we don't apply a double-strikethrough visually, but we are still applying a strikethrough when we shouldn't (and even though it looks like a single strikethrough, it's a double, just on the same line).

I agree with you. Reopening.

@parasharrajat
Copy link
Member

I will be revisiting this issue soon as we don't have new proposals.

Copy link

melvin-bot bot commented Jan 21, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Jan 24, 2025

@parasharrajat @bfitzexpensify this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jan 24, 2025
@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

Copy link

melvin-bot bot commented Jan 27, 2025

@parasharrajat, @bfitzexpensify Eep! 4 days overdue now. Issues have feelings too...

@bfitzexpensify
Copy link
Contributor

No update here

@melvin-bot melvin-bot bot removed the Overdue label Jan 27, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@parasharrajat
Copy link
Member

OK, still no proposals. @bfitzexpensify Should we increase the price here?

@bfitzexpensify
Copy link
Contributor

I'm going to close this instead. I don't really see a major issue with this behaviour, especially since it only occurs after intentionally trying to create a strikethrough on the emoji.

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
Status: Done
Development

No branches or pull requests

6 participants