diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index f6ecac82c3c3..bb252c302af7 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -86,6 +86,7 @@ export type UiFlags = { manyStrategiesPagination?: boolean; enableLegacyVariants?: boolean; navigationSidebar?: boolean; + commandBarUI?: boolean; }; export interface IVersionInfo { diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index cdbba31c802c..b7270494e556 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -81,6 +81,7 @@ exports[`should create default config 1`] = ` "caseInsensitiveInOperators": false, "celebrateUnleash": false, "collectTrafficDataUsage": false, + "commandBarUI": false, "createProjectWithEnvironmentConfig": false, "debugMetrics": false, "demo": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 65f1ff1bbf33..ed48aa4bcaf7 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -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 = {