Deleted quickstart text and added missing fiels for N/A

Signed-off-by: Amelia-Maria Breda <ambreda@cisco.com>
This commit is contained in:
Amelia-Maria Breda 2022-10-13 10:23:50 +01:00 committed by Raul Kele
parent d4f4cea810
commit 2769268dd5
4 changed files with 8 additions and 10 deletions

View File

@ -166,7 +166,7 @@ function RepoCard(props) {
};
const getVendor = () => {
return `${vendor || 'N/A'}`;
return `${vendor || 'N/A NewestImage.Vendor'}`;
};
const getVersion = () => {
return `published ${version}`;
@ -200,7 +200,7 @@ function RepoCard(props) {
{/* <Chip label="Verified licensee" sx={{ backgroundColor: "#E8F5E9", color: "#388E3C" }} variant="filled" onDelete={() => { return }} deleteIcon={vulnerabilityCheck()} /> */}
</Stack>
<Typography className={classes.versionLast} pt={1} sx={{ fontSize: 12 }} gutterBottom noWrap>
{description || 'N/A'}
{description || 'N/A NewestImage.Description'}
</Typography>
<Stack alignItems="center" direction="row" spacing={2} pt={1}>
{platformChips()}

View File

@ -210,9 +210,6 @@ function RepoDetails() {
return (
<Card className={classes.card} data-testid="overview-container">
<CardContent>
<Typography variant="h4" align="left">
Quickstart
</Typography>
<Typography
variant="body1"
sx={{
@ -225,7 +222,7 @@ function RepoDetails() {
>
{
// @ts-ignore
repoDetailData.description || 'N/A'
repoDetailData.description || 'N/A NewestImage.Description'
}
</Typography>
</CardContent>
@ -284,7 +281,7 @@ function RepoDetails() {
>
{
// @ts-ignore
repoDetailData?.title || 'N/A'
repoDetailData?.title || 'N/A NewestImage.Title'
}
</Typography>
<Stack alignItems="center" sx={{ paddingLeft: '4rem' }} direction="row" spacing={2} pt={1}>

View File

@ -49,7 +49,7 @@ function RepoDetailsMetadata(props) {
Repository
</Typography>
<Typography variant="body1" align="left" className={classes.metadataBody}>
{repoURL || `N/A`}
{repoURL || `N/A Source`}
</Typography>
</CardContent>
</Card>
@ -61,7 +61,7 @@ function RepoDetailsMetadata(props) {
Total downloads
</Typography>
<Typography variant="body1" align="left" className={classes.metadataBody}>
{totalDownloads || `N/A`}
{totalDownloads || `N/A DownloadCount`}
</Typography>
</CardContent>
</Card>

View File

@ -97,7 +97,7 @@ function TagCard(props) {
Last pushed
</Typography>
<Typography variant="caption" sx={{ fontWeight: '600', fontSize: '0.8125rem' }}>
{lastDate || '----'} by {vendors || 'N/A'}
{lastDate || '---'} by {vendors || 'N/A Summary?.Vendors'}
</Typography>
</Stack>
@ -187,6 +187,7 @@ export default function Tags(props) {
const classes = useStyles();
const { data } = props;
const { images, lastUpdated, vendors, size, platforms } = data;
console.log(JSON.stringify(data));
return (
<Card className={classes.tagCard} data-testid="tags-container">