Browse Source

SONAR-14801 Improve documentation for bitbucket onboarding

tags/9.0.0.45539
Mathieu Suen 3 years ago
parent
commit
edb04b7bbd

+ 32
- 0
server/sonar-web/src/main/js/apps/create/project/PersonalAccessTokenForm.tsx View File

@@ -257,6 +257,38 @@ export default class PersonalAccessTokenForm extends React.PureComponent<Props,
</form>

<Alert className="big-spacer-left width-50" display="block" variant="info">
{alm === AlmKeys.BitbucketCloud && (
<>
<h3>
{translate(
'onboarding.create_project.pat_help.instructions_username.bitbucketcloud.title'
)}
</h3>
<p className="big-spacer-top big-spacer-bottom">
{translate(
'onboarding.create_project.pat_help.instructions_username.bitbucketcloud'
)}
</p>

<div className="text-middle big-spacer-bottom">
<img
alt="" // Should be ignored by screen readers
className="spacer-right"
height="16"
src={`${getBaseUrl()}/images/alm/${AlmKeys.BitbucketServer}.svg`}
/>
<a
href="https://bitbucket.org/account/settings/"
rel="noopener noreferrer"
target="_blank">
{translate(
'onboarding.create_project.pat_help.instructions_username.bitbucketcloud.link'
)}
</a>
</div>
</>
)}

<h3>{translate(`onboarding.create_project.pat_help${suffixTranslationKey}.title`)}</h3>

<p className="big-spacer-top big-spacer-bottom">

+ 50
- 0
server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/PersonalAccessTokenForm-test.tsx.snap View File

@@ -205,6 +205,31 @@ exports[`should render correctly: bitbucket cloud 1`] = `
display="block"
variant="info"
>
<h3>
onboarding.create_project.pat_help.instructions_username.bitbucketcloud.title
</h3>
<p
className="big-spacer-top big-spacer-bottom"
>
onboarding.create_project.pat_help.instructions_username.bitbucketcloud
</p>
<div
className="text-middle big-spacer-bottom"
>
<img
alt=""
className="spacer-right"
height="16"
src="/images/alm/bitbucket.svg"
/>
<a
href="https://bitbucket.org/account/settings/"
rel="noopener noreferrer"
target="_blank"
>
onboarding.create_project.pat_help.instructions_username.bitbucketcloud.link
</a>
</div>
<h3>
onboarding.create_project.pat_help.bitbucketcloud.title
</h3>
@@ -566,6 +591,31 @@ exports[`should show error when issue: issue submitting token 1`] = `
display="block"
variant="info"
>
<h3>
onboarding.create_project.pat_help.instructions_username.bitbucketcloud.title
</h3>
<p
className="big-spacer-top big-spacer-bottom"
>
onboarding.create_project.pat_help.instructions_username.bitbucketcloud
</p>
<div
className="text-middle big-spacer-bottom"
>
<img
alt=""
className="spacer-right"
height="16"
src="/images/alm/bitbucket.svg"
/>
<a
href="https://bitbucket.org/account/settings/"
rel="noopener noreferrer"
target="_blank"
>
onboarding.create_project.pat_help.instructions_username.bitbucketcloud.link
</a>
</div>
<h3>
onboarding.create_project.pat_help.bitbucketcloud.title
</h3>

+ 5
- 0
sonar-core/src/main/resources/org/sonar/l10n/core.properties View File

@@ -3283,6 +3283,11 @@ onboarding.create_project.pat_help.bitbucketcloud.instructions=Click the followi
onboarding.create_project.pat_help.instructions2.bitbucket=Set a name, for example "SonarQube", and select the following permissions:
onboarding.create_project.pat_help.instructions2.bitbucketcloud=Set a name, for example "SonarQube", and select the following permissions:


onboarding.create_project.pat_help.instructions_username.bitbucketcloud.title=How to find your username?
onboarding.create_project.pat_help.instructions_username.bitbucketcloud=Click the following link to find your username in the Bitbucket profile settings
onboarding.create_project.pat_help.instructions_username.bitbucketcloud.link=Personal settings

onboarding.create_project.pat_help.link=Create personal access token
onboarding.create_project.pat_help.bitbucketcloud.link=Add app password
onboarding.create_project.pat_help.bbs_permission_projects=Projects: {perm}

Loading…
Cancel
Save