-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2024-12-20] [$125] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji #53218
Comments
Triggered auto assignment to @trjExpensify ( |
Edited by proposal-police: This proposal was edited at 2024-11-27 16:29:55 UTC. ProposalPlease 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.
And for the height, we will set the greater than or equal NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT, which is 300 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/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;
} POCScreen.Recording.2024-11-28.at.22.58.51.movWhat alternative solutions did you explore? (Optional) |
This is pretty minor and specific to a 4+ year old device. Dropping the price. |
Job added to Upwork: https://www.upwork.com/jobs/~021861826366793735200 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Upwork job price has been updated to $125 |
Thanks @huult, I don't think your RCA is correct. I can reproduce this issue on iPhone SE, even when the maxHeight is bigger than actual height. Apply your diff also didn't fix the bug btw. |
Proposal updated
@hungvu193 Sorry, I've updated the RCA and solution. Can you help me check it again? |
@trjExpensify, @hungvu193 Eep! 4 days overdue now. Issues have feelings too... |
Not overdue. I'll re-review this week |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@trjExpensify, @hungvu193 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@hungvu193 thoughts on the proposal? |
I'll rereview this weekend |
Thanks @huult 's proposal here looks good and tests well! 🎀 👀 🎀 |
Triggered auto assignment to @marcaaron, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @huult 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
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:
|
@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] |
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. |
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 |
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.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): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
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:
Screenshots/Videos
Bug6677549_1732663537801.RPReplay_Final1732663095.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: