]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15059 Re-order the service connection fields to match what is shown on Azure
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Thu, 12 May 2022 11:48:48 +0000 (13:48 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 13 May 2022 20:02:50 +0000 (20:02 +0000)
server/sonar-web/src/main/js/components/tutorials/azure-pipelines/ServiceEndpointStepContent.tsx
server/sonar-web/src/main/js/components/tutorials/azure-pipelines/__tests__/__snapshots__/ServiceEndpointStepContent-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index e9e3f7a60cd3810547d98c50d6e5a3b967fbe9d3..00a9cd4e40e15f506045f78bbc7082d2c2c953fd 100644 (file)
@@ -53,15 +53,12 @@ export default function ServiceEndpointStepContent(props: ServiceEndpointStepPro
             highlightKeys={['type']}
           />
         </li>
-        <li>
-          {translate('onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence')}
-        </li>
         <li>
           <FormattedMessage
             defaultMessage={translate(
-              'onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence'
+              'onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence'
             )}
-            id="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence"
+            id="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence"
             values={{
               url: <code className="rule">{baseUrl}</code>,
               button: <ClipboardIconButton copyValue={baseUrl} />
@@ -70,12 +67,15 @@ export default function ServiceEndpointStepContent(props: ServiceEndpointStepPro
         </li>
         <li>
           <span>
-            {translate('onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence')}:
+            {translate('onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence')}:
           </span>
           <Button className="spacer-left" onClick={() => toggleModal(true)}>
             {translate('onboarding.token.generate_token')}
           </Button>
         </li>
+        <li>
+          {translate('onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence')}
+        </li>
         <li>
           {translate('onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step6.sentence')}
         </li>
index 7b52581aa1289e131f9be1aa05bfa4e4e894fb52..468ec3df83c142528ff24e9e6504cba55ea45887 100644 (file)
@@ -25,13 +25,10 @@ exports[`should render correctly 1`] = `
         translationKey="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step2"
       />
     </li>
-    <li>
-      onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence
-    </li>
     <li>
       <FormattedMessage
-        defaultMessage="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence"
-        id="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence"
+        defaultMessage="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence"
+        id="onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence"
         values={
           Object {
             "button": <ClipboardIconButton
@@ -48,7 +45,7 @@ exports[`should render correctly 1`] = `
     </li>
     <li>
       <span>
-        onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence
+        onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence
         :
       </span>
       <Button
@@ -58,6 +55,9 @@ exports[`should render correctly 1`] = `
         onboarding.token.generate_token
       </Button>
     </li>
+    <li>
+      onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence
+    </li>
     <li>
       onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step6.sentence
     </li>
index aaf1bf7ec60fda4aac9679598daac35729e5ec3b..5f7195eb3d2d09651955169eb700d654f662b5b7 100644 (file)
@@ -3890,9 +3890,9 @@ onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step1.sentence=In Azure
 onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step1.sentence.menu=Project settings > Service connections
 onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step2.sentence=Add a new service connection of type {type}
 onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step2.sentence.type=SonarQube
-onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence=Enter a memorable connection name
-onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence=Enter your SonarQube server url: {url} {button}
-onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence=Enter an existing token, or a newly generated one
+onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step3.sentence=Enter your SonarQube server url: {url} {button}
+onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step4.sentence=Enter an existing token, or a newly generated one
+onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step5.sentence=Enter a memorable connection name
 onboarding.tutorial.with.azure_pipelines.ServiceEndpoint.step6.sentence=Create the service connection
 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.title=Configure analysis
 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.info=The following steps assume you are using the Azure Pipelines classic editor. Check out our {doc_link} for the YAML counterpart.