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

[HOLD for payment 2023-09-27] [$500] Chat - Emojis are selected when message is copied by selecting #26694

Closed
2 of 6 tasks
lanitochka17 opened this issue Sep 4, 2023 · 34 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 4, 2023

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:

  1. Open any report
  2. Send any text and add emojis
  3. Copy text by double clicking and paste in composer

Expected Result:

Emojis should not be copied with text

Actual Result:

Emojis are be copied with text

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • Windows / Chrome

Version Number: 1.3.63-0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

Monosnap.screencast.2023-08-30.20-07-25.mp4
Recording.32.mp4

Expensify/Expensify Issue URL:

Issue reported by: @Krishna2323

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693406411674209

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0141e82a06a4ba237b
  • Upwork Job ID: 1699027373879193600
  • Last Price Increase: 2023-09-12
  • Automatic offers:
    • 0xmiroslav | Reviewer | 26659187
    • bernhardoj | Contributor | 26659189
    • krishna2323 | Reporter | 26659191
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@Krishna2323
Copy link
Contributor

Krishna2323 commented Sep 4, 2023

Proposal

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

Chat - Emojis are selected when message is copied by selecting

What is the root cause of that problem?

Seems like a react-native bug, the root cause still is not very clear to me but removing styles.userSelectNone solves the problem.

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

We need to remove styles.userSelectNone from EmojiReactionBubble.js. Slack & Whatsapp also doesn't block emoji from selection.

<Text style={[styles.emojiReactionBubbleText, styles.userSelectNone, StyleUtils.getEmojiReactionBubbleTextStyle(props.isContextMenu)]}>{props.emojiCodes.join('')}</Text>
{props.count > 0 && <Text style={[styles.reactionCounterText, styles.userSelectNone, StyleUtils.getEmojiReactionCounterTextStyle(props.hasUserReacted)]}>{props.count}</Text>}

Result

fixed_demo.mp4

@MitchExpensify MitchExpensify added the External Added to denote the issue can be worked on by a contributor label Sep 5, 2023
@melvin-bot melvin-bot bot changed the title Chat - Emojis are selected when message is copied by selecting [$500] Chat - Emojis are selected when message is copied by selecting Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@MitchExpensify
Copy link
Contributor

Lets fix this!

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@payal-lathidadiya
Copy link
Contributor

payal-lathidadiya commented Sep 5, 2023

Proposal

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

Chat - Emojis are selected when message is copied by selecting

What is the root cause of that problem?

Issue is due to accessibilityLabel attribute added for element here.

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

Replace style of userSelectNone to userSelectText in EmojiReactionBubble component here while rendering emoji reaction element.

What alternative solutions did you explore? (Optional)

Alternatively, we can also remove this style userSelectNone

@bernhardoj
Copy link
Contributor

Proposal

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

Triple-clicking the chat message will copy over the reaction emoji if exists.

What is the root cause of that problem?

This is another issue of a browser bug where user-select: none can be selected/copied to the clipboard which we already encounter a few times #24156 #17838.

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

Add dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} to both AddReactionBubble and EmojiReactionBubble to ignore the emoji from the selection.

As we already encountered this a few times, I think it's good to implement the solution to the component that is supposed to be non-selectable, for example, edited space text (in EditedRenderer and ReportActionItemFragment), MiniQuickEmojiReactions, BaseSelectionList Select all, Checkbox/RadioListItem, etc.

@MitchExpensify
Copy link
Contributor

Bump on reviewing these proposal @0xmiroslav, thanks

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@MitchExpensify, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@MitchExpensify, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

@MitchExpensify, @0xmiroslav Huh... This is 4 days overdue. Who can take care of this?

@MitchExpensify
Copy link
Contributor

Bump @0xmiroslav 🙇

@melvin-bot melvin-bot bot removed the Overdue label Sep 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

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

@0xmiros
Copy link
Contributor

0xmiros commented Sep 13, 2023

I like @bernhardoj's proposal to reuse current solution already applied to other parts.
🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

Triggered auto assignment to @Li357, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@Li357
Copy link
Contributor

Li357 commented Sep 13, 2023

Agreed, @bernhardoj all yours!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 13, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 14, 2023
@bernhardoj
Copy link
Contributor

PR is ready

cc: @0xmiroslav

@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

🎯 ⚡️ Woah @0xmiroslav / @bernhardoj, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @bernhardoj got assigned: 2023-09-13 18:54:32 Z
  • when the PR got merged: 2023-09-18 05:52:53 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 20, 2023
@melvin-bot melvin-bot bot changed the title [$500] Chat - Emojis are selected when message is copied by selecting [HOLD for payment 2023-09-27] [$500] Chat - Emojis are selected when message is copied by selecting Sep 20, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-27. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@0xmiroslav] The PR that introduced the bug has been identified. Link to the PR:
  • [@0xmiroslav] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@0xmiroslav] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@0xmiroslav] Determine if we should create a regression test for this bug.
  • [@0xmiroslav] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@MitchExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@MitchExpensify
Copy link
Contributor

Payment summary:

Reporter: $250 @Krishna2323 Upwork
C: $750 @bernhardoj Upwork
C+: $750 @0xmiroslav Upwork

Added a reminder to my cal to pay out

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Sep 26, 2023
@MitchExpensify
Copy link
Contributor

Payment summary:

Reporter: $250 @Krishna2323 Upwork PAID
C: $750 @bernhardoj Upwork - PAID
C+: $750 @0xmiroslav Upwork - Bump on BZ steps and accepting Upwork offer @0xmiroslav

@melvin-bot melvin-bot bot removed the Overdue label Sep 29, 2023
@Krishna2323
Copy link
Contributor

@MitchExpensify, why $250 for reporter role👀

@0xmiros
Copy link
Contributor

0xmiros commented Sep 29, 2023

@MitchExpensify, why $250 for reporter role👀

Not sure @MitchExpensify already checked but you're luckily eligible for original price. Your reported this bug in slack 5 hrs earlier than price announcement.

@0xmiros
Copy link
Contributor

0xmiros commented Sep 29, 2023

Bump on BZ steps and accepting Upwork offer @0xmiroslav

BZ Checklist: I propose same as #24156 (comment)

Accepted offer

@MitchExpensify
Copy link
Contributor

Not sure @MitchExpensify already checked but you're luckily eligible for original price.

I actually had not haha, thanks for doing that for me @0xmiroslav !

@melvin-bot melvin-bot bot added the Overdue label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

@Li357, @MitchExpensify, @bernhardoj, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick!

@MitchExpensify
Copy link
Contributor

Everyone is paid, no BZ steps needed, closing. Thanks, all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants