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:
parent
491cd588da
commit
a66b3c65c1
@ -84,6 +84,7 @@ export type UiFlags = {
|
||||
projectListFilterMyProjects?: boolean;
|
||||
createProjectWithEnvironmentConfig?: boolean;
|
||||
projectsListNewCards?: boolean;
|
||||
newCreateProjectUI?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -131,6 +131,7 @@ exports[`should create default config 1`] = `
|
||||
},
|
||||
},
|
||||
"migrationLock": true,
|
||||
"newCreateProjectUI": false,
|
||||
"outdatedSdksBanner": false,
|
||||
"parseProjectFromSession": false,
|
||||
"personalAccessTokensKillSwitch": false,
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user