From: Jeremy Davis Date: Fri, 7 Aug 2020 14:57:43 +0000 (+0200) Subject: SONAR-13628 UI fixes X-Git-Tag: 8.5.0.37579~136 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a94690921be591240c7bc97a287a2a0046fc58b9;p=sonarqube.git SONAR-13628 UI fixes --- diff --git a/server/sonar-web/src/main/js/apps/create/project/PersonalAccessTokenForm.tsx b/server/sonar-web/src/main/js/apps/create/project/PersonalAccessTokenForm.tsx index 2a0342a5d33..0329de3f987 100644 --- a/server/sonar-web/src/main/js/apps/create/project/PersonalAccessTokenForm.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/PersonalAccessTokenForm.tsx @@ -63,6 +63,7 @@ export default function PersonalAccessTokenForm(props: PersonalAccessTokenFormPr return (
) => { e.preventDefault(); const value = new FormData(e.currentTarget).get('personal_access_token') as string; @@ -74,7 +75,7 @@ export default function PersonalAccessTokenForm(props: PersonalAccessTokenFormPr

- +

{translate('onboarding.create_project.pat_help.title')}

diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/PersonalAccessTokenForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/PersonalAccessTokenForm-test.tsx.snap index c735dca4150..7f7cb95101e 100644 --- a/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/PersonalAccessTokenForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/PersonalAccessTokenForm-test.tsx.snap @@ -5,6 +5,7 @@ exports[`should render correctly: bitbucket 1`] = ` className="display-flex-start" >

@@ -125,6 +126,7 @@ exports[`should render correctly: gitlab 1`] = ` className="display-flex-start" >

@@ -226,6 +228,7 @@ exports[`should render correctly: gitlab with non-standard api path 1`] = ` className="display-flex-start" >

@@ -327,6 +330,7 @@ exports[`should render correctly: submitting 1`] = ` className="display-flex-start" >

@@ -447,6 +451,7 @@ exports[`should render correctly: validation failed 1`] = ` className="display-flex-start" >

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 1c0e844aa98..5d051d62271 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -3143,7 +3143,8 @@ onboarding.create_project.zero_alm_instances.github=You must first configure a G onboarding.create_project.wrong_binding_count=You must have exactly 1 {alm} instance configured in order to use this method, but none were found. Either create the project manually, or contact your system administrator. onboarding.create_project.wrong_binding_count.admin=You must have exactly 1 {alm} instance configured in order to use this method. You can configure instances under {url}. onboarding.create_project.enter_pat=Enter personal access token -onboarding.create_project.pat_incorrect=Your personal access token failed to validate. +onboarding.create_project.pat_incorrect.bitbucket=Your personal access token failed to validate. +onboarding.create_project.pat_incorrect.gitlab=Your personal access token failed to validate. Please make sure it has the right scope and that it is not expired. onboarding.create_project.pat_help.title=How to create a personal access token? onboarding.create_project.pat_help.instructions=Click the following link to generate a token in {alm}, and copy-paste it into the personal access token field.