Commit 3d3dbe63 authored by Andrew Fontaine's avatar Andrew Fontaine

Add helpful text to project select modal

It was unclear the impact of adding projects to the environments
project, so some text has been added to make it clear to users that
adding here also adds to the operations dashboard and vice versa.

Changelog: added
parent 081f573c
...@@ -31,6 +31,9 @@ export default { ...@@ -31,6 +31,9 @@ export default {
), ),
viewDocumentationButton: __('View documentation'), viewDocumentationButton: __('View documentation'),
informationText: s__(
'EnvironmentsDashboard|This dashboard displays 3 environments per project, and is linked to the Operations Dashboard. When you add or remove a project from one dashboard, GitLab adds or removes the project from the other. %{linkStart}More information%{linkEnd}',
),
components: { components: {
Environment, Environment,
...@@ -165,6 +168,19 @@ export default { ...@@ -165,6 +168,19 @@ export default {
@hidden="onModalHidden" @hidden="onModalHidden"
@ok="onOk" @ok="onOk"
> >
<p>
<gl-sprintf :message="$options.informationText">
<template #link="{ content }">
<gl-link
:href="environmentsDashboardHelpPath"
target="_blank"
rel="noopener noreferrer"
>
{{ content }}
</gl-link>
</template>
</gl-sprintf>
</p>
<project-selector <project-selector
ref="projectSelector" ref="projectSelector"
:project-search-results="projectSearchResults" :project-search-results="projectSearchResults"
...@@ -188,16 +204,10 @@ export default { ...@@ -188,16 +204,10 @@ export default {
</gl-button> </gl-button>
</div> </div>
<p class="mt-2 mb-4 js-page-limits-message"> <p class="mt-2 mb-4 js-page-limits-message">
<gl-sprintf <gl-sprintf :message="$options.informationText">
:message=" <template #link="{ content }">
s__(
'EnvironmentsDashboard|This dashboard displays 3 environments per project, and is linked to the Operations Dashboard. When you add or remove a project from one dashboard, GitLab adds or removes the project from the other. %{readMoreLink}',
)
"
>
<template #readMoreLink>
<gl-link :href="environmentsDashboardHelpPath" target="_blank" rel="noopener noreferrer"> <gl-link :href="environmentsDashboardHelpPath" target="_blank" rel="noopener noreferrer">
{{ s__('EnvironmentsDashboard|More information') }} {{ content }}
</gl-link> </gl-link>
</template> </template>
</gl-sprintf> </gl-sprintf>
......
...@@ -15,6 +15,19 @@ exports[`dashboard should match the snapshot 1`] = ` ...@@ -15,6 +15,19 @@ exports[`dashboard should match the snapshot 1`] = `
title="Add projects" title="Add projects"
titletag="h4" titletag="h4"
> >
<p>
This dashboard displays 3 environments per project, and is linked to the Operations Dashboard. When you add or remove a project from one dashboard, GitLab adds or removes the project from the other.
<gl-link-stub
href="/help/user/operations_dashboard/index.html"
rel="noopener noreferrer"
target="_blank"
>
More information
</gl-link-stub>
</p>
<project-selector-stub <project-selector-stub
maxlistheight="402" maxlistheight="402"
projectsearchresults="" projectsearchresults=""
......
...@@ -13050,16 +13050,13 @@ msgstr "" ...@@ -13050,16 +13050,13 @@ msgstr ""
msgid "EnvironmentsDashboard|More actions" msgid "EnvironmentsDashboard|More actions"
msgstr "" msgstr ""
msgid "EnvironmentsDashboard|More information"
msgstr ""
msgid "EnvironmentsDashboard|Remove" msgid "EnvironmentsDashboard|Remove"
msgstr "" msgstr ""
msgid "EnvironmentsDashboard|The environments dashboard provides a summary of each project's environments' status, including pipeline and alert statuses." msgid "EnvironmentsDashboard|The environments dashboard provides a summary of each project's environments' status, including pipeline and alert statuses."
msgstr "" msgstr ""
msgid "EnvironmentsDashboard|This dashboard displays 3 environments per project, and is linked to the Operations Dashboard. When you add or remove a project from one dashboard, GitLab adds or removes the project from the other. %{readMoreLink}" msgid "EnvironmentsDashboard|This dashboard displays 3 environments per project, and is linked to the Operations Dashboard. When you add or remove a project from one dashboard, GitLab adds or removes the project from the other. %{linkStart}More information%{linkEnd}"
msgstr "" msgstr ""
msgid "Environments|An error occurred while canceling the auto stop, please try again" msgid "Environments|An error occurred while canceling the auto stop, please try again"
......
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