From 71503a66a966dfeab60c0a6a2ca2cd64179b237b Mon Sep 17 00:00:00 2001 From: Dylan Munson <65001528+CodeyGuyDylan@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:57:57 -0600 Subject: [PATCH] Fix/tooltip for watch time videopress card (#39030) * Fix tooltip title for watch time on videopress card * changelog * Make tooltip descriptions shorter --- .../videopress-card/use-tooltip-copy.ts | 16 ++++++---------- .../fix-tooltip-for-watch-time-videopress-card | 4 ++++ 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 projects/packages/my-jetpack/changelog/fix-tooltip-for-watch-time-videopress-card diff --git a/projects/packages/my-jetpack/_inc/components/product-cards-section/videopress-card/use-tooltip-copy.ts b/projects/packages/my-jetpack/_inc/components/product-cards-section/videopress-card/use-tooltip-copy.ts index 73144664c15ed..c8996a6e5cd73 100644 --- a/projects/packages/my-jetpack/_inc/components/product-cards-section/videopress-card/use-tooltip-copy.ts +++ b/projects/packages/my-jetpack/_inc/components/product-cards-section/videopress-card/use-tooltip-copy.ts @@ -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' ); @@ -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 = __( @@ -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, }; diff --git a/projects/packages/my-jetpack/changelog/fix-tooltip-for-watch-time-videopress-card b/projects/packages/my-jetpack/changelog/fix-tooltip-for-watch-time-videopress-card new file mode 100644 index 0000000000000..0b1448af2178c --- /dev/null +++ b/projects/packages/my-jetpack/changelog/fix-tooltip-for-watch-time-videopress-card @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fix tooltip title for videopress card