implimented the new Vm-placement data strcuture, fixed 8/9 designs issue from last meeting written in the group blc - in 7/8/2025

This commit is contained in:
2025-08-03 14:51:16 +03:00
parent 277e425332
commit 81fd909637
15 changed files with 1295 additions and 647 deletions

View File

@@ -232,7 +232,8 @@ const Home = () => {
const [migrationTime, setMigrationTime] = useState<string>('5');
const [migrationModel, setMigrationModel] = useState<string>('mul_reg');
const [migrationMethod, setMigrationMethod] = useState<string>('mathematical');
const [migrationMode, setMigrationMode] = useState<'auto' | 'semiauto'>('auto');
// Default to semiauto since auto mode is not available yet
const [migrationMode, setMigrationMode] = useState<'auto' | 'semiauto'>('semiauto');
const [isMonitoring, setIsMonitoring] = useState(false);
@@ -517,10 +518,10 @@ const Home = () => {
<Typography variant="body2">Time Configuration</Typography>
</IconWrapper>
<FormControl fullWidth sx={{ mb: 2 }}>
<InputLabel>Script Time Unit</InputLabel>
<InputLabel>{"{script time unit (mins)}"}</InputLabel>
<StyledSelect
value={envTimeUnit}
label="Script Time Unit"
label="{script time unit (mins)}"
onChange={handleSelectChange}
name="envTimeUnit"
>
@@ -535,10 +536,10 @@ const Home = () => {
<Typography variant="body2">Steps Configuration</Typography>
</IconWrapper>
<FormControl fullWidth sx={{ mb: 2 }}>
<InputLabel>Number of Steps</InputLabel>
<InputLabel>Estimation Steps</InputLabel>
<StyledSelect
value={envSteps}
label="Number of Steps"
label="Estimation Steps"
onChange={handleSelectChange}
name="envSteps"
>
@@ -581,10 +582,10 @@ const Home = () => {
<Typography variant="body2">Time Configuration</Typography>
</IconWrapper>
<FormControl fullWidth sx={{ mb: 2 }}>
<InputLabel>Script Time Unit</InputLabel>
<InputLabel>{"{script time unit (mins)}"}</InputLabel>
<StyledSelect
value={prevTimeUnit}
label="Script Time Unit"
label="{script time unit (mins)}"
onChange={handleSelectChange}
name="prevTimeUnit"
>
@@ -599,10 +600,10 @@ const Home = () => {
<Typography variant="body2">Steps Configuration</Typography>
</IconWrapper>
<FormControl fullWidth sx={{ mb: 2 }}>
<InputLabel>Number of Steps</InputLabel>
<InputLabel>Estimation Steps</InputLabel>
<StyledSelect
value={prevSteps}
label="Number of Steps"
label="Estimation Steps"
onChange={handleSelectChange}
name="prevSteps"
>
@@ -665,11 +666,19 @@ const Home = () => {
}
}}
>
<ToggleButton value="auto" aria-label="auto mode">
<ToggleButton
value="auto"
aria-label="auto mode"
disabled={true}
sx={{
opacity: 0.5,
cursor: 'not-allowed'
}}
>
<AutoFixHighIcon sx={{ mr: 0.5 }} fontSize="small" />
Auto
</ToggleButton>
<ToggleButton value="semiauto" aria-label="semi-auto mode" disabled>
<ToggleButton value="semiauto" aria-label="semi-auto mode">
<HandymanIcon sx={{ mr: 0.5 }} fontSize="small" />
Semi-Auto
</ToggleButton>
@@ -681,10 +690,10 @@ const Home = () => {
<Typography variant="body2">Time Configuration</Typography>
</IconWrapper>
<FormControl fullWidth sx={{ mb: 2 }}>
<InputLabel>Script Time Unit </InputLabel>
<InputLabel>{"{script time unit (mins)}"}</InputLabel>
<StyledSelect
value={migrationTime}
label="Script Time Unit "
label="{script time unit (mins)}"
onChange={handleSelectChange}
name="migrationTime"
>