From: Revanshu Paliwal Date: Fri, 27 May 2022 09:45:28 +0000 (+0200) Subject: SONAR-12782 Updating labels for project tokens X-Git-Tag: 9.5.0.56709~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6b96853817dc3c3eb7d71fc71f0ed1ef24d7f2f6;p=sonarqube.git SONAR-12782 Updating labels for project tokens --- diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/TokenStep.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/TokenStep.tsx index 328a306788d..c9ba982bada 100644 --- a/server/sonar-web/src/main/js/components/tutorials/manual/TokenStep.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/manual/TokenStep.tsx @@ -27,6 +27,7 @@ import AlertSuccessIcon from '../../../components/icons/AlertSuccessIcon'; import { translate } from '../../../helpers/l10n'; import { TokenType, UserToken } from '../../../types/token'; import { LoggedInUser } from '../../../types/users'; +import DocumentationTooltip from '../../common/DocumentationTooltip'; import AlertErrorIcon from '../../icons/AlertErrorIcon'; import Step from '../components/Step'; import { getUniqueTokenName } from '../utils'; @@ -172,23 +173,38 @@ export default class TokenStep extends React.PureComponent { )} {this.state.selection === 'generate' && (
-
- - {this.state.loading ? ( - - ) : ( - - {translate('onboarding.token.generate')} - - )} + + +
+ + {this.state.loading ? ( + + ) : ( + + {translate('onboarding.token.generate')} + + )} +
)} @@ -208,12 +224,25 @@ export default class TokenStep extends React.PureComponent { {translate('onboarding.token.use_existing_token')} {this.state.selection === 'use-existing' && ( -
+
+
- - - onboarding.token.generate - + onboarding.token.generate_project_token.label + + +
+ + + onboarding.token.generate + +
@@ -127,20 +148,41 @@ exports[`generates token 2`] = ` className="big-spacer-top" >
- - + +
+ + +
@@ -443,23 +485,44 @@ exports[`revokes token 3`] = ` className="big-spacer-top" >
- - - onboarding.token.generate - + onboarding.token.generate_project_token.label + + +
+ + + onboarding.token.generate + +
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 3333fd74db0..993f74bfb8d 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -3459,13 +3459,13 @@ onboarding.token.text.user_account=user account onboarding.token.generate=Generate onboarding.token.placeholder=Enter a name for your token onboarding.token.generate_token=Generate a token -onboarding.token.generate_token.placeholder=Enter a name for your token onboarding.token.generate_project_token=Generate a project token -onboarding.token.generate_project_token.placeholder=Enter a name for your project token +onboarding.token.generate_project_token.label=Token name onboarding.token.use_existing_token=Use existing token -onboarding.token.use_existing_token.placeholder=Enter your existing token onboarding.token.use_existing_token.label=Existing token value onboarding.token.invalid_format=The token you have entered has invalid format. +onboarding.token.use_existing_token.help=Paste an existing token value into the input field. +onboarding.token.generate_project_token.help=Enter a name for your project token onboarding.tutorial.env_variables=In the {field} field, enter {value} {extra} onboarding.tutorial.env_variables.field=Value