From cf8f04f01b7e03f803b6807cfba6e1ca629d5c27 Mon Sep 17 00:00:00 2001 From: Luiz Kowalski Date: Fri, 2 Aug 2024 18:26:05 -0300 Subject: [PATCH] AI Logo Generator: open logo block extension to production sites (#38696) * Remove the 10% soft-release check * Move the site logo block AI extension from beta to production * Changelog --- .../changelog/update-ai-logo-generator-move-to-production | 4 ++++ .../extensions/extended-blocks/core-site-logo/index.tsx | 4 +--- projects/plugins/jetpack/extensions/index.json | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/update-ai-logo-generator-move-to-production diff --git a/projects/plugins/jetpack/changelog/update-ai-logo-generator-move-to-production b/projects/plugins/jetpack/changelog/update-ai-logo-generator-move-to-production new file mode 100644 index 0000000000000..eb20420fcf5bb --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-ai-logo-generator-move-to-production @@ -0,0 +1,4 @@ +Significance: minor +Type: enhancement + +Jetpack AI: enable the logo block AI logo generator extension in production. diff --git a/projects/plugins/jetpack/extensions/extended-blocks/core-site-logo/index.tsx b/projects/plugins/jetpack/extensions/extended-blocks/core-site-logo/index.tsx index 4e55a89da77eb..8afc764262936 100644 --- a/projects/plugins/jetpack/extensions/extended-blocks/core-site-logo/index.tsx +++ b/projects/plugins/jetpack/extensions/extended-blocks/core-site-logo/index.tsx @@ -149,9 +149,7 @@ const siteLogoEditWithAiComponents = createHigherOrderComponent( BlockEdit => { * @returns {boolean} True if the feature is available. */ function isFeatureAvailable() { - const siteId = parseInt( window?.Jetpack_Editor_Initial_State?.wpcomBlogId ); - - return getFeatureAvailability( SITE_LOGO_BLOCK_AI_EXTENSION ) || siteId % 10 === 0; + return getFeatureAvailability( SITE_LOGO_BLOCK_AI_EXTENSION ); } /** diff --git a/projects/plugins/jetpack/extensions/index.json b/projects/plugins/jetpack/extensions/index.json index 551d3ed6fd8b2..8694d252789aa 100644 --- a/projects/plugins/jetpack/extensions/index.json +++ b/projects/plugins/jetpack/extensions/index.json @@ -68,7 +68,8 @@ "ai-featured-image-generator", "ai-title-optimization", "ai-assistant-experimental-image-generation-support", - "ai-general-purpose-image-generator" + "ai-general-purpose-image-generator", + "ai-assistant-site-logo-support" ], "beta": [ "google-docs-embed", @@ -78,8 +79,7 @@ "videopress/video-chapters", "ai-assistant-backend-prompts", "ai-assistant-extensions-support", - "ai-proofread-breve", - "ai-assistant-site-logo-support" + "ai-proofread-breve" ], "experimental": [ "ai-image", "ai-paragraph" ], "no-post-editor": [