diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 38072196ca..35a154216a 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -94,6 +94,7 @@ export type UiFlags = { insightsV2?: boolean; featureCollaborators?: boolean; integrationEvents?: boolean; + improveCreateFlagFlow?: boolean; }; export interface IVersionInfo { diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index c4fbda17d0..aa6eb447c1 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -127,6 +127,7 @@ exports[`should create default config 1`] = ` "filterInvalidClientMetrics": false, "flagCreator": false, "googleAuthEnabled": false, + "improveCreateFlagFlow": false, "insightsV2": false, "integrationEvents": false, "killInsightsUI": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index c9e4705945..f045dcc441 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -69,7 +69,8 @@ export type IFlagKey = | 'removeUnsafeInlineStyleSrc' | 'insightsV2' | 'integrationEvents' - | 'featureCollaborators'; + | 'featureCollaborators' + | 'improveCreateFlagFlow'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -334,6 +335,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_FEATURE_COLLABORATORS, false, ), + improveCreateFlagFlow: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_IMPROVE_CREATE_FLAG_FLOW, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index 215f7e839e..0ef6ff71bd 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -59,6 +59,7 @@ process.nextTick(async () => { insightsV2: true, integrationEvents: true, featureCollaborators: true, + improveCreateFlagFlow: true, }, }, authentication: {