From: Wouter Admiraal Date: Thu, 25 Feb 2021 09:16:34 +0000 (+0100) Subject: SONAR-11751 SONAR-11748 Use semantically correct elements on Issues page X-Git-Tag: 8.8.0.42792~78 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=986a6793f9d19e5ff93c3e340589a5abc16626c3;p=sonarqube.git SONAR-11751 SONAR-11748 Use semantically correct elements on Issues page --- diff --git a/server/sonar-web/src/main/js/apps/issues/components/App.tsx b/server/sonar-web/src/main/js/apps/issues/components/App.tsx index b32b26cf682..b3d8ce3ee68 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/App.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/App.tsx @@ -975,7 +975,10 @@ export default class App extends React.PureComponent { return ( {({ top }) => ( -
+
{ /> {openIssue ? this.renderConciseIssuesList() : this.renderFacets()}
-
+ )}
); @@ -1015,6 +1018,7 @@ export default class App extends React.PureComponent { return (
+

{translate('list_of_issues')}

{paging.total > 0 && ( { +

{translate('issues.page')}

+ {this.renderSide(openIssue)} -
+
{this.renderHeader({ openIssue, paging, selectedIndex })} {this.renderPage()} diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/App-test.tsx.snap index 51d877ba775..a465c14212f 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/App-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/App-test.tsx.snap @@ -33,6 +33,11 @@ exports[`should switch to source view if an issue is selected 1`] = ` encodeSpecialCharacters={true} title="issues.page" /> +

+ issues.page +

@@ -40,6 +45,7 @@ exports[`should switch to source view if an issue is selected 1`] = `
+

+ list_of_issues +

+

+ issues.page +

@@ -365,6 +381,7 @@ exports[`should switch to source view if an issue is selected 2`] = `
)} -

{translate('filters')}

+

{translate('filters')}

); } 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 be3b77bb8ae..dec3019c2c7 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -103,6 +103,7 @@ learn_more=Learn More library=Library line_number=Line Number links=Links +list_of_issues=List of issues list_of_projects=List of projects load_more=Load more load_verb=Load