From a96e8f5a29d2976c031745dcf6f3fa3ff594bd63 Mon Sep 17 00:00:00 2001 From: Steven Zhang Date: Thu, 14 Aug 2025 21:32:48 -0700 Subject: [PATCH] Fixed bug on percentage presentation --- .../config/table-headers.ts | 10 ++--- .../formatters/PreviousScanCell.vue | 12 ++++-- .../formatters/ProgressCell.vue | 9 +++- .../l10n/en-us.yaml | 1 + .../RegistriesConfiguration.vue | 43 +++++++++++++------ 5 files changed, 48 insertions(+), 27 deletions(-) diff --git a/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts b/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts index d89264c..0570030 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts +++ b/pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts @@ -44,14 +44,10 @@ export const REGISTRY_SCAN_TABLE = [ { name: "progress", labelKey: "imageScanner.registries.registrytable.header.progress", - getValue: (row: any) => { - return { - progress: row.progress, - error: row.error, - }; - }, + getValue: (row: any) => row, formatter: "ProgressCell", sort: "progress", + width: 120, }, { name: "previousScan", @@ -59,7 +55,7 @@ export const REGISTRY_SCAN_TABLE = [ getValue: (row: any) => row, formatter: "PreviousScanCell", sort: "previousScan", - width: 150, + width: 200, }, ]; diff --git a/pkg/sbombastic-image-vulnerability-scanner/formatters/PreviousScanCell.vue b/pkg/sbombastic-image-vulnerability-scanner/formatters/PreviousScanCell.vue index cb5decc..9837fba 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/formatters/PreviousScanCell.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/formatters/PreviousScanCell.vue @@ -1,6 +1,10 @@