Commit 577dcd4a authored by Scott Hampton's avatar Scott Hampton

Merge branch 'russell/update-project-visibility-settings-ui-text' into 'master'

Edited UI copy to comply with GitLab style

See merge request gitlab-org/gitlab!50676
parents c43395da 96cea6cb
...@@ -224,11 +224,11 @@ export default { ...@@ -224,11 +224,11 @@ export default {
repositoryHelpText() { repositoryHelpText() {
if (this.visibilityLevel === visibilityOptions.PRIVATE) { if (this.visibilityLevel === visibilityOptions.PRIVATE) {
return s__('ProjectSettings|View and edit files in this project'); return s__('ProjectSettings|View and edit files in this project.');
} }
return s__( return s__(
'ProjectSettings|View and edit files in this project. Non-project members will only have read access', 'ProjectSettings|View and edit files in this project. Non-project members will only have read access.',
); );
}, },
}, },
...@@ -400,7 +400,7 @@ export default { ...@@ -400,7 +400,7 @@ export default {
name="project[request_access_enabled]" name="project[request_access_enabled]"
/> />
<input v-model="requestAccessEnabled" type="checkbox" /> <input v-model="requestAccessEnabled" type="checkbox" />
{{ s__('ProjectSettings|Allow users to request access') }} {{ s__('ProjectSettings|Users can request access') }}
</label> </label>
</project-setting-row> </project-setting-row>
</div> </div>
...@@ -411,7 +411,7 @@ export default { ...@@ -411,7 +411,7 @@ export default {
<project-setting-row <project-setting-row
ref="issues-settings" ref="issues-settings"
:label="s__('ProjectSettings|Issues')" :label="s__('ProjectSettings|Issues')"
:help-text="s__('ProjectSettings|Lightweight issue tracking system for this project')" :help-text="s__('ProjectSettings|Lightweight issue tracking system.')"
> >
<project-feature-setting <project-feature-setting
v-model="issuesAccessLevel" v-model="issuesAccessLevel"
...@@ -434,7 +434,7 @@ export default { ...@@ -434,7 +434,7 @@ export default {
<project-setting-row <project-setting-row
ref="merge-request-settings" ref="merge-request-settings"
:label="s__('ProjectSettings|Merge requests')" :label="s__('ProjectSettings|Merge requests')"
:help-text="s__('ProjectSettings|Submit changes to be merged upstream')" :help-text="s__('ProjectSettings|Submit changes to be merged upstream.')"
> >
<project-feature-setting <project-feature-setting
v-model="mergeRequestsAccessLevel" v-model="mergeRequestsAccessLevel"
...@@ -446,9 +446,7 @@ export default { ...@@ -446,9 +446,7 @@ export default {
<project-setting-row <project-setting-row
ref="fork-settings" ref="fork-settings"
:label="s__('ProjectSettings|Forks')" :label="s__('ProjectSettings|Forks')"
:help-text=" :help-text="s__('ProjectSettings|Users can copy the repository to a new project.')"
s__('ProjectSettings|Allow users to make copies of your repository to a new project')
"
> >
<project-feature-setting <project-feature-setting
v-model="forkingAccessLevel" v-model="forkingAccessLevel"
...@@ -460,7 +458,7 @@ export default { ...@@ -460,7 +458,7 @@ export default {
<project-setting-row <project-setting-row
ref="pipeline-settings" ref="pipeline-settings"
:label="s__('ProjectSettings|Pipelines')" :label="s__('ProjectSettings|Pipelines')"
:help-text="s__('ProjectSettings|Build, test, and deploy your changes')" :help-text="s__('ProjectSettings|Build, test, and deploy your changes.')"
> >
<project-feature-setting <project-feature-setting
v-model="buildsAccessLevel" v-model="buildsAccessLevel"
...@@ -497,7 +495,7 @@ export default { ...@@ -497,7 +495,7 @@ export default {
:help-path="lfsHelpPath" :help-path="lfsHelpPath"
:label="s__('ProjectSettings|Git Large File Storage (LFS)')" :label="s__('ProjectSettings|Git Large File Storage (LFS)')"
:help-text=" :help-text="
s__('ProjectSettings|Manages large files such as audio, video, and graphics files') s__('ProjectSettings|Manages large files such as audio, video, and graphics files.')
" "
> >
<project-feature-toggle <project-feature-toggle
...@@ -509,7 +507,7 @@ export default { ...@@ -509,7 +507,7 @@ export default {
<gl-sprintf <gl-sprintf
:message=" :message="
s__( s__(
'ProjectSettings|LFS objects from this repository are still available to forks. %{linkStart}How do I remove them?%{linkEnd}', 'ProjectSettings|LFS objects from this repository are available to forks. %{linkStart}How do I remove them?%{linkEnd}',
) )
" "
> >
...@@ -529,7 +527,7 @@ export default { ...@@ -529,7 +527,7 @@ export default {
:help-path="packagesHelpPath" :help-path="packagesHelpPath"
:label="s__('ProjectSettings|Packages')" :label="s__('ProjectSettings|Packages')"
:help-text=" :help-text="
s__('ProjectSettings|Every project can have its own space to store its packages') s__('ProjectSettings|Every project can have its own space to store its packages.')
" "
> >
<project-feature-toggle <project-feature-toggle
...@@ -542,7 +540,7 @@ export default { ...@@ -542,7 +540,7 @@ export default {
<project-setting-row <project-setting-row
ref="analytics-settings" ref="analytics-settings"
:label="s__('ProjectSettings|Analytics')" :label="s__('ProjectSettings|Analytics')"
:help-text="s__('ProjectSettings|View project analytics')" :help-text="s__('ProjectSettings|View project analytics.')"
> >
<project-feature-setting <project-feature-setting
v-model="analyticsAccessLevel" v-model="analyticsAccessLevel"
...@@ -554,7 +552,7 @@ export default { ...@@ -554,7 +552,7 @@ export default {
v-if="requirementsAvailable" v-if="requirementsAvailable"
ref="requirements-settings" ref="requirements-settings"
:label="s__('ProjectSettings|Requirements')" :label="s__('ProjectSettings|Requirements')"
:help-text="s__('ProjectSettings|Requirements management system for this project')" :help-text="s__('ProjectSettings|Requirements management system.')"
> >
<project-feature-setting <project-feature-setting
v-model="requirementsAccessLevel" v-model="requirementsAccessLevel"
...@@ -576,7 +574,7 @@ export default { ...@@ -576,7 +574,7 @@ export default {
<project-setting-row <project-setting-row
ref="wiki-settings" ref="wiki-settings"
:label="s__('ProjectSettings|Wiki')" :label="s__('ProjectSettings|Wiki')"
:help-text="s__('ProjectSettings|Pages for project documentation')" :help-text="s__('ProjectSettings|Pages for project documentation.')"
> >
<project-feature-setting <project-feature-setting
v-model="wikiAccessLevel" v-model="wikiAccessLevel"
...@@ -587,7 +585,7 @@ export default { ...@@ -587,7 +585,7 @@ export default {
<project-setting-row <project-setting-row
ref="snippet-settings" ref="snippet-settings"
:label="s__('ProjectSettings|Snippets')" :label="s__('ProjectSettings|Snippets')"
:help-text="s__('ProjectSettings|Share code pastes with others out of Git repository')" :help-text="s__('ProjectSettings|Share code with others outside the project.')"
> >
<project-feature-setting <project-feature-setting
v-model="snippetsAccessLevel" v-model="snippetsAccessLevel"
...@@ -601,7 +599,7 @@ export default { ...@@ -601,7 +599,7 @@ export default {
:help-path="pagesHelpPath" :help-path="pagesHelpPath"
:label="s__('ProjectSettings|Pages')" :label="s__('ProjectSettings|Pages')"
:help-text=" :help-text="
s__('ProjectSettings|With GitLab Pages you can host your static websites on GitLab') s__('ProjectSettings|With GitLab Pages you can host your static websites on GitLab.')
" "
> >
<project-feature-setting <project-feature-setting
...@@ -613,7 +611,7 @@ export default { ...@@ -613,7 +611,7 @@ export default {
<project-setting-row <project-setting-row
ref="operations-settings" ref="operations-settings"
:label="s__('ProjectSettings|Operations')" :label="s__('ProjectSettings|Operations')"
:help-text="s__('ProjectSettings|Environments, logs, cluster management, and more')" :help-text="s__('ProjectSettings|Environments, logs, cluster management, and more.')"
> >
<project-feature-setting <project-feature-setting
v-model="operationsAccessLevel" v-model="operationsAccessLevel"
...@@ -625,11 +623,7 @@ export default { ...@@ -625,11 +623,7 @@ export default {
<project-setting-row <project-setting-row
ref="metrics-visibility-settings" ref="metrics-visibility-settings"
:label="__('Metrics Dashboard')" :label="__('Metrics Dashboard')"
:help-text=" :help-text="s__('ProjectSettings|Visualize the project\'s performance metrics.')"
s__(
'ProjectSettings|With Metrics Dashboard you can visualize this project performance metrics',
)
"
> >
<project-feature-setting <project-feature-setting
v-model="metricsDashboardAccessLevel" v-model="metricsDashboardAccessLevel"
...@@ -647,9 +641,7 @@ export default { ...@@ -647,9 +641,7 @@ export default {
{{ s__('ProjectSettings|Disable email notifications') }} {{ s__('ProjectSettings|Disable email notifications') }}
</label> </label>
<span class="form-text text-muted">{{ <span class="form-text text-muted">{{
s__( s__('ProjectSettings|Override user notification preferences for all project members.')
'ProjectSettings|This setting will override user notification preferences for all project members.',
)
}}</span> }}</span>
</project-setting-row> </project-setting-row>
<project-setting-row class="mb-3"> <project-setting-row class="mb-3">
...@@ -665,7 +657,7 @@ export default { ...@@ -665,7 +657,7 @@ export default {
{{ s__('ProjectSettings|Show default award emojis') }} {{ s__('ProjectSettings|Show default award emojis') }}
<template #help>{{ <template #help>{{
s__( s__(
'ProjectSettings|When enabled, issues, merge requests, and snippets will always show thumbs-up and thumbs-down award emoji buttons.', 'ProjectSettings|Always show thumbs-up and thumbs-down award emoji buttons on issues, merge requests, and snippets.',
) )
}}</template> }}</template>
</gl-form-checkbox> </gl-form-checkbox>
...@@ -683,9 +675,7 @@ export default { ...@@ -683,9 +675,7 @@ export default {
<gl-form-checkbox v-model="allowEditingCommitMessages"> <gl-form-checkbox v-model="allowEditingCommitMessages">
{{ s__('ProjectSettings|Allow editing commit messages') }} {{ s__('ProjectSettings|Allow editing commit messages') }}
<template #help>{{ <template #help>{{
s__( s__('ProjectSettings|Commit authors can edit commit messages on unprotected branches.')
'ProjectSettings|When enabled, commit authors will be able to edit commit messages on unprotected branches.',
)
}}</template> }}</template>
</gl-form-checkbox> </gl-form-checkbox>
</project-setting-row> </project-setting-row>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
.settings-header .settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Visibility, project features, permissions') %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Visibility, project features, permissions')
%button.gl-button.btn.btn-default.js-settings-toggle{ type: 'button' }= expanded ? _('Collapse') : _('Expand') %button.gl-button.btn.btn-default.js-settings-toggle{ type: 'button' }= expanded ? _('Collapse') : _('Expand')
%p= _('Choose visibility level, enable/disable project features (issues, repository, wiki, snippets) and set permissions.') %p= _('Choose visibility level, enable/disable project features and their permissions, disable email notifications, and show default award emoji.')
.settings-content .settings-content
= form_for @project, remote: true, html: { multipart: true, class: "sharing-permissions-form" }, authenticity_token: true do |f| = form_for @project, remote: true, html: { multipart: true, class: "sharing-permissions-form" }, authenticity_token: true do |f|
......
---
title: Edited UI copy wording to comply with GitLab style
merge_request: 50676
author:
type: other
...@@ -5694,7 +5694,7 @@ msgstr "" ...@@ -5694,7 +5694,7 @@ msgstr ""
msgid "Choose the top-level group for your repository imports." msgid "Choose the top-level group for your repository imports."
msgstr "" msgstr ""
msgid "Choose visibility level, enable/disable project features (issues, repository, wiki, snippets) and set permissions." msgid "Choose visibility level, enable/disable project features and their permissions, disable email notifications, and show default award emoji."
msgstr "" msgstr ""
msgid "Choose what content you want to see on a group’s overview page." msgid "Choose what content you want to see on a group’s overview page."
...@@ -22823,10 +22823,7 @@ msgstr "" ...@@ -22823,10 +22823,7 @@ msgstr ""
msgid "ProjectSettings|Allow editing commit messages" msgid "ProjectSettings|Allow editing commit messages"
msgstr "" msgstr ""
msgid "ProjectSettings|Allow users to make copies of your repository to a new project" msgid "ProjectSettings|Always show thumbs-up and thumbs-down award emoji buttons on issues, merge requests, and snippets."
msgstr ""
msgid "ProjectSettings|Allow users to request access"
msgstr "" msgstr ""
msgid "ProjectSettings|Analytics" msgid "ProjectSettings|Analytics"
...@@ -22838,7 +22835,7 @@ msgstr "" ...@@ -22838,7 +22835,7 @@ msgstr ""
msgid "ProjectSettings|Badges" msgid "ProjectSettings|Badges"
msgstr "" msgstr ""
msgid "ProjectSettings|Build, test, and deploy your changes" msgid "ProjectSettings|Build, test, and deploy your changes."
msgstr "" msgstr ""
msgid "ProjectSettings|Checkbox is visible and selected by default." msgid "ProjectSettings|Checkbox is visible and selected by default."
...@@ -22853,6 +22850,9 @@ msgstr "" ...@@ -22853,6 +22850,9 @@ msgstr ""
msgid "ProjectSettings|Choose your merge method, merge options, merge checks, merge suggestions, and set up a default description template for merge requests." msgid "ProjectSettings|Choose your merge method, merge options, merge checks, merge suggestions, and set up a default description template for merge requests."
msgstr "" msgstr ""
msgid "ProjectSettings|Commit authors can edit commit messages on unprotected branches."
msgstr ""
msgid "ProjectSettings|Contact an admin to change this setting." msgid "ProjectSettings|Contact an admin to change this setting."
msgstr "" msgstr ""
...@@ -22880,7 +22880,7 @@ msgstr "" ...@@ -22880,7 +22880,7 @@ msgstr ""
msgid "ProjectSettings|Encourage" msgid "ProjectSettings|Encourage"
msgstr "" msgstr ""
msgid "ProjectSettings|Environments, logs, cluster management, and more" msgid "ProjectSettings|Environments, logs, cluster management, and more."
msgstr "" msgstr ""
msgid "ProjectSettings|Every merge creates a merge commit" msgid "ProjectSettings|Every merge creates a merge commit"
...@@ -22889,7 +22889,7 @@ msgstr "" ...@@ -22889,7 +22889,7 @@ msgstr ""
msgid "ProjectSettings|Every project can have its own space to store its Docker images" msgid "ProjectSettings|Every project can have its own space to store its Docker images"
msgstr "" msgstr ""
msgid "ProjectSettings|Every project can have its own space to store its packages" msgid "ProjectSettings|Every project can have its own space to store its packages."
msgstr "" msgstr ""
msgid "ProjectSettings|Everyone" msgid "ProjectSettings|Everyone"
...@@ -22928,13 +22928,13 @@ msgstr "" ...@@ -22928,13 +22928,13 @@ msgstr ""
msgid "ProjectSettings|Issues" msgid "ProjectSettings|Issues"
msgstr "" msgstr ""
msgid "ProjectSettings|LFS objects from this repository are still available to forks. %{linkStart}How do I remove them?%{linkEnd}" msgid "ProjectSettings|LFS objects from this repository are available to forks. %{linkStart}How do I remove them?%{linkEnd}"
msgstr "" msgstr ""
msgid "ProjectSettings|Lightweight issue tracking system for this project" msgid "ProjectSettings|Lightweight issue tracking system."
msgstr "" msgstr ""
msgid "ProjectSettings|Manages large files such as audio, video, and graphics files" msgid "ProjectSettings|Manages large files such as audio, video, and graphics files."
msgstr "" msgstr ""
msgid "ProjectSettings|Merge checks" msgid "ProjectSettings|Merge checks"
...@@ -22970,13 +22970,16 @@ msgstr "" ...@@ -22970,13 +22970,16 @@ msgstr ""
msgid "ProjectSettings|Operations" msgid "ProjectSettings|Operations"
msgstr "" msgstr ""
msgid "ProjectSettings|Override user notification preferences for all project members."
msgstr ""
msgid "ProjectSettings|Packages" msgid "ProjectSettings|Packages"
msgstr "" msgstr ""
msgid "ProjectSettings|Pages" msgid "ProjectSettings|Pages"
msgstr "" msgstr ""
msgid "ProjectSettings|Pages for project documentation" msgid "ProjectSettings|Pages for project documentation."
msgstr "" msgstr ""
msgid "ProjectSettings|Pipelines" msgid "ProjectSettings|Pipelines"
...@@ -23006,7 +23009,7 @@ msgstr "" ...@@ -23006,7 +23009,7 @@ msgstr ""
msgid "ProjectSettings|Requirements" msgid "ProjectSettings|Requirements"
msgstr "" msgstr ""
msgid "ProjectSettings|Requirements management system for this project" msgid "ProjectSettings|Requirements management system."
msgstr "" msgstr ""
msgid "ProjectSettings|Security & Compliance" msgid "ProjectSettings|Security & Compliance"
...@@ -23018,7 +23021,7 @@ msgstr "" ...@@ -23018,7 +23021,7 @@ msgstr ""
msgid "ProjectSettings|Set the default behavior and availability of this option in merge requests. Changes made are also applied to existing merge requests." msgid "ProjectSettings|Set the default behavior and availability of this option in merge requests. Changes made are also applied to existing merge requests."
msgstr "" msgstr ""
msgid "ProjectSettings|Share code pastes with others out of Git repository" msgid "ProjectSettings|Share code with others outside the project."
msgstr "" msgstr ""
msgid "ProjectSettings|Show default award emojis" msgid "ProjectSettings|Show default award emojis"
...@@ -23042,7 +23045,7 @@ msgstr "" ...@@ -23042,7 +23045,7 @@ msgstr ""
msgid "ProjectSettings|Squashing is never performed and the checkbox is hidden." msgid "ProjectSettings|Squashing is never performed and the checkbox is hidden."
msgstr "" msgstr ""
msgid "ProjectSettings|Submit changes to be merged upstream" msgid "ProjectSettings|Submit changes to be merged upstream."
msgstr "" msgstr ""
msgid "ProjectSettings|The commit message used to apply merge request suggestions" msgid "ProjectSettings|The commit message used to apply merge request suggestions"
...@@ -23066,52 +23069,49 @@ msgstr "" ...@@ -23066,52 +23069,49 @@ msgstr ""
msgid "ProjectSettings|This setting will be applied to all projects unless overridden by an admin." msgid "ProjectSettings|This setting will be applied to all projects unless overridden by an admin."
msgstr "" msgstr ""
msgid "ProjectSettings|This setting will override user notification preferences for all project members."
msgstr ""
msgid "ProjectSettings|This will dictate the commit history when you merge a merge request" msgid "ProjectSettings|This will dictate the commit history when you merge a merge request"
msgstr "" msgstr ""
msgid "ProjectSettings|Transfer project" msgid "ProjectSettings|Transfer project"
msgstr "" msgstr ""
msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails." msgid "ProjectSettings|Users can copy the repository to a new project."
msgstr "" msgstr ""
msgid "ProjectSettings|View and edit files in this project" msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails."
msgstr "" msgstr ""
msgid "ProjectSettings|View and edit files in this project. Non-project members will only have read access" msgid "ProjectSettings|Users can request access"
msgstr "" msgstr ""
msgid "ProjectSettings|View project analytics" msgid "ProjectSettings|View and edit files in this project."
msgstr "" msgstr ""
msgid "ProjectSettings|Visibility options for this fork are limited by the current visibility of the source project." msgid "ProjectSettings|View and edit files in this project. Non-project members will only have read access."
msgstr "" msgstr ""
msgid "ProjectSettings|What are badges?" msgid "ProjectSettings|View project analytics."
msgstr "" msgstr ""
msgid "ProjectSettings|When approved for merge, merge requests are queued and pipelines validate the combined results of the source and target branches before merge." msgid "ProjectSettings|Visibility options for this fork are limited by the current visibility of the source project."
msgstr "" msgstr ""
msgid "ProjectSettings|When conflicts arise the user is given the option to rebase" msgid "ProjectSettings|Visualize the project's performance metrics."
msgstr "" msgstr ""
msgid "ProjectSettings|When enabled, commit authors will be able to edit commit messages on unprotected branches." msgid "ProjectSettings|What are badges?"
msgstr "" msgstr ""
msgid "ProjectSettings|When enabled, issues, merge requests, and snippets will always show thumbs-up and thumbs-down award emoji buttons." msgid "ProjectSettings|When approved for merge, merge requests are queued and pipelines validate the combined results of the source and target branches before merge."
msgstr "" msgstr ""
msgid "ProjectSettings|Wiki" msgid "ProjectSettings|When conflicts arise the user is given the option to rebase"
msgstr "" msgstr ""
msgid "ProjectSettings|With GitLab Pages you can host your static websites on GitLab" msgid "ProjectSettings|Wiki"
msgstr "" msgstr ""
msgid "ProjectSettings|With Metrics Dashboard you can visualize this project performance metrics" msgid "ProjectSettings|With GitLab Pages you can host your static websites on GitLab."
msgstr "" msgstr ""
msgid "ProjectTemplates|.NET Core" msgid "ProjectTemplates|.NET Core"
......
...@@ -175,7 +175,7 @@ describe('Settings Panel', () => { ...@@ -175,7 +175,7 @@ describe('Settings Panel', () => {
wrapper = overrideCurrentSettings({ visibilityLevel: visibilityOptions.PRIVATE }); wrapper = overrideCurrentSettings({ visibilityLevel: visibilityOptions.PRIVATE });
expect(findRepositoryFeatureProjectRow().props().helpText).toBe( expect(findRepositoryFeatureProjectRow().props().helpText).toBe(
'View and edit files in this project', 'View and edit files in this project.',
); );
}); });
...@@ -183,7 +183,7 @@ describe('Settings Panel', () => { ...@@ -183,7 +183,7 @@ describe('Settings Panel', () => {
wrapper = overrideCurrentSettings({ visibilityLevel: visibilityOptions.PUBLIC }); wrapper = overrideCurrentSettings({ visibilityLevel: visibilityOptions.PUBLIC });
expect(findRepositoryFeatureProjectRow().props().helpText).toBe( expect(findRepositoryFeatureProjectRow().props().helpText).toBe(
'View and edit files in this project. Non-project members will only have read access', 'View and edit files in this project. Non-project members will only have read access.',
); );
}); });
}); });
...@@ -400,7 +400,7 @@ describe('Settings Panel', () => { ...@@ -400,7 +400,7 @@ describe('Settings Panel', () => {
const link = message.find('a'); const link = message.find('a');
expect(message.text()).toContain( expect(message.text()).toContain(
'LFS objects from this repository are still available to forks', 'LFS objects from this repository are available to forks.',
); );
expect(link.text()).toBe('How do I remove them?'); expect(link.text()).toBe('How do I remove them?');
expect(link.attributes('href')).toBe( expect(link.attributes('href')).toBe(
...@@ -530,7 +530,7 @@ describe('Settings Panel', () => { ...@@ -530,7 +530,7 @@ describe('Settings Panel', () => {
it('should contain help text', () => { it('should contain help text', () => {
expect(wrapper.find({ ref: 'metrics-visibility-settings' }).props().helpText).toBe( expect(wrapper.find({ ref: 'metrics-visibility-settings' }).props().helpText).toBe(
'With Metrics Dashboard you can visualize this project performance metrics', "Visualize the project's performance metrics.",
); );
}); });
......
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