1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: add flag for the new project creation form layout (#6959)

Add a flag to enable/disable the new UI for project creation.
This flag is separate from the impl on the back end so that we can
enable one without the other (but uses flag dependencies in Unleash, so
that we can never enable the new UI without the new back end).

I have not set the flag to `true` in server startup because the form
doesn't work yet, so it's a manual step for now.
This commit is contained in:
Thomas Heartman 2024-04-29 13:52:56 +02:00 committed by GitHub
parent 491cd588da
commit a66b3c65c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -84,6 +84,7 @@ export type UiFlags = {
projectListFilterMyProjects?: boolean;
createProjectWithEnvironmentConfig?: boolean;
projectsListNewCards?: boolean;
newCreateProjectUI?: boolean;
};
export interface IVersionInfo {

View File

@ -131,6 +131,7 @@ exports[`should create default config 1`] = `
},
},
"migrationLock": true,
"newCreateProjectUI": false,
"outdatedSdksBanner": false,
"parseProjectFromSession": false,
"personalAccessTokensKillSwitch": false,

View File

@ -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 = {