Skip to content

Commit 7e3c974

Browse files
committed
UI feedbacks
1 parent 451ca92 commit 7e3c974

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

openbas-front/src/admin/components/atomic_testings/atomic_testing/TargetResultsDetail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,12 +768,12 @@ const TargetResultsDetailFlow: FunctionComponent<Props> = ({
768768
size="small"
769769
>
770770
<TableHead>
771-
<TableRow>
771+
<TableRow sx={{ textTransform: 'uppercase' }}>
772772
<TableCell>{t('Security platforms')}</TableCell>
773773
<TableCell>{t('Status')}</TableCell>
774774
<TableCell>{t('Detection time')}</TableCell>
775775
<TableCell>{t('Alerts')}</TableCell>
776-
<TableCell></TableCell>
776+
777777
</TableRow>
778778
</TableHead>
779779
<TableBody>

openbas-front/src/admin/components/atomic_testings/atomic_testing/TargetResultsSecurityPlatform.tsx

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { OpenInNew } from '@mui/icons-material';
2-
import { Link, Table, TableBody, TableCell, TableContainer, TableRow, Typography } from '@mui/material';
2+
import { Link, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Typography } from '@mui/material';
33
import { useTheme } from '@mui/material/styles';
44
import { type FunctionComponent, useEffect, useState } from 'react';
55
import { makeStyles } from 'tss-react/mui';
@@ -47,35 +47,41 @@ const TargetResultsSecurityPlatform: FunctionComponent<Props> = ({
4747
{`${injectExpectation.inject_expectation_type} ${t('Alerts')}`}
4848
</Typography>
4949
<TableContainer sx={{ marginTop: theme.spacing(4) }}>
50-
<Table sx={{ minWidth: 650 }} size="small">
50+
<Table
51+
sx={{ minWidth: 650 }}
52+
size="small"
53+
>
54+
<TableHead>
55+
<TableRow sx={{ textTransform: 'uppercase' }}>
56+
<TableCell>{t('Name')}</TableCell>
57+
<TableCell>{t('Prevention date')}</TableCell>
58+
</TableRow>
59+
</TableHead>
5160
<TableBody>
5261
{
5362
expectationTraces.map((expectationTrace: InjectExpectationTrace, index) => {
5463
return (
5564
<TableRow
5665
key={index}
66+
sx={{ height: '50px' }}
5767
>
58-
<TableCell>
68+
<TableCell sx={{ fontSize: '14px' }}>
5969
<Link underline="always" href={expectationTrace.inject_expectation_trace_alert_link} target="_blank">
6070
<div className={classes.flexContainer}>
6171
<div>
6272
{expectationTrace.inject_expectation_trace_alert_name}
6373
</div>
64-
<div>
74+
<div style={{
75+
paddingTop: '2px',
76+
marginLeft: '2px',
77+
}}
78+
>
6579
<OpenInNew fontSize="inherit" />
6680
</div>
6781
</div>
6882
</Link>
6983
</TableCell>
70-
<TableCell>
71-
<Typography
72-
variant="body2"
73-
gutterBottom
74-
>
75-
{expectationResult.result}
76-
</Typography>
77-
</TableCell>
78-
<TableCell>
84+
<TableCell sx={{ fontSize: '14px' }}>
7985
{fldt(expectationTrace.inject_expectation_trace_date)}
8086
</TableCell>
8187
</TableRow>

0 commit comments

Comments
 (0)