mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
[Remix] Cleaning up stale feature flag: proPlanAutoCharge with value true (#6581)
This commit is contained in:
parent
d1d04fdeb9
commit
3d4aa4abcb
@ -154,8 +154,7 @@ export const BillingPlan: FC<IBillingPlanProps> = ({ instanceStatus }) => {
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={Boolean(
|
condition={Boolean(
|
||||||
uiConfig?.flags?.proPlanAutoCharge &&
|
instanceStatus.plan === InstancePlan.PRO,
|
||||||
instanceStatus.plan === InstancePlan.PRO,
|
|
||||||
)}
|
)}
|
||||||
show={
|
show={
|
||||||
<>
|
<>
|
||||||
|
@ -16,7 +16,7 @@ import TopicOutlinedIcon from '@mui/icons-material/TopicOutlined';
|
|||||||
import { Badge } from '../common/Badge/Badge';
|
import { Badge } from '../common/Badge/Badge';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
||||||
import React, { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { useFeedback } from '../feedbackNew/useFeedback';
|
import { useFeedback } from '../feedbackNew/useFeedback';
|
||||||
import ReviewsOutlined from '@mui/icons-material/ReviewsOutlined';
|
import ReviewsOutlined from '@mui/icons-material/ReviewsOutlined';
|
||||||
|
|
||||||
|
@ -15,10 +15,7 @@ export const useUsersPlan = (users: IUser[]): IUsersPlanOutput => {
|
|||||||
const { instanceStatus } = useInstanceStatus();
|
const { instanceStatus } = useInstanceStatus();
|
||||||
const { uiConfig } = useUiConfig();
|
const { uiConfig } = useUiConfig();
|
||||||
|
|
||||||
const isBillingUsers = Boolean(
|
const isBillingUsers = Boolean(instanceStatus?.plan === InstancePlan.PRO);
|
||||||
uiConfig?.flags?.proPlanAutoCharge &&
|
|
||||||
instanceStatus?.plan === InstancePlan.PRO,
|
|
||||||
);
|
|
||||||
const seats = instanceStatus?.seats ?? 5;
|
const seats = instanceStatus?.seats ?? 5;
|
||||||
|
|
||||||
const planUsers = useMemo(
|
const planUsers = useMemo(
|
||||||
|
@ -51,7 +51,6 @@ export type UiFlags = {
|
|||||||
banner?: Variant;
|
banner?: Variant;
|
||||||
featuresExportImport?: boolean;
|
featuresExportImport?: boolean;
|
||||||
caseInsensitiveInOperators?: boolean;
|
caseInsensitiveInOperators?: boolean;
|
||||||
proPlanAutoCharge?: boolean;
|
|
||||||
notifications?: boolean;
|
notifications?: boolean;
|
||||||
personalAccessTokensKillSwitch?: boolean;
|
personalAccessTokensKillSwitch?: boolean;
|
||||||
demo?: boolean;
|
demo?: boolean;
|
||||||
|
@ -132,7 +132,6 @@ exports[`should create default config 1`] = `
|
|||||||
"newStrategyConfigurationFeedback": false,
|
"newStrategyConfigurationFeedback": false,
|
||||||
"outdatedSdksBanner": false,
|
"outdatedSdksBanner": false,
|
||||||
"personalAccessTokensKillSwitch": false,
|
"personalAccessTokensKillSwitch": false,
|
||||||
"proPlanAutoCharge": false,
|
|
||||||
"queryMissingTokens": false,
|
"queryMissingTokens": false,
|
||||||
"responseTimeMetricsFix": false,
|
"responseTimeMetricsFix": false,
|
||||||
"responseTimeWithAppNameKillSwitch": false,
|
"responseTimeWithAppNameKillSwitch": false,
|
||||||
|
@ -16,7 +16,6 @@ export type IFlagKey =
|
|||||||
| 'featuresExportImport'
|
| 'featuresExportImport'
|
||||||
| 'caseInsensitiveInOperators'
|
| 'caseInsensitiveInOperators'
|
||||||
| 'strictSchemaValidation'
|
| 'strictSchemaValidation'
|
||||||
| 'proPlanAutoCharge'
|
|
||||||
| 'personalAccessTokensKillSwitch'
|
| 'personalAccessTokensKillSwitch'
|
||||||
| 'migrationLock'
|
| 'migrationLock'
|
||||||
| 'demo'
|
| 'demo'
|
||||||
@ -104,10 +103,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_STRICT_SCHEMA_VALIDTION,
|
process.env.UNLEASH_STRICT_SCHEMA_VALIDTION,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
proPlanAutoCharge: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_PRO_PLAN_AUTO_CHARGE,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
personalAccessTokensKillSwitch: parseEnvVarBoolean(
|
personalAccessTokensKillSwitch: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_PAT_KILL_SWITCH,
|
process.env.UNLEASH_PAT_KILL_SWITCH,
|
||||||
false,
|
false,
|
||||||
|
Loading…
Reference in New Issue
Block a user