]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9553 Update onboarding headline
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 2 Oct 2017 14:38:28 +0000 (16:38 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Wed, 4 Oct 2017 09:19:53 +0000 (11:19 +0200)
server/sonar-web/src/main/js/apps/tutorials/onboarding/Onboarding.js
server/sonar-web/src/main/js/apps/tutorials/onboarding/__tests__/__snapshots__/Onboarding-test.js.snap
server/sonar-web/src/main/js/apps/tutorials/onboarding/styles.css
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index f14988a2ddb1866a9f0ba887709dc673bde7b4e5..a9065a16b0ae6c8652a72dee6464ff64c7c4cd3e 100644 (file)
@@ -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')}
                 </a>
               )}
+              <p className="note">{translate('tutorials.find_it_back_in_help')}</p>
+            </div>
+            <div className="page-description">
+              {translateWithParameters(
+                'onboarding.header.description_x',
+                organizationsEnabled ? 3 : 2
+              )}
             </div>
-            <div className="page-description">{translate('onboarding.header.description')}</div>
           </header>
 
           {organizationsEnabled && (
index 74b2721d7b0cd1b2c8290f684e187d483e37bf57..f8234801320c567e529c7a57328bccd0657abce5 100644 (file)
@@ -30,11 +30,16 @@ exports[`guides for on-premise 1`] = `
         >
           tutorials.skip
         </a>
+        <p
+          className="note"
+        >
+          tutorials.find_it_back_in_help
+        </p>
       </div>
       <div
         className="page-description"
       >
-        onboarding.header.description
+        onboarding.header.description_x.2
       </div>
     </header>
     <TokenStep
@@ -85,11 +90,16 @@ exports[`guides for on-premise 2`] = `
         >
           tutorials.skip
         </a>
+        <p
+          className="note"
+        >
+          tutorials.find_it_back_in_help
+        </p>
       </div>
       <div
         className="page-description"
       >
-        onboarding.header.description
+        onboarding.header.description_x.2
       </div>
     </header>
     <TokenStep
@@ -141,11 +151,16 @@ exports[`guides for sonarcloud 1`] = `
         >
           tutorials.skip
         </a>
+        <p
+          className="note"
+        >
+          tutorials.find_it_back_in_help
+        </p>
       </div>
       <div
         className="page-description"
       >
-        onboarding.header.description
+        onboarding.header.description_x.3
       </div>
     </header>
     <OrganizationStep
@@ -209,11 +224,16 @@ exports[`guides for sonarcloud 2`] = `
         >
           tutorials.skip
         </a>
+        <p
+          className="note"
+        >
+          tutorials.find_it_back_in_help
+        </p>
       </div>
       <div
         className="page-description"
       >
-        onboarding.header.description
+        onboarding.header.description_x.3
       </div>
     </header>
     <OrganizationStep
@@ -278,11 +298,16 @@ exports[`guides for sonarcloud 3`] = `
         >
           tutorials.skip
         </a>
+        <p
+          className="note"
+        >
+          tutorials.find_it_back_in_help
+        </p>
       </div>
       <div
         className="page-description"
       >
-        onboarding.header.description
+        onboarding.header.description_x.3
       </div>
     </header>
     <OrganizationStep
index 81266990209edaff639e19bfcc1454d6846f52e6..26f7f464cd2d0fe592f5085431002d61deb2d2a1 100644 (file)
   background-color: #fff;
   color: #404040;
 }
+
+.onboarding .page-actions {
+  text-align: right;
+  margin-bottom: 0;
+}
+
+.onboarding .page-actions p {
+  line-height: 16px;
+  margin-top: 6px;
+}
index d21ffe16c5bf22012c233b8c317bd88978125851..fcb14bef307e15aabb84054e30afbfe7f870b973 100644 (file)
@@ -863,6 +863,7 @@ tutorials.onboarding=Analyze a new project
 tutorials.skip=Skip this tutorial
 tutorials.finish=Finish this tutorial
 tutorials.follow_later=Follow the tutorial later in the Help section
+tutorials.find_it_back_in_help=Find it back anytime in the Help section
 
 
 #------------------------------------------------------------------------------
@@ -2463,7 +2464,7 @@ footer.web_api=Web API
 #------------------------------------------------------------------------------
 onboarding.header=Welcome to SonarQube!
 onboarding.header.sonarcloud=Welcome to SonarCloud!
-onboarding.header.description=Let's analyze a new project.
+onboarding.header.description=Want to quickly analyze a first project? Follow these {0} easy steps.
 
 onboarding.token.header=Generate a token
 onboarding.token.text=The token is used to identify you when an analysis is performed. If it has been compromised, you can revoke it at any point of time in your user account.