diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 1f540efe04..c84a8a514b 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -84,6 +84,7 @@ export type UiFlags = { projectListFilterMyProjects?: boolean; createProjectWithEnvironmentConfig?: boolean; projectsListNewCards?: boolean; + newCreateProjectUI?: 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 02443a7f69..be55a0b995 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -131,6 +131,7 @@ exports[`should create default config 1`] = ` }, }, "migrationLock": true, + "newCreateProjectUI": false, "outdatedSdksBanner": false, "parseProjectFromSession": false, "personalAccessTokensKillSwitch": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index f6128bd65f..ff0aaf31b2 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -58,7 +58,8 @@ export type IFlagKey = | 'projectListFilterMyProjects' | 'projectsListNewCards' | 'parseProjectFromSession' - | 'createProjectWithEnvironmentConfig'; + | 'createProjectWithEnvironmentConfig' + | 'newCreateProjectUI'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -283,6 +284,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_PROJECTS_LIST_NEW_CARDS, false, ), + newCreateProjectUI: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_NEW_CREATE_PROJECT_UI, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = {