From 3b1ed32efc362028c55c366cbc26f2657ddc14fd Mon Sep 17 00:00:00 2001 From: Rush Kapoor Date: Thu, 21 Aug 2025 20:05:17 -0700 Subject: [PATCH 1/4] feat(vulnerability-overview): Add basic implementation for summary charts using mock data --- .../components/SeverityDistribution.vue | 52 +++++++++++++ .../TopSevereVulnerabilitiesChart.vue | 64 +++++++++++++++ .../common/SevereVulnerabilitiesItem.vue | 78 +++++++++++++++++++ .../l10n/en-us.yaml | 5 ++ .../Vulnerabilities.vue | 78 +++++++++++++------ 5 files changed, 255 insertions(+), 22 deletions(-) create mode 100644 pkg/sbombastic-image-vulnerability-scanner/components/SeverityDistribution.vue create mode 100644 pkg/sbombastic-image-vulnerability-scanner/components/TopSevereVulnerabilitiesChart.vue create mode 100644 pkg/sbombastic-image-vulnerability-scanner/components/common/SevereVulnerabilitiesItem.vue diff --git a/pkg/sbombastic-image-vulnerability-scanner/components/SeverityDistribution.vue b/pkg/sbombastic-image-vulnerability-scanner/components/SeverityDistribution.vue new file mode 100644 index 0000000..28a7dcd --- /dev/null +++ b/pkg/sbombastic-image-vulnerability-scanner/components/SeverityDistribution.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/components/TopSevereVulnerabilitiesChart.vue b/pkg/sbombastic-image-vulnerability-scanner/components/TopSevereVulnerabilitiesChart.vue new file mode 100644 index 0000000..60f5c95 --- /dev/null +++ b/pkg/sbombastic-image-vulnerability-scanner/components/TopSevereVulnerabilitiesChart.vue @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/components/common/SevereVulnerabilitiesItem.vue b/pkg/sbombastic-image-vulnerability-scanner/components/common/SevereVulnerabilitiesItem.vue new file mode 100644 index 0000000..295eee1 --- /dev/null +++ b/pkg/sbombastic-image-vulnerability-scanner/components/common/SevereVulnerabilitiesItem.vue @@ -0,0 +1,78 @@ + + + + + \ 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 dc2ed0f..f37182c 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml +++ b/pkg/sbombastic-image-vulnerability-scanner/l10n/en-us.yaml @@ -99,6 +99,11 @@ imageScanner: vulnerabilities: vulnerabilities vulnerabilities: title: Vulnerabilities + vulnerabilitiesBySeverityChart: + title: Most severe, affecting vulnerabilities + severityDistribution: + title: Severity distribution + subTitle: vulnerabilities in total vexManagement: title: VEX management description: Configure the security scanner to use up-to-date VEX reports. This will prioritize remediation efforts, focusing on vulnerabilities that are confirmed to be exploitable and reducing the noise coming from false positives. diff --git a/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Vulnerabilities.vue b/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Vulnerabilities.vue index 6c0294a..27dbd41 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Vulnerabilities.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Vulnerabilities.vue @@ -1,38 +1,73 @@ @@ -47,19 +82,18 @@ align-self: stretch; } - .header { + .header-section { display: flex; align-items: flex-start; gap: 24px; align-self: stretch; } - .charts { - /* layout */ - align-items: center; + .summary-section { + display: flex; + min-width: 912px; + align-items: flex-start; align-self: stretch; - padding: 4px 48px; - /* style */ border-radius: 6px; border: 1px solid #DCDEE7; background: #FFF; From c6a253852c222519c8696de49d7316114ab51970 Mon Sep 17 00:00:00 2001 From: Rush Kapoor Date: Mon, 25 Aug 2025 16:05:54 -0700 Subject: [PATCH 2/4] fix(vexhub): Fix Vexhub detail page navigation error caused by `/list/` view override --- .../models/sbombastic.rancher.io.vexhub.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js b/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js index 6350964..7a20a25 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js +++ b/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js @@ -1,6 +1,4 @@ import SteveModel from '@shell/plugins/steve/steve-class'; -import { PRODUCT_NAME, PAGE } from "@sbombastic-image-vulnerability-scanner/types"; -import { insertAt } from '@shell/utils/array'; export default class SbombasticRancherIoVexhub extends SteveModel { get _availableActions() { @@ -57,18 +55,6 @@ export default class SbombasticRancherIoVexhub extends SteveModel { return !this.spec?.enabled; } - get listLocation() { - return { name: `c-cluster-${PRODUCT_NAME}-${PAGE.VEX_MANAGEMENT}`, }; - } - - get doneOverride() { - return this.listLocation; - } - - get parentLocationOverride() { - return this.listLocation; - } - get fullDetailPageOverride() { return true; } From 42ccc1c2b98e14014481a0918e21db2bd829c5a1 Mon Sep 17 00:00:00 2001 From: Rush Kapoor Date: Mon, 25 Aug 2025 16:36:05 -0700 Subject: [PATCH 3/4] fix(vexhub): Fix Vex management detail styling Removes empty labels/annotations in masthead metadata to align with UX design --- .../detail/sbombastic.rancher.io.vexhub.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.vexhub.vue b/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.vexhub.vue index 82a0ca5..cf4847c 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.vexhub.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/detail/sbombastic.rancher.io.vexhub.vue @@ -64,7 +64,7 @@ const defaultMastheadProps = computed(() => {