]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15882 Improve message on measure page when project is not accessible
authorMathieu Suen <mathieu.suen@sonarsource.com>
Tue, 25 Jan 2022 10:28:43 +0000 (11:28 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 27 Jan 2022 20:03:05 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/code/components/CodeApp.tsx
server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/CodeApp-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index a66a95fc915e1aeb549c7aa900678e7c80f63fe1..c38bfe4a3690413e5d622527e6d3537333afbbba 100644 (file)
@@ -301,11 +301,11 @@ export class CodeApp extends React.Component<Props, State> {
         {!canBrowseAllChildProjects && isPortfolioLike(qualifier) && (
           <StyledAlert variant="warning" className="it__portfolio_warning">
             <AlertContent>
-              {translate('component_measures.not_all_measures_are_shown')}
+              {translate('code_viewer.not_all_measures_are_shown')}
               <HelpTooltip
                 className="spacer-left"
-                ariaLabel={translate('component_measures.not_all_measures_are_shown.help')}
-                overlay={translate('component_measures.not_all_measures_are_shown.help')}
+                ariaLabel={translate('code_viewer.not_all_measures_are_shown.help')}
+                overlay={translate('code_viewer.not_all_measures_are_shown.help')}
               />
             </AlertContent>
           </StyledAlert>
index 0e98dd30dc687ad67b8d90c68d305c36fd0534ef..f231725f00e4e478f1b1c7e4dfe16db72d56f950 100644 (file)
@@ -180,11 +180,11 @@ exports[`should render a warning message when user does not have access to all p
     variant="warning"
   >
     <Styled(div)>
-      component_measures.not_all_measures_are_shown
+      code_viewer.not_all_measures_are_shown
       <HelpTooltip
-        ariaLabel="component_measures.not_all_measures_are_shown.help"
+        ariaLabel="code_viewer.not_all_measures_are_shown.help"
         className="spacer-left"
-        overlay="component_measures.not_all_measures_are_shown.help"
+        overlay="code_viewer.not_all_measures_are_shown.help"
       />
     </Styled(div)>
   </Styled(Alert)>
index 7b88aed98feab4eb498e4590754ee41dd800d98b..d3e06b99b1c1d6e530bfc294d29606b1c1016cf8 100644 (file)
@@ -1418,8 +1418,11 @@ code_viewer.no_source_code_displayed_due_to_empty_analysis.VW=No projects, appli
 code_viewer.no_source_code_displayed_due_to_empty_analysis.SVW=No projects, applications, or portfolios in this portfolio.
 code_viewer.no_source_code_displayed_due_to_security=Due to security settings, no source code can be displayed.
 code_viewer.no_source_code_displayed_due_to_source_removed=The file was removed, no source code can be displayed.
+code_viewer.not_all_measures_are_shown=Not all projects and applications are included
+code_viewer.not_all_measures_are_shown.help=You do not have access to all projects and/or applications.
 code_viewer.portfolio_code_toggle_disabled.help=New Code and Overall Code measures are not available when searching for projects or applications.
 
+
 #------------------------------------------------------------------------------
 #
 # CUSTOM MEASURES
@@ -3257,7 +3260,7 @@ component_measures.facet_category.overall_category.estimated=Estimated after mer
 component_measures.facet_category.tests_category=Tests
 component_measures.bubble_chart.zoom_level=Current zoom level. Scroll on the chart to zoom or unzoom, click here to reset.
 component_measures.not_all_measures_are_shown=Not all projects and applications are included
-component_measures.not_all_measures_are_shown.help=You do not have access to all projects and/or applications
+component_measures.not_all_measures_are_shown.help=You do not have access to all projects and/or applications. Measures are still computed based on all projects and applications.
 
 #------------------------------------------------------------------------------
 #