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

[PAID] [$250] Chat - Two emoji skin tones are displayed after changing tone in browser #52918

Closed
2 of 8 tasks
lanitochka17 opened this issue Nov 21, 2024 · 24 comments
Closed
2 of 8 tasks
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 Nov 21, 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.65-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

Preconditions: Account is created and user is logged in both in app and mWeb

  1. Open New Expensify app
  2. Go to any chat and select emoji picker
  3. Change the skin tone
  4. Change the skin tone that is currently selected
  5. Open mWeb https://staging.new.expensify.com/
  6. Go to the chat as in step 2
  7. Select a different skin tone in the mWeb
  8. Navigate to android app and select emoji picker

Expected Result:

The last skin tone should be selected

Actual Result:

Two skin tones are displayed in the mobile app: the original selection from the app and the updated selection from the browser

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence
Bug6661609_1731344323925.recording_20241111_175747.mp4

06-343

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021863719314516934466
  • Upwork Job ID: 1863719314516934466
  • Last Price Increase: 2024-12-02
  • Automatic offers:
    • rayane-djouah | Reviewer | 105228437
    • nyomanjyotisa | Contributor | 105228439
Issue OwnerCurrent Issue Owner: @strepanier03
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 21, 2024
Copy link

melvin-bot bot commented Nov 21, 2024

Triggered auto assignment to @strepanier03 (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.

@nyomanjyotisa
Copy link
Contributor

Proposal

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

Chat - Two emoji skin tones are displayed after changing tone in browser

What is the root cause of that problem?

We highlight if equals to highlightedIndex or currentSkinTone.skinTone

isHighlighted={skinToneEmoji.skinTone === highlightedIndex || skinToneEmoji.skinTone === currentSkinTone.skinTone}

On updateSelectedSkinTone we set the highlighted Index

function updateSelectedSkinTone(skinToneEmoji: SkinToneEmoji) {
setHighlightedIndex(skinToneEmoji.skinTone);
setPreferredSkinTone(skinToneEmoji.skinTone);
}

When changed in other platform, the currentSkinTone.skinTone got changed to the one selected on other platform, but the highlightedIndex is still the previous one that selected on this platform

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

Remove this code

setHighlightedIndex(skinToneEmoji.skinTone);

What alternative solutions did you explore? (Optional)

Or set the highlightedIndex with the new currentSkinTone.skinTone

    useEffect(() => {
        setHighlightedIndex(currentSkinTone.skinTone);
    }, [currentSkinTone]);

@melvin-bot melvin-bot bot added the Overdue label Nov 25, 2024
Copy link

melvin-bot bot commented Nov 25, 2024

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

Copy link

melvin-bot bot commented Nov 27, 2024

@strepanier03 Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Nov 29, 2024

@strepanier03 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@strepanier03 strepanier03 added the External Added to denote the issue can be worked on by a contributor label Dec 2, 2024
@melvin-bot melvin-bot bot changed the title Chat - Two emoji skin tones are displayed after changing tone in browser [$250] Chat - Two emoji skin tones are displayed after changing tone in browser Dec 2, 2024
@strepanier03 strepanier03 added the Needs Reproduction Reproducible steps needed label Dec 2, 2024
Copy link

melvin-bot bot commented Dec 2, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 2, 2024
Copy link

melvin-bot bot commented Dec 2, 2024

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

@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@strepanier03
Copy link
Contributor

I'm able to reproduce this as long as the emoji picker is not closed on either platform while reproducing.

@strepanier03 strepanier03 removed the Needs Reproduction Reproducible steps needed label Dec 2, 2024
Copy link

melvin-bot bot commented Dec 5, 2024

@strepanier03 @rayane-djouah 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 Dec 5, 2024
@rayane-djouah
Copy link
Contributor

Reviewing

@melvin-bot melvin-bot bot removed the Overdue label Dec 5, 2024
@rayane-djouah
Copy link
Contributor

@nyomanjyotisa removing setHighlightedIndex(skinToneEmoji.skinTone) will cause a bug:

Before removing setHighlightedIndex(skinToneEmoji.skinTone) After removing setHighlightedIndex(skinToneEmoji.skinTone)
android_native.mp4
android_native.mp4

@rayane-djouah
Copy link
Contributor

What alternative solutions did you explore? (Optional)

Or set the highlightedIndex with the new currentSkinTone.skinTone

    useEffect(() => {
        setHighlightedIndex(currentSkinTone.skinTone);
    }, [currentSkinTone]);

@nyomanjyotisa - I prefer this alternative solution. but let's use currentSkinTone.skinTone as a useEffect dependency instead of currentSkinTone.

@rayane-djouah
Copy link
Contributor

@nyomanjyotisa's proposal looks good to me

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Dec 6, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 6, 2024
Copy link

melvin-bot bot commented Dec 6, 2024

📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Dec 6, 2024

📣 @nyomanjyotisa 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@nyomanjyotisa
Copy link
Contributor

The PR is ready @rayane-djouah

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 12, 2024
@melvin-bot melvin-bot bot changed the title [$250] Chat - Two emoji skin tones are displayed after changing tone in browser [HOLD for payment 2024-12-19] [$250] Chat - Two emoji skin tones are displayed after changing tone in browser Dec 12, 2024
Copy link

melvin-bot bot commented Dec 12, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 12, 2024
Copy link

melvin-bot bot commented Dec 12, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.74-8 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-12-19. 🎊

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

Copy link

melvin-bot bot commented Dec 12, 2024

@rayane-djouah @strepanier03 @rayane-djouah The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@rayane-djouah
Copy link
Contributor

rayane-djouah commented Dec 13, 2024

BugZero Checklist:

  • Classify the bug:

    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
  • 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: https://github.com/Expensify/App/pull/12860/files#r1883724802

  • If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

  • If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [@strepanier03] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue: https://github.com/Expensify/Expensify/issues/454938

Regression Test Proposal

#### Precondition:

- N/A

#### Test:

1. Go to any chat and select emoji picker
2. Change the skin tone that is currently selected
3. Open another platform version (e.g. mWeb version)
4. Go to the same chat as in step 1
5. Select a different skin tone on the other platform (from step 4)
6. Navigate back to the original platform and open the emoji picker
7. Verify that the selected emoji skin tone is set to only one, not two


Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 18, 2024
@strepanier03
Copy link
Contributor

Payment Summary

@strepanier03
Copy link
Contributor

I've paid and closed both contracts, plus I've made the reg test GH. Closing this out.

@github-project-automation github-project-automation bot moved this from LOW to Done in [#whatsnext] #quality Dec 19, 2024
@strepanier03 strepanier03 changed the title [HOLD for payment 2024-12-19] [$250] Chat - Two emoji skin tones are displayed after changing tone in browser [PAID] [$250] Chat - Two emoji skin tones are displayed after changing tone in browser Dec 19, 2024
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
Development

No branches or pull requests

6 participants