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

@@ -70,7 +70,7 @@ const VerifiedMigration: React.FC<VerifiedMigrationProps> = ({
Current Power
</Typography>
<Typography variant="h4" sx={{ fontWeight: 'bold', mb: 0.5 }}>
{gainAfterData.cur_power.toFixed(2)} W
{gainAfterData.cur_power.toFixed(2)}W
</Typography>
</Box>
</Grid>
@@ -91,7 +91,7 @@ const VerifiedMigration: React.FC<VerifiedMigrationProps> = ({
<Typography variant="h4" sx={{
fontWeight: 'bold',
mb: 0.5,
color: isValidated ? '#4caf50' : '#ff9800'
color: isValidated ? '#28c76f' : '#ffb400'
}}>
{(gainAfterData.val_ratio * 100).toFixed(2)}%
</Typography>
@@ -114,7 +114,7 @@ const VerifiedMigration: React.FC<VerifiedMigrationProps> = ({
<Typography variant="h4" sx={{
fontWeight: 'bold',
mb: 0.5,
color: gainAfterData.actual_ratio > 0 ? '#4caf50' : '#ff9800'
color: gainAfterData.actual_ratio > 0 ? '#28c76f' : '#FF1744'
}}>
{(gainAfterData.actual_ratio * 100).toFixed(2)}%
</Typography>