From dd90313c727448db28728233276062d254594102 Mon Sep 17 00:00:00 2001 From: Shijun Sun <30999793+AllForNothing@users.noreply.github.com> Date: Thu, 24 Aug 2023 18:21:39 +0800 Subject: [PATCH] Add a tooltip for the page title of security hub (#19231) 1. This tooltip explains the artifacts total count Signed-off-by: AllForNothing --- .../vulnerability-summary.component.html | 6 ++++++ .../vulnerability-summary.component.scss | 10 ++++++++++ src/portal/src/i18n/lang/de-de-lang.json | 3 ++- src/portal/src/i18n/lang/en-us-lang.json | 3 ++- src/portal/src/i18n/lang/es-es-lang.json | 5 +++-- src/portal/src/i18n/lang/fr-fr-lang.json | 3 ++- src/portal/src/i18n/lang/pt-br-lang.json | 3 ++- src/portal/src/i18n/lang/tr-tr-lang.json | 3 ++- src/portal/src/i18n/lang/zh-cn-lang.json | 3 ++- src/portal/src/i18n/lang/zh-tw-lang.json | 3 ++- 10 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.html b/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.html index 967538b93..ba7f1a1cd 100644 --- a/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.html +++ b/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.html @@ -5,6 +5,12 @@ {{ 'SECURITY_HUB.SCANNED' | translate }}, {{ securitySummary?.total_artifact - securitySummary?.scanned_cnt }} {{ 'SECURITY_HUB.NOT_SCANNED' | translate }} + + + + {{ 'SECURITY_HUB.PAGE_TITLE_TOOLTIP' | translate }} + +
diff --git a/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.scss b/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.scss index 3c11e909f..921d3baff 100644 --- a/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.scss +++ b/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-summary/vulnerability-summary.component.scss @@ -98,3 +98,13 @@ $row-height: 48px; .clr-col { min-width: 0; } + +.page-title-tooltip { + margin-left: 5px; + margin-top: -2px; +} + +.h2 { + display: flex; + align-items: center; +} diff --git a/src/portal/src/i18n/lang/de-de-lang.json b/src/portal/src/i18n/lang/de-de-lang.json index 5c69765ec..80b0cadfc 100644 --- a/src/portal/src/i18n/lang/de-de-lang.json +++ b/src/portal/src/i18n/lang/de-de-lang.json @@ -1892,6 +1892,7 @@ "REPO_NAME": "Repository Name", "TOOLTIP": "All filters except CVSS3 only support exact matches", "NO_VUL": "We could not find any vulnerability", - "INVALID_VALUE": "Invalid range" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } } diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index 3bfba8d8e..c606ca349 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -1893,6 +1893,7 @@ "REPO_NAME": "Repository Name", "TOOLTIP": "All filters except CVSS3 only support exact matches", "NO_VUL": "We could not find any vulnerability", - "INVALID_VALUE": "Invalid range" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } } diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index 6e0c109b1..af7cb467e 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -1232,7 +1232,7 @@ "EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection", "DRY_RUN_SUCCESS": "Triggered dry run successfully", "DELETE_DETAIL": "{{blob}} blob(s) and {{manifest}} manifest(s) deleted, {{size}} space freed up", - "DELETE_DETAIL_DRY_RUN": "{{blob}} blob(s) and {{manifest}} manifest(s) could be deleted, {{size}} space could be freed up",, + "DELETE_DETAIL_DRY_RUN": "{{blob}} blob(s) and {{manifest}} manifest(s) could be deleted, {{size}} space could be freed up", "WORKERS_TOOLTIP": "Set the number of workers that can execute GC tasks in parallel, the default value is 1." }, "RETAG": { @@ -1889,6 +1889,7 @@ "REPO_NAME": "Repository Name", "TOOLTIP": "All filters except CVSS3 only support exact matches", "NO_VUL": "We could not find any vulnerability", - "INVALID_VALUE": "Invalid range" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } } diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index 393314e02..348c8e4db 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -1859,6 +1859,7 @@ "REPO_NAME": "Repository Name", "TOOLTIP": "All filters except CVSS3 only support exact matches", "NO_VUL": "We could not find any vulnerability", - "INVALID_VALUE": "Invalid range" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } } diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index c1a267f9c..e2b5733fb 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -1889,6 +1889,7 @@ "REPO_NAME": "Repository Name", "TOOLTIP": "All filters except CVSS3 only support exact matches", "NO_VUL": "We could not find any vulnerability", - "INVALID_VALUE": "Invalid range" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } } diff --git a/src/portal/src/i18n/lang/tr-tr-lang.json b/src/portal/src/i18n/lang/tr-tr-lang.json index c9d23efa2..9b0941edc 100644 --- a/src/portal/src/i18n/lang/tr-tr-lang.json +++ b/src/portal/src/i18n/lang/tr-tr-lang.json @@ -1892,6 +1892,7 @@ "REPO_NAME": "Repository Name", "TOOLTIP": "All filters except CVSS3 only support exact matches", "NO_VUL": "We could not find any vulnerability", - "INVALID_VALUE": "Invalid range" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } } diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json index 404bef02f..a3e91b9e8 100644 --- a/src/portal/src/i18n/lang/zh-cn-lang.json +++ b/src/portal/src/i18n/lang/zh-cn-lang.json @@ -1889,6 +1889,7 @@ "REPO_NAME": "仓库名称", "TOOLTIP": "CVSS3 除外的所有过滤项只支持精确匹配", "NO_VUL": "未找到任何漏洞", - "INVALID_VALUE": "无效范围" + "INVALID_VALUE": "CVSS3 分数的范围为0到10", + "PAGE_TITLE_TOOLTIP": "Artifact 总数是指所有单个 Artifact 的总数, 它包含了 Artifact 的附件数量、镜像索引中的子 Artifact 数量和 CNAB 中的子 Artifact 数量" } } diff --git a/src/portal/src/i18n/lang/zh-tw-lang.json b/src/portal/src/i18n/lang/zh-tw-lang.json index 8ce0d12c9..ce5a08298 100644 --- a/src/portal/src/i18n/lang/zh-tw-lang.json +++ b/src/portal/src/i18n/lang/zh-tw-lang.json @@ -1887,6 +1887,7 @@ "REPO_NAME": "儲存庫名稱", "TOOLTIP": "除了 CVSS3 之外,所有的篩選條件都只支援完全符合", "NO_VUL": "我們找不到任何弱點", - "INVALID_VALUE": "無效的範圍" + "INVALID_VALUE": "The CVSS3 score should range between 0 and 10", + "PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts" } }