diff --git a/packages/console/src/consts/subscriptions.ts b/packages/console/src/consts/subscriptions.ts index dde19ecbb..600ced967 100644 --- a/packages/console/src/consts/subscriptions.ts +++ b/packages/console/src/consts/subscriptions.ts @@ -1,7 +1,5 @@ import { ReservedPlanId } from '@logto/schemas'; -import { isDevFeaturesEnabled } from './env'; - /** * Shared quota limits between the featured plan content in the `CreateTenantModal` and the `PlanComparisonTable`. */ @@ -25,14 +23,14 @@ export const tokenAddOnUnitPrice = 80; export const hooksAddOnUnitPrice = 2; /* === Add-on unit price (in USD) === */ -// TODO: Remove this dev feature flag when we have the new Pro202411 plan released. /** * In console, only featured plans are shown in the plan selection component. * we will this to filter out the public visible featured plans. */ -export const featuredPlanIds: readonly string[] = isDevFeaturesEnabled - ? Object.freeze([ReservedPlanId.Free, ReservedPlanId.Pro202411]) - : Object.freeze([ReservedPlanId.Free, ReservedPlanId.Pro]); +export const featuredPlanIds: readonly string[] = Object.freeze([ + ReservedPlanId.Free, + ReservedPlanId.Pro202411, +]); /** * The order of plans in the plan selection content component. @@ -47,5 +45,5 @@ export const planIdOrder: Record = Object.freeze({ export const checkoutStateQueryKey = 'checkout-state'; -/** The latest pro plan id we are using. TODO: Remove this when we have the new Pro202411 plan released. */ -export const latestProPlanId = isDevFeaturesEnabled ? ReservedPlanId.Pro202411 : ReservedPlanId.Pro; +/** The latest pro plan id we are using. */ +export const latestProPlanId = ReservedPlanId.Pro202411; diff --git a/packages/console/src/pages/TenantSettings/Subscription/PlanComparisonTable/index.tsx b/packages/console/src/pages/TenantSettings/Subscription/PlanComparisonTable/index.tsx index 490da80a0..abf1f5460 100644 --- a/packages/console/src/pages/TenantSettings/Subscription/PlanComparisonTable/index.tsx +++ b/packages/console/src/pages/TenantSettings/Subscription/PlanComparisonTable/index.tsx @@ -3,7 +3,6 @@ import { type TFuncKey } from 'i18next'; import { Fragment, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { isDevFeaturesEnabled } from '@/consts/env'; import { freePlanAuditLogsRetentionDays, freePlanM2mLimit, @@ -64,11 +63,9 @@ function PlanComparisonTable() { const mauLimitTip = t('mau_tip'); const includedTokens = t('quota.included_tokens'); const includedTokensTip = t('tokens_tip'); - const proPlanIncludedTokens = isDevFeaturesEnabled ? '100,000' : t('million', { value: 1 }); - const freePlanIncludedTokens = isDevFeaturesEnabled ? '100,000' : '500,000'; - const proPlanTokenPrice = isDevFeaturesEnabled - ? t('extra_token_price', { value: 0.08, amount: 100 }) - : t('extra_token_price', { value: 80, amount: 1_000_000 }); + const proPlanIncludedTokens = '100,000'; + const freePlanIncludedTokens = '100,000'; + const proPlanTokenPrice = t('extra_token_price', { value: 0.08, amount: 100 }); // Applications const totalApplications = t('application.total');