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:
parent
83ab36a922
commit
927f911c62
@ -86,6 +86,7 @@ export type UiFlags = {
|
||||
manyStrategiesPagination?: boolean;
|
||||
enableLegacyVariants?: boolean;
|
||||
navigationSidebar?: boolean;
|
||||
commandBarUI?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -81,6 +81,7 @@ exports[`should create default config 1`] = `
|
||||
"caseInsensitiveInOperators": false,
|
||||
"celebrateUnleash": false,
|
||||
"collectTrafficDataUsage": false,
|
||||
"commandBarUI": false,
|
||||
"createProjectWithEnvironmentConfig": false,
|
||||
"debugMetrics": false,
|
||||
"demo": false,
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user