-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-08-01] [$1000] Web – 2FA - The copy icon placed in "copy code" button is clicked, the icon remains in a hovered state. #21673
Comments
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.If the user hovers out when the What is the root cause of that problem?In PressableWithDelayToggle, the hover state does not update because the pressable hit-box moves from underneath the mouse when the text changes length (to Copied!). This is because the browser updates the hover state on mousemove, if the component itself moves it will not be triggered. What changes do you think we should make in order to solve the problem?Move the Text to be inside the Pressable component and modify the styles so the icon changes when the user hovers the button itself, then it will respond properly when hovering regardless of the content position. This is the expected behaviour for buttons, whereas at the moment only the icon responds to hover. What alternative solutions did you explore? (Optional)None |
Was able to recreate this as well, so getting eyes on the proposal 👍 |
Job added to Upwork: https://www.upwork.com/jobs/~01827743d082c5b93a |
Current assignee @CortneyOfstad is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
@abdulrahuman5196 Any thoughts on the proposal above? |
@Ollyws I am not sure if i am understanding the proposal correctly.
How is text blocking the hover updates on the different child inside |
@abdulrahuman5196 This means when the icon changes position when the text changes the hoverout is never triggered. Essentially my proposal is to put all of the content, text and icon inside the pressable component so firstly, the icon is highlighted when we hover the button itself and also that the hoverout will always respond regardless of the position of the icon. Making the hitbox for the hover effect the entire button essentially, as is the case with most buttons. (this will also require a couple of minor css changes to deal with padding) The result would look like this: button_expl.mp4 |
@Ollyws I agree on this. it weird that while only hovering the icon it goes to hover state, it should be in hover state even if we go over the text. @CortneyOfstad Kindly correct me if wrong, if the expectation is to show the hover state when only we go over the icon not the icon text. But regardless, the current issue is that the hover state itself is not updated correctly leading to the copy icon being in hovered state. Could you mention why do you think both are related? Why does the hover provide wrong results when hovered over the icon(which is the root cause actually). |
@abdulrahuman5196 I believe you are correct that the hover state should be when we go over all text 👍 |
@abdulrahuman5196 As far as I can see the hover state does not update because the pressable hit-box moves from underneath the mouse when the text changes length (to I think this is because the browser updates the hover state on mousemove, if the component itself moves it will not be triggered. |
Heading OoO for the week (back July 10) so re-assigning this in the meantime 👍 |
Triggered auto assignment to @maddylewis ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
@maddylewis, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
this was assigned to me while i was out of office - reviewing today. |
@arosiclair, @Ollyws, @maddylewis, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
To-dos:
|
@abdulrahuman5196 - will you provide an update on this one? are we waiting for the fix to be deployed? #22430 (comment) once the fix is live, do we need to wait for the 7-day regression period before issuing payment? lmk - thanks! |
will you provide an update on this one? are we waiting for the fix to be deployed? The fix was merged yesterday. And waiting for prod deployment once the fix is live, do we need to wait for the 7-day regression period before issuing payment? Yes |
@maddylewis offer accepted with thanks. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-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-08-01. 🎊 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:
|
moving to daily since payment date is coming up. |
This is not a regression. The component has been this way with PressableWithDelayToggle.js
This is corner case. So regression test wouldn't be benificial here. |
PaymentsOutlined here - #21673 (comment)
|
@maddylewis refunded |
@maddylewis Done |
thanks! |
thanks! |
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:
The copy icon should not remain in a hovered position when the "copy code" button is clicked.
Actual Result:
The copy icon should not remain in a hovered position when the "copy code" button is clicked until the cursor is placed over it and then moved away.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.31-2
Reproducible in staging?: y
Reproducible in production?: y
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
Bug.18.mp4
Desktop.2023.06.26.-.17.03.34.02.mp4
Expensify/Expensify Issue URL:
Issue reported by: @usmantariq96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687498320311389
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: