Skip to content

Commit

Permalink
Remove signup/design-picker-preview feature flags (#98532)
Browse files Browse the repository at this point in the history
  • Loading branch information
taipeicoder authored Jan 17, 2025
1 parent 65ba090 commit 431a8dd
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 15 deletions.
2 changes: 0 additions & 2 deletions config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions config/horizon.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions config/production.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions config/stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions config/wpcalypso.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 2 additions & 5 deletions packages/design-preview/src/hooks/use-screens.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { isEnabled } from '@automattic/calypso-config';
import { isDefaultGlobalStylesVariationSlug } from '@automattic/design-picker';
import {
GlobalStylesVariations,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 431a8dd

Please sign in to comment.