mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore(console): remove new pro plan dev feature guard
remove new pro plan dev feature guard
This commit is contained in:
parent
fc53dcdd42
commit
6ffe3c3c80
2 changed files with 9 additions and 14 deletions
|
@ -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<string, number> = 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;
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue