Commit f20a243e authored by Fatih Acet's avatar Fatih Acet

Merge branch 'update-preparing-stage-icon' into 'master'

Add pipeline preparing status icons

See merge request gitlab-org/gitlab!17923
parents aee38772 31d290b6
...@@ -31,7 +31,16 @@ ...@@ -31,7 +31,16 @@
} }
} }
.ci-status-icon-preparing, .ci-status-icon-preparing {
svg {
fill: $gray-500;
}
&.add-border {
@include borderless-status-icon($gray-500);
}
}
.ci-status-icon-running { .ci-status-icon-running {
svg { svg {
fill: $blue-400; fill: $blue-400;
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
} }
} }
&.ci-preparing {
@include status-color($gray-100, $gray-500, $gray-600);
}
&.ci-pending, &.ci-pending,
&.ci-failed-with-warnings, &.ci-failed-with-warnings,
&.ci-success-with-warnings { &.ci-success-with-warnings {
...@@ -44,7 +48,6 @@ ...@@ -44,7 +48,6 @@
} }
&.ci-info, &.ci-info,
&.ci-preparing,
&.ci-running { &.ci-running {
@include status-color($blue-100, $blue-500, $blue-600); @include status-color($blue-100, $blue-500, $blue-600);
} }
......
...@@ -77,6 +77,8 @@ module CiStatusHelper ...@@ -77,6 +77,8 @@ module CiStatusHelper
'status_failed' 'status_failed'
when 'pending' when 'pending'
'status_pending' 'status_pending'
when 'preparing'
'status_preparing'
when 'running' when 'running'
'status_running' 'status_running'
when 'play' when 'play'
......
---
title: Add pipeline preparing status icons
merge_request: 17923
author:
type: added
...@@ -15,7 +15,7 @@ module Gitlab ...@@ -15,7 +15,7 @@ module Gitlab
failed: '#e05d44', failed: '#e05d44',
running: '#dfb317', running: '#dfb317',
pending: '#dfb317', pending: '#dfb317',
preparing: '#dfb317', preparing: '#a7a7a7',
canceled: '#9f9f9f', canceled: '#9f9f9f',
skipped: '#9f9f9f', skipped: '#9f9f9f',
unknown: '#9f9f9f' unknown: '#9f9f9f'
......
...@@ -12,20 +12,12 @@ module Gitlab ...@@ -12,20 +12,12 @@ module Gitlab
s_('CiStatusLabel|preparing') s_('CiStatusLabel|preparing')
end end
##
# TODO: shared with 'created'
# until we get one for 'preparing'
#
def icon def icon
'status_created' 'status_preparing'
end end
##
# TODO: shared with 'created'
# until we get one for 'preparing'
#
def favicon def favicon
'favicon_status_created' 'favicon_status_preparing'
end end
end end
end end
......
...@@ -67,7 +67,7 @@ describe Gitlab::Badge::Pipeline::Template do ...@@ -67,7 +67,7 @@ describe Gitlab::Badge::Pipeline::Template do
end end
it 'has expected color' do it 'has expected color' do
expect(template.value_color).to eq '#dfb317' expect(template.value_color).to eq '#a7a7a7'
end end
end end
......
...@@ -16,11 +16,11 @@ describe Gitlab::Ci::Status::Preparing do ...@@ -16,11 +16,11 @@ describe Gitlab::Ci::Status::Preparing do
end end
describe '#icon' do describe '#icon' do
it { expect(subject.icon).to eq 'status_created' } it { expect(subject.icon).to eq 'status_preparing' }
end end
describe '#favicon' do describe '#favicon' do
it { expect(subject.favicon).to eq 'favicon_status_created' } it { expect(subject.favicon).to eq 'favicon_status_preparing' }
end end
describe '#group' do describe '#group' do
......
...@@ -57,6 +57,7 @@ RSpec.describe Gitlab::Favicon, :request_store do ...@@ -57,6 +57,7 @@ RSpec.describe Gitlab::Favicon, :request_store do
favicon_status_manual favicon_status_manual
favicon_status_not_found favicon_status_not_found
favicon_status_pending favicon_status_pending
favicon_status_preparing
favicon_status_running favicon_status_running
favicon_status_scheduled favicon_status_scheduled
favicon_status_skipped favicon_status_skipped
......
...@@ -990,10 +990,10 @@ ...@@ -990,10 +990,10 @@
dependencies: dependencies:
vue-eslint-parser "^6.0.4" vue-eslint-parser "^6.0.4"
"@gitlab/svgs@^1.75.0": "@gitlab/svgs@^1.76.0":
version "1.75.0" version "1.76.0"
resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.75.0.tgz#93f9e6bdef78dd84ac88d8273711dc1f25e4e5ac" resolved "https://registry.yarnpkg.com/@gitlab/svgs/-/svgs-1.76.0.tgz#2def3b5542d23259e81c889c75059a5d1f1e3f61"
integrity sha512-hOCfF73++yG+KTYxaQNMkbDUg0XKije41g6XR2dgj7466rzZmebG/nt6pUXonmlqy/NLGaRUPBKs0zuM7tcLhA== integrity sha512-wTCNSq3CxNrEzrJdEbf8GwHfhzEsUMJNEuGTBGGhe1qc0sY5z/U3s3HG7tdAOrB5pec9JarRXzc7g5ax9bsopQ==
"@gitlab/ui@5.27.0": "@gitlab/ui@5.27.0":
version "5.27.0" version "5.27.0"
......
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