Skip to content

Commit 80ddb69

Browse files
authored
refactor(console): update pro plan featured sku items (#7711)
update the content of the pro plan featured sku items in the tenant creation modal
1 parent 73eba4f commit 80ddb69

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/SkuCardItem/FeaturedSkuContent/use-featured-sku-content.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { cond } from '@silverhand/essentials';
33
import { useMemo } from 'react';
44
import { useTranslation } from 'react-i18next';
55

6+
import { isDevFeaturesEnabled } from '@/consts/env';
67
import {
78
freePlanAuditLogsRetentionDays,
89
freePlanM2mLimit,
@@ -47,7 +48,7 @@ const useFeaturedSkuContent = (skuId: string) => {
4748
isAvailable: true,
4849
},
4950
{
50-
title: t('third_party_apps'),
51+
title: t(isDevFeaturesEnabled ? 'saml_and_third_party_apps' : 'third_party_apps'),
5152
isAvailable: !isFreePlan,
5253
},
5354
{
@@ -59,15 +60,17 @@ const useFeaturedSkuContent = (skuId: string) => {
5960
isAvailable: !isFreePlan,
6061
},
6162
{
62-
title: t(`role_and_permissions.${planPhraseKey}`, {
63-
...cond(
64-
isFreePlan && {
65-
roleCount: freePlanRoleLimit,
66-
permissionCount: freePlanPermissionsLimit,
67-
}
68-
),
69-
}),
70-
isAvailable: true,
63+
title: isDevFeaturesEnabled
64+
? t('rbac')
65+
: t(`role_and_permissions.${planPhraseKey}`, {
66+
...cond(
67+
isFreePlan && {
68+
roleCount: freePlanRoleLimit,
69+
permissionCount: freePlanPermissionsLimit,
70+
}
71+
),
72+
}),
73+
isAvailable: isDevFeaturesEnabled ? !isFreePlan : true,
7174
},
7275
{
7376
title: t('organizations'),

packages/phrases/src/locales/en/translation/admin-console/upsell/featured-plan-content.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ const featured_plan_content = {
77
free_plan: '{{count, number}} machine-to-machine',
88
pro_plan: 'Additional machine-to-machine',
99
},
10+
saml_and_third_party_apps: 'SAML apps & third-party apps',
1011
third_party_apps: 'IdP for third-party applications',
1112
mfa: 'Multi-factor authentication',
1213
sso: 'Enterprise SSO',
1314
role_and_permissions: {
1415
free_plan: '{{roleCount, number}} role and {{permissionCount, number}} permission per role',
1516
pro_plan: 'Unlimited roles and permissions per role',
1617
},
18+
rbac: 'Role-based access control',
1719
organizations: 'Organizations',
1820
audit_logs: 'Audit logs retention: {{count, number}} days',
1921
};

0 commit comments

Comments
 (0)