From d060a8b38245625fdf2012a2c7ba8884c3bc22ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Mon, 2 Oct 2017 16:38:28 +0200 Subject: [PATCH] SONAR-9553 Update onboarding headline --- .../apps/tutorials/onboarding/Onboarding.js | 10 ++++-- .../__snapshots__/Onboarding-test.js.snap | 35 ++++++++++++++++--- .../js/apps/tutorials/onboarding/styles.css | 10 ++++++ .../resources/org/sonar/l10n/core.properties | 3 +- 4 files changed, 50 insertions(+), 8 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/Onboarding.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/Onboarding.js index f14988a2ddb..a9065a16b0a 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/Onboarding.js +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/Onboarding.js @@ -27,7 +27,7 @@ import OrganizationStep from './OrganizationStep'; import AnalysisStep from './AnalysisStep'; import ProjectWatcher from './ProjectWatcher'; import { skipOnboarding } from '../../../api/users'; -import { translate } from '../../../helpers/l10n'; +import { translate, translateWithParameters } from '../../../helpers/l10n'; import { getProjectUrl } from '../../../helpers/urls'; import handleRequiredAuthentication from '../../../app/utils/handleRequiredAuthentication'; import './styles.css'; @@ -168,8 +168,14 @@ export default class Onboarding extends React.PureComponent { {translate('tutorials.skip')} )} +

{translate('tutorials.find_it_back_in_help')}

+ +
+ {translateWithParameters( + 'onboarding.header.description_x', + organizationsEnabled ? 3 : 2 + )}
-
{translate('onboarding.header.description')}
{organizationsEnabled && ( diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/Onboarding-test.js.snap b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/Onboarding-test.js.snap index 74b2721d7b0..f8234801320 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/Onboarding-test.js.snap +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/Onboarding-test.js.snap @@ -30,11 +30,16 @@ exports[`guides for on-premise 1`] = ` > tutorials.skip +

+ tutorials.find_it_back_in_help +

- onboarding.header.description + onboarding.header.description_x.2
tutorials.skip +

+ tutorials.find_it_back_in_help +

- onboarding.header.description + onboarding.header.description_x.2
tutorials.skip +

+ tutorials.find_it_back_in_help +

- onboarding.header.description + onboarding.header.description_x.3
tutorials.skip +

+ tutorials.find_it_back_in_help +

- onboarding.header.description + onboarding.header.description_x.3
tutorials.skip +

+ tutorials.find_it_back_in_help +

- onboarding.header.description + onboarding.header.description_x.3