mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: reorder release plan template UI files (#9057)
This commit is contained in:
		
							parent
							
								
									20fda186b5
								
							
						
					
					
						commit
						4f6e581dec
					
				| @ -1,6 +1,6 @@ | ||||
| import { usePageTitle } from 'hooks/usePageTitle'; | ||||
| import { Button, styled } from '@mui/material'; | ||||
| import { TemplateForm } from './TemplateForm'; | ||||
| import { TemplateForm } from './TemplateForm/TemplateForm'; | ||||
| import { useTemplateForm } from '../hooks/useTemplateForm'; | ||||
| import { CreateButton } from 'component/common/CreateButton/CreateButton'; | ||||
| import { RELEASE_PLAN_TEMPLATE_CREATE } from '@server/types/permissions'; | ||||
|  | ||||
| @ -3,7 +3,7 @@ import { usePageTitle } from 'hooks/usePageTitle'; | ||||
| import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; | ||||
| import { useReleasePlanTemplate } from 'hooks/api/getters/useReleasePlanTemplates/useReleasePlanTemplate'; | ||||
| import { useTemplateForm } from '../hooks/useTemplateForm'; | ||||
| import { TemplateForm } from './TemplateForm'; | ||||
| import { TemplateForm } from './TemplateForm/TemplateForm'; | ||||
| import { Button, styled } from '@mui/material'; | ||||
| import { UpdateButton } from 'component/common/UpdateButton/UpdateButton'; | ||||
| import { RELEASE_PLAN_TEMPLATE_UPDATE } from '@server/types/permissions'; | ||||
|  | ||||
| @ -17,9 +17,9 @@ import type { | ||||
| } from 'interfaces/releasePlans'; | ||||
| import { type DragEventHandler, type RefObject, useState } from 'react'; | ||||
| import ExpandMore from '@mui/icons-material/ExpandMore'; | ||||
| import { MilestoneStrategyMenuCards } from './MilestoneStrategyMenuCards'; | ||||
| import { MilestoneStrategyDraggableItem } from './MilestoneStrategyDraggableItem'; | ||||
| import { MilestoneCardName } from './MilestoneCardName'; | ||||
| import { MilestoneStrategyMenuCards } from './MilestoneStrategyMenu/MilestoneStrategyMenuCards'; | ||||
| import { MilestoneStrategyDraggableItem } from './MilestoneStrategyDraggableItem'; | ||||
| 
 | ||||
| const StyledMilestoneCard = styled(Card, { | ||||
|     shouldForwardProp: (prop) => prop !== 'hasError', | ||||
| @ -2,7 +2,7 @@ import type { | ||||
|     IReleasePlanMilestonePayload, | ||||
|     IReleasePlanMilestoneStrategy, | ||||
| } from 'interfaces/releasePlans'; | ||||
| import { MilestoneCard } from './MilestoneCard'; | ||||
| import { MilestoneCard } from './MilestoneCard/MilestoneCard'; | ||||
| import { styled, Button, FormHelperText } from '@mui/material'; | ||||
| import Add from '@mui/icons-material/Add'; | ||||
| import { v4 as uuidv4 } from 'uuid'; | ||||
| @ -1,7 +1,7 @@ | ||||
| import type { IReleasePlanMilestoneStrategy } from 'interfaces/releasePlans'; | ||||
| import { useEffect, useState } from 'react'; | ||||
| import { Box, styled, Typography, Button } from '@mui/material'; | ||||
| import { HelpIcon } from '../../common/HelpIcon/HelpIcon'; | ||||
| import { HelpIcon } from '../../../../common/HelpIcon/HelpIcon'; | ||||
| import { StrategyVariantsUpgradeAlert } from 'component/common/StrategyVariantsUpgradeAlert/StrategyVariantsUpgradeAlert'; | ||||
| import { VariantForm } from 'component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsModal/VariantForm/VariantForm'; | ||||
| import { v4 as uuidv4 } from 'uuid'; | ||||
| @ -15,16 +15,16 @@ import type { IReleasePlanMilestoneStrategy } from 'interfaces/releasePlans'; | ||||
| import type { ISegment } from 'interfaces/segment'; | ||||
| import { useEffect, useState } from 'react'; | ||||
| import { BuiltInStrategies, formatStrategyName } from 'utils/strategyNames'; | ||||
| import { MilestoneStrategyTitle } from './MilestoneStrategyTitle'; | ||||
| import { MilestoneStrategyType } from './MilestoneStrategyType'; | ||||
| import { useStrategy } from 'hooks/api/getters/useStrategy/useStrategy'; | ||||
| import { useFormErrors } from 'hooks/useFormErrors'; | ||||
| import produce from 'immer'; | ||||
| import { MilestoneStrategySegment } from './MilestoneStrategySegment'; | ||||
| import { MilestoneStrategyConstraints } from './MilestoneStrategyConstraints'; | ||||
| import { MilestoneStrategyVariants } from './MilestoneStrategyVariants'; | ||||
| import { useConstraintsValidation } from 'hooks/api/getters/useConstraintsValidation/useConstraintsValidation'; | ||||
| import { useSegments } from 'hooks/api/getters/useSegments/useSegments'; | ||||
| import { MilestoneStrategyTitle } from './MilestoneStrategyTitle'; | ||||
| import { MilestoneStrategyConstraints } from './MilestoneStrategyConstraints'; | ||||
| import { MilestoneStrategyVariants } from './MilestoneStrategyVariants'; | ||||
| import { MilestoneStrategyType } from './MilestoneStrategyType'; | ||||
| 
 | ||||
| const StyledCancelButton = styled(Button)(({ theme }) => ({ | ||||
|     marginLeft: theme.spacing(3), | ||||
| @ -1,6 +1,6 @@ | ||||
| import Input from 'component/common/Input/Input'; | ||||
| import { styled } from '@mui/material'; | ||||
| import { MilestoneList } from './MilestoneList'; | ||||
| import { MilestoneList } from './MilestoneList/MilestoneList'; | ||||
| import type { | ||||
|     IReleasePlanMilestonePayload, | ||||
|     IReleasePlanMilestoneStrategy, | ||||
| @ -8,7 +8,7 @@ import type { | ||||
| import FormTemplate from 'component/common/FormTemplate/FormTemplate'; | ||||
| import { SidebarModal } from 'component/common/SidebarModal/SidebarModal'; | ||||
| import { useState } from 'react'; | ||||
| import { ReleasePlanTemplateAddStrategyForm } from './ReleasePlanTemplateAddStrategyForm'; | ||||
| import { ReleasePlanTemplateAddStrategyForm } from './MilestoneStrategy/ReleasePlanTemplateAddStrategyForm'; | ||||
| import { TemplateFormDescription } from './TemplateFormDescription'; | ||||
| 
 | ||||
| const StyledInputDescription = styled('p')(({ theme }) => ({ | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user