diff --git a/pkg/sbombastic-image-vulnerability-scanner/components/RegistryDetails.vue b/pkg/sbombastic-image-vulnerability-scanner/components/RegistryDetails.vue index 631435d..bd15561 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/components/RegistryDetails.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/components/RegistryDetails.vue @@ -5,7 +5,7 @@
- {{ t('imageScanner.registries.title') }}: + {{ t('imageScanner.registries.title') }}: {{ $route.params.id }} @@ -41,7 +41,7 @@ diff --git a/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts b/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts index ada2835..9d40fe0 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts +++ b/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts @@ -63,22 +63,26 @@ export const REGISTRY_SCAN_HISTORY_TABLE = [ { name: "status", labelKey: "imageScanner.registries.configuration.scanTable.header.status", - value: "status", + value: "status.statusResult.type", formatter: "RegistryStatusCellBadge", sort: "status", }, { name: "since", labelKey: "imageScanner.registries.configuration.scanTable.header.since", - value: "timestamp", + value: "status.statusResult.lastTransitionTime", formatter: "Date", sort: "timestamp", }, { name: "progress", labelKey: "imageScanner.registries.configuration.scanTable.header.progress", - value: "progress", - getValue: (row: any) => row.progress.toString(), + getValue: (row: any) => { + let progress = Math.round( + (row.status.scannedImagesCount / row.status.imagesCount) * 100 + ); + return { progress }; + }, formatter: "ProgressCell", sort: "progress", }, @@ -86,20 +90,20 @@ export const REGISTRY_SCAN_HISTORY_TABLE = [ name: "imagesScanned", labelKey: "imageScanner.registries.configuration.scanTable.header.imagesScanned", - value: "imagesScanned", + value: "status.scannedImagesCount", sort: "imagesScanned", }, { name: "imagesFound", labelKey: "imageScanner.registries.configuration.scanTable.header.imagesFound", - value: "imagesFound", + value: "status.imagesCount", sort: "imagesFound", }, { name: "errors", - labelKey: "imageScanner.registries.configuration.scanTable.header.errors", - value: "errors", + labelKey: "imageScanner.registries.configuration.scanTable.header.error", + value: "status.statusResult.message", sort: "errors", }, ]; diff --git a/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.registry.vue b/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.registry.vue new file mode 100644 index 0000000..1b37ad7 --- /dev/null +++ b/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.registry.vue @@ -0,0 +1,37 @@ + + + \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml b/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml index d6e399c..69000cd 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml +++ b/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml @@ -58,7 +58,7 @@ imageScanner: progress: Progress imagesScanned: Images scan imagesFound: Images found - errors: Error(s) + error: Error messages: registryScanFailed: Registry scan failed registryScanComplete: Registry scan complete @@ -107,4 +107,4 @@ imageScanner: ago: ago typeLabel: - sbombastic.rancher.io.registry: Registries configuration \ No newline at end of file + sbombastic.rancher.io.registry: Registries configuration