Commit e8dfef08 authored by Evan Read's avatar Evan Read Committed by Kushal Pandya

Improve service desk UI text

Also made some documentaiton improvements
parent c6d9e943
...@@ -108,11 +108,11 @@ export default { ...@@ -108,11 +108,11 @@ export default {
.updateTemplate({ selectedTemplate, outgoingName, projectKey }, this.isEnabled) .updateTemplate({ selectedTemplate, outgoingName, projectKey }, this.isEnabled)
.then(({ data }) => { .then(({ data }) => {
this.updatedCustomEmail = data?.service_desk_address; this.updatedCustomEmail = data?.service_desk_address;
this.showAlert(__('Changes were successfully made.'), 'success'); this.showAlert(__('Changes saved.'), 'success');
}) })
.catch((err) => { .catch((err) => {
this.showAlert( this.showAlert(
sprintf(__('An error occured while making the changes: %{error}'), { sprintf(__('An error occured while saving changes: %{error}'), {
error: err?.response?.data?.message, error: err?.response?.data?.message,
}), }),
); );
......
...@@ -103,7 +103,6 @@ export default { ...@@ -103,7 +103,6 @@ export default {
id="service-desk-checkbox" id="service-desk-checkbox"
:value="isEnabled" :value="isEnabled"
class="d-inline-block align-middle mr-1" class="d-inline-block align-middle mr-1"
label="Service desk"
label-position="left" label-position="left"
@change="onCheckboxToggle" @change="onCheckboxToggle"
/> />
...@@ -113,7 +112,7 @@ export default { ...@@ -113,7 +112,7 @@ export default {
<div v-if="isEnabled" class="row mt-3"> <div v-if="isEnabled" class="row mt-3">
<div class="col-md-9 mb-0"> <div class="col-md-9 mb-0">
<strong id="incoming-email-describer" class="d-block mb-1"> <strong id="incoming-email-describer" class="d-block mb-1">
{{ __('Forward external support email address to') }} {{ __('Email address to use for Support Desk') }}
</strong> </strong>
<template v-if="email"> <template v-if="email">
<div class="input-group"> <div class="input-group">
...@@ -137,7 +136,7 @@ export default { ...@@ -137,7 +136,7 @@ export default {
</div> </div>
</div> </div>
<span v-if="hasCustomEmail" class="form-text text-muted"> <span v-if="hasCustomEmail" class="form-text text-muted">
<gl-sprintf :message="__('Emails sent to %{email} will still be supported')"> <gl-sprintf :message="__('Emails sent to %{email} are also supported.')">
<template #email> <template #email>
<code>{{ incomingEmail }}</code> <code>{{ incomingEmail }}</code>
</template> </template>
...@@ -156,9 +155,7 @@ export default { ...@@ -156,9 +155,7 @@ export default {
<input id="service-desk-project-suffix" v-model.trim="projectKey" class="form-control" /> <input id="service-desk-project-suffix" v-model.trim="projectKey" class="form-control" />
<span class="form-text text-muted"> <span class="form-text text-muted">
{{ {{
__( __('A string appended to the project path to form the Service Desk email address.')
'Project name suffix is a user-defined string which will be appended to the project path, and will form the Service Desk email address.',
)
}} }}
</span> </span>
</template> </template>
...@@ -176,7 +173,7 @@ export default { ...@@ -176,7 +173,7 @@ export default {
</label> </label>
<input id="service-desk-email-from-name" v-model.trim="outgoingName" class="form-control" /> <input id="service-desk-email-from-name" v-model.trim="outgoingName" class="form-control" />
<span class="form-text text-muted"> <span class="form-text text-muted">
{{ __('Emails sent from Service Desk will have this name') }} {{ __('Emails sent from Service Desk have this name.') }}
</span> </span>
<div class="gl-display-flex gl-justify-content-end"> <div class="gl-display-flex gl-justify-content-end">
<gl-button <gl-button
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%button.btn.js-settings-toggle %button.btn.js-settings-toggle
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
- link_start = "<a href='#{help_page_path('user/project/service_desk')}' target='_blank' rel='noopener noreferrer'>".html_safe - link_start = "<a href='#{help_page_path('user/project/service_desk')}' target='_blank' rel='noopener noreferrer'>".html_safe
%p= _('Enable/disable your service desk. %{link_start}Learn more about service desk%{link_end}.').html_safe % { link_start: link_start, link_end: '</a>'.html_safe } %p= _('Enable and disable Service Desk. Some additional configuration might be required. %{link_start}Learn more%{link_end}.').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
.settings-content .settings-content
- if ::Gitlab::ServiceDesk.supported? - if ::Gitlab::ServiceDesk.supported?
.js-service-desk-setting-root{ data: { endpoint: project_service_desk_path(@project), .js-service-desk-setting-root{ data: { endpoint: project_service_desk_path(@project),
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
= custom_icon('icon_service_desk') = custom_icon('icon_service_desk')
.user-callout-copy .user-callout-copy
%h4 %h4
= _("Improve customer support with GitLab Service Desk.") = _("Improve customer support with Service Desk")
%p %p
= _("GitLab Service Desk is a simple way to allow people to create issues in your GitLab instance without needing their own user account. It provides a unique email address for end users to create issues in a project, and replies can be sent either through the GitLab interface or by email. End users will only see the thread through email.") = _("Service Desk allows people to create issues in your GitLab instance without their own user account. It provides a unique email address for end users to create issues in a project. Replies can be sent either through the GitLab interface or by email. End users only see threads through email.")
= link_to _('Read more'), help_page_path('user/project/service_desk.md'), target: '_blank'
---
title: Improve service desk UI text
merge_request: 50407
author:
type: other
...@@ -25,7 +25,14 @@ the cycle time from feedback to software update. ...@@ -25,7 +25,14 @@ the cycle time from feedback to software update.
For an overview, check the video demonstration on [GitLab Service Desk](https://about.gitlab.com/blog/2017/05/09/demo-service-desk/). For an overview, check the video demonstration on [GitLab Service Desk](https://about.gitlab.com/blog/2017/05/09/demo-service-desk/).
## Use cases ## How it works
GitLab Service Desk enables people to create issues in your
GitLab instance without needing their own user account.
It provides a unique email address for end users to create issues in a project.
Follow-up notes can be sent either through the GitLab interface or by email. End
users only see the thread through email.
For instance, let's assume you develop a game for iOS or Android. For instance, let's assume you develop a game for iOS or Android.
The codebase is hosted in your GitLab instance, built and deployed The codebase is hosted in your GitLab instance, built and deployed
...@@ -47,26 +54,16 @@ Here's how Service Desk works for you: ...@@ -47,26 +54,16 @@ Here's how Service Desk works for you:
1. Your team saved time by not having to leave GitLab (or setup any integrations) to follow up with 1. Your team saved time by not having to leave GitLab (or setup any integrations) to follow up with
your customer. your customer.
## How it works
GitLab Service Desk enables people to create issues in your
GitLab instance without needing their own user account.
It provides a unique email address for end users to create issues in a project.
Follow-up notes can be sent either through the GitLab interface or by email. End
users only see the thread through email.
## Configuring Service Desk ## Configuring Service Desk
NOTE: NOTE:
Service Desk is enabled on GitLab.com. Service Desk is enabled on GitLab.com.
You can skip step 1 below; you only need to enable it per project. You can skip step 1 below; you only need to enable it per project.
If you have project maintainer access you have the option to set up Service Desk. If you have project maintainer access you have the option to set up Service Desk. Follow these steps:
Follow these steps to do so:
1. [Set up incoming email](../../administration/incoming_email.md#set-it-up) for the GitLab instance. 1. [Set up incoming email](../../administration/incoming_email.md#set-it-up) for the GitLab instance.
- We recommend using [email sub-addressing](../../administration/incoming_email.md#email-sub-addressing), We recommend using [email sub-addressing](../../administration/incoming_email.md#email-sub-addressing),
but in GitLab 11.7 and later you can also use [catch-all mailboxes](../../administration/incoming_email.md#catch-all-mailbox). but in GitLab 11.7 and later you can also use [catch-all mailboxes](../../administration/incoming_email.md#catch-all-mailbox).
1. Navigate to your project's **Settings > General** and locate the **Service Desk** section. 1. Navigate to your project's **Settings > General** and locate the **Service Desk** section.
1. Enable the **Activate Service Desk** toggle. This reveals a unique email address to email issues 1. Enable the **Activate Service Desk** toggle. This reveals a unique email address to email issues
...@@ -85,10 +82,8 @@ Follow these steps to do so: ...@@ -85,10 +82,8 @@ Follow these steps to do so:
If you have [templates](description_templates.md) in your repository, you can optionally select If you have [templates](description_templates.md) in your repository, you can optionally select
one from the selector menu to append it to all Service Desk issues. one from the selector menu to append it to all Service Desk issues.
![Service Desk enabled](img/service_desk_enabled.png) Service Desk is now enabled for this project! You should be able to access it from your project's
**Issues** menu.
Service Desk is now enabled for this project! You should be able to access it from your project
navigation's **Issues** menu.
![Service Desk Navigation Item](img/service_desk_nav_item.png) ![Service Desk Navigation Item](img/service_desk_nav_item.png)
...@@ -156,14 +151,12 @@ The `%{key}` part is used to find the project where the issue should be created. ...@@ -156,14 +151,12 @@ The `%{key}` part is used to find the project where the issue should be created.
You can set the project name suffix in your project's Service Desk settings. You can set the project name suffix in your project's Service Desk settings.
It can contain only lowercase letters (`a-z`), numbers (`0-9`), or underscores (`_`). It can contain only lowercase letters (`a-z`), numbers (`0-9`), or underscores (`_`).
![Setting custom Service Desk email address](img/service_desk_custom_email_address_v13_0.png) You can add the following snippets to your configuration:
You can add the following snippets to your configuration. - Example for installations from source:
Example for installations from source: ```yaml
service_desk_email:
```yaml
service_desk_email:
enabled: true enabled: true
address: "project_contact+%{key}@example.com" address: "project_contact+%{key}@example.com"
user: "project_support@example.com" user: "project_support@example.com"
...@@ -176,33 +169,33 @@ service_desk_email: ...@@ -176,33 +169,33 @@ service_desk_email:
mailbox: "inbox" mailbox: "inbox"
idle_timeout: 60 idle_timeout: 60
expunge_deleted: true expunge_deleted: true
``` ```
Example for Omnibus GitLab installations: - Example for Omnibus GitLab installations:
```ruby ```ruby
gitlab_rails['service_desk_email_enabled'] = true gitlab_rails['service_desk_email_enabled'] = true
gitlab_rails['service_desk_email_address'] = "project_contact+%{key}@gmail.com" gitlab_rails['service_desk_email_address'] = "project_contact+%{key}@gmail.com"
gitlab_rails['service_desk_email_email'] = "project_support@gmail.com" gitlab_rails['service_desk_email_email'] = "project_support@gmail.com"
gitlab_rails['service_desk_email_password'] = "[REDACTED]" gitlab_rails['service_desk_email_password'] = "[REDACTED]"
gitlab_rails['service_desk_email_mailbox_name'] = "inbox" gitlab_rails['service_desk_email_mailbox_name'] = "inbox"
gitlab_rails['service_desk_email_idle_timeout'] = 60 gitlab_rails['service_desk_email_idle_timeout'] = 60
gitlab_rails['service_desk_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log" gitlab_rails['service_desk_email_log_file'] = "/var/log/gitlab/mailroom/mail_room_json.log"
gitlab_rails['service_desk_email_host'] = "imap.gmail.com" gitlab_rails['service_desk_email_host'] = "imap.gmail.com"
gitlab_rails['service_desk_email_port'] = 993 gitlab_rails['service_desk_email_port'] = 993
gitlab_rails['service_desk_email_ssl'] = true gitlab_rails['service_desk_email_ssl'] = true
gitlab_rails['service_desk_email_start_tls'] = false gitlab_rails['service_desk_email_start_tls'] = false
``` ```
In this case, suppose the `mygroup/myproject` project Service Desk settings has the project name In this case, suppose the `mygroup/myproject` project Service Desk settings has the project name
suffix set to `support`, and a user sends an email to `project_contact+mygroup-myproject-support@example.com`. suffix set to `support`, and a user sends an email to `project_contact+mygroup-myproject-support@example.com`.
...@@ -215,23 +208,23 @@ The configuration options are the same as for configuring ...@@ -215,23 +208,23 @@ The configuration options are the same as for configuring
Service Desk custom email is under development but ready for production use. Service Desk custom email is under development but ready for production use.
It is deployed behind a feature flag that is **enabled by default**. It is deployed behind a feature flag that is **enabled by default**.
[GitLab administrators with access to the GitLab Rails console](../../administration/feature_flags.md)
can opt to disable it.
To enable it: To disable it:
```ruby ```ruby
Feature.enable(:service_desk_custom_address) Feature.disable(:service_desk_custom_address)
``` ```
To disable it: To enable it:
```ruby ```ruby
Feature.disable(:service_desk_custom_address) Feature.enable(:service_desk_custom_address)
``` ```
## Using Service Desk ## Using Service Desk
There are a few ways Service Desk can be used.
### As an end user (issue creator) ### As an end user (issue creator)
To create a Service Desk issue, an end user does not need to know anything about To create a Service Desk issue, an end user does not need to know anything about
......
...@@ -1331,6 +1331,9 @@ msgstr "" ...@@ -1331,6 +1331,9 @@ msgstr ""
msgid "A sign-in to your account has been made from the following IP address: %{ip}" msgid "A sign-in to your account has been made from the following IP address: %{ip}"
msgstr "" msgstr ""
msgid "A string appended to the project path to form the Service Desk email address."
msgstr ""
msgid "A subscription will trigger a new pipeline on the default branch of this project when a pipeline successfully completes for a new tag on the %{default_branch_docs} of the subscribed project." msgid "A subscription will trigger a new pipeline on the default branch of this project when a pipeline successfully completes for a new tag on the %{default_branch_docs} of the subscribed project."
msgstr "" msgstr ""
...@@ -3030,7 +3033,7 @@ msgstr "" ...@@ -3030,7 +3033,7 @@ msgstr ""
msgid "An error has occurred" msgid "An error has occurred"
msgstr "" msgstr ""
msgid "An error occured while making the changes: %{error}" msgid "An error occured while saving changes: %{error}"
msgstr "" msgstr ""
msgid "An error occurred adding a draft to the thread." msgid "An error occurred adding a draft to the thread."
...@@ -5248,13 +5251,13 @@ msgstr "" ...@@ -5248,13 +5251,13 @@ msgstr ""
msgid "Changes are still tracked. Useful for cluster/index migrations." msgid "Changes are still tracked. Useful for cluster/index migrations."
msgstr "" msgstr ""
msgid "Changes suppressed. Click to show." msgid "Changes saved."
msgstr "" msgstr ""
msgid "Changes the title to \"%{title_param}\"." msgid "Changes suppressed. Click to show."
msgstr "" msgstr ""
msgid "Changes were successfully made." msgid "Changes the title to \"%{title_param}\"."
msgstr "" msgstr ""
msgid "Changes won't take place until the index is %{link_start}recreated%{link_end}." msgid "Changes won't take place until the index is %{link_start}recreated%{link_end}."
...@@ -10401,6 +10404,9 @@ msgstr "" ...@@ -10401,6 +10404,9 @@ msgstr ""
msgid "Email Notification" msgid "Email Notification"
msgstr "" msgstr ""
msgid "Email address to use for Support Desk"
msgstr ""
msgid "Email cannot be blank" msgid "Email cannot be blank"
msgstr "" msgstr ""
...@@ -10470,10 +10476,10 @@ msgstr "" ...@@ -10470,10 +10476,10 @@ msgstr ""
msgid "Emails" msgid "Emails"
msgstr "" msgstr ""
msgid "Emails sent from Service Desk will have this name" msgid "Emails sent from Service Desk have this name."
msgstr "" msgstr ""
msgid "Emails sent to %{email} will still be supported" msgid "Emails sent to %{email} are also supported."
msgstr "" msgstr ""
msgid "Emails separated by comma" msgid "Emails separated by comma"
...@@ -10554,6 +10560,9 @@ msgstr "" ...@@ -10554,6 +10560,9 @@ msgstr ""
msgid "Enable and configure Prometheus metrics." msgid "Enable and configure Prometheus metrics."
msgstr "" msgstr ""
msgid "Enable and disable Service Desk. Some additional configuration might be required. %{link_start}Learn more%{link_end}."
msgstr ""
msgid "Enable classification control using an external service" msgid "Enable classification control using an external service"
msgstr "" msgstr ""
...@@ -10641,9 +10650,6 @@ msgstr "" ...@@ -10641,9 +10650,6 @@ msgstr ""
msgid "Enable usage ping" msgid "Enable usage ping"
msgstr "" msgstr ""
msgid "Enable/disable your service desk. %{link_start}Learn more about service desk%{link_end}."
msgstr ""
msgid "EnableReviewApp|%{stepStart}Step 1%{stepEnd}. Ensure you have Kubernetes set up and have a base domain for your %{linkStart}cluster%{linkEnd}." msgid "EnableReviewApp|%{stepStart}Step 1%{stepEnd}. Ensure you have Kubernetes set up and have a base domain for your %{linkStart}cluster%{linkEnd}."
msgstr "" msgstr ""
...@@ -12524,9 +12530,6 @@ msgstr "" ...@@ -12524,9 +12530,6 @@ msgstr ""
msgid "Format: %{dateFormat}" msgid "Format: %{dateFormat}"
msgstr "" msgstr ""
msgid "Forward external support email address to"
msgstr ""
msgid "Found errors in your %{gitlab_ci_yml}:" msgid "Found errors in your %{gitlab_ci_yml}:"
msgstr "" msgstr ""
...@@ -13073,9 +13076,6 @@ msgstr "" ...@@ -13073,9 +13076,6 @@ msgstr ""
msgid "GitLab Pages" msgid "GitLab Pages"
msgstr "" msgstr ""
msgid "GitLab Service Desk is a simple way to allow people to create issues in your GitLab instance without needing their own user account. It provides a unique email address for end users to create issues in a project, and replies can be sent either through the GitLab interface or by email. End users will only see the thread through email."
msgstr ""
msgid "GitLab Shell" msgid "GitLab Shell"
msgstr "" msgstr ""
...@@ -14671,7 +14671,7 @@ msgstr "" ...@@ -14671,7 +14671,7 @@ msgstr ""
msgid "Improve Merge Requests and customer support with GitLab Enterprise Edition." msgid "Improve Merge Requests and customer support with GitLab Enterprise Edition."
msgstr "" msgstr ""
msgid "Improve customer support with GitLab Service Desk." msgid "Improve customer support with Service Desk"
msgstr "" msgstr ""
msgid "Improve search with Advanced Search and GitLab Enterprise Edition." msgid "Improve search with Advanced Search and GitLab Enterprise Edition."
...@@ -21721,9 +21721,6 @@ msgstr "" ...@@ -21721,9 +21721,6 @@ msgstr ""
msgid "Project name suffix" msgid "Project name suffix"
msgstr "" msgstr ""
msgid "Project name suffix is a user-defined string which will be appended to the project path, and will form the Service Desk email address."
msgstr ""
msgid "Project order will not be saved as local storage is not available." msgid "Project order will not be saved as local storage is not available."
msgstr "" msgstr ""
...@@ -25306,6 +25303,9 @@ msgstr "" ...@@ -25306,6 +25303,9 @@ msgstr ""
msgid "Service Desk" msgid "Service Desk"
msgstr "" msgstr ""
msgid "Service Desk allows people to create issues in your GitLab instance without their own user account. It provides a unique email address for end users to create issues in a project. Replies can be sent either through the GitLab interface or by email. End users only see threads through email."
msgstr ""
msgid "Service Desk is enabled but not yet active" msgid "Service Desk is enabled but not yet active"
msgstr "" msgstr ""
......
...@@ -20,7 +20,7 @@ RSpec.describe 'Promotions', :js do ...@@ -20,7 +20,7 @@ RSpec.describe 'Promotions', :js do
it 'appears in project edit page' do it 'appears in project edit page' do
visit edit_project_path(project) visit edit_project_path(project)
expect(find('#promote_service_desk')).to have_content 'Improve customer support with GitLab Service Desk.' expect(find('#promote_service_desk')).to have_content 'Improve customer support with Service Desk'
end end
it 'does not show when cookie is set' do it 'does not show when cookie is set' do
......
...@@ -137,7 +137,7 @@ describe('ServiceDeskRoot', () => { ...@@ -137,7 +137,7 @@ describe('ServiceDeskRoot', () => {
.$nextTick() .$nextTick()
.then(waitForPromises) .then(waitForPromises)
.then(() => { .then(() => {
expect(wrapper.html()).toContain('Changes were successfully made.'); expect(wrapper.html()).toContain('Changes saved.');
}); });
}); });
...@@ -160,7 +160,7 @@ describe('ServiceDeskRoot', () => { ...@@ -160,7 +160,7 @@ describe('ServiceDeskRoot', () => {
.$nextTick() .$nextTick()
.then(waitForPromises) .then(waitForPromises)
.then(() => { .then(() => {
expect(wrapper.html()).toContain('An error occured while making the changes:'); expect(wrapper.html()).toContain('An error occured while saving changes:');
}); });
}); });
......
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