1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

chore: add a flag+ui flag for commandBarUI (#7264)

This commit is contained in:
David Leek 2024-06-04 10:50:13 +02:00 committed by GitHub
parent 83ab36a922
commit 927f911c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,7 @@ export type UiFlags = {
manyStrategiesPagination?: boolean;
enableLegacyVariants?: boolean;
navigationSidebar?: boolean;
commandBarUI?: boolean;
};
export interface IVersionInfo {

View File

@ -81,6 +81,7 @@ exports[`should create default config 1`] = `
"caseInsensitiveInOperators": false,
"celebrateUnleash": false,
"collectTrafficDataUsage": false,
"commandBarUI": false,
"createProjectWithEnvironmentConfig": false,
"debugMetrics": false,
"demo": false,

View File

@ -61,7 +61,8 @@ export type IFlagKey =
| 'newCreateProjectUI'
| 'enableLegacyVariants'
| 'debugMetrics'
| 'navigationSidebar';
| 'navigationSidebar'
| 'commandBarUI';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -294,6 +295,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
true,
),
commandBarUI: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_COMMAND_BAR_UI,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {