Skip to content

[HOLD for payment 2023-10-25] [$1000] The search result still shows emoji for wrong texts #21055

Closed

Description

@kavimuru

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. On staging web chrome, navigate to a chat and click the emoji on the chat
  2. Type in any emoji name (example search) and after you enter the last character ('h' in my case for search), do not release your fingers and continuous type any other letters. You'll see still the emojis are shown. But now release your fingers and see , it displays 'Not found'
  3. Repeat the above steps on Slack and you'll see after entering the last character of the emoji, if you type any other letters even without releasing your fingers, it will still show 'Not found'

Expected Result:

The search result should show 'Not found' if the text doesn't match with emoji

Actual Result:

The search result still shows emoji for wrong texts

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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?: 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
Notes/Photos/Videos: Any additional supporting documentation

Recording.2661.mp4
Recording.2661.mp4

Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686306616768299

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d07f1517b1b1cba9
  • Upwork Job ID: 1671998870894948352
  • Last Price Increase: 2023-07-06

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 19, 2023
  2. GItGudRatio commented on Jun 19, 2023

    @GItGudRatio
    Contributor

    Proposal

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

    The No Results Found message is center aligned.

    What is the root cause of that problem?

    This issue was reported previously reported and fixed here - #17245

    However, the refactor in #18221 reintroduced this issue.

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

    We need to remove the following lines:

    <View style={[styles.alignItemsCenter, styles.justifyContentCenter, styles.flex1]}>

    This will ensure that the results show right below the search text. We will need to do the same for the native files as well.

    image

    Additionally, we can add the supporting styles as well but that is a matter than can be finalised in the PR.

    What alternative solutions did you explore? (Optional)

    None

  3. melvin-bot commented on Jun 19, 2023

    @melvin-bot

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

  4. melvin-bot commented on Jun 19, 2023

    @melvin-bot

    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
  5. DanutGavrus commented on Jun 19, 2023

    @DanutGavrus
    Contributor

    Proposal

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

    The search result still shows emoji for wrong texts.

    What is the root cause of that problem?

    Right now, in EmojiPickerMenu we have this:

    this.filterEmojis = _.debounce(this.filterEmojis.bind(this), 300);

    The debounce method makes the emoji picker seem slow(as seen in a video in the next section).

    The filter was initially added in this commit with no debounce at all. The debounce was later added in this commit with a value of 500, which was then reduced to 300 and remained unchanged from April 2021.

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

    The filter method makes no network call and it executes very fast, so I would suggest to remove the debounce at all. If, for some reason, we need to keep the debounce, I would suggest to lower the value to the smallest one possible in order to make the picker as fast as we can.

    We also need to keep both index and index.native.js in sync, so we need to make the same change in both files.

    I've made 2 videos for comparison:

    Picker with 300 debounce:
    300_debounce.mp4

    *NOTE: if you keep typing forever in the previous video, you will still see the emojis forever. It's when you stop typing that you see the "No results found." message eventually.

    Picker with no debounce:
    no_debounce.mp4

    I've also played with small values for the debounce, up to 50 I could not reproduce the bug, no matter how fast I was typing. At 100 it's reproducible, but not as easy as it's now. We may discuss if we want to remove it completely, or to just lower it to 50(or other value).

  6. added and removed
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 22, 2023
  7. sophiepintoraetz commented on Jun 22, 2023

    @sophiepintoraetz
    Contributor

    Reassigning because Kadie is OOO and this shouldn't have hit her K2 (timezone takes a while to catch up with 0%!)

  8. 111 remaining items

  9. kadiealexander commented on Oct 26, 2023

    @kadiealexander
    Contributor

    Payouts due:

    Eligible for 50% #urgency bonus? No

    Upwork job is here.

  10. aimane-chnaif commented on Oct 26, 2023

    @aimane-chnaif
    Contributor

    I think original base price applies here. PR was raised before announcement.

  11. aimane-chnaif commented on Oct 26, 2023

    @aimane-chnaif
    Contributor

    @kadiealexander I already have offer accepted long time ago. #21055 (comment)

  12. kadiealexander commented on Oct 26, 2023

    @kadiealexander
    Contributor

    @aimane-chnaif I cannot access that contract anymore could you please link it here? Could you also please complete the BugZero checklist?

  13. aimane-chnaif commented on Oct 26, 2023

    @aimane-chnaif
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: N/A
    • 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: N/A
    • 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: N/A
    • Determine if we should create a regression test for this bug. This is not bug but a bit improvement. No need regression test.
    • 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.
  14. kadiealexander commented on Oct 27, 2023

    @kadiealexander
    Contributor

    @aimane-chnaif please don't forget to link your offer!

  15. aimane-chnaif commented on Oct 30, 2023

    @aimane-chnaif
    Contributor

    @kadiealexander I am also not able to find that contract. Sorry for confusion. Can you please send offer again?

  16. kadiealexander commented on Oct 31, 2023

    @kadiealexander
    Contributor

    Sent!

  17. kadiealexander commented on Nov 1, 2023

    @kadiealexander
    Contributor

    @aimane-chnaif bump to accept the Upwork contract.

  18. aimane-chnaif commented on Nov 1, 2023

    @aimane-chnaif
    Contributor

    @kadiealexander accepted thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions