From: Wouter Admiraal Date: Tue, 26 Jul 2022 09:04:37 +0000 (+0200) Subject: SONAR-16703 [891684] Visual list is not marked up as list X-Git-Tag: 9.6.0.59041~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d1d45ed48d5da28aa690a053046aff4dbdcb496a;p=sonarqube.git SONAR-16703 [891684] Visual list is not marked up as list --- diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx index 8c50d12e51c..591876798e2 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/ProjectInformationRenderer.tsx @@ -94,18 +94,16 @@ export function ProjectInformationRenderer(props: ProjectInformationRendererProp {!isApp && (component.qualityGate || (component.qualityProfiles && component.qualityProfiles.length > 0)) && ( - <> -
- {component.qualityGate && } +
+ {component.qualityGate && } - {component.qualityProfiles && component.qualityProfiles.length > 0 && ( - - )} -
- + {component.qualityProfiles && component.qualityProfiles.length > 0 && ( + + )} +
)} {!isApp && } @@ -114,37 +112,43 @@ export function ProjectInformationRenderer(props: ProjectInformationRendererProp - {canUseBadges && ( - - )} - {canConfigureNotifications && ( - - )} - {component.qualifier === ComponentQualifier.Project && - appState.regulatoryReportFeatureEnabled && ( -
- ( - - )}> - {({ onClick }) => ( - {translate('regulatory_report.page')} - )} - -
+
    + {canUseBadges && ( +
  • + +
  • + )} + {canConfigureNotifications && ( +
  • + +
  • )} + {component.qualifier === ComponentQualifier.Project && + appState.regulatoryReportFeatureEnabled && ( +
  • + ( + + )}> + {({ onClick }) => ( + {translate('regulatory_report.page')} + )} + +
  • + )} +
); diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap index 3ea8de111d9..5a7ceaf41da 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap @@ -78,25 +78,31 @@ exports[`should handle missing quality profiles and quality gates 1`] = ` qualifier="TRK" /> - - -
- +
  • + +
  • +
  • + +
  • +
  • - - -
  • + + + + + `; @@ -245,25 +251,31 @@ exports[`should render a private project correctly 1`] = ` qualifier="TRK" /> - - -
    - +
  • + +
  • +
  • + +
  • +
  • - - -
  • + + + + + `; @@ -355,16 +367,22 @@ exports[`should render an app correctly: default 1`] = ` qualifier="APP" /> - - +
      +
    • + +
    • +
    • + +
    • +
    `; @@ -513,16 +531,22 @@ exports[`should render app correctly when regulatoryReportFeatureEnabled is fals qualifier="TRK" /> - - +
      +
    • + +
    • +
    • + +
    • +
    `; @@ -671,25 +695,31 @@ exports[`should render correctly: default 1`] = ` qualifier="TRK" /> - - -
    - +
  • + +
  • +
  • + +
  • +
  • - - -
  • + + + + + `; @@ -838,20 +868,24 @@ exports[`should render correctly: no badges 1`] = ` qualifier="TRK" /> - -
    - +
  • + +
  • +
  • - - -
  • + + + + + `; @@ -1000,15 +1034,17 @@ exports[`should render correctly: no badges, no notifications 1`] = ` qualifier="TRK" /> -
    - +
  • - - -
  • + + + + + `; @@ -1157,20 +1193,24 @@ exports[`should render correctly: with notifications 1`] = ` qualifier="TRK" /> - -
    - +
  • + +
  • +
  • - - -
  • + + + + + `; @@ -1320,25 +1360,31 @@ exports[`should render with description 1`] = ` qualifier="TRK" /> - - -
    - +
  • + +
  • +
  • + +
  • +
  • - - -
  • + + + + + `;