Skip to content

Commit

Permalink
chore: add a flag+ui flag for commandBarUI
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Jun 4, 2024
1 parent 83ab36a commit e0adf69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/interfaces/uiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export type UiFlags = {
manyStrategiesPagination?: boolean;
enableLegacyVariants?: boolean;
navigationSidebar?: boolean;
commandBarUI?: boolean;
};

export interface IVersionInfo {
Expand Down
1 change: 1 addition & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ exports[`should create default config 1`] = `
"caseInsensitiveInOperators": false,
"celebrateUnleash": false,
"collectTrafficDataUsage": false,
"commandBarUI": false,
"createProjectWithEnvironmentConfig": false,
"debugMetrics": false,
"demo": false,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export type IFlagKey =
| 'newCreateProjectUI'
| 'enableLegacyVariants'
| 'debugMetrics'
| 'navigationSidebar';
| 'navigationSidebar'
| 'commandBarUI';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit e0adf69

Please sign in to comment.