You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-12-20] [$125] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji #53218
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
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:
Launch Expensify and Go to any chat
Tap on the emoji icon
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
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
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:
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
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
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:
@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]
[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:
Login with any account.
Go to any chat report.
Click emoji icon to open the emoji picker.
Click on emoji picker search input
Verify that user can dismiss the emoji picker by pressing the top space.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]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[/+]melvin-bot commentedon Nov 27, 2024
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.huult commentedon Nov 27, 2024
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.
App/src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.ts
Line 31 in 9cae202
And for the height, we will set the greater than or equal NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT, which is 300
App/src/styles/utils/index.ts
Lines 929 to 931 in b011c91
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/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)
trjExpensify commentedon Nov 27, 2024
This is pretty minor and specific to a 4+ year old device. Dropping the price.
[-]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[/+]melvin-bot commentedon Nov 27, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021861826366793735200
[-][$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[/+]27 remaining items
melvin-bot commentedon Dec 13, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Dec 13, 2024
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:
melvin-bot commentedon Dec 13, 2024
@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]
melvin-bot commentedon Dec 13, 2024
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.
huult commentedon Dec 13, 2024
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
trjExpensify commentedon Dec 19, 2024
👋 @hungvu193 let's get the checklist for tomorrow!
hungvu193 commentedon Dec 20, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[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:
Do we agree 👍 or 👎
trjExpensify commentedon Dec 20, 2024
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:
Paid, closing!
garrettmknight commentedon Jan 7, 2025
$125 approved for @hungvu193