@@ -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"> |
@@ -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> |
@@ -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} |