Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Sky GF: Add AI Copy to big sky plans step #99127

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/calypso-products/src/constants/feature-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ export const FEATURE_GROUP_INSTALL_PLUGINS = 'feature-group-install-plugins';
export const FEATURE_GROUP_PERFORMANCE = 'feature-group-performance';
export const FEATURE_GROUP_THEMES = 'feature-group-themes';
export const FEATURE_GROUP_WOO = 'feature-group-woo';
export const FEATURE_GROUP_BIG_SKY = 'feature-group-big-sky';
1 change: 1 addition & 0 deletions packages/calypso-products/src/constants/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,4 @@ export const FEATURE_WOO_AUTOMATE = 'feature-woo-automate';
export const FEATURE_GOOGLE_LISTING_ADS = 'feature-google-listing-ads';
export const FEATURE_CONNECT_ANALYTICS = 'feature-connect-analytics';
export const FEATURE_LIMITED_SITE_ACTIVITY_LOG = 'feature-limited-site-activity-log';
export const FEATURE_BIG_SKY_WEBSITE_BUILDER = 'feature-big-sky-website-builder';
9 changes: 9 additions & 0 deletions packages/calypso-products/src/feature-group-plan-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ import {
FEATURE_CONNECT_ANALYTICS,
FEATURE_GROUP_DEV_TOOLS,
FEATURE_UNLTD_SOCIAL_MEDIA_JP,
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_GROUP_BIG_SKY,
} from './constants';
import { FeatureGroupMap } from './types';

Expand Down Expand Up @@ -374,11 +376,17 @@ export const featureGroups: Partial< FeatureGroupMap > = {
WPCOM_FEATURES_PREMIUM_THEMES_LIMITED,
],
},
[ FEATURE_GROUP_BIG_SKY ]: {
slug: FEATURE_GROUP_BIG_SKY,
getTitle: () => null,
getFeatures: () => [ FEATURE_BIG_SKY_WEBSITE_BUILDER ],
},
[ FEATURE_GROUP_ENTITIES ]: {
slug: FEATURE_GROUP_ENTITIES,
getTitle: () => null,
getFeatures: () => [ FEATURE_UNLIMITED_ENTITIES ],
},

[ FEATURE_GROUP_ADS ]: {
slug: FEATURE_GROUP_ADS,
getTitle: () => null,
Expand Down Expand Up @@ -424,6 +432,7 @@ export function resolveFeatureGroupsForFeaturesGrid( {
if ( showSimplifiedFeatures ) {
return {
[ FEATURE_GROUP_STORAGE ]: featureGroups[ FEATURE_GROUP_STORAGE ],
[ FEATURE_GROUP_BIG_SKY ]: featureGroups[ FEATURE_GROUP_BIG_SKY ],
[ FEATURE_GROUP_ENTITIES ]: featureGroups[ FEATURE_GROUP_ENTITIES ],
[ FEATURE_GROUP_DOMAIN ]: featureGroups[ FEATURE_GROUP_DOMAIN ],
[ FEATURE_GROUP_ADS ]: featureGroups[ FEATURE_GROUP_ADS ],
Expand Down
7 changes: 7 additions & 0 deletions packages/calypso-products/src/features-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ import {
FEATURE_WOO_AUTOMATE,
FEATURE_CONNECT_ANALYTICS,
FEATURE_LIMITED_SITE_ACTIVITY_LOG,
FEATURE_BIG_SKY_WEBSITE_BUILDER,
} from './constants';
import type { FeatureList } from './types';

Expand Down Expand Up @@ -2630,6 +2631,12 @@ const FEATURES_LIST: FeatureList = {
},
/* END: Sensei Features */

[ FEATURE_BIG_SKY_WEBSITE_BUILDER ]: {
getSlug: () => FEATURE_BIG_SKY_WEBSITE_BUILDER,
getTitle: () => i18n.translate( 'Unlimited AI Website Builder edits' ),
getDescription: () => i18n.translate( 'Build your site with our AI Website Builder.' ),
},

[ FEATURE_UNLIMITED_ENTITIES ]: {
getSlug: () => FEATURE_UNLIMITED_ENTITIES,
getTitle: () => i18n.translate( 'Unlimited pages, posts, users, and visitors' ),
Expand Down
7 changes: 7 additions & 0 deletions packages/calypso-products/src/plans-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ import {
JETPACK_TAG_FOR_BLOGGERS,
FEATURE_CONNECT_ANALYTICS,
FEATURE_JETPACK_SOCIAL_V1_MONTHLY,
FEATURE_BIG_SKY_WEBSITE_BUILDER,
} from './constants';
import { isGlobalStylesOnPersonalEnabled } from './is-global-styles-on-personal-enabled';
import {
Expand Down Expand Up @@ -792,6 +793,7 @@ const getPlanPersonalDetails = (): IncompleteWPcomPlan => ( {
},
get2023PricingGridSignupWpcomFeatures: () => {
const baseFeatures = [
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_UNLIMITED_ENTITIES,
FEATURE_CUSTOM_DOMAIN,
FEATURE_AD_FREE_EXPERIENCE,
Expand Down Expand Up @@ -858,6 +860,7 @@ const getPlanPersonalDetails = (): IncompleteWPcomPlan => ( {
],
getCheckoutFeatures: () => {
const baseFeatures = [
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_CUSTOM_DOMAIN,
FEATURE_AD_FREE_EXPERIENCE,
FEATURE_FAST_DNS,
Expand Down Expand Up @@ -1363,6 +1366,7 @@ const getPlanPremiumDetails = (): IncompleteWPcomPlan => ( {
].filter( isValueTruthy ),
get2023PricingGridSignupWpcomFeatures: () => {
return [
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_UNLIMITED_ENTITIES,
FEATURE_CUSTOM_DOMAIN,
FEATURE_AD_FREE_EXPERIENCE,
Expand All @@ -1383,6 +1387,7 @@ const getPlanPremiumDetails = (): IncompleteWPcomPlan => ( {
];
},
getCheckoutFeatures: () => [
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_CUSTOM_DOMAIN,
FEATURE_FAST_SUPPORT_FROM_EXPERTS,
WPCOM_FEATURES_PREMIUM_THEMES_UNLIMITED,
Expand Down Expand Up @@ -1532,6 +1537,7 @@ const getPlanBusinessDetails = (): IncompleteWPcomPlan => ( {
].filter( isValueTruthy ),
get2023PricingGridSignupWpcomFeatures: () => {
return [
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_UNLIMITED_ENTITIES,
FEATURE_CUSTOM_DOMAIN,
FEATURE_AD_FREE_EXPERIENCE,
Expand Down Expand Up @@ -1575,6 +1581,7 @@ const getPlanBusinessDetails = (): IncompleteWPcomPlan => ( {
];
},
getCheckoutFeatures: () => [
FEATURE_BIG_SKY_WEBSITE_BUILDER,
FEATURE_CUSTOM_DOMAIN,
FEATURE_PLUGINS_THEMES,
FEATURE_BANDWIDTH,
Expand Down
2 changes: 2 additions & 0 deletions packages/calypso-products/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import {
FEATURE_GROUP_CUSTOMIZE_STYLE,
FEATURE_GROUP_CUSTOM_PLUGINS,
FEATURE_GROUP_DEV_TOOLS,
FEATURE_GROUP_BIG_SKY,
} from './constants';
import { PriceTierEntry } from './get-price-tier-for-units';
import type { TranslateResult } from 'i18n-calypso';
Expand Down Expand Up @@ -264,6 +265,7 @@ export type FeatureGroupSlug =
| typeof FEATURE_GROUP_CUSTOMIZE_STYLE
| typeof FEATURE_GROUP_DOMAIN
| typeof FEATURE_GROUP_ENTITIES
| typeof FEATURE_GROUP_BIG_SKY
| typeof FEATURE_GROUP_PERFORMANCE
| typeof FEATURE_GROUP_THEMES
| typeof FEATURE_GROUP_WOO
Expand Down