-
Notifications
You must be signed in to change notification settings - Fork 3k
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-27] [$1000] Chat - Hover state is shown on long hold of an emoji on emoji picker pop over #24654
Comments
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Holding down the emoji item for a long time will leave a highlighted effect on the emoji. What is the root cause of that problem?When we hold a focusable element, it will trigger
To remove the focus, we can click/press anywhere and it will trigger App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 511 to 517 in 0bdf183
On the web, even though we can focus the emoji by holding it down too, this didn't happen because we have App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 503 to 508 in 0bdf183
What changes do you think we should make in order to solve the problem?To also solve this issue on mWeb, we can rely on
I think we can think of onPressOut as the equivalent of onHoverOut in this case. Technically the emoji item is not blurred, so I think calling onBlur is not correct |
Job added to Upwork: https://www.upwork.com/jobs/~01efcb634d262da535 |
Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new. |
Oops, sorry I somehow missed this but have triaged now! |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Hover state appears when long pressing an emoji in emoji picker popover What is the root cause of that problem?Whenever onLongPress event occurs, a short haptic feedback event also occurs. : This is a known issue in react-native-web. And we have style of an emoji App/src/components/EmojiPicker/EmojiPickerMenuItem/index.js Lines 74 to 79 in 3892292
Because of the above known issue, when long pressing a That's why when we long-pressing an emoji, hover state is shown. What changes do you think we should make in order to solve the problem?We have a workaround for this To apply this, replace the below line
with
And to prioritize the pressing effect, move this line
below this line
This works as expected Note: We might need to add Result24654.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When you press and hold, the icon below becomes highlighted. What is the root cause of that problem?We have logic to avoid issues when scrolling about onHoverOut we need to add same logic for mobile with onPressOut What changes do you think we should make in order to solve the problem?We need to add the logic of onHoverOut to onPressOut , set highlightedIndex=-1 when arePointersEventsDisabled is false. What alternative solutions did you explore? (Optional) |
@allroundexperts, @zanyrenney Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
hey @allroundexperts what do you think of the proposal above from @TTaro ? |
I think the expected behavior is that pressing effect should last until press out. |
@bernhardoj With your solution, it seems like the hover would be lost on long press. See the video below: Screen.Recording.2023-08-28.at.12.50.55.AM.movI think this is not consistent with how it is behaving on desktop web. On desktop web, following happens: Screen.Recording.2023-08-28.at.12.53.01.AM.mov@s-alves10 your proposal makes the behaviour more consistent and as such, I think your approach is better. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allroundexperts that is consistent with all buttons on Android mWeb. My solution fixes the issue we have here and @s-alves10 extends mine by also including the fix to this issue which happens on all buttons and I think is out-of-scope of this issue. If we still going forward with the extended fix, then I think it would be fair if I get compensation for this issue too. What do you think? cc: @bondydaa |
@bernhardoj I think we can split up the compensation. Collaborative work is always better! @bondydaa can make the final call though. |
I understood that the expected behavior is to keep the press state until pressing out and this is totally different than your solution. I was not adding something to your solution. Anyway, let's wait for @bondydaa |
@allroundexperts please can you review my proposal ?? Many thanks !! |
PR is ready for review |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 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-27. 🎊 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:
|
payment summary - (no urgency bonuses applied) |
@s-alves10 have invited you to the job. please accept so we can close this out. |
Accepted |
All that can be paid, paid. @allroundexperts please request in ND. |
Requested! |
Need a payment amount in the BZ summary for @allroundexperts before I can issue payment. |
@zanyrenney Can you please look into this? 🙇 |
Updated, thank you! |
$1,000 payment approved for @allroundexperts based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Hover state should not be visible on mWeb for long hold
Actual Result:
Hover state is being shown for long hold
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.54.11
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
Screen_Recording_20230807_212804_Chrome.mp4
Record_2023-08-16-23-01-44.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691432854348509
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: