mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01: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;
|
||||
personalDashboardUI?: boolean;
|
||||
purchaseAdditionalEnvironments?: boolean;
|
||||
unleashAI?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -61,7 +61,8 @@ export type IFlagKey =
|
||||
| 'eventTimeline'
|
||||
| 'personalDashboardUI'
|
||||
| 'trackLifecycleMetrics'
|
||||
| 'purchaseAdditionalEnvironments';
|
||||
| 'purchaseAdditionalEnvironments'
|
||||
| 'unleashAI';
|
||||
|
||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||
|
||||
@ -302,6 +303,10 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS,
|
||||
false,
|
||||
),
|
||||
unleashAI: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_UNLEASH_AI,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
@ -56,6 +56,7 @@ process.nextTick(async () => {
|
||||
onboardingUI: true,
|
||||
personalDashboardUI: true,
|
||||
purchaseAdditionalEnvironments: true,
|
||||
unleashAI: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user