]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18342 Multiple links have the same programmatic links but different targets
authorstanislavh <stanislav.honcharov@sonarsource.com>
Mon, 6 Feb 2023 16:15:46 +0000 (17:15 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 7 Feb 2023 20:02:53 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 0724e81957df9ac3c05fd2c9d8b3195984b08a2a..305f660c19e1ed30c7ea185196bc652a050717d6 100644 (file)
@@ -130,6 +130,11 @@ export default class EvolutionDeprecated extends React.PureComponent<Props> {
                 <Link
                   className="link-no-underline"
                   to={getDeprecatedActiveRulesUrl({ qprofile: profile.key })}
+                  aria-label={translateWithParameters(
+                    'quality_profile.lang_deprecated_x_rules',
+                    profile.languageName,
+                    profile.activeDeprecatedRuleCount
+                  )}
                 >
                   {translateWithParameters(
                     'quality_profile.x_rules',
index 12606344d36aff617e6cb8b89ce4846cbe7e0fcb..e2443422339d941105fdeeed256f1469d0364165 100644 (file)
@@ -37,6 +37,7 @@ exports[`should render correctly 1`] = `
         JavaScript
         , 
         <ForwardRef(Link)
+          aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.4"
           className="link-no-underline"
           to={
             {
@@ -83,6 +84,7 @@ exports[`should render correctly 1`] = `
         JavaScript
         , 
         <ForwardRef(Link)
+          aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.3"
           className="link-no-underline"
           to={
             {
@@ -122,6 +124,7 @@ exports[`should render correctly 1`] = `
         JavaScript
         , 
         <ForwardRef(Link)
+          aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.2"
           className="link-no-underline"
           to={
             {
@@ -154,6 +157,7 @@ exports[`should render correctly 1`] = `
         JavaScript
         , 
         <ForwardRef(Link)
+          aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.2"
           className="link-no-underline"
           to={
             {
index 415d73c4f3208c497f4cca61d53c3d3210ce0e01..e212d87eba05e889ab7fce61ea51b584a5cb9caa 100644 (file)
@@ -1691,12 +1691,12 @@ quality_profiles.changelog.parameter_reset_to_default_value=Parameter {0} reset
 quality_profiles.deleted_profile=The profile {0} doesn't exist anymore
 quality_profiles.projects_for_default=Every project not specifically associated with a quality profile will be associated to this one by default.
 quality_profile.x_rules={0} rule(s)
+quality_profile.lang_deprecated_x_rules={0}, {1} deprecated rule(s)
 quality_profile.x_active_rules={0} active rules
 quality_profiles.x_overridden_rules={0} overridden rules
 quality_profiles.change_parent=Change Parent
 quality_profiles.all_profiles=All Profiles
 quality_profiles.x_profiles={0} profile(s)
-quality_profiles.x_Profiles={0} Profiles
 quality_profiles.projects.select_hint=Click to associate this project with the quality profile
 quality_profiles.projects.deselect_hint=Click to remove association between this project and the quality profile
 quality_profile.empty_comparison=The quality profiles are equal.