@@ -13,11 +13,9 @@ import {
1313 DataGridRow ,
1414 DataGridHeadCell ,
1515 DataGridCell ,
16- Container ,
1716} from "@cloudoperators/juno-ui-components"
1817import { useNavigate , useParams , useSearch } from "@tanstack/react-router"
1918import { ApolloQueryResult } from "@apollo/client"
20- import { MessagesProvider , Messages } from "@cloudoperators/juno-messages-provider"
2119import { getNormalizedImageVersionsResponse , ServiceImageVersion } from "../../Services/utils"
2220import ImageVersionOccurrences from "./ImageVersionOccurrences"
2321import { IssueCountsPerSeverityLevel } from "../../common/IssueCountsPerSeverityLevel"
@@ -41,68 +39,58 @@ export const ImageVersionDetailsPanel = ({ imageVersionsPromise }: ImageVersionD
4139 }
4240
4341 return (
44- < MessagesProvider >
45- < Panel
46- heading = { `Image ${ imageVersion . repository } Information` }
47- opened = { ! ! service }
48- onClose = { ( ) =>
49- navigate ( {
50- to : "/services/$service" ,
51- params : { service } ,
52- } )
53- }
54- size = "large"
55- >
56- < PanelBody >
57- < Container py px = { false } >
58- < Messages />
59- </ Container >
60- < DataGrid columns = { 2 } gridColumnTemplate = "20% auto" >
61- < DataGridRow >
62- < DataGridHeadCell > Details</ DataGridHeadCell >
63- < DataGridCell >
64- < Stack gap = "1" direction = "horizontal" wrap >
65- < Pill
66- pillKey = "tag"
67- pillKeyLabel = "tag"
68- pillValue = { imageVersion . tag }
69- pillValueLabel = { imageVersion . tag }
70- />
71- < Pill
72- pillKey = "repository"
73- pillKeyLabel = "repository"
74- pillValue = { imageVersion . repository }
75- pillValueLabel = { imageVersion . repository }
76- />
77- < Pill
78- pillKey = "version"
79- pillKeyLabel = "version"
80- pillValue = { imageVersion . version }
81- pillValueLabel = { imageVersion . version }
82- />
83- </ Stack >
84- </ DataGridCell >
85- </ DataGridRow >
86- < DataGridRow >
87- < DataGridHeadCell > Vulnerabilities Counts</ DataGridHeadCell >
88- < DataGridCell >
89- < IssueCountsPerSeverityLevel counts = { imageVersion . issueCounts } />
90- </ DataGridCell >
91- </ DataGridRow >
92- < DataGridRow >
93- < DataGridHeadCell className = "whitespace-nowrap" > { `Occurrences (${ imageVersion . componentInstancesCount || 0 } )` } </ DataGridHeadCell >
94- < DataGridCell >
95- < ImageVersionOccurrences imageVersion = { imageVersion } />
96- </ DataGridCell >
97- </ DataGridRow >
98- </ DataGrid >
42+ < Panel
43+ heading = { `Image ${ imageVersion . repository } Information` }
44+ opened = { ! ! service }
45+ onClose = { ( ) =>
46+ navigate ( {
47+ to : "/services/$service" ,
48+ params : { service } ,
49+ } )
50+ }
51+ size = "large"
52+ >
53+ < PanelBody >
54+ < DataGrid columns = { 2 } gridColumnTemplate = "20% auto" >
55+ < DataGridRow >
56+ < DataGridHeadCell > Details</ DataGridHeadCell >
57+ < DataGridCell >
58+ < Stack gap = "1" direction = "horizontal" wrap >
59+ < Pill pillKey = "tag" pillKeyLabel = "tag" pillValue = { imageVersion . tag } pillValueLabel = { imageVersion . tag } />
60+ < Pill
61+ pillKey = "repository"
62+ pillKeyLabel = "repository"
63+ pillValue = { imageVersion . repository }
64+ pillValueLabel = { imageVersion . repository }
65+ />
66+ < Pill
67+ pillKey = "version"
68+ pillKeyLabel = "version"
69+ pillValue = { imageVersion . version }
70+ pillValueLabel = { imageVersion . version }
71+ />
72+ </ Stack >
73+ </ DataGridCell >
74+ </ DataGridRow >
75+ < DataGridRow >
76+ < DataGridHeadCell > Vulnerabilities Counts</ DataGridHeadCell >
77+ < DataGridCell >
78+ < IssueCountsPerSeverityLevel counts = { imageVersion . issueCounts } />
79+ </ DataGridCell >
80+ </ DataGridRow >
81+ < DataGridRow >
82+ < DataGridHeadCell className = "whitespace-nowrap" > { `Occurrences (${ imageVersion . componentInstancesCount || 0 } )` } </ DataGridHeadCell >
83+ < DataGridCell >
84+ < ImageVersionOccurrences imageVersion = { imageVersion } />
85+ </ DataGridCell >
86+ </ DataGridRow >
87+ </ DataGrid >
9988
100- { /* Second Section: Issues List */ }
101- { service && selectedImageVersion && imageVersion && (
102- < ImageVersionIssuesList service = { service } imageVersion = { imageVersion } />
103- ) }
104- </ PanelBody >
105- </ Panel >
106- </ MessagesProvider >
89+ { /* Second Section: Issues List */ }
90+ { service && selectedImageVersion && imageVersion && (
91+ < ImageVersionIssuesList service = { service } imageVersion = { imageVersion } />
92+ ) }
93+ </ PanelBody >
94+ </ Panel >
10795 )
10896}
0 commit comments