From 0c1273bf4e9dfa3f69dc2662ec2114aaef2f662f Mon Sep 17 00:00:00 2001 From: Ambroise C Date: Wed, 18 Oct 2023 11:55:08 +0200 Subject: [PATCH] SONAR-20679 Remove placeholder text when there's no event on an analysis --- .../src/main/js/apps/overview/branches/Analysis.tsx | 13 +++---------- .../main/resources/org/sonar/l10n/core.properties | 2 -- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/branches/Analysis.tsx b/server/sonar-web/src/main/js/apps/overview/branches/Analysis.tsx index c46c684f2f4..f201c9d4831 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/Analysis.tsx +++ b/server/sonar-web/src/main/js/apps/overview/branches/Analysis.tsx @@ -22,7 +22,6 @@ import { sortBy } from 'lodash'; import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import DateTimeFormatter from '../../../components/intl/DateTimeFormatter'; -import { translate } from '../../../helpers/l10n'; import { ComponentQualifier } from '../../../types/component'; import { AnalysisMeasuresVariations, @@ -62,12 +61,6 @@ export function Analysis(props: Readonly) { 'category', ); - // use `TRK` for all components but applications - const displayedQualifier = - qualifier === ComponentQualifier.Application - ? ComponentQualifier.Application - : ComponentQualifier.Project; - return (
@@ -95,9 +88,9 @@ export function Analysis(props: Readonly) { )}
- {sortedEvents.length > 0 - ? sortedEvents.map((event) => ) - : translate('project_activity.analyzed', displayedQualifier)} + {sortedEvents.map((event) => ( + + ))} {qualifier === ComponentQualifier.Project && variations !== undefined && ( diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index d69262468a0..0d9db6f1dc9 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1832,8 +1832,6 @@ project_navigation.analysis_status.details_link=See details project_activity.analysis=Analysis project_activity.analysis_build_string_X=Build string: {0} project_activity.add_version=Create Version -project_activity.analyzed.TRK=Project Analyzed -project_activity.analyzed.APP=Application Analyzed project_activity.analysis_X_actions=Show actions for analysis {0} project_activity.show_analysis_X_on_graph=Show details on interactive graph for analysis {0}. Note: this data is also available as a table. Click on the button below the graph. project_activity.remove_version=Remove Version -- 2.39.5