Commit 87d0e1e3 authored by Marcia Ramos's avatar Marcia Ramos Committed by Phil Hughes

Improve UI text - deploy keys

- Improve UI text - deploy keys - shared

- Add changelog UI text

- TW review - wording and syntax

- Update translations gitlab.pot

- Update spec files - deploy keys

- Update component - deploy keys

- Update docs - deploy keys

- Update empty_state view

- Make text translatable
parent d426642b
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
methods: { methods: {
projectTooltipTitle(project) { projectTooltipTitle(project) {
return project.can_push return project.can_push
? s__('DeployKeys|Write access allowed') ? s__('DeployKeys|Grant write permissions to this key')
: s__('DeployKeys|Read access only'); : s__('DeployKeys|Read access only');
}, },
toggleExpanded() { toggleExpanded() {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
%p.light %p.light
- link_start = "<a href='#{help_page_path('ssh/README')}' target='_blank' rel='noreferrer noopener'>".html_safe - link_start = "<a href='#{help_page_path('ssh/README')}' target='_blank' rel='noreferrer noopener'>".html_safe
- link_end = '</a>' - link_end = '</a>'
= _('Paste a machine public key here. Read more about how to generate it %{link_start}here%{link_end}').html_safe % { link_start: link_start, link_end: link_end.html_safe } = _('Paste a public key here. %{link_start}How do I generate it?%{link_end}').html_safe % { link_start: link_start, link_end: link_end.html_safe }
= form.text_area :key, class: 'form-control gl-form-input thin_area', rows: 5 = form.text_area :key, class: 'form-control gl-form-input thin_area', rows: 5
- else - else
= form.label :fingerprint, class: 'col-form-label col-sm-2' = form.label :fingerprint, class: 'col-form-label col-sm-2'
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
.col-sm-10 .col-sm-10
= deploy_keys_project_form.label :can_push do = deploy_keys_project_form.label :can_push do
= deploy_keys_project_form.check_box :can_push = deploy_keys_project_form.check_box :can_push
%strong= _('Write access allowed') %strong= _('Grant write permissions to this key')
%p.light.gl-mb-0 %p.light.gl-mb-0
= _('Allow this key to push to repository as well? (Default only allows pull access.)') = _('Allow this key to push to this repository')
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
%button.btn.js-settings-toggle{ type: 'button' } %button.btn.js-settings-toggle{ type: 'button' }
= expanded ? 'Collapse' : 'Expand' = expanded ? 'Collapse' : 'Expand'
%p %p
= _('Deploy keys allow read-only or read-write (if enabled) access to your repository. Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one.') - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/deploy_keys/index') }
= _("Add deploy keys to grant read/write access to this repository. %{link_start}What are Deploy Keys?%{link_end}").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
.settings-content .settings-content
%h5.gl-mt-0 %h5.gl-mt-0
= _('Create a new deploy key for this project')
= render @deploy_keys.form_partial_path = render @deploy_keys.form_partial_path
%hr %hr
#js-deploy-keys{ data: { endpoint: project_deploy_keys_path(@project), project_id: @project.id } } #js-deploy-keys{ data: { endpoint: project_deploy_keys_path(@project), project_id: @project.id } }
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
= f.text_area :key, class: 'form-control gl-form-input', rows: 5, required: true = f.text_area :key, class: 'form-control gl-form-input', rows: 5, required: true
.form-group.row .form-group.row
%p.light.gl-mb-0 %p.light.gl-mb-0
= _('Paste a machine public key here. Read more about how to generate it') = _('Paste a public key here.')
= link_to "here", help_page_path("ssh/README") = link_to _('How do I generate it?'), help_page_path("ssh/README")
= f.fields_for :deploy_keys_projects do |deploy_keys_project_form| = f.fields_for :deploy_keys_projects do |deploy_keys_project_form|
.form-group.row .form-group.row
= deploy_keys_project_form.label :can_push do = deploy_keys_project_form.label :can_push do
= deploy_keys_project_form.check_box :can_push = deploy_keys_project_form.check_box :can_push
%strong= _('Write access allowed') %strong= _('Grant write permissions to this key')
.form-group.row .form-group.row
%p.light.gl-mb-0 %p.light.gl-mb-0
= _('Allow this key to push to repository as well? (Default only allows pull access.)') = _('Allow this key to push to this repository')
.form-group.row .form-group.row
= f.submit _("Add key"), class: "btn-success btn" = f.submit _("Add key"), class: "btn-success btn"
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
= image_tag 'illustrations/empty-state/empty-deploy-keys-lg.svg' = image_tag 'illustrations/empty-state/empty-deploy-keys-lg.svg'
.gl-flex-grow-0.gl-flex-shrink-0 .gl-flex-grow-0.gl-flex-shrink-0
.text-content.gl-mx-auto.gl-my-0.gl-p-5 .text-content.gl-mx-auto.gl-my-0.gl-p-5
%h4.h4= _('Deploy keys allow read-only or read-write (if enabled) access to your repository') %h4.h4= _('Deploy Keys')
%p= _('Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one.') %p= _('Deploy keys grant read/write access to all repositories in your instance')
= link_to _('New deploy key'), new_admin_deploy_key_path, class: 'btn btn-success btn-md gl-button' = link_to _('New deploy key'), new_admin_deploy_key_path, class: 'btn btn-success btn-md gl-button'
---
title: Review UI text - deploy keys settings
merge_request: 52830
author:
type: other
...@@ -7,10 +7,10 @@ type: howto, reference ...@@ -7,10 +7,10 @@ type: howto, reference
# Deploy Keys # Deploy Keys
Deploy keys allow read-only or read-write (if enabled) access to one or Deploy keys allow read-only or read-write access to your
more repositories, by importing an SSH public key to your GitLab instance. repositories by importing an SSH public key into your GitLab instance.
This is useful for cloning repositories to your Continuous This is useful, for example, for cloning repositories to your Continuous
Integration (CI) server. By using deploy keys, you don't have to set up a Integration (CI) server. By using deploy keys, you don't have to set up a
fake user account. fake user account.
...@@ -82,7 +82,7 @@ can add or enable a deploy key for a project repository: ...@@ -82,7 +82,7 @@ can add or enable a deploy key for a project repository:
1. Navigate to the project's **Settings > Repository** page. 1. Navigate to the project's **Settings > Repository** page.
1. Expand the **Deploy Keys** section. 1. Expand the **Deploy Keys** section.
1. Specify a title for the new deploy key and paste your public SSH key. 1. Specify a title for the new deploy key and paste your public SSH key.
1. (Optional) Check **Write access allowed** to allow `read-write` access. Leave it unchecked for `read-only` access. 1. (Optional) Check **Grant write permissions to this key** to allow `read-write` access. Leave it unchecked for `read-only` access.
There are three lists of Project Deploy Keys: There are three lists of Project Deploy Keys:
......
...@@ -1713,6 +1713,9 @@ msgstr "" ...@@ -1713,6 +1713,9 @@ msgstr ""
msgid "Add deploy freeze" msgid "Add deploy freeze"
msgstr "" msgstr ""
msgid "Add deploy keys to grant read/write access to this repository. %{link_start}What are Deploy Keys?%{link_end}"
msgstr ""
msgid "Add domain" msgid "Add domain"
msgstr "" msgstr ""
...@@ -2951,7 +2954,7 @@ msgstr "" ...@@ -2951,7 +2954,7 @@ msgstr ""
msgid "Allow subgroups to set up their own two-factor authentication rules" msgid "Allow subgroups to set up their own two-factor authentication rules"
msgstr "" msgstr ""
msgid "Allow this key to push to repository as well? (Default only allows pull access.)" msgid "Allow this key to push to this repository"
msgstr "" msgstr ""
msgid "Allow this secondary node to replicate content on Object Storage" msgid "Allow this secondary node to replicate content on Object Storage"
...@@ -8242,9 +8245,6 @@ msgstr "" ...@@ -8242,9 +8245,6 @@ msgstr ""
msgid "Create a new branch" msgid "Create a new branch"
msgstr "" msgstr ""
msgid "Create a new deploy key for this project"
msgstr ""
msgid "Create a new file as there are no files yet. Afterwards, you'll be able to commit your changes." msgid "Create a new file as there are no files yet. Afterwards, you'll be able to commit your changes."
msgstr "" msgstr ""
...@@ -9600,13 +9600,7 @@ msgstr "" ...@@ -9600,13 +9600,7 @@ msgstr ""
msgid "Deploy key was successfully updated." msgid "Deploy key was successfully updated."
msgstr "" msgstr ""
msgid "Deploy keys allow read-only or read-write (if enabled) access to your repository" msgid "Deploy keys grant read/write access to all repositories in your instance"
msgstr ""
msgid "Deploy keys allow read-only or read-write (if enabled) access to your repository. Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one."
msgstr ""
msgid "Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one."
msgstr "" msgstr ""
msgid "Deploy progress not found. To see pods, ensure your environment matches %{linkStart}deploy board criteria%{linkEnd}." msgid "Deploy progress not found. To see pods, ensure your environment matches %{linkStart}deploy board criteria%{linkEnd}."
...@@ -9657,6 +9651,9 @@ msgstr "" ...@@ -9657,6 +9651,9 @@ msgstr ""
msgid "DeployKeys|Expand %{count} other projects" msgid "DeployKeys|Expand %{count} other projects"
msgstr "" msgstr ""
msgid "DeployKeys|Grant write permissions to this key"
msgstr ""
msgid "DeployKeys|Loading deploy keys" msgid "DeployKeys|Loading deploy keys"
msgstr "" msgstr ""
...@@ -9675,9 +9672,6 @@ msgstr "" ...@@ -9675,9 +9672,6 @@ msgstr ""
msgid "DeployKeys|Read access only" msgid "DeployKeys|Read access only"
msgstr "" msgstr ""
msgid "DeployKeys|Write access allowed"
msgstr ""
msgid "DeployKeys|You are going to remove this deploy key. Are you sure?" msgid "DeployKeys|You are going to remove this deploy key. Are you sure?"
msgstr "" msgstr ""
...@@ -13774,6 +13768,9 @@ msgstr "" ...@@ -13774,6 +13768,9 @@ msgstr ""
msgid "Grant access" msgid "Grant access"
msgstr "" msgstr ""
msgid "Grant write permissions to this key"
msgstr ""
msgid "Graph" msgid "Graph"
msgstr "" msgstr ""
...@@ -14624,6 +14621,9 @@ msgstr "" ...@@ -14624,6 +14621,9 @@ msgstr ""
msgid "How do I configure runners?" msgid "How do I configure runners?"
msgstr "" msgstr ""
msgid "How do I generate it?"
msgstr ""
msgid "How do I mirror repositories?" msgid "How do I mirror repositories?"
msgstr "" msgstr ""
...@@ -21128,10 +21128,10 @@ msgstr "" ...@@ -21128,10 +21128,10 @@ msgstr ""
msgid "Past due" msgid "Past due"
msgstr "" msgstr ""
msgid "Paste a machine public key here. Read more about how to generate it" msgid "Paste a public key here."
msgstr "" msgstr ""
msgid "Paste a machine public key here. Read more about how to generate it %{link_start}here%{link_end}" msgid "Paste a public key here. %{link_start}How do I generate it?%{link_end}"
msgstr "" msgstr ""
msgid "Paste confidential epic link" msgid "Paste confidential epic link"
...@@ -32841,9 +32841,6 @@ msgstr "" ...@@ -32841,9 +32841,6 @@ msgstr ""
msgid "Write a comment…" msgid "Write a comment…"
msgstr "" msgstr ""
msgid "Write access allowed"
msgstr ""
msgid "Write milestone description..." msgid "Write milestone description..."
msgstr "" msgstr ""
......
...@@ -63,7 +63,7 @@ RSpec.describe 'Projects > Settings > Repository settings' do ...@@ -63,7 +63,7 @@ RSpec.describe 'Projects > Settings > Repository settings' do
click_button 'Add key' click_button 'Add key'
expect(page).to have_content('new_deploy_key') expect(page).to have_content('new_deploy_key')
expect(page).to have_content('Write access allowed') expect(page).to have_content('Grant write permissions to this key')
end end
it 'edit an existing deploy key' do it 'edit an existing deploy key' do
...@@ -77,7 +77,7 @@ RSpec.describe 'Projects > Settings > Repository settings' do ...@@ -77,7 +77,7 @@ RSpec.describe 'Projects > Settings > Repository settings' do
click_button 'Save changes' click_button 'Save changes'
expect(page).to have_content('updated_deploy_key') expect(page).to have_content('updated_deploy_key')
expect(page).to have_content('Write access allowed') expect(page).to have_content('Grant write permissions to this key')
end end
it 'edit an existing public deploy key to be writable' do it 'edit an existing public deploy key to be writable' do
...@@ -90,7 +90,7 @@ RSpec.describe 'Projects > Settings > Repository settings' do ...@@ -90,7 +90,7 @@ RSpec.describe 'Projects > Settings > Repository settings' do
click_button 'Save changes' click_button 'Save changes'
expect(page).to have_content('public_deploy_key') expect(page).to have_content('public_deploy_key')
expect(page).to have_content('Write access allowed') expect(page).to have_content('Grant write permissions to this key')
end end
it 'edit a deploy key from projects user has access to' do it 'edit a deploy key from projects user has access to' do
......
...@@ -76,7 +76,7 @@ describe('Deploy keys key', () => { ...@@ -76,7 +76,7 @@ describe('Deploy keys key', () => {
createComponent({ deployKey: { ...deployKey, deploy_keys_projects: deployKeysProjects } }); createComponent({ deployKey: { ...deployKey, deploy_keys_projects: deployKeysProjects } });
expect(wrapper.find('.deploy-project-label').attributes('title')).toBe( expect(wrapper.find('.deploy-project-label').attributes('title')).toBe(
'Write access allowed', 'Grant write permissions to this key',
); );
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment