diff --git a/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/action/approver_action.vue b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/action/approver_action.vue index 8fef6caf2ae2a69ae99ef386221b11b1d149c4c5..5c41523a643db6ccbc262f835104e40796519d73 100644 --- a/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/action/approver_action.vue +++ b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/action/approver_action.vue @@ -188,10 +188,13 @@ export default { :show-remove-button="false" > <template #content> - <div class="gl-mb-3 gl-ml-5 gl-flex gl-items-center"> + <div + class="gl-mb-3 gl-ml-5" + :class="{ 'gl-flex': !isWarnType, 'gl-items-center': !isWarnType }" + > <gl-sprintf :message="humanizedTemplate"> <template #require="{ content }"> - <strong class="gl-mr-3">{{ content }}</strong> + <strong>{{ content }}</strong> </template> <template #approvalsRequired> @@ -200,7 +203,7 @@ export default { :value="approvalsRequired" data-testid="approvals-required-input" type="number" - class="gl-mr-3 !gl-w-11" + class="gl-mx-3 !gl-w-11" :min="1" :max="100" @update="handleUpdateApprovalsRequired" diff --git a/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/lib/actions.js b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/lib/actions.js index 5b997d89cfb6d59649872d5c0ed147bb9fa14ebb..d052a3188cd3724fb7f1719dd8cb0e39d768ce12 100644 --- a/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/lib/actions.js +++ b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/lib/actions.js @@ -101,7 +101,7 @@ export const approversOutOfSync = (action, { user = [], group = [] }) => { }; export const WARN_TEMPLATE = s__( - 'SecurityOrchestration|%{requireStart}Generates a bot comment%{requireEnd} and selected users as the security consultant that developers can reach out for help.', + 'SecurityOrchestration|%{requireStart}Warn users with a bot comment%{requireEnd} and select users as security consultants that developers may contact for support in addressing violations.', ); export const WARN_TEMPLATE_HELP_TITLE = s__('SecurityOrchestration|Who is a consultant?'); diff --git a/ee/spec/frontend/security_orchestration/components/policy_editor/scan_result/action/approver_action_spec.js b/ee/spec/frontend/security_orchestration/components/policy_editor/scan_result/action/approver_action_spec.js index d75b5e4c82baace32afa370498eca792bb144406..4df4d76c5cf8b81cc73e05427bc9998726d2de5b 100644 --- a/ee/spec/frontend/security_orchestration/components/policy_editor/scan_result/action/approver_action_spec.js +++ b/ee/spec/frontend/security_orchestration/components/policy_editor/scan_result/action/approver_action_spec.js @@ -165,7 +165,7 @@ describe('ApproverAction', () => { it('renders the message', () => { expect(findSectionLayout().text()).toContain( - 'Generates a bot comment and selected users as the security consultant that developers can reach out for help.', + 'Warn users with a bot comment and select users as security consultants that developers may contact for support in addressing violations.', ); }); diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 9b5788d39ff40917f5cb3c12da76703038c120b1..6fc81ffe33cdbfb363ad91848a7870f13ff8abdd 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -51177,7 +51177,7 @@ msgstr "" msgid "SecurityOrchestration|%{pageSize}+ projects which have compliance framework:" msgstr "" -msgid "SecurityOrchestration|%{requireStart}Generates a bot comment%{requireEnd} and selected users as the security consultant that developers can reach out for help." +msgid "SecurityOrchestration|%{requireStart}Warn users with a bot comment%{requireEnd} and select users as security consultants that developers may contact for support in addressing violations." msgstr "" msgid "SecurityOrchestration|%{scanners}"