From 431a8ddba6140b4cc9aaa3e1f129f195999a9c47 Mon Sep 17 00:00:00 2001 From: Griffith Chen Date: Fri, 17 Jan 2025 21:25:32 +0800 Subject: [PATCH] Remove signup/design-picker-preview feature flags (#98532) --- config/development.json | 2 -- config/horizon.json | 2 -- config/production.json | 2 -- config/stage.json | 2 -- config/wpcalypso.json | 2 -- packages/design-preview/src/hooks/use-screens.tsx | 7 ++----- 6 files changed, 2 insertions(+), 15 deletions(-) diff --git a/config/development.json b/config/development.json index a40d0352c9ad2..dc5dbf858993a 100644 --- a/config/development.json +++ b/config/development.json @@ -197,8 +197,6 @@ "settings/security/monitor": true, "sign-in-with-apple": true, "sign-in-with-apple/redirect": true, - "signup/design-picker-preview-colors": true, - "signup/design-picker-preview-fonts": true, "signup/professional-email-step": false, "signup/social": true, "signup/social-first": true, diff --git a/config/horizon.json b/config/horizon.json index 14a5bc984bc24..d7ada2e6015e5 100644 --- a/config/horizon.json +++ b/config/horizon.json @@ -126,8 +126,6 @@ "settings/newsletter-settings-page": true, "settings/security/monitor": true, "sign-in-with-apple": true, - "signup/design-picker-preview-colors": true, - "signup/design-picker-preview-fonts": true, "signup/professional-email-step": false, "signup/social": true, "signup/social-first": true, diff --git a/config/production.json b/config/production.json index 1af94a876854e..0962d7787f0fd 100644 --- a/config/production.json +++ b/config/production.json @@ -167,8 +167,6 @@ "settings/security/monitor": true, "sign-in-with-apple": true, "sign-in-with-apple/redirect": true, - "signup/design-picker-preview-colors": true, - "signup/design-picker-preview-fonts": true, "signup/professional-email-step": false, "signup/social": true, "signup/social-first": true, diff --git a/config/stage.json b/config/stage.json index eecff18e46f2a..d92b77025d025 100644 --- a/config/stage.json +++ b/config/stage.json @@ -164,8 +164,6 @@ "settings/security/monitor": true, "sign-in-with-apple": true, "sign-in-with-apple/redirect": true, - "signup/design-picker-preview-colors": true, - "signup/design-picker-preview-fonts": true, "signup/professional-email-step": false, "signup/social": true, "signup/social-first": true, diff --git a/config/wpcalypso.json b/config/wpcalypso.json index 8f06c3f03be04..266e09eca5f84 100644 --- a/config/wpcalypso.json +++ b/config/wpcalypso.json @@ -161,8 +161,6 @@ "settings/security/monitor": true, "sign-in-with-apple": true, "sign-in-with-apple/redirect": true, - "signup/design-picker-preview-colors": true, - "signup/design-picker-preview-fonts": true, "signup/professional-email-step": false, "signup/social": true, "signup/social-first": true, diff --git a/packages/design-preview/src/hooks/use-screens.tsx b/packages/design-preview/src/hooks/use-screens.tsx index 40b19c16844b7..d36bf31ff3bf9 100644 --- a/packages/design-preview/src/hooks/use-screens.tsx +++ b/packages/design-preview/src/hooks/use-screens.tsx @@ -1,4 +1,3 @@ -import { isEnabled } from '@automattic/calypso-config'; import { isDefaultGlobalStylesVariationSlug } from '@automattic/design-picker'; import { GlobalStylesVariations, @@ -90,8 +89,7 @@ const useScreens = ( { variations.length === 0 && // Disable Colors for themes that don't play well with them. See pbxlJb-4cl-p2 for more context. ! isVirtual && - ! COLOR_VARIATIONS_BLOCK_LIST.includes( stylesheet ) && - isEnabled( 'signup/design-picker-preview-colors' ) && { + ! COLOR_VARIATIONS_BLOCK_LIST.includes( stylesheet ) && { slug: 'color-palettes', checked: !! selectedColorVariation, icon: color, @@ -119,8 +117,7 @@ const useScreens = ( { onSubmit: onScreenSubmit, }, variations && - variations.length === 0 && - isEnabled( 'signup/design-picker-preview-fonts' ) && { + variations.length === 0 && { slug: 'font-pairings', checked: !! selectedFontVariation, icon: typography,