Skip to content

[HOLD for payment 2024-12-20] [$125] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji #53218

Closed

Description

@IuliiaHerets

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.67-1
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: https://expensify.testrail.io/index.php?/cases/view/2654739
Email or phone of affected tester (no customers): gatantm+88@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch Expensify and Go to any chat
  2. Tap on the emoji icon
  3. Tap on the search bar on the emoji picker

Expected Result:

There's a bit of space so a user can dismiss the picker without needing to make search results fewer or add an emoji

Actual Result:

Describe what actually happenedOn the iPhone 12 mini there's not enough space on the top of the emoji picker when making a search to dismiss it. User needs to either add an emoji or first tap on an empty area of the picker to dismiss the keyboard and then tap to exit the picker.
Also the picker is slightly overlap by the time and status bar

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6677549_1732663537801.RPReplay_Final1732663095.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021861826366793735200
  • Upwork Job ID: 1861826366793735200
  • Last Price Increase: 2024-12-04
  • Automatic offers:
    • huult | Contributor | 105266175
Issue OwnerCurrent Issue Owner: @trjExpensify

Activity

  1. added
    Daily
    Bug
    on Nov 27, 2024
  2. changed the title [-]Chat - Emoji picker has no space to dismiss when searching for an emoji[/-] [+]iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji[/+] on Nov 27, 2024
  3. melvin-bot commented on Nov 27, 2024

    @melvin-bot

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

  4. huult commented on Nov 27, 2024

    @huult
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-11-27 16:29:55 UTC.

    Proposal

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

    Emoji picker has no space to dismiss when searching for an emoji

    What is the root cause of that problem?

    We use 95% of the window height to set the maximum height for the picker list.

    const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95);

    And for the height, we will set the greater than or equal NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT, which is 300

    const style = {
    height: isRenderingShortcutRow ? CONST.NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT : CONST.NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT,
    };

    When we focus on the emoji search, the keyboard will open, pushing the emoji list to the top. This happens because the height is set to 300, and the maximum height is 95% of the window height, as we do not exclude the keyboard's height

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

    To resolve this issue, we need to exclude the height of the keyboard when setting the maximum height for the picker list. Some thing like that:

    //src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.ts#L31
    +    const {keyboardHeight} = useKeyboardState();
    -    const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95);
    +    const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95 - keyboardHeight);
    //src/styles/utils/index.ts#L393
    function getEmojiPickerListHeight(isRenderingShortcutRow: boolean, windowHeight: number): ViewStyle {
        const style = {
            height: isRenderingShortcutRow ? CONST.NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT : CONST.NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT,
        };
    
        if (windowHeight) {
            // dimensions of content above the emoji picker list
            const dimensions = isRenderingShortcutRow ? CONST.EMOJI_PICKER_TEXT_INPUT_SIZES + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT : CONST.EMOJI_PICKER_TEXT_INPUT_SIZES;
            return {
                ...style,
                maxHeight: windowHeight - dimensions,
    +            height: Math.min(style.height, windowHeight - dimensions),
            };
        }
        return style;
    }
    POC
    Screen.Recording.2024-11-28.at.22.58.51.mov

    What alternative solutions did you explore? (Optional)

  5. moved this to Bugs and Follow Up Issues in #expensify-bugson Nov 27, 2024
  6. trjExpensify commented on Nov 27, 2024

    @trjExpensify
    Contributor

    This is pretty minor and specific to a 4+ year old device. Dropping the price.

  7. added
    External
    on Nov 27, 2024
  8. changed the title [-]iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji[/-] [+][$250] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji[/+] on Nov 27, 2024
  9. melvin-bot commented on Nov 27, 2024

    @melvin-bot
  10. added
    Help Wanted
    on Nov 27, 2024
  11. changed the title [-][$250] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji[/-] [+][$125] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji[/+] on Nov 27, 2024
  12. 27 remaining items

  13. removed
    Reviewing
    on Dec 13, 2024
  14. melvin-bot commented on Dec 13, 2024

    @melvin-bot

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

  15. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.75-6 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-20. 🎊

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

  16. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    @hungvu193 @trjExpensify @hungvu193 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]

  17. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  18. huult commented on Dec 13, 2024

    @huult
    Contributor

    I tried to revert my pull request, but the crash issue still occurred. I think it’s not related to this ticket.

    Screen.Recording.2024-12-14.at.01.21.22.mp4
  19. moved this from Bugs and Follow Up Issues to Hold for Payment in #expensify-bugson Dec 17, 2024
  20. trjExpensify commented on Dec 19, 2024

    @trjExpensify
    Contributor

    👋 @hungvu193 let's get the checklist for tomorrow!

  21. hungvu193 commented on Dec 20, 2024

    @hungvu193
    Contributor

    BugZero Checklist:

    • [Contributor] 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 (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] 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/38755/files#r1893451474

    • [Contributor] 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

    • [Contributor] 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.

    Regression Test Proposal

    Test:

    1. Login with any account.
    2. Go to any chat report.
    3. Click emoji icon to open the emoji picker.
    4. Click on emoji picker search input
    5. Verify that user can dismiss the emoji picker by pressing the top space.

    Do we agree 👍 or 👎

  22. added
    Daily
    and removed
    Weekly
    on Dec 20, 2024
  23. trjExpensify commented on Dec 20, 2024

    @trjExpensify
    Contributor

    Thanks! This was caught with this existing regression test for the emoji picker, so I think we're good on a standalone test.

    Payment summary as follows:

    • $125 to @hungvu193 for the c+ review (go ahead and request!)
    • $125 to @huult for the PR

    Paid, closing!

  24. moved this from Hold for Payment to Done in #expensify-bugson Dec 20, 2024
  25. garrettmknight commented on Jan 7, 2025

    @garrettmknight
    Contributor

    $125 approved for @hungvu193

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions