From 36a59d088eca61b834191dacea009677a96c052f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 19 May 2022 07:33:21 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-0-stable-ee --- .../components/commit/commit_form.vue | 26 +++---- .../components/commit/commit_section.vue | 13 ++-- .../components/editor/ci_config_merged_preview.vue | 4 +- .../file_nav/pipeline_editor_file_nav.vue | 48 +++++++++++++ .../components/file_tree/container.vue | 78 ++++++++++++++++++++ .../components/file_tree/file_item.vue | 45 ++++++++++++ .../header/pipeline_editor_mini_graph.vue | 22 ++++-- .../components/pipeline_editor_tabs.vue | 2 +- .../components/popovers/file_tree_popover.vue | 59 +++++++++++++++ .../components/popovers/walkthrough_popover.vue | 83 ++++++++++++++++++++++ .../components/walkthrough_popover.vue | 83 ---------------------- .../javascripts/pipeline_editor/constants.js | 4 ++ .../graphql/queries/ci_config.query.graphql | 6 ++ app/assets/javascripts/pipeline_editor/index.js | 4 +- .../pipeline_editor/pipeline_editor_app.vue | 3 +- .../pipeline_editor/pipeline_editor_home.vue | 67 ++++++++++++----- 16 files changed, 414 insertions(+), 133 deletions(-) create mode 100644 app/assets/javascripts/pipeline_editor/components/file_tree/container.vue create mode 100644 app/assets/javascripts/pipeline_editor/components/file_tree/file_item.vue create mode 100644 app/assets/javascripts/pipeline_editor/components/popovers/file_tree_popover.vue create mode 100644 app/assets/javascripts/pipeline_editor/components/popovers/walkthrough_popover.vue delete mode 100644 app/assets/javascripts/pipeline_editor/components/walkthrough_popover.vue (limited to 'app/assets/javascripts/pipeline_editor') diff --git a/app/assets/javascripts/pipeline_editor/components/commit/commit_form.vue b/app/assets/javascripts/pipeline_editor/components/commit/commit_form.vue index 8536db78dfb..d9da238358f 100644 --- a/app/assets/javascripts/pipeline_editor/components/commit/commit_form.vue +++ b/app/assets/javascripts/pipeline_editor/components/commit/commit_form.vue @@ -54,15 +54,15 @@ export default { return { message: this.defaultMessage, openMergeRequest: false, - targetBranch: this.currentBranch, + sourceBranch: this.currentBranch, }; }, computed: { isCommitFormFilledOut() { - return this.message && this.targetBranch; + return this.message && this.sourceBranch; }, - isCurrentBranchTarget() { - return this.targetBranch === this.currentBranch; + isCurrentBranchSourceBranch() { + return this.sourceBranch === this.currentBranch; }, isSubmitDisabled() { return !this.isCommitFormFilledOut || (!this.hasUnsavedChanges && !this.isNewCiConfigFile); @@ -79,7 +79,7 @@ export default { onSubmit() { this.$emit('submit', { message: this.message, - targetBranch: this.targetBranch, + sourceBranch: this.sourceBranch, openMergeRequest: this.openMergeRequest, }); }, @@ -93,7 +93,7 @@ export default { }, i18n: { commitMessage: __('Commit message'), - targetBranch: __('Target Branch'), + sourceBranch: __('Branch'), startMergeRequest: __('Start a %{new_merge_request} with these changes'), newMergeRequest: __('new merge request'), commitChanges: __('Commit changes'), @@ -120,20 +120,20 @@ export default { /> diff --git a/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue b/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue index 83b074dd55c..58df98d0fb7 100644 --- a/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue +++ b/app/assets/javascripts/pipeline_editor/components/file_nav/pipeline_editor_file_nav.vue @@ -1,26 +1,74 @@