diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-09 00:15:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-09 00:15:10 +0300 |
commit | 7db94a9807df03ce7a4f210b513816a47f34e15b (patch) | |
tree | a20574d4297ba13e3340bfae217e3035e77d6423 /app/assets/javascripts/analytics | |
parent | 3a563d7c1e15023f205d2a357e5d8a38a3b53ecc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/analytics')
3 files changed, 25 insertions, 3 deletions
diff --git a/app/assets/javascripts/analytics/cycle_analytics/components/base.vue b/app/assets/javascripts/analytics/cycle_analytics/components/base.vue index 52e36749351..39da3484dfe 100644 --- a/app/assets/javascripts/analytics/cycle_analytics/components/base.vue +++ b/app/assets/javascripts/analytics/cycle_analytics/components/base.vue @@ -9,7 +9,7 @@ import PathNavigation from '~/analytics/cycle_analytics/components/path_navigati import StageTable from '~/analytics/cycle_analytics/components/stage_table.vue'; import ValueStreamFilters from '~/analytics/cycle_analytics/components/value_stream_filters.vue'; import UrlSync from '~/vue_shared/components/url_sync.vue'; -import { __ } from '~/locale'; +import { __, s__ } from '~/locale'; import { SUMMARY_METRICS_REQUEST, METRICS_REQUESTS } from '../constants'; const OVERVIEW_DIALOG_COOKIE = 'cycle_analytics_help_dismissed'; @@ -79,7 +79,9 @@ export default { } return this.selectedStageError ? this.selectedStageError - : __("We don't have enough data to show this stage."); + : s__( + 'ValueStreamAnalyticsStage|There are 0 items to show in this stage, for these filters, within this time range.', + ); }, emptyStageText() { if (this.displayNoAccess) { diff --git a/app/assets/javascripts/analytics/cycle_analytics/constants.js b/app/assets/javascripts/analytics/cycle_analytics/constants.js index ebb2775b378..bea562fb18c 100644 --- a/app/assets/javascripts/analytics/cycle_analytics/constants.js +++ b/app/assets/javascripts/analytics/cycle_analytics/constants.js @@ -14,7 +14,7 @@ export const DEFAULT_VALUE_STREAM = { }; export const NOT_ENOUGH_DATA_ERROR = s__( - "ValueStreamAnalyticsStage|We don't have enough data to show this stage.", + 'ValueStreamAnalyticsStage|There are 0 items to show in this stage, for these filters, within this time range.', ); export const PAGINATION_TYPE = 'keyset'; diff --git a/app/assets/javascripts/analytics/shared/constants.js b/app/assets/javascripts/analytics/shared/constants.js index a07e2c3b799..3ac54900d37 100644 --- a/app/assets/javascripts/analytics/shared/constants.js +++ b/app/assets/javascripts/analytics/shared/constants.js @@ -38,6 +38,14 @@ const VSA_FLOW_METRICS_GROUP = { export const VSA_METRICS_GROUPS = [VSA_FLOW_METRICS_GROUP]; +export const VULNERABILITY_CRITICAL_TYPE = 'vulnerability_critical'; +export const VULNERABILITY_HIGH_TYPE = 'vulnerability_high'; + +export const VULNERABILITY_METRICS = { + CRITICAL: VULNERABILITY_CRITICAL_TYPE, + HIGH: VULNERABILITY_HIGH_TYPE, +}; + export const METRIC_TOOLTIPS = { [DORA_METRICS.DEPLOYMENT_FREQUENCY]: { description: s__( @@ -101,6 +109,18 @@ export const METRIC_TOOLTIPS = { projectLink: '-/analytics/merge_request_analytics', docsLink: helpPagePath('user/analytics/merge_request_analytics'), }, + [VULNERABILITY_METRICS.CRITICAL]: { + description: s__('ValueStreamAnalytics|Total Critical vulnerabilities.'), + groupLink: '-/security/vulnerabilities', + projectLink: '-/security/vulnerability_report', + docsLink: helpPagePath('user/application_security/vulnerability_report/index'), + }, + [VULNERABILITY_METRICS.HIGH]: { + description: s__('ValueStreamAnalytics|Total High vulnerabilities.'), + groupLink: '-/security/vulnerabilities', + projectLink: '-/security/vulnerability_report', + docsLink: helpPagePath('user/application_security/vulnerability_report/index'), + }, }; // TODO: Remove this once the migration to METRIC_TOOLTIPS is complete |