-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] Emoji picker - Clicking on same emoji reaction changes skin tone instead of removing #46387
Comments
Triggered auto assignment to @kadiealexander ( |
@kadiealexander FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clicking on same emoji reaction changes skin tone instead of removing What is the root cause of that problem?While checking if we should remove the emoji reaction or not, we include the App/src/libs/actions/Report.ts Lines 2569 to 2574 in 98d8a5a
What changes do you think we should make in order to solve the problem?We should remove
RESULT -1-New-Expensify.14.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clicking on added emoji reaction with a different skin tone add the same emoji with the selected skin tone. What is the root cause of that problem?When we toggle the emoji reaction, it checks whether the emoji with the selected skin tone already added by the current user or not. App/src/libs/actions/Report.ts Lines 2569 to 2576 in 98d8a5a
If it's not, then it will add the emoji with the skin tone selected. That's how it's implemented from the first in #15125. What changes do you think we should make in order to solve the problem?If we want that pressing the added reaction to always remove the emoji, we can update toggleEmojiReaction to accept a new params App/src/libs/actions/Report.ts Lines 2544 to 2550 in 98d8a5a
If it's true, we pass undefined App/src/pages/home/report/ReportActionItem.tsx Lines 383 to 388 in 98d8a5a
This way, pressing the emoji from emoji picker or context menu will still compare the skin tone too, but pressing the added emoji reaction will ignore the skin tone. |
Job added to Upwork: https://www.upwork.com/jobs/~01028ab74a5fe53b78 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
@rushatgabhane, @kadiealexander Huh... This is 4 days overdue. Who can take care of this? |
I like @bernhardoj's proposal 🎀 👀 🎀 It will be cleaner to implement and avoid regressions |
Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Proposal LGTM, feel free to create the PR @bernhardoj |
PR is ready cc: @rushatgabhane |
@kadiealexander could you please attach a payment summary |
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:
|
Payouts due:
|
Requested in ND. |
$250 approved for @bernhardoj |
@chiragsalian, @rushatgabhane, @bernhardoj, @kadiealexander Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rushatgabhane bump on the checklist please! |
$250 approved for @rushatgabhane |
@chiragsalian, @rushatgabhane, @bernhardoj, @kadiealexander Eep! 4 days overdue now. Issues have feelings too... |
Bumped rushat via newDot DM to handle the checklist. |
|
👋 This was not a bug, it was intended functionality. The same functionality happens in slack, and we built it that way to match. 2024-10-02_09-48-28.mp4For next steps I think that we should revert the PR, and maybe update the regression tests to make sure that it matches? I thought we already had a case for this but I guess not. If that is the case though I'm surprised that it took this long for someone to find as a "bug". Thoughts @chiragsalian ? |
I think what we did here matches the video. |
Why revert the PR? i think the code here is an improvement IMO so I'm not following why we want to revert it. |
I believe that @bernhardoj was correct, and I was misunderstanding the change here. My apologies. No need to revert the PR or make any changes! |
@chiragsalian, @rushatgabhane, @bernhardoj, @kadiealexander Eep! 4 days overdue now. Issues have feelings too... |
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: 9.0.10-7
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): bezawitgebremichael+kk@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When changing the default skin tone at step 9 the thumbs up reaction added changes its skin tone as well and when clicking on the thumbs up reaction again the reaction gets removed
Actual Result:
When changing the default skin tone at step 9 the thumbs up reaction added doesn't change its skin tone and when clicking on the same reaction again with a different skin tone the reaction skin tone changes instead of removing the reaction
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6550237_1721710182409.Button_not_working.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: