Skip to content

Commit

Permalink
Fix/tooltip for watch time videopress card (#39030)
Browse files Browse the repository at this point in the history
* Fix tooltip title for watch time on videopress card

* changelog

* Make tooltip descriptions shorter
  • Loading branch information
CodeyGuyDylan authored Aug 22, 2024
1 parent 9cf2b4f commit 71503a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ const useTooltipCopy = () => {
const thirtyDayViews = __( '30-Day views', 'jetpack-my-jetpack' );
const yearlyViews = __( 'Yearly views', 'jetpack-my-jetpack' );

const viewsWithPlanTextDay = _n(
'This metric represents the total number of views your video has received on our platform over the past 30 days, comparing it with the performance of the previous 30 days.',
'This metric represents the total number of views your videos have received on our platform over the past 30 days, comparing it with the performance of the previous 30 days.',
videoCount,
const viewsWithPlanTextDay = __(
'This metric shows your total video views over the past 30 days, compared to the previous 30 days.',
'jetpack-my-jetpack'
);
const viewsWithPlanTextYear = _n(
'This metric represents the total number of views your video have received on our platform over the past year.',
'This metric represents the total number of views your videos have received on our platform over the past year.',
videoCount,
const viewsWithPlanTextYear = __(
'This metric shows your total video views over the past year.',
'jetpack-my-jetpack'
);

Expand All @@ -80,7 +76,7 @@ const useTooltipCopy = () => {
};

const watchTimeTextDay = __(
'This metric shows total video viewing time for the last 30 days, comparing it with the performance of the previous 30 days.',
'This metric shows your total video viewing time over the past 30 days, compared to the previous 30 days.',
'jetpack-my-jetpack'
);
const watchTimeTextYear = __(
Expand All @@ -89,7 +85,7 @@ const useTooltipCopy = () => {
);

const watchTime = {
title: period === 'day' ? thirtyDayViews : yearlyViews,
title: __( 'Total time watched', 'jetpack-my-jetpack' ),
text: period === 'day' ? watchTimeTextDay : watchTimeTextYear,
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix tooltip title for videopress card

0 comments on commit 71503a6

Please sign in to comment.