woocommerce/plugins/woocommerce-admin/client/customize-store/assembler-hub
Patricia Hillebrandt fe0b918058
[CYS on Core] Conditionally change the default fonts available based on user consent (#44532)
* Add upgrade notice for the fonts feature whenever WP is outdateed or the user did not grant us consent.

* Add styles for the woocommerce-customize-store_sidebar-typography-upgrade-notice class.

* Update the upgrade conditionals.

* Introduce the new modal for the user to opt in to usage tracking.

* Add the CSS for the woocommerce-customize-store__opt-in-usage-tracking-modal

* Implement the sendEvent to OptInDataSharing

* Fix typo.

* Make sure the opt in button is disabled if the opt in checkbox is unchecked.

* Update the styles for the woocommerce-customize-store__opt-in-usage-tracking-modal

* Update the styles to allow changes to the link

* Set Cardo + System Sans-serif as the default fonts if the usage tracking wasn't allowed.

* Set Cardo + System Sans-serif as the default fonts if the Font Library is unavailable.

* Add the Jost + Instrument Sans font pairing.

* Update copy for the upgrade notice to remove mentions to Gutenberg.

* Replace the Link component with the Button component.

* Ensure the woocommerce_allow_tracking option is properly updated whenever the user opts in.

* Add the new Inter + Cardo font pairing.

* Redirect user to the loading screen so all relevant fonts can be installed for them.

* Render the FontPairing component only if the isFontLibraryAvailable. Update the link to download the latest version of the core of WordPress.

* update the fontPairings constant.

* Update styles for buttons and links.

* Add changefile(s) from automation for the following project(s): woocommerce

* Make sure the dispatch for updating the option is async so the page redirect is not triggered before the option is saved to the database.

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
2024-02-26 16:01:43 +01:00
..
context Customize your store header (#40107) 2023-09-14 20:24:46 +12:00
hooks Fix: `useEditorBlocks` hook always returns an array (#41874) 2023-12-07 14:41:44 +01:00
onboarding-tour Update the CYS intro modal copy on Core (#44081) 2024-01-30 09:58:51 +01:00
sidebar [CYS on Core] Conditionally change the default fonts available based on user consent (#44532) 2024-02-26 16:01:43 +01:00
auto-block-preview.tsx [WIP] CYS - Core: add integration with the font library (#44004) 2024-02-01 17:16:12 +00:00
block-editor.tsx CYS: fix php warning raise by the Product Collection block (#43546) 2024-01-12 13:44:06 +01:00
block-pattern-list.jsx Improve CYS assembler hub performance (#41453) 2023-11-15 21:06:05 +08:00
block-preview.tsx Fix CYS pattern thumbnail size (#41126) 2023-11-01 19:03:04 +08:00
editor.tsx Try using iframe for loading assembler hub behind the scenes (#40936) 2023-10-26 16:46:50 +08:00
go-back-warning-modal.tsx Show a warning modal when user tries to leave the assember hub (#41596) 2023-11-30 18:23:00 -08:00
iframe.jsx CYS - Core: fix fonts not loaded after the setup (#44550) 2024-02-12 18:33:19 +01:00
index.tsx [CYS - Core] introduce route guards for the AI flow (#43481) 2024-01-11 16:12:41 +01:00
layout.tsx Create a dedicated survey and tracking events for the CYS flow on core (#43862) 2024-01-30 09:58:05 +01:00
logo-block-context.tsx [Customize your store] Fix footer logo size (#40963) 2023-10-25 12:20:42 +08:00
preload-fonts.tsx Core - CYS: fix fonts not loaded on the font picker iframes (#44586) 2024-02-14 10:30:18 +01:00
resizable-frame.jsx [CYS] Fix frame overlap sidebar (#41237) 2023-11-07 10:15:24 +08:00
site-hub.tsx Customize your store - Link site icon to Woo Home (#40888) 2023-10-25 13:09:05 +08:00
style.scss [CYS on Core] Conditionally change the default fonts available based on user consent (#44532) 2024-02-26 16:01:43 +01:00