aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/custom-metrics
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-04-26 08:42:19 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-03 20:20:50 +0200
commitb083d4376580b8dd252933025ca86ce5b98ce7af (patch)
treea0d05a812d6c70c3d8573106b12a1ec74f6faefa /server/sonar-web/src/main/js/apps/custom-metrics
parent0c996218c1a2c2542c3465a7bf1f38ee386132da (diff)
downloadsonarqube-b083d4376580b8dd252933025ca86ce5b98ce7af.tar.gz
sonarqube-b083d4376580b8dd252933025ca86ce5b98ce7af.zip
SONAR-10612 Create documentation space in the web app
Diffstat (limited to 'server/sonar-web/src/main/js/apps/custom-metrics')
-rw-r--r--server/sonar-web/src/main/js/apps/custom-metrics/components/App.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/App-test.tsx.snap6
2 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/custom-metrics/components/App.tsx b/server/sonar-web/src/main/js/apps/custom-metrics/components/App.tsx
index f802bc704f8..a8f87cf9941 100644
--- a/server/sonar-web/src/main/js/apps/custom-metrics/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/custom-metrics/components/App.tsx
@@ -22,6 +22,7 @@ import { Helmet } from 'react-helmet';
import { MetricProps } from './Form';
import Header from './Header';
import List from './List';
+import Suggestions from '../../../app/components/embed-docs-modal/Suggestions';
import {
getMetricDomains,
getMetricTypes,
@@ -146,6 +147,7 @@ export default class App extends React.PureComponent<Props, State> {
return (
<>
+ <Suggestions suggestions="custom_metrics" />
<Helmet title={translate('custom_metrics.page')} />
<div className="page page-limited" id="custom-metrics-page">
<Header domains={domains} loading={loading} onCreate={this.handleCreate} types={types} />
diff --git a/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/App-test.tsx.snap
index 55f852e2689..6a3320cd191 100644
--- a/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/custom-metrics/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -2,6 +2,9 @@
exports[`should work 1`] = `
<React.Fragment>
+ <Suggestions
+ suggestions="custom_metrics"
+ />
<HelmetWrapper
defer={true}
encodeSpecialCharacters={true}
@@ -21,6 +24,9 @@ exports[`should work 1`] = `
exports[`should work 2`] = `
<React.Fragment>
+ <Suggestions
+ suggestions="custom_metrics"
+ />
<HelmetWrapper
defer={true}
encodeSpecialCharacters={true}