1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00

chore: add flags for UI filter refactor (#10708)

This commit is contained in:
Tymoteusz Czech 2025-10-01 11:20:25 +02:00 committed by GitHub
parent 7462465a0b
commit c7eb79038e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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 = {

View File

@ -56,6 +56,7 @@ process.nextTick(async () => {
newStrategyModal: true,
globalChangeRequestList: true,
newUiConfigService: true,
flagsUiFilterRefactor: true,
},
},
authentication: {