From fcc4b03ccbb4cbab226c4f4c0af139fdaae5ce6b Mon Sep 17 00:00:00 2001 From: Sascha Eggenberger Date: Wed, 6 Sep 2023 13:49:22 +0200 Subject: [PATCH] Updates CiIcon to CiBadge Updates the appearance of the pipeline icon. Changelog: changed --- .../components/header/pipeline_status.vue | 11 +++-- .../components/commit_box_pipeline_status.vue | 17 ++++--- .../repository/components/last_commit.vue | 1 - .../vue_shared/components/ci_badge_link.vue | 6 +-- app/helpers/ci/status_helper.rb | 32 ++++++++++--- app/views/ci/status/_icon.html.haml | 14 ++---- app/views/projects/branches/_branch.html.haml | 2 +- .../merge_requests/_merge_request.html.haml | 2 +- spec/features/projects/branches_spec.rb | 2 +- .../components/header/pipeline_status_spec.js | 4 +- .../commit_box_pipeline_status_spec.js | 16 ++++--- .../__snapshots__/last_commit_spec.js.snap | 2 +- .../components/ci_badge_link_spec.js | 4 +- spec/helpers/ci/status_helper_spec.rb | 46 +++++++++++++++++-- .../projects/tags/index.html.haml_spec.rb | 8 ++-- 15 files changed, 113 insertions(+), 54 deletions(-) diff --git a/app/assets/javascripts/ci/pipeline_editor/components/header/pipeline_status.vue b/app/assets/javascripts/ci/pipeline_editor/components/header/pipeline_status.vue index 58b5c0004e054b..e33ce66ca66b42 100644 --- a/app/assets/javascripts/ci/pipeline_editor/components/header/pipeline_status.vue +++ b/app/assets/javascripts/ci/pipeline_editor/components/header/pipeline_status.vue @@ -7,7 +7,7 @@ import getPipelineQuery from '~/ci/pipeline_editor/graphql/queries/pipeline.quer import getPipelineEtag from '~/ci/pipeline_editor/graphql/queries/client/pipeline_etag.query.graphql'; import { getQueryHeaders, toggleQueryPollingByVisibility } from '~/ci/pipeline_details/graph/utils'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; -import CiIcon from '~/vue_shared/components/ci_icon.vue'; +import CiBadgeLink from '~/vue_shared/components/ci_badge_link.vue'; import PipelineMiniGraph from '~/ci/pipeline_mini_graph/pipeline_mini_graph.vue'; import PipelineEditorMiniGraph from './pipeline_editor_mini_graph.vue'; @@ -25,7 +25,7 @@ export const i18n = { export default { i18n, components: { - CiIcon, + CiBadgeLink, GlButton, GlIcon, GlLink, @@ -156,7 +156,12 @@ export default {