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:
		
							parent
							
								
									7462465a0b
								
							
						
					
					
						commit
						c7eb79038e
					
				| @ -50,13 +50,13 @@ export const ProjectLifecycleFilters: FC<ProjectLifecycleFiltersProps> = ({ | |||||||
|         <Box |         <Box | ||||||
|             sx={{ |             sx={{ | ||||||
|                 marginRight: 'auto', |                 marginRight: 'auto', | ||||||
|                 ...(!flagsUiFilterRefactorEnabled |                 ...(flagsUiFilterRefactorEnabled | ||||||
|                     ? { |                     ? {} | ||||||
|  |                     : { | ||||||
|                           margin: isSmallScreen |                           margin: isSmallScreen | ||||||
|                               ? theme.spacing(0, 3) |                               ? theme.spacing(0, 3) | ||||||
|                               : `${theme.spacing(1.5)} auto 0 0`, |                               : `${theme.spacing(1.5)} auto ${theme.spacing(1.5)} ${theme.spacing(3)}`, | ||||||
|                       } |                       }), | ||||||
|                     : {}), |  | ||||||
|             }} |             }} | ||||||
|         > |         > | ||||||
|             <LifecycleFilters |             <LifecycleFilters | ||||||
|  | |||||||
| @ -60,7 +60,8 @@ export type IFlagKey = | |||||||
|     | 'optimizeLifecycle' |     | 'optimizeLifecycle' | ||||||
|     | 'newStrategyModal' |     | 'newStrategyModal' | ||||||
|     | 'globalChangeRequestList' |     | 'globalChangeRequestList' | ||||||
|     | 'newUiConfigService'; |     | 'newUiConfigService' | ||||||
|  |     | 'flagsUiFilterRefactor'; | ||||||
| 
 | 
 | ||||||
| export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; | export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; | ||||||
| 
 | 
 | ||||||
| @ -278,6 +279,10 @@ const flags: IFlags = { | |||||||
|         process.env.UNLEASH_EXPERIMENTAL_NEW_UI_CONFIG_SERVICE, |         process.env.UNLEASH_EXPERIMENTAL_NEW_UI_CONFIG_SERVICE, | ||||||
|         false, |         false, | ||||||
|     ), |     ), | ||||||
|  |     flagsUiFilterRefactor: parseEnvVarBoolean( | ||||||
|  |         process.env.UNLEASH_EXPERIMENTAL_FLAGS_UI_FILTER_REFACTOR, | ||||||
|  |         false, | ||||||
|  |     ), | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export const defaultExperimentalOptions: IExperimentalOptions = { | export const defaultExperimentalOptions: IExperimentalOptions = { | ||||||
|  | |||||||
| @ -56,6 +56,7 @@ process.nextTick(async () => { | |||||||
|                         newStrategyModal: true, |                         newStrategyModal: true, | ||||||
|                         globalChangeRequestList: true, |                         globalChangeRequestList: true, | ||||||
|                         newUiConfigService: true, |                         newUiConfigService: true, | ||||||
|  |                         flagsUiFilterRefactor: true, | ||||||
|                     }, |                     }, | ||||||
|                 }, |                 }, | ||||||
|                 authentication: { |                 authentication: { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user