-
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
[HOLD for payment 2024-01-17] [$250] Action menu - Double-clicking the "Add Reaction" icon highlights the text of the message. #33547
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01a6ecd7244e8df2c0 |
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Double-clicking the "Add reaction" icon in the Action menu highlights the text in the message. What is the root cause of that problem?We don't have What changes do you think we should make in order to solve the problem?Have Since those mini context menu icons are itself never selectable for the user, it makes sense to apply What alternative solutions did you explore? (Optional)We can apply the same solution if this happens for other context menu, components, ... |
ProposalPlease re-state the problem that we are trying to solve in this issue.We don't apply App/src/components/BaseMiniContextMenuItem.tsx Lines 67 to 71 in b74be72
What is the root cause of that problem?We need to apply these apply style={styles.userSelectNone}
dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} What changes do you think we should make in order to solve the problem?Result |
ProposalPlease re-state the problem that we are trying to solve in this issue.Double-clicking the emoji reaction mini context select the message. What is the root cause of that problem?We had this kind of issue before here (and many other issues). The message text gets selected because the emoji reaction is just a normal div. In that issue, the solution is to render the pressable as a button by setting the role of the pressable to BUTTON. What changes do you think we should make in order to solve the problem?Set a role of BUTTON to mini context menu item. Text selection won't happen if we press a |
@dukenv0307 @Krishna2323 @bernhardoj Thanks for your proposals. All of proposals work, but I like @bernhardoj's proposal because:
Link to @bernhardoj's proposal #33547 (comment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@hoangzinh I don’t think that solution will work when the user clicks a bit outside a emoji reaction (outside the Pressable), but still inside the mini context menu, like below Screen.Recording.2023-12-26.at.10.44.37.AM.mov |
I'm unsure if it's worth fixing when user clicks outside icons ^ |
cc @aldo-expensify @kbecciv to confirm, since I think it should work consistently when clicking on the MiniContextMenu, regardless of clicking inside or outside the icons. |
For the context menu container, it's just a plain view/element, not a clickable element, just like a message container. It already works as expected. The issue here is that double-clicking a button shouldn't select a text. Previously, we used either user-select none or ControlSelection as the workaround to fix it, but now we already have a proper way to do that by using the native button. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@hoangzinh, @Christinadobrzyn, @aldo-expensify Huh... This is 4 days overdue. Who can take care of this? |
@hoangzinh, @Christinadobrzyn, @aldo-expensify Eep! 4 days overdue now. Issues have feelings too... |
Tried to reproduce in the public room https://staging.new.expensify.com/r/5593084223054221 in staging, but couldn't . Can anyone help confirm that this is still reproducible? Screen.Recording.2024-01-02.at.1.55.07.PM.mov |
I see that the context menu for me closes when I click the second time, meanwhile, in the video shown in this GH issue body this doesn't happen. I guess this difference made the problem go away 🤷 |
@aldo-expensify this issue could be reproduced easier when double-clicking the "Copy to clipboard" icon. |
Thanks, now I reproduced |
Hmm, maybe that did it. |
I can do it. |
ok! |
PR is ready cc: @hoangzinh |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 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 2024-01-17. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
@hoangzinh, @bernhardoj, @Christinadobrzyn, @aldo-expensify, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump @hoangzinh on completing the list |
BugZero Checklist:
|
Hi can you confirm this is correct for payouts due? Issue Reporter: NA Eligible for 50% #urgency bonus? N Upwork job is here. Also, if everyone is getting paid through Upwork, @hoangzinh can you accept our offer so I can pay you through Upwork? |
That looks good to me |
Thanks @aldo-expensify! Paid @bernhardoj and @dukenv0307 - waiting on @hoangzinh to accept the Upwork offer |
Accepted. Thanks @Christinadobrzyn |
Thanks @hoangzinh! I paid you in Upwork based on this payment summary. So this is all done. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.16-3
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 - Interna Team
Slack conversation:
Action Performed:
Expected Result:
Double-clicking the "Add Reaction" icon in the action menu should not cause the text in the message to be highlighted.
Actual Result:
Double-clicking the "Add reaction" icon in the Action menu highlights the text in the message.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6324861_1703334379791.Recording__982.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: