Skip to content

Commit

Permalink
feat(console,phrases): add bring your ui quota item to pricing table
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao committed Jul 19, 2024
1 parent 216859a commit add09db
Show file tree
Hide file tree
Showing 36 changed files with 396 additions and 113 deletions.
2 changes: 1 addition & 1 deletion packages/connectors/connector-logto-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"access": "public"
},
"devDependencies": {
"@logto/cloud": "0.2.5-a7eedce",
"@logto/cloud": "0.2.5-3b703da",
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@fontsource/roboto-mono": "^5.0.0",
"@jest/types": "^29.5.0",
"@logto/cloud": "0.2.5-a7eedce",
"@logto/cloud": "0.2.5-3b703da",
"@logto/connector-kit": "workspace:^4.0.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/console/src/consts/quota-item-phrases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const quotaItemPhrasesMap: Record<
ssoEnabled: 'sso_enabled.name',
tenantMembersLimit: 'tenant_members_limit.name',
customJwtEnabled: 'custom_jwt_enabled.name',
subjectTokenEnabled: 'impersonation_enabled.name',
bringYourUiEnabled: 'bring_your_ui_enabled.name',
};

export const quotaItemUnlimitedPhrasesMap: Record<
Expand Down Expand Up @@ -56,6 +58,8 @@ export const quotaItemUnlimitedPhrasesMap: Record<
ssoEnabled: 'sso_enabled.unlimited',
tenantMembersLimit: 'tenant_members_limit.unlimited',
customJwtEnabled: 'custom_jwt_enabled.unlimited',
subjectTokenEnabled: 'impersonation_enabled.unlimited',
bringYourUiEnabled: 'bring_your_ui_enabled.unlimited',
};

export const quotaItemLimitedPhrasesMap: Record<
Expand Down Expand Up @@ -84,6 +88,8 @@ export const quotaItemLimitedPhrasesMap: Record<
ssoEnabled: 'sso_enabled.limited',
tenantMembersLimit: 'tenant_members_limit.limited',
customJwtEnabled: 'custom_jwt_enabled.limited',
subjectTokenEnabled: 'impersonation_enabled.limited',
bringYourUiEnabled: 'bring_your_ui_enabled.limited',
};

export const quotaItemNotEligiblePhrasesMap: Record<
Expand Down Expand Up @@ -112,4 +118,6 @@ export const quotaItemNotEligiblePhrasesMap: Record<
ssoEnabled: 'sso_enabled.not_eligible',
tenantMembersLimit: 'tenant_members_limit.not_eligible',
customJwtEnabled: 'custom_jwt_enabled.not_eligible',
subjectTokenEnabled: 'impersonation_enabled.not_eligible',
bringYourUiEnabled: 'bring_your_ui_enabled.not_eligible',
};
2 changes: 2 additions & 0 deletions packages/console/src/consts/tenants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export const defaultSubscriptionPlan: SubscriptionPlan = {
thirdPartyApplicationsLimit: null,
tenantMembersLimit: null,
customJwtEnabled: true,
subjectTokenEnabled: true,
bringYourUiEnabled: true,
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function PlanComparisonTable() {
// UI and branding
const customDomain = t('branding.custom_domain');
const customCss = t('branding.custom_css');
const bringYourUi = t('branding.bring_your_ui');
const appLogoAndFavicon = t('branding.logo_and_favicon');
const darkMode = t('branding.dark_mode');
const i18n = t('branding.i18n');
Expand Down Expand Up @@ -186,6 +187,7 @@ function PlanComparisonTable() {
{ name: appLogoAndFavicon, data: ['✓', '✓', '✓'] },
{ name: darkMode, data: ['✓', '✓', '✓'] },
{ name: i18n, data: ['✓', '✓', '✓'] },
{ name: bringYourUi, data: ['-', '✓', '✓'] },
],
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'Benutzerdefiniertes JWT',
not_eligible: 'Remove your JWT claims customizer',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'Benutzeroberfläche und Branding',
custom_domain: 'Benutzerdefinierte Domain',
custom_css: 'Benutzerdefiniertes CSS',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'Dunkler Modus',
i18n: 'Internationalisierung',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,18 @@ const quota_item = {
unlimited: 'Custom JWT',
not_eligible: 'Remove your JWT claims customizer',
},
impersonation_enabled: {
name: 'Impersonation',
limited: 'Impersonation',
unlimited: 'Impersonation',
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
name: 'Bring your UI',
limited: 'Bring your UI',
unlimited: 'Bring your UI',
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const quota_table = {
custom_domain: 'Custom domain',
custom_css: 'Custom CSS',
logo_and_favicon: 'Logo and favicon',
bring_your_ui: 'Bring your UI',
dark_mode: 'Dark mode',
i18n: 'Internationalization',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'JWT personalizado',
not_eligible: 'Elimine su personalizador de reclamos JWT',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'Interfaz de usuario y branding',
custom_domain: 'Dominio personalizado',
custom_css: 'CSS personalizado',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'Modo oscuro',
i18n: 'Internacionalización',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'Custom JWT',
not_eligible: 'Remove your JWT claims customizer',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'Interface utilisateur et branding',
custom_domain: 'Domaine personnalisé',
custom_css: 'CSS personnalisé',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'Mode sombre',
i18n: 'Internationalisation',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'JWT personalizzato',
not_eligible: 'Rimuovi il tuo personalizzatore di claim JWT',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'UI e branding',
custom_domain: 'Dominio personalizzato',
custom_css: 'CSS personalizzato',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'Modalità scura',
i18n: 'Internazionalizzazione',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'カスタムJWT',
not_eligible: 'JWTクレームカスタマイザーを削除してください',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'UIとブランディング',
custom_domain: 'カスタムドメイン',
custom_css: 'カスタムCSS',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'ダークモード',
i18n: '国際化',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: '사용자 정의 JWT',
not_eligible: '사용자 정의 JWT 클레임 사용자를 제거하십시오',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'UI 및 브랜딩',
custom_domain: '사용자 정의 도메인',
custom_css: '사용자 정의 CSS',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: '다크 모드',
i18n: '국제화',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'Niestandardowy JWT',
not_eligible: 'Usuń swoje niestandardowe narzędzie tworzące JWT',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'Interfejs użytkownika i branding',
custom_domain: 'Domena niestandardowa',
custom_css: 'Niestandardowy CSS',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'Tryb ciemny',
i18n: 'Internacjonalizacja',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@ const quota_item = {
unlimited: 'JWT personalizado',
not_eligible: 'Remova seu personalizador de declarações JWT',
},
impersonation_enabled: {
// UNTRANSLATED
name: 'Impersonation',
// UNTRANSLATED
limited: 'Impersonation',
// UNTRANSLATED
unlimited: 'Impersonation',
// UNTRANSLATED
not_eligible: 'No impersonation allowed',
},
bring_your_ui_enabled: {
// UNTRANSLATED
name: 'Bring your UI',
// UNTRANSLATED
limited: 'Bring your UI',
// UNTRANSLATED
unlimited: 'Bring your UI',
// UNTRANSLATED
not_eligible: 'Remove your custom UI assets',
},
};

export default Object.freeze(quota_item);
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const quota_table = {
title: 'Interface de usuário e branding',
custom_domain: 'Domínio personalizado',
custom_css: 'CSS personalizado',
// UNTRANSLATED
bring_your_ui: 'Bring your UI',
dark_mode: 'Modo escuro',
i18n: 'Internacionalização',
},
Expand Down
Loading

0 comments on commit add09db

Please sign in to comment.