mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
chore: add unleashAI feature flag (#8399)
https://linear.app/unleash/issue/2-2773/add-unleashai-feature-flag Adds the `unleashAI` feature flag, the first step in the Unleash AI experiment.
This commit is contained in:
parent
178940ce7f
commit
d032a91494
@ -90,6 +90,7 @@ export type UiFlags = {
|
|||||||
eventTimeline?: boolean;
|
eventTimeline?: boolean;
|
||||||
personalDashboardUI?: boolean;
|
personalDashboardUI?: boolean;
|
||||||
purchaseAdditionalEnvironments?: boolean;
|
purchaseAdditionalEnvironments?: boolean;
|
||||||
|
unleashAI?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -61,7 +61,8 @@ export type IFlagKey =
|
|||||||
| 'eventTimeline'
|
| 'eventTimeline'
|
||||||
| 'personalDashboardUI'
|
| 'personalDashboardUI'
|
||||||
| 'trackLifecycleMetrics'
|
| 'trackLifecycleMetrics'
|
||||||
| 'purchaseAdditionalEnvironments';
|
| 'purchaseAdditionalEnvironments'
|
||||||
|
| 'unleashAI';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -302,6 +303,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS,
|
process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
unleashAI: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_UNLEASH_AI,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -56,6 +56,7 @@ process.nextTick(async () => {
|
|||||||
onboardingUI: true,
|
onboardingUI: true,
|
||||||
personalDashboardUI: true,
|
personalDashboardUI: true,
|
||||||
purchaseAdditionalEnvironments: true,
|
purchaseAdditionalEnvironments: true,
|
||||||
|
unleashAI: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user