From 79c58a2b49b381fe97afc0110d71ba65e8bbdb74 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 7 Feb 2024 19:25:52 -0500 Subject: [PATCH] feat(project): finding badges including and excluding aliases Signed-off-by: Adam Setch --- src/assets/scss/_custom.scss | 5 +++++ src/i18n/locales/en.json | 2 ++ src/views/portfolio/projects/Project.vue | 10 ++++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/assets/scss/_custom.scss b/src/assets/scss/_custom.scss index c145337ce..1ccbfa1ed 100644 --- a/src/assets/scss/_custom.scss +++ b/src/assets/scss/_custom.scss @@ -341,6 +341,11 @@ button:focus { margin-left: 0.6em !important; color: #21D983 !important; } +.badge-tab-info { + border: 1px solid #60768c !important; + background-color: $grey-900 !important; + color: $notification-info !important; +} .badge-tag { color: $primary; background-color: transparent; diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 0c9c5bd67..7d52034fe 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -44,6 +44,8 @@ "vulnerable_projects": "Vulnerable Projects", "findings": "Findings", "total_findings": "Total Findings", + "total_findings_including_aliases": "Total Findings (including aliases)", + "total_findings_excluding_aliases": "Total Findings (excluding aliases)", "findings_audited": "Findings Audited", "findings_unaudited": "Findings Unaudited", "auditing_progress": "Auditing Progress", diff --git a/src/views/portfolio/projects/Project.vue b/src/views/portfolio/projects/Project.vue index 0575ebe5e..fbed8a363 100644 --- a/src/views/portfolio/projects/Project.vue +++ b/src/views/portfolio/projects/Project.vue @@ -131,8 +131,12 @@ - - + + @@ -222,6 +226,7 @@ totalServices: 0, totalDependencyGraphs: 0, totalFindings: 0, + totalFindingsIncludingAliases: 0, totalEpss: 0, totalViolations: 0, tabIndex: 0 @@ -253,6 +258,7 @@ this.currentLow = common.valueWithDefault(this.project.metrics.low, 0); this.currentUnassigned = common.valueWithDefault(this.project.metrics.unassigned, 0); this.currentRiskScore = common.valueWithDefault(this.project.metrics.inheritedRiskScore, 0); + this.totalFindings = common.valueWithDefault(this.project.metrics.findingsTotal, 0) EventBus.$emit('addCrumb', this.projectLabel); this.$title = this.projectLabel; });