diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-13 03:06:53 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-13 03:06:53 +0000 |
commit | c0b9c14ebd1524a1e2334e656f997ec680a18966 (patch) | |
tree | 4437aea2c4239279131a56adca1679f636683d29 /app/assets | |
parent | 98638cd5e43611aac2193a5c2f80f72374040430 (diff) | |
download | gitlab-ce-c0b9c14ebd1524a1e2334e656f997ec680a18966.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
15 files changed, 156 insertions, 106 deletions
diff --git a/app/assets/javascripts/ci/pipeline_editor/components/editor/ci_editor_header.vue b/app/assets/javascripts/ci/pipeline_editor/components/editor/ci_editor_header.vue index b78224e93b0..66957365261 100644 --- a/app/assets/javascripts/ci/pipeline_editor/components/editor/ci_editor_header.vue +++ b/app/assets/javascripts/ci/pipeline_editor/components/editor/ci_editor_header.vue @@ -10,6 +10,7 @@ export default { browseTemplates: __('Browse templates'), help: __('Help'), jobAssistant: s__('JobAssistant|Job assistant'), + aiAssistant: s__('PipelinesAiAssistant|Ai assistant'), }, TEMPLATE_REPOSITORY_URL, components: { @@ -25,6 +26,10 @@ export default { type: Boolean, required: true, }, + showAiAssistantDrawer: { + type: Boolean, + required: true, + }, }, methods: { toggleDrawer() { @@ -40,6 +45,11 @@ export default { this.showJobAssistantDrawer ? 'close-job-assistant-drawer' : 'open-job-assistant-drawer', ); }, + toggleAiAssistantDrawer() { + this.$emit( + this.showAiAssistantDrawer ? 'close-ai-assistant-drawer' : 'open-ai-assistant-drawer', + ); + }, trackHelpDrawerClick() { const { label, actions } = pipelineEditorTrackingOptions; this.track(actions.openHelpDrawer, { label }); @@ -85,5 +95,15 @@ export default { > {{ $options.i18n.jobAssistant }} </gl-button> + <gl-button + v-if="glFeatures.aiCiConfigGenerator" + icon="bulb" + size="small" + data-testid="ai-assistant-drawer-toggle" + data-qa-selector="ai_assistant_drawer_toggle" + @click="toggleAiAssistantDrawer" + > + {{ $options.i18n.aiAssistant }} + </gl-button> </div> </template> diff --git a/app/assets/javascripts/ci/pipeline_editor/components/pipeline_editor_tabs.vue b/app/assets/javascripts/ci/pipeline_editor/components/pipeline_editor_tabs.vue index e965ac12aa5..403793a255a 100644 --- a/app/assets/javascripts/ci/pipeline_editor/components/pipeline_editor_tabs.vue +++ b/app/assets/javascripts/ci/pipeline_editor/components/pipeline_editor_tabs.vue @@ -99,6 +99,10 @@ export default { type: Boolean, required: true, }, + showAiAssistantDrawer: { + type: Boolean, + required: true, + }, }, apollo: { appStatus: { @@ -194,6 +198,7 @@ export default { <ci-editor-header :show-drawer="showDrawer" :show-job-assistant-drawer="showJobAssistantDrawer" + :show-ai-assistant-drawer="showAiAssistantDrawer" v-on="$listeners" /> <text-editor :commit-sha="commitSha" :value="ciFileContent" v-on="$listeners" /> diff --git a/app/assets/javascripts/ci/pipeline_editor/pipeline_editor_home.vue b/app/assets/javascripts/ci/pipeline_editor/pipeline_editor_home.vue index 1329042ee4c..647e33333ce 100644 --- a/app/assets/javascripts/ci/pipeline_editor/pipeline_editor_home.vue +++ b/app/assets/javascripts/ci/pipeline_editor/pipeline_editor_home.vue @@ -1,6 +1,7 @@ <script> import { GlModal } from '@gitlab/ui'; import { __ } from '~/locale'; +import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import CommitSection from './components/commit/commit_section.vue'; import PipelineEditorDrawer from './components/drawer/pipeline_editor_drawer.vue'; import JobAssistantDrawer from './components/job_assistant_drawer/job_assistant_drawer.vue'; @@ -10,6 +11,9 @@ import PipelineEditorHeader from './components/header/pipeline_editor_header.vue import PipelineEditorTabs from './components/pipeline_editor_tabs.vue'; import { CREATE_TAB, FILE_TREE_DISPLAY_KEY } from './constants'; +const AiAssistantDrawer = () => + import('ee_component/ci/pipeline_editor/components/ai_assistant_drawer.vue'); + export default { commitSectionRef: 'commitSectionRef', modal: { @@ -30,11 +34,13 @@ export default { GlModal, PipelineEditorDrawer, JobAssistantDrawer, + AiAssistantDrawer, PipelineEditorFileNav, PipelineEditorFileTree, PipelineEditorHeader, PipelineEditorTabs, }, + mixins: [glFeatureFlagMixin()], props: { ciConfigData: { type: Object, @@ -66,8 +72,10 @@ export default { shouldLoadNewBranch: false, showDrawer: false, showJobAssistantDrawer: false, + showAiAssistantDrawer: false, drawerIndex: 200, jobAssistantIndex: 200, + aiAssistantIndex: 200, showFileTree: false, showSwitchBranchModal: false, }; @@ -93,6 +101,13 @@ export default { closeJobAssistantDrawer() { this.showJobAssistantDrawer = false; }, + closeAiAssistantDrawer() { + this.showAiAssistantDrawer = false; + }, + openAiAssistantDrawer() { + this.showAiAssistantDrawer = true; + this.aiAssistantIndex = this.drawerIndex + 1; + }, handleConfirmSwitchBranch() { this.showSwitchBranchModal = true; }, @@ -167,11 +182,14 @@ export default { :is-new-ci-config-file="isNewCiConfigFile" :show-drawer="showDrawer" :show-job-assistant-drawer="showJobAssistantDrawer" + :show-ai-assistant-drawer="showAiAssistantDrawer" v-on="$listeners" @open-drawer="openDrawer" @close-drawer="closeDrawer" @open-job-assistant-drawer="openJobAssistantDrawer" @close-job-assistant-drawer="closeJobAssistantDrawer" + @open-ai-assistant-drawer="openAiAssistantDrawer" + @close-ai-assistant-drawer="closeAiAssistantDrawer" @set-current-tab="setCurrentTab" @walkthrough-popover-cta-clicked="setScrollToCommitForm" /> @@ -202,5 +220,11 @@ export default { v-on="$listeners" @close-job-assistant-drawer="closeJobAssistantDrawer" /> + <ai-assistant-drawer + v-if="glFeatures.aiCiConfigGenerator" + :is-visible="showAiAssistantDrawer" + :z-index="aiAssistantIndex" + @close-ai-assistant-drawer="closeAiAssistantDrawer" + /> </div> </template> diff --git a/app/assets/javascripts/ci/runner/components/cells/runner_summary_cell.vue b/app/assets/javascripts/ci/runner/components/cells/runner_summary_cell.vue index 24c1b4f5c3b..f24fb5575ae 100644 --- a/app/assets/javascripts/ci/runner/components/cells/runner_summary_cell.vue +++ b/app/assets/javascripts/ci/runner/components/cells/runner_summary_cell.vue @@ -71,7 +71,7 @@ export default { <template> <div> - <div> + <div class="gl-mb-3"> <slot :runner="runner" name="runner-name"> <runner-name :runner="runner" /> </slot> @@ -84,22 +84,23 @@ export default { <runner-type-badge :type="runner.runnerType" size="sm" class="gl-vertical-align-middle" /> </div> - <div class="gl-ml-auto gl-display-inline-flex gl-max-w-full gl-py-2"> - <div class="gl-flex-shrink-0"> - <runner-upgrade-status-icon :runner="runner" /> - <gl-sprintf v-if="runner.version" :message="$options.i18n.I18N_VERSION_LABEL"> - <template #version>{{ runner.version }}</template> - </gl-sprintf> - </div> - <div class="gl-text-secondary gl-mx-2" aria-hidden="true">·</div> + <div class="gl-mb-3 gl-ml-auto gl-display-inline-flex gl-max-w-full"> + <template v-if="runner.version"> + <div class="gl-flex-shrink-0"> + <runner-upgrade-status-icon :runner="runner" /> + <gl-sprintf :message="$options.i18n.I18N_VERSION_LABEL"> + <template #version>{{ runner.version }}</template> + </gl-sprintf> + </div> + <div class="gl-text-secondary gl-mx-2" aria-hidden="true">·</div> + </template> <tooltip-on-truncate - v-if="runner.description" class="gl-text-truncate gl-display-block" + :class="{ 'gl-text-secondary': !runner.description }" :title="runner.description" > - {{ runner.description }} + {{ runner.description || $options.i18n.I18N_NO_DESCRIPTION }} </tooltip-on-truncate> - <span v-else class="gl-text-secondary">{{ $options.i18n.I18N_NO_DESCRIPTION }}</span> </div> <div> @@ -148,6 +149,6 @@ export default { </runner-summary-field> </div> - <runner-tags class="gl-display-block gl-pt-2" :tag-list="runner.tagList" size="sm" /> + <runner-tags class="gl-display-block" :tag-list="runner.tagList" size="sm" /> </div> </template> diff --git a/app/assets/javascripts/ci/runner/components/cells/runner_summary_field.vue b/app/assets/javascripts/ci/runner/components/cells/runner_summary_field.vue index 20681873436..742259ee491 100644 --- a/app/assets/javascripts/ci/runner/components/cells/runner_summary_field.vue +++ b/app/assets/javascripts/ci/runner/components/cells/runner_summary_field.vue @@ -24,7 +24,7 @@ export default { </script> <template> - <div v-gl-tooltip="tooltip" class="gl-display-inline-block gl-text-secondary gl-my-2 gl-mr-4"> + <div v-gl-tooltip="tooltip" class="gl-display-inline-block gl-text-secondary gl-mb-3 gl-mr-4"> <gl-icon v-if="icon" :name="icon" /> <!-- display tooltip as a label for screen readers --> <span class="gl-sr-only">{{ tooltip }}</span> diff --git a/app/assets/javascripts/commit/pipelines/pipelines_table.vue b/app/assets/javascripts/commit/pipelines/pipelines_table.vue index b0a1c46e619..f2dac15a99e 100644 --- a/app/assets/javascripts/commit/pipelines/pipelines_table.vue +++ b/app/assets/javascripts/commit/pipelines/pipelines_table.vue @@ -234,6 +234,7 @@ export default { <template v-else-if="shouldRenderEmptyState"> <gl-empty-state :svg-path="emptyStateSvgPath" + :svg-height="150" :title="$options.i18n.emptyStateTitle" data-testid="pipeline-empty-state" > diff --git a/app/assets/javascripts/environments/components/empty_state.vue b/app/assets/javascripts/environments/components/empty_state.vue index e40c37b5095..3ac32f0d045 100644 --- a/app/assets/javascripts/environments/components/empty_state.vue +++ b/app/assets/javascripts/environments/components/empty_state.vue @@ -1,12 +1,13 @@ <script> -import { GlEmptyState, GlLink } from '@gitlab/ui'; +import { GlButton, GlEmptyState, GlLink, GlSprintf } from '@gitlab/ui'; import { s__ } from '~/locale'; -import { ENVIRONMENTS_SCOPE } from '../constants'; export default { components: { + GlButton, GlEmptyState, GlLink, + GlSprintf, }, inject: ['newEnvironmentPath'], props: { @@ -14,10 +15,6 @@ export default { type: String, required: true, }, - scope: { - type: String, - required: true, - }, hasTerm: { type: Boolean, required: false, @@ -26,40 +23,40 @@ export default { }, computed: { title() { - return this.hasTerm - ? this.$options.i18n.searchingTitle - : this.$options.i18n.title[this.scope]; + return this.hasTerm ? this.$options.i18n.searchingTitle : this.$options.i18n.title; }, content() { return this.hasTerm ? this.$options.i18n.searchingContent : this.$options.i18n.content; }, - buttonText() { - return this.hasTerm ? this.$options.i18n.newEnvironmentButtonLabel : ''; - }, }, i18n: { - title: { - [ENVIRONMENTS_SCOPE.AVAILABLE]: s__("Environments|You don't have any environments."), - [ENVIRONMENTS_SCOPE.STOPPED]: s__("Environments|You don't have any stopped environments."), - }, - content: s__( - 'Environments|Environments are places where code gets deployed, such as staging or production.', - ), searchingTitle: s__('Environments|No results found'), + title: s__('Environments|Get started with environments'), searchingContent: s__('Environments|Edit your search and try again'), - link: s__('Environments|How do I create an environment?'), - newEnvironmentButtonLabel: s__('Environments|New environment'), + content: s__( + 'Environments|Environments are places where code gets deployed, such as staging or production. You can create an environment in the UI or in your .gitlab-ci.yml file. You can also enable review apps, which assist with providing an environment to showcase product changes. %{linkStart}Learn more%{linkEnd} about environments.', + ), + newEnvironmentButtonLabel: s__('Environments|Create an environment'), + enablingReviewButtonLabel: s__('Environments|Enable review apps'), }, }; </script> <template> - <gl-empty-state :primary-button-text="buttonText" :primary-button-link="newEnvironmentPath"> - <template #title> - <h4>{{ title }}</h4> - </template> + <gl-empty-state class="gl-layout-w-limited" :title="title"> <template #description> - <p>{{ content }}</p> - <gl-link v-if="!hasTerm" :href="helpPath">{{ $options.i18n.link }}</gl-link> + <gl-sprintf :message="content"> + <template #link="{ content: contentToDisplay }"> + <gl-link :href="helpPath">{{ contentToDisplay }}</gl-link> + </template> + </gl-sprintf> + </template> + <template v-if="!hasTerm" #actions> + <gl-button :href="newEnvironmentPath" variant="confirm"> + {{ $options.i18n.newEnvironmentButtonLabel }} + </gl-button> + <gl-button @click="$emit('enable-review')"> + {{ $options.i18n.enablingReviewButtonLabel }} + </gl-button> </template> </gl-empty-state> </template> diff --git a/app/assets/javascripts/environments/components/environments_app.vue b/app/assets/javascripts/environments/components/environments_app.vue index b2a69cdb6c6..a95b5b273f7 100644 --- a/app/assets/javascripts/environments/components/environments_app.vue +++ b/app/assets/javascripts/environments/components/environments_app.vue @@ -76,7 +76,7 @@ export default { inject: ['newEnvironmentPath', 'canCreateEnvironment', 'helpPagePath'], i18n: { newEnvironmentButtonLabel: s__('Environments|New environment'), - reviewAppButtonLabel: s__('Environments|Enable review app'), + reviewAppButtonLabel: s__('Environments|Enable review apps'), cleanUpEnvsButtonLabel: s__('Environments|Clean up environments'), available: __('Available'), stopped: __('Stopped'), @@ -124,12 +124,24 @@ export default { hasEnvironments() { return this.environments.length > 0 || this.folders.length > 0; }, + showEmptyState() { + return !this.$apollo.queries.environmentApp.loading && !this.hasEnvironments; + }, hasSearch() { return Boolean(this.search); }, availableCount() { return this.environmentApp?.availableCount; }, + stoppedCount() { + return this.environmentApp?.stoppedCount; + }, + hasAnyEnvironment() { + return this.availableCount > 0 || this.stoppedCount > 0; + }, + showContent() { + return this.hasAnyEnvironment || this.hasSearch; + }, addEnvironment() { if (!this.canCreateEnvironment) { return null; @@ -170,9 +182,6 @@ export default { }, }; }, - stoppedCount() { - return this.environmentApp?.stoppedCount; - }, totalItems() { return this.pageInfo?.total; }, @@ -253,45 +262,45 @@ export default { <stop-environment-modal :environment="environmentToStop" graphql /> <confirm-rollback-modal :environment="environmentToRollback" graphql /> <canary-update-modal :environment="environmentToChangeCanary" :weight="weight" /> - <gl-tabs - :action-secondary="openReviewAppModal" - :action-primary="openCleanUpEnvsModal" - :action-tertiary="addEnvironment" - sync-active-tab-with-query-params - query-param-name="scope" - @secondary="showReviewAppModal" - @primary="showCleanUpEnvsModal" - > - <gl-tab - :query-param-value="$options.ENVIRONMENTS_SCOPE.AVAILABLE" - @click="setScope($options.ENVIRONMENTS_SCOPE.AVAILABLE)" + <template v-if="showContent"> + <gl-tabs + :action-secondary="openReviewAppModal" + :action-primary="openCleanUpEnvsModal" + :action-tertiary="addEnvironment" + sync-active-tab-with-query-params + query-param-name="scope" + @secondary="showReviewAppModal" + @primary="showCleanUpEnvsModal" > - <template #title> - <span>{{ $options.i18n.available }}</span> - <gl-badge size="sm" class="gl-tab-counter-badge"> - {{ availableCount }} - </gl-badge> - </template> - </gl-tab> - <gl-tab - :query-param-value="$options.ENVIRONMENTS_SCOPE.STOPPED" - @click="setScope($options.ENVIRONMENTS_SCOPE.STOPPED)" - > - <template #title> - <span>{{ $options.i18n.stopped }}</span> - <gl-badge size="sm" class="gl-tab-counter-badge"> - {{ stoppedCount }} - </gl-badge> - </template> - </gl-tab> - </gl-tabs> - <gl-search-box-by-type - class="gl-mb-4" - :value="search" - :placeholder="$options.i18n.searchPlaceholder" - @input="setSearch" - /> - <template v-if="hasEnvironments"> + <gl-tab + :query-param-value="$options.ENVIRONMENTS_SCOPE.AVAILABLE" + @click="setScope($options.ENVIRONMENTS_SCOPE.AVAILABLE)" + > + <template #title> + <span>{{ $options.i18n.available }}</span> + <gl-badge size="sm" class="gl-tab-counter-badge"> + {{ availableCount }} + </gl-badge> + </template> + </gl-tab> + <gl-tab + :query-param-value="$options.ENVIRONMENTS_SCOPE.STOPPED" + @click="setScope($options.ENVIRONMENTS_SCOPE.STOPPED)" + > + <template #title> + <span>{{ $options.i18n.stopped }}</span> + <gl-badge size="sm" class="gl-tab-counter-badge"> + {{ stoppedCount }} + </gl-badge> + </template> + </gl-tab> + </gl-tabs> + <gl-search-box-by-type + class="gl-mb-4" + :value="search" + :placeholder="$options.i18n.searchPlaceholder" + @input="setSearch" + /> <environment-folder v-for="folder in folders" :key="folder.name" @@ -309,10 +318,10 @@ export default { /> </template> <empty-state - v-else-if="!$apollo.queries.environmentApp.loading" + v-if="showEmptyState" :help-path="helpPagePath" - :scope="scope" :has-term="hasSearch" + @enable-review="showReviewAppModal" /> <gl-pagination align="center" diff --git a/app/assets/javascripts/environments/constants.js b/app/assets/javascripts/environments/constants.js index e675a73ba7d..448cee530f6 100644 --- a/app/assets/javascripts/environments/constants.js +++ b/app/assets/javascripts/environments/constants.js @@ -51,7 +51,7 @@ export const ENVIRONMENT_COUNT_BY_SCOPE = { }; export const REVIEW_APP_MODAL_I18N = { - title: s__('ReviewApp|Enable Review App'), + title: s__('Environments|Enable Review Apps'), intro: s__( 'EnableReviewApp|Review apps are dynamic environments that you can use to provide a live preview of changes made in a feature branch.', ), diff --git a/app/assets/javascripts/google_tag_manager/index.js b/app/assets/javascripts/google_tag_manager/index.js index 98c9db1fc9a..0a1a7a74d21 100644 --- a/app/assets/javascripts/google_tag_manager/index.js +++ b/app/assets/javascripts/google_tag_manager/index.js @@ -123,17 +123,6 @@ export const trackSaasTrialSubmit = () => { pushEvent('saasTrialSubmit'); }; -export const trackSaasTrialSkip = () => { - if (!isSupported()) { - return; - } - - const skipLink = document.querySelector('.js-skip-trial'); - skipLink.addEventListener('click', () => { - pushEvent('saasTrialSkip'); - }); -}; - export const trackSaasTrialGroup = () => { if (!isSupported()) { return; diff --git a/app/assets/javascripts/ide/components/pipelines/empty_state.vue b/app/assets/javascripts/ide/components/pipelines/empty_state.vue index 194deb2ece0..25e1698e3f4 100644 --- a/app/assets/javascripts/ide/components/pipelines/empty_state.vue +++ b/app/assets/javascripts/ide/components/pipelines/empty_state.vue @@ -28,6 +28,7 @@ export default { <gl-empty-state :title="$options.i18n.title" :svg-path="pipelinesEmptyStateSvgPath" + :svg-height="150" :description="$options.i18n.description" :primary-button-text="$options.i18n.primaryButtonText" :primary-button-link="ciHelpPagePath" diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js index f33484f4192..7bf34dbaa2e 100644 --- a/app/assets/javascripts/lib/utils/url_utility.js +++ b/app/assets/javascripts/lib/utils/url_utility.js @@ -5,8 +5,11 @@ const PATH_SEPARATOR_LEADING_REGEX = new RegExp(`^${PATH_SEPARATOR}+`); const PATH_SEPARATOR_ENDING_REGEX = new RegExp(`${PATH_SEPARATOR}+$`); const SHA_REGEX = /[\da-f]{40}/gi; +// GitLab default domain (override in jh) +export const DOMAIN = 'gitlab.com'; + // About GitLab default host (overwrite in jh) -export const PROMO_HOST = 'about.gitlab.com'; +export const PROMO_HOST = `about.${DOMAIN}`; // about.gitlab.com // About Gitlab default url (overwrite in jh) export const PROMO_URL = `https://${PROMO_HOST}`; diff --git a/app/assets/javascripts/notes/components/discussion_notes_replies_wrapper.vue b/app/assets/javascripts/notes/components/discussion_notes_replies_wrapper.vue index a0d2b47c89c..1dd07fe90d2 100644 --- a/app/assets/javascripts/notes/components/discussion_notes_replies_wrapper.vue +++ b/app/assets/javascripts/notes/components/discussion_notes_replies_wrapper.vue @@ -21,7 +21,7 @@ export default { 'li', { class: - 'discussion-collapsible gl-border-solid gl-border-gray-100 gl-border-1 gl-rounded-base clearfix gl-pt-5', + 'discussion-collapsible gl-border-solid gl-border-gray-100 gl-border-1 gl-rounded-base clearfix', }, [h('ul', { class: 'notes' }, children)], ); diff --git a/app/assets/javascripts/super_sidebar/components/help_center.vue b/app/assets/javascripts/super_sidebar/components/help_center.vue index caefeaa5eb4..1fffbb05d03 100644 --- a/app/assets/javascripts/super_sidebar/components/help_center.vue +++ b/app/assets/javascripts/super_sidebar/components/help_center.vue @@ -8,7 +8,7 @@ import { } from '@gitlab/ui'; import GitlabVersionCheckBadge from '~/gitlab_version_check/components/gitlab_version_check_badge.vue'; import { helpPagePath } from '~/helpers/help_page_helper'; -import { PROMO_URL } from 'jh_else_ce/lib/utils/url_utility'; +import { DOMAIN, PROMO_URL } from 'jh_else_ce/lib/utils/url_utility'; import { __, s__ } from '~/locale'; import { STORAGE_KEY } from '~/whats_new/utils/notification'; import Tracking from '~/tracking'; @@ -93,7 +93,7 @@ export default { }, { text: this.$options.i18n.docs, - href: 'https://docs.gitlab.com', + href: `https://docs.${DOMAIN}`, extraAttrs: { ...this.trackingAttrs('gitlab_documentation'), }, @@ -107,7 +107,7 @@ export default { }, { text: this.$options.i18n.forum, - href: 'https://forum.gitlab.com/', + href: `https://forum.${DOMAIN}/`, extraAttrs: { ...this.trackingAttrs('community_forum'), }, @@ -121,7 +121,7 @@ export default { }, { text: this.$options.i18n.feedback, - href: 'https://about.gitlab.com/submit-feedback', + href: `${PROMO_URL}/submit-feedback`, extraAttrs: { ...this.trackingAttrs('submit_feedback'), }, diff --git a/app/assets/javascripts/vue_merge_request_widget/components/states/nothing_to_merge.vue b/app/assets/javascripts/vue_merge_request_widget/components/states/nothing_to_merge.vue index e6a0b5fd8be..30cd9fa752f 100644 --- a/app/assets/javascripts/vue_merge_request_widget/components/states/nothing_to_merge.vue +++ b/app/assets/javascripts/vue_merge_request_widget/components/states/nothing_to_merge.vue @@ -1,6 +1,6 @@ <script> import { GlButton, GlSprintf, GlLink } from '@gitlab/ui'; -import EMPTY_STATE_SVG_URL from '@gitlab/svgs/dist/illustrations/merge_requests.svg?url'; +import EMPTY_STATE_SVG_URL from '@gitlab/svgs/dist/illustrations/empty-state/empty-merge-requests-md.svg?url'; import api from '~/api'; import { helpPagePath } from '~/helpers/help_page_helper'; @@ -31,14 +31,14 @@ export default { <div class="mr-widget-body mr-widget-empty-state"> <div class="row"> <div - class="col-md-5 order-md-last col-12 text-center d-flex justify-content-center align-items-center svg-content svg-250 pb-0" + class="col-md-3 col-12 text-center d-flex justify-content-center align-items-center svg-content svg-150 pb-0 pt-0" > <img :alt="s__('mrWidgetNothingToMerge|This merge request contains no changes.')" :src="$options.EMPTY_STATE_SVG_URL" /> </div> - <div class="text col-md-7 order-md-first col-12"> + <div class="text col-md-9 col-12"> <p class="highlight"> {{ s__('mrWidgetNothingToMerge|This merge request contains no changes.') }} </p> |