mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
chore: add flags for UI filter refactor (#10708)
This commit is contained in:
parent
7462465a0b
commit
c7eb79038e
@ -50,13 +50,13 @@ export const ProjectLifecycleFilters: FC<ProjectLifecycleFiltersProps> = ({
|
||||
<Box
|
||||
sx={{
|
||||
marginRight: 'auto',
|
||||
...(!flagsUiFilterRefactorEnabled
|
||||
? {
|
||||
...(flagsUiFilterRefactorEnabled
|
||||
? {}
|
||||
: {
|
||||
margin: isSmallScreen
|
||||
? theme.spacing(0, 3)
|
||||
: `${theme.spacing(1.5)} auto 0 0`,
|
||||
}
|
||||
: {}),
|
||||
: `${theme.spacing(1.5)} auto ${theme.spacing(1.5)} ${theme.spacing(3)}`,
|
||||
}),
|
||||
}}
|
||||
>
|
||||
<LifecycleFilters
|
||||
|
||||
@ -60,7 +60,8 @@ export type IFlagKey =
|
||||
| 'optimizeLifecycle'
|
||||
| 'newStrategyModal'
|
||||
| 'globalChangeRequestList'
|
||||
| 'newUiConfigService';
|
||||
| 'newUiConfigService'
|
||||
| 'flagsUiFilterRefactor';
|
||||
|
||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||
|
||||
@ -278,6 +279,10 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_NEW_UI_CONFIG_SERVICE,
|
||||
false,
|
||||
),
|
||||
flagsUiFilterRefactor: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_FLAGS_UI_FILTER_REFACTOR,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
||||
@ -56,6 +56,7 @@ process.nextTick(async () => {
|
||||
newStrategyModal: true,
|
||||
globalChangeRequestList: true,
|
||||
newUiConfigService: true,
|
||||
flagsUiFilterRefactor: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user