-
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
Tooltip functionality behaving weird for the copy to clipboard #17286
Conversation
@tgolen @thesahindia One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
It's EOD for me. I will review it tomorrow! |
I have read the CLA Document and I hereby sign the CLA |
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not tested or gone through the checklist, but the code looks good! I'll leave the rest to @thesahindia.
Look like we got a little bit confused. The OG issue has nothing to do with multiple clicks (the post wasn't accurate). It can be easily reproduced by clicking one time, we just have to keep our cursor on the clipboard icon. BTW sometimes it works just fine. Here's a slowed down vid of the issue- Screen.Recording.2023-04-12.at.5.14.33.PM.movThis is what we want- Screen.Recording.2023-04-12.at.5.21.28.PM.movcc: @hasebsiddiqui |
I understand your point now, but the main focus of the issue was on multiple clicks. And there was also the issue of the label returning back to its previous state i.e. "Copy to clipboard" in case of multiple clicks. So my proposal and the PR effort were spent on fixing that. |
Yeah it was confusing I was confused myself. Do you have a fix for the above issue? |
@thesahindia No I don't have fix for above issue. But I think I should be paid for this one because I managed to provide the solution according to the issue statement. If not for this issue then may be create an other issue for multiple clicks problem and assign this PR to that issue? |
@tgolen, how should we proceed? |
I'd personally like to see if @hasebsiddiqui would try fixing both issues in this PR. I know it's a slight increase of scope from what was agreed upon in the issue, but the additional problem only surfaced once the PR was written. The new problem is so closely related that I think fixing it in this PR would be ideal. IF @hasebsiddiqui finds out that the root cause of this new problem is significantly difficult to fix and will take significantly more time to fix, then I think we can either:
|
I have already found the cause of the problem. The problem is in
Video: Screen.Recording.2023-04-13.at.6.15.29.PM.movIf I comment the last line in this function that sets Screen.Recording.2023-04-13.at.6.16.20.PM.movI am unable to figure out how to calculate width for tooltip correctly without setting So, I believe this requires significant more effort in solving than the original scope. Also since the issue is in Tooltip component instead of the "details" section so it will require a lot more testing after fixing to check tooltip behaves correctly everywhere in app. Although I managed to find the source of problem but I am unable to fix it. So I would prefer to create a new issue for this. Thanks. |
OK, thank you for investigating it. I agree with you that this seems like having a new GH issue opened for it would be a good idea. |
@thesahindia Let me know if there is anything remaining from my side to get this PR merged. Thanks. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-14.at.4.00.24.AM.movMobile Web - ChromeScreen.Recording.2023-04-14.at.3.58.08.AM.movMobile Web - SafariScreen.Recording.2023-04-14.at.3.53.58.AM.movDesktopScreen.Recording.2023-04-14.at.4.02.48.AM.moviOSScreen.Recording.2023-04-14.at.3.52.19.AM.movAndroidScreen.Recording.2023-04-14.at.3.56.21.AM.mov |
@tgolen, please re-run the checks. |
OK, we are all good here. Gonna merge it. |
Can one of you please be sure to report the other bug that was found? |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.1-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/tgolen in version: 1.3.1-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.1-3 🚀
|
@tgolen @CortneyOfstad PR is ready for review.
Details
Tooltip functionality for the "copy to clipboard" feature in the "details" section behaves weird if clicked multiple times.
Fixed Issues
$ #17182
PROPOSAL: #17182 (comment)
Tests
Offline tests
QA Steps
Expected Result
The tooltip should work smoothly and not shake, even if the "copy to clipboard" feature is clicked multiple times.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2023-04-11.at.11.07.17.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-04-11.at.11.14.51.PM.mov
Mobile Web - Safari
Screen.Recording.2023-04-11.at.11.16.50.PM.mov
Desktop
Screen.Recording.2023-04-11.at.11.19.47.PM.mov
iOS
Screen.Recording.2023-04-12.at.12.01.40.AM.mov
Android
Screen.Recording.2023-04-11.at.11.54.04.PM.mov