-
Notifications
You must be signed in to change notification settings - Fork 799
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
Add tooltip for installed with no videos #38842
Conversation
9b5c0b7
to
7622e4c
Compare
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
7622e4c
to
c09349a
Compare
@@ -19,7 +19,7 @@ const useVideoPressCardDescription = ( { | |||
if ( isPluginActive && ! videoCount ) { | |||
return preventWidows( | |||
__( | |||
'Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video.', | |||
'Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video', |
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.
The info icon looked weird after a period, let me know if you disagree
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.
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.
This looks pretty good and tested well.
The way you are managing the tooltip copy makes sense to me.
I noticed one grammar error and one bug that I think will be addressed in the base branch. This one seems good to merge into base IMO.
sprintf( | ||
// translators: %d is the number of videos in the Media Library that could benefit from VideoPress. | ||
_n( | ||
'You have %d video in your Media Library that could benefit from VideoPress. Start <a>hosting</a> them today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.', |
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.
In this string: "them" sounds incorrect for the singular.
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.
Nice catch, updating it to "it"
|
||
const viewsWithoutPlan = { | ||
title: __( 'High-quality video, wherever your audience is', 'jetpack-my-jetpack' ), | ||
text: __( 'Success! 🌟 Your video is live and gathering views.', 'jetpack-my-jetpack' ), |
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 think this bug was covered in the other PR, but I am still getting this message with no watch time or views. I think the intent is to omit the stats with 0 views?
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.
Talked about this elsewhere, decided to keep this way 😄
@ilonagl this is the PR where the tooltip comes into play. Let me know if the placements look okay! |
Thank you for the ping, @CodeyGuyDylan! Could we make this text shorter so it fits into two lines? Something like this: "This metric shows total video viewing time for the last 30 days." The info icon placement looks good. It would be best if we could keep them consistent. The rest of them have info icon next to the header, so it would be good to make it like this in this case as well: What about making the header 'Existing videos' and placing the info icon next to it? Other than that, looks great. Thank you for working on this!! |
@elliottprogrammer could we possibly update the info icon placement for the Protect card? |
b848419
to
e97e266
Compare
cd13c12
to
9563f26
Compare
510c733
to
0bd3885
Compare
a3ecd1b
to
8374b91
Compare
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.
Tested functionality works good as described! The code looks overall good to me, I don't see any issues! Just a couple minor comments.
LGTM! 👍
@@ -19,7 +19,7 @@ const useVideoPressCardDescription = ( { | |||
if ( isPluginActive && ! videoCount ) { | |||
return preventWidows( | |||
__( | |||
'Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video.', | |||
'Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video', |
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.
} } | ||
> | ||
<h3>{ watchTime.title }</h3> | ||
|
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.
Nitpick: Unnecessary space here...
Not a blocker, of course. 😉
* Add tooltip for installed with no videos * Add tooltip for inactive with videos * Add tooltips for active states * Add changelog * Update copy * Update tooltip location when videos are present but plugin is inactive * Move info tooltip to heading * Nitpicks
Proposed changes:
Add tooltip for the following states of the videopress card
These tooltips will have to be adjusted when we add the comparison data and when we add context switching between "last 30 days" and "all-time" stats. That will be handled in those individual PRs
Other information:
Jetpack product discussion
P2: p1HpG7-rb7-p2
Does this pull request change what data or activity we track or use?
Yes, there are tracks for all the tooltips onClick, as well as a track when the user clicks a link within one of the tooltips
Testing instructions:
To see the tooltip copy you can look here: tCejO24bAGT2ME7iYEfmuG-fi-6392_3262
hosting
link goes to the right place (https://jetpack.com/support/jetpack-videopress/the-jetpack-videopress-dashboard/#manage-local-videos)Bonus: Test with an active plugin with 0 stats and 1 video. Ensure that we do not imply they are currently gathering views on their video