mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: execution plan diff table (#4065)
This commit is contained in:
		
							parent
							
								
									44771a5f67
								
							
						
					
					
						commit
						f0fe2368e1
					
				| @ -33,13 +33,9 @@ import { | ||||
|     AdvancedPlaygroundRequestSchema, | ||||
|     AdvancedPlaygroundFeatureSchema, | ||||
|     AdvancedPlaygroundFeatureSchemaEnvironments, | ||||
|     AdvancedPlaygroundEnvironmentFeatureSchema, | ||||
| } from 'openapi'; | ||||
| import { capitalizeFirst } from 'utils/capitalizeFirst'; | ||||
| import { | ||||
|     AdvancedPlaygroundEnvironmentDiffCell, | ||||
|     IAdvancedPlaygroundEnvironmentCellProps, | ||||
| } from './AdvancedPlaygroundEnvironmentCell/AdvancedPlaygroundEnvironmentDiffCell'; | ||||
| import { AdvancedPlaygroundEnvironmentDiffCell } from './AdvancedPlaygroundEnvironmentCell/AdvancedPlaygroundEnvironmentDiffCell'; | ||||
| 
 | ||||
| const defaultSort: SortingRule<string> = { id: 'name' }; | ||||
| const { value, setValue } = createLocalStorage( | ||||
|  | ||||
| @ -13,6 +13,7 @@ import { Box } from '@mui/material'; | ||||
| import { FeatureStatusCell } from '../PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell'; | ||||
| import { HighlightCell } from '../../../common/Table/cells/HighlightCell/HighlightCell'; | ||||
| import { capitalizeFirst } from 'utils/capitalizeFirst'; | ||||
| import { FeatureResultInfoPopoverCell } from '../PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureResultInfoPopoverCell'; | ||||
| 
 | ||||
| interface IPlaygroundEnvironmentTableProps { | ||||
|     features: AdvancedPlaygroundFeatureSchemaEnvironments; | ||||
| @ -54,10 +55,21 @@ export const PlaygroundEnvironmentDiffTable = ({ | ||||
|                 ? 'unknown' | ||||
|                 : 'false', | ||||
|         Cell: ({ row }: { row: { original: RowType } }) => { | ||||
|             return <FeatureStatusCell feature={row.original[environment]} />; | ||||
|             return ( | ||||
|                 <Box sx={{ display: 'flex' }}> | ||||
|                     <FeatureStatusCell feature={row.original[environment]} /> | ||||
|                     <FeatureResultInfoPopoverCell | ||||
|                         feature={row.original[environment]} | ||||
|                         input={{ | ||||
|                             environment: row.original[environment].environment, | ||||
|                             context: row.original[environment].context, | ||||
|                         }} | ||||
|                     /> | ||||
|                 </Box> | ||||
|             ); | ||||
|         }, | ||||
|         sortType: 'playgroundResultState', | ||||
|         maxWidth: 120, | ||||
|         maxWidth: 140, | ||||
|     })); | ||||
| 
 | ||||
|     const COLUMNS = useMemo(() => { | ||||
|  | ||||
| @ -10,7 +10,7 @@ interface IFeatureStatusCellProps { | ||||
| const StyledCellBox = styled(Box)(({ theme }) => ({ | ||||
|     display: 'flex', | ||||
|     alignItems: 'center', | ||||
|     padding: theme.spacing(1, 2), | ||||
|     padding: theme.spacing(1, 0, 1, 2), | ||||
| })); | ||||
| 
 | ||||
| const StyledChipWrapper = styled(Box)(() => ({ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user