-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-09-13] [$1000] Emoji - When scrolling with the down arrows, the emoji selection disappears #24471
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When scrolling with the down arrows, the emoji selection disappears What is the root cause of that problem?Currently, we're using
What changes do you think we should make in order to solve the problem?Actually the We can completely remove Add scrollPaddingTop in emoji list's style. {scrollPaddingTop: isFiltered ? 0 : CONST.EMOJI_PICKER_ITEM_HEIGHT} To scroll one row at a time change this and this - this.ref.focus();
+ this.ref.focus({preventScroll: true});
+ this.ref.scrollIntoView({block: 'nearest'}) What alternative solutions did you explore? (Optional)Changing the - NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT: 300,
+ NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT: 256, Or we can change Alternate Solution 2Use the actual height of the emoji picker list, for calculating the scroll offset. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In EmojiPicker, the emoji highlight disappears when scroll with the down arrow What is the root cause of that problem?In order to scroll to the highlighted emoji, we're comparing the highlighted emoji position with
This value is set to 300 now Line 805 in ed2c287
But the height of EmojiPicker's list isn't always same with this value The reasons are:
This includes search input(height: 72), category bar(height: 32), EmojiPicker list, and skintone list(height: 56). EmojiPicker list has style
So the the height of the EmojiPicker list has the same value as
This also affect the height of the EmojiPicker list These are the root causes of this issue What changes do you think we should make in order to solve the problem?We need to know the current height of the EmojiPicker list. In order to do this,
This ensures the height of the EmojiPicker list is same as this value when maxHeight is larger than this.
This works perfect for all cases Result24471.mp4What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~018ba7fbfbb4ccc435 |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Was OOO last week, pushing forward |
Thanks, @DrLoopFall, this seems like a regression to me. Any Idea where this got broken? AFAIK It was working well few months or weeks ago |
Hi @Santhosh-Sellavel, Also, I think we need to remove |
a) Looks like the emoji picker scrolls on its own without needing the |
ProposalPlease re-state the problem that we are trying to solve in this issue.When navigating through the list using the arrow keys and holding down the key, the selected emoji disappears. What is the root cause of that problem?If the arrow key is held down, multiple keyboard events are generated, leading to race issues when calculating the highlighted emoji. What changes do you think we should make in order to solve the problem?1 Add a new property in the constructor 2 In keyDownHandler we can avoid any calculation if IsKeyDownInProgress is true and if keyBoardEvent="ArrowDown" If not we continue and set IsKeyDownInProgress = true 3 As last step of keyDownHandler we change IsKeyDownInProgress = false , so next event can progress |
@kevinksullivan, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Next step is for @Santhosh-Sellavel to review the comment here #24471 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hi @Santhosh-Sellavel can you provide an ETA on when you'll be able to review this?. If it's not till next week I'm going to have to reassign. |
@kevinksullivan @Santhosh-Sellavel this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@s-alves10 I've been trying to find the simplest way to fix the issue. I think @DrLoopFall was the first to understand and solve the root problem. Regarding your proposal, it works, and that's appreciated. However, I'm in favour of removing the scrolling logic by replacing |
📣 @DrLoopFall 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@kevinksullivan @ArekChr @jasperhuangg @DrLoopFall this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@ArekChr @jasperhuangg |
🎯 ⚡️ Woah @ArekChr / @DrLoopFall, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.64-2 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 2023-09-13. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hey @ArekChr please get to the checklist above when you have a chance! |
@DrLoopFall are you Afsar P on upwork? If yes, please accept the offer! And if not, pelase submit an application to the job |
@kevinksullivan Yes, I've accepted the offer. |
Regression Test Proposal
Do we agree 👍 or 👎 |
All set with payments, closing out |
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:
Expected Result:
When scrolling with the down arrows, the emoji highlighting should remain in the user's field of view
Actual Result:
When scrolling with the down arrows, the emoji highlighting disappears, it wilts again after clicking on the other arrows
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.53.1
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
Bug6161613_Recording_emoji.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: