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-10-25] [$1000] Chat - Emoji suggestion list does not disappear when typing 👍 in the composer #20998

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 19, 2023 · 125 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 19, 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. Go to https://staging.new.expensify.com/
  2. Go to any conversation
  3. Type 👍 in the composer

Expected Result:

When the emoji is rendered, the emoji suggestion list will disappear

Actual Result:

When the emoji is rendered, the emoji suggestion list does not disappear

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
  • MacOS / Desktop

Version Number: 1.3.29.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

Bug6097879_Screen_Recording_20230619_042507_Chrome.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c88e94973fd21352
  • Upwork Job ID: 1671501364638490624
  • Last Price Increase: 2023-07-12
  • Automatic offers:
    • aimane-chnaif | Reviewer | 27373764
    • ShogunFire | Contributor | 27373765
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 19, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 19, 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

@allroundexperts
Copy link
Contributor

Proposal

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

Emoji suggestions do not reset when typing 👍 in composer on android chrome

What is the root cause of that problem?

The root cause of the issue is that once the suggestion text is matched to contain an Emoji here, the subsequent state update (with text replaced with emoji), does not trigger onSelectionChange event on Android chrome. Since the onSelectionChange event is not triggered, the emoji suggestions do not get re-calculated. Thus the suggestion menu keeps on showing.

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

We should reset the suggested emojis in the updateComment function if the text matches an emoji code. For example, here, we need to add:

...!_.isEmpty(emojis) && {suggestedEmojis: []},

This can be done for all the platforms or for android chrome only.

What alternative solutions did you explore? (Optional)

Instead of setting emoji state to [], we can also call this.calculateEmojiSuggestions in the same function.

@flaviadefaria flaviadefaria added the External Added to denote the issue can be worked on by a contributor label Jun 21, 2023
@melvin-bot melvin-bot bot changed the title Chat - Emoji suggestion list does not disappear when typing 👍 in the composer [$1000] Chat - Emoji suggestion list does not disappear when typing 👍 in the composer Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@melvin-bot melvin-bot bot added Overdue Help Wanted Apply this label when an issue is open to proposals by contributors labels Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@flaviadefaria
Copy link
Contributor

The external label has been added.

@melvin-bot melvin-bot bot removed the Overdue label Jun 21, 2023
@ShogunFire
Copy link
Contributor

Just to add to @allroundexperts proposal, the reason onSelectionChange is not called on Android is because onSelectionChange is called after OnChangeText on Android whereas on others platforms it is called before. And the selection doesn't change because the length of ":+1" is 3 and the length of "👍 " is also 3.

@melvin-bot melvin-bot bot added the Overdue label Jun 23, 2023
@flaviadefaria
Copy link
Contributor

@aimane-chnaif what are your thoughts here?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 23, 2023
@flaviadefaria
Copy link
Contributor

Friendly bump @aimane-chnaif

@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

📣 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 Jun 28, 2023
@flaviadefaria
Copy link
Contributor

@aimane-chnaif just checking if you need any help?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 28, 2023
@flaviadefaria flaviadefaria changed the title [$1000] Chat - Emoji suggestion list does not disappear when typing 👍 in the composer [Hold][$1000] Chat - Emoji suggestion list does not disappear when typing 👍 in the composer Jun 30, 2023
@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 25, 2023
@NicMendonca NicMendonca added the External Added to denote the issue can be worked on by a contributor label Oct 25, 2023
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

Current assignee @aimane-chnaif is eligible for the External assigner, not assigning anyone new.

@NicMendonca NicMendonca removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 25, 2023
@NicMendonca
Copy link
Contributor

I was hoping that would recreate the since expired Upwork job 😄

@aimane-chnaif
Copy link
Contributor

@NicMendonca please try this approach:

@NicMendonca NicMendonca removed the Awaiting Payment Auto-added when associated PR is deployed to production label Oct 25, 2023
@NicMendonca NicMendonca added Help Wanted Apply this label when an issue is open to proposals by contributors 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 Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

Current assignee @aimane-chnaif is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

📣 @aimane-chnaif 🎉 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

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

📣 @ShogunFire 🎉 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 📖

@NicMendonca
Copy link
Contributor

@aimane-chnaif you hero!

@NicMendonca
Copy link
Contributor

can you both accept the offers please? 🙏

@aimane-chnaif
Copy link
Contributor

BZ Checklist:
I have same proposal as #27156 (comment)

So if regression test is already created,

  1. Open the app
  2. Open any report
  3. Type in ':eye' to open emoji suggestion list -> update this to "Type in ':eye' or ':+1' to open emoji suggestion list"
  4. Add a colon at the end to insert the emoji
  5. Verify that the suggestion list closes

@ShogunFire
Copy link
Contributor

I accepted the offer

@NicMendonca
Copy link
Contributor

@aimane-chnaif just need you to accept the off please!

@NicMendonca
Copy link
Contributor

@ShogunFire you've been paid! 🎉

@melvin-bot melvin-bot bot added the Overdue label Oct 30, 2023
@NicMendonca
Copy link
Contributor

everyone has been paid! ✅

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@ShogunFire
Copy link
Contributor

@NicMendonca Hello, sorry for the late request but could you put the upwork mission as completed ? Because it makes my upwork profile worse otherwise. Thanks

@stephanieelliott
Copy link
Contributor

Hello, sorry for the late request but could you put the upwork mission as completed ? Because it makes my upwork profile worse otherwise. Thanks

I took care of this!

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests