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;
|
manyStrategiesPagination?: boolean;
|
||||||
enableLegacyVariants?: boolean;
|
enableLegacyVariants?: boolean;
|
||||||
navigationSidebar?: boolean;
|
navigationSidebar?: boolean;
|
||||||
|
commandBarUI?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -81,6 +81,7 @@ exports[`should create default config 1`] = `
|
|||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"celebrateUnleash": false,
|
"celebrateUnleash": false,
|
||||||
"collectTrafficDataUsage": false,
|
"collectTrafficDataUsage": false,
|
||||||
|
"commandBarUI": false,
|
||||||
"createProjectWithEnvironmentConfig": false,
|
"createProjectWithEnvironmentConfig": false,
|
||||||
"debugMetrics": false,
|
"debugMetrics": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
|
@ -61,7 +61,8 @@ export type IFlagKey =
|
|||||||
| 'newCreateProjectUI'
|
| 'newCreateProjectUI'
|
||||||
| 'enableLegacyVariants'
|
| 'enableLegacyVariants'
|
||||||
| 'debugMetrics'
|
| 'debugMetrics'
|
||||||
| 'navigationSidebar';
|
| 'navigationSidebar'
|
||||||
|
| 'commandBarUI';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -294,6 +295,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
|
process.env.UNLEASH_EXPERIMENTAL_SIDEBAR_NAVIGATION,
|
||||||
true,
|
true,
|
||||||
),
|
),
|
||||||
|
commandBarUI: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_COMMAND_BAR_UI,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user