From c2d21452e23f961408bea82f84b4e1e0b7dd2d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Mon, 26 Feb 2024 10:15:02 +0100 Subject: [PATCH] [CYS] Update footer and homepage copy (#44800) * Update assembler sidebar link when no AI available * Update the sidebar section title depending on the flow * Revert unnecessary changes * Add changefile(s) from automation for the following project(s): woocommerce * Add missing text domain * Fix test * Tweak the footer section copy * Update the design homepage section description * Chage footer description only on Core * Add changefile(s) from automation for the following project(s): woocommerce * Update copy * Fix code duplication --------- Co-authored-by: github-actions --- .../sidebar-navigation-screen-footer.tsx | 54 ++++++++++--------- .../sidebar-navigation-screen-homepage.tsx | 4 +- .../44800-update-footer-homepage-copy | 4 ++ 3 files changed, 35 insertions(+), 27 deletions(-) create mode 100644 plugins/woocommerce/changelog/44800-update-footer-homepage-copy diff --git a/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-footer.tsx b/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-footer.tsx index 04be602ea91f3..4f4b709459296 100644 --- a/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-footer.tsx +++ b/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-footer.tsx @@ -102,36 +102,40 @@ export const SidebarNavigationScreenFooter = () => { ? __( 'Change your footer', 'woocommerce' ) : __( 'Choose your footer', 'woocommerce' ); + const description = aiOnline + ? __( + "Select a new footer from the options below. Your footer includes your site's secondary navigation and will be added to every page. You can continue customizing this via the Editor.", + 'woocommerce' + ) + : __( + "Select a footer from the options below. Your footer includes your site's secondary navigation and will be added to every page. You can continue customizing this via the Editor later.", + 'woocommerce' + ); + return ( Editor.", - 'woocommerce' + description={ createInterpolateElement( description, { + EditorLink: ( + { + recordEvent( + 'customize_your_store_assembler_hub_editor_link_click', + { + source: 'footer', + } + ); + window.open( + `${ ADMIN_URL }site-editor.php`, + '_blank' + ); + return false; + } } + href="" + /> ), - { - EditorLink: ( - { - recordEvent( - 'customize_your_store_assembler_hub_editor_link_click', - { - source: 'footer', - } - ); - window.open( - `${ ADMIN_URL }site-editor.php`, - '_blank' - ); - return false; - } } - href="" - /> - ), - } - ) } + } ) } content={ <>
diff --git a/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-homepage.tsx b/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-homepage.tsx index 983088042edd7..ea6f1ef371a64 100644 --- a/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-homepage.tsx +++ b/plugins/woocommerce-admin/client/customize-store/assembler-hub/sidebar/sidebar-navigation-screen-homepage.tsx @@ -100,14 +100,14 @@ export const SidebarNavigationScreenHomepage = () => { const title = aiOnline ? __( 'Change your homepage', 'woocommerce' ) - : __( 'Design your homepage', 'woocommerce' ); + : __( 'Choose your homepage', 'woocommerce' ); const sidebarMessage = aiOnline ? __( 'Based on the most successful stores in your industry and location, our AI tool has recommended this template for your business. Prefer a different layout? Choose from the templates below now, or later via the Editor.', 'woocommerce' ) : __( - 'Based on the most successful stores, we recommend this layout for your business. Prefer something different? Choose from the templates below now, or continue customizing this page, including the content, later via the Editor.', + 'Create an engaging homepage by selecting one of our pre-designed layouts. You can continue customizing this page, including the content, later via the Editor.', 'woocommerce' ); diff --git a/plugins/woocommerce/changelog/44800-update-footer-homepage-copy b/plugins/woocommerce/changelog/44800-update-footer-homepage-copy new file mode 100644 index 0000000000000..6d800cd424fa4 --- /dev/null +++ b/plugins/woocommerce/changelog/44800-update-footer-homepage-copy @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +CYS - Updates the footer and homepage sections of the assembler sidebar. \ No newline at end of file