From 2b5079efdb7c4e7d5a607d95747ddeb0b8af9678 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 15 May 2023 21:07:42 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../components/editor/ci_editor_header.vue | 8 +- app/assets/javascripts/ci/pipeline_editor/index.js | 2 + .../design_management/components/list/item.vue | 10 ++- .../javascripts/design_management/pages/index.vue | 12 ++- .../super_sidebar/components/menu_section.vue | 2 +- .../super_sidebar/components/pinned_section.vue | 7 +- .../super_sidebar/components/sidebar_menu.vue | 49 ++++++++---- .../work_items/components/widget_wrapper.vue | 2 +- .../page_bundles/design_management.scss | 6 -- app/helpers/projects/ml/experiments_helper.rb | 21 ------ app/models/organization.rb | 24 +++++- app/presenters/ml/candidate_details_presenter.rb | 88 ++++++++++++++++++++++ app/views/projects/ml/candidates/show.html.haml | 3 +- 13 files changed, 179 insertions(+), 55 deletions(-) create mode 100644 app/presenters/ml/candidate_details_presenter.rb (limited to 'app') 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 66957365261..eabf4749e9c 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 @@ -17,6 +17,7 @@ export default { GlButton, }, mixins: [glFeatureFlagMixin(), Tracking.mixin()], + inject: ['aiChatAvailable'], props: { showDrawer: { type: Boolean, @@ -31,6 +32,11 @@ export default { required: true, }, }, + computed: { + isAiConfigChatAvailable() { + return this.glFeatures.aiCiConfigGenerator && this.aiChatAvailable; + }, + }, methods: { toggleDrawer() { if (this.showDrawer) { @@ -96,7 +102,7 @@ export default { {{ $options.i18n.jobAssistant }} { usesExternalConfig, validateTabIllustrationPath, ymlHelpPagePath, + aiChatAvailable, } = el.dataset; const configurationPaths = Object.fromEntries( @@ -115,6 +116,7 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => { el, apolloProvider, provide: { + aiChatAvailable: parseBoolean(aiChatAvailable), ciConfigPath, ciExamplesHelpPagePath, ciHelpPagePath, diff --git a/app/assets/javascripts/design_management/components/list/item.vue b/app/assets/javascripts/design_management/components/list/item.vue index f52486f0629..9c1bcf5bf90 100644 --- a/app/assets/javascripts/design_management/components/list/item.vue +++ b/app/assets/javascripts/design_management/components/list/item.vue @@ -133,7 +133,11 @@ export default {
-
+
-