Skip to content

Commit 15f4769

Browse files
committed
Refresh the status icons
The status icons are now the same as in pipeline graph view plugin. Running is now a dedicated icon so it makes no difference if the last build was ok, unstable, failed or aborted or if the project is disabled.
1 parent 1366fa9 commit 15f4769

File tree

16 files changed

+145
-96
lines changed

16 files changed

+145
-96
lines changed

core/src/main/resources/jenkins/model/Jenkins/_legend.jelly

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,13 @@ THE SOFTWARE.
3535
${%blue}
3636
</dd>
3737

38-
<dt>
39-
<l:icon src="symbol-status-blue-anime" />
40-
</dt>
41-
<dd>
42-
${%blue_anime}
43-
</dd>
44-
4538
<dt>
4639
<l:icon src="symbol-status-yellow" />
4740
</dt>
4841
<dd>
4942
${%yellow}
5043
</dd>
5144

52-
<dt>
53-
<l:icon src="symbol-status-yellow-anime" />
54-
</dt>
55-
<dd>
56-
${%yellow_anime}
57-
</dd>
58-
5945
<dt>
6046
<l:icon src="symbol-status-red" />
6147
</dt>
@@ -64,10 +50,10 @@ THE SOFTWARE.
6450
</dd>
6551

6652
<dt>
67-
<l:icon src="symbol-status-red-anime" />
53+
<l:icon src="symbol-status-disabled-anime" />
6854
</dt>
6955
<dd>
70-
${%red_anime}
56+
${%running}
7157
</dd>
7258

7359
<dt>
@@ -77,40 +63,19 @@ THE SOFTWARE.
7763
${%lightgrey}
7864
</dd>
7965

80-
<dt>
81-
<l:icon src="symbol-status-nobuilt-anime" />
82-
</dt>
83-
<dd>
84-
${%lightgrey_anime}
85-
</dd>
86-
8766
<dt>
8867
<l:icon src="symbol-status-aborted" />
8968
</dt>
9069
<dd>
9170
${%darkgrey}
9271
</dd>
9372

94-
<dt>
95-
<l:icon src="symbol-status-aborted-anime" />
96-
</dt>
97-
<dd>
98-
${%darkgrey_anime}
99-
</dd>
100-
10173
<dt>
10274
<l:icon src="symbol-status-disabled" />
10375
</dt>
10476
<dd>
10577
${%grey}
10678
</dd>
107-
108-
<dt>
109-
<l:icon src="symbol-status-disabled-anime" />
110-
</dt>
111-
<dd>
112-
${%grey_anime}
113-
</dd>
11479
</dl>
11580

11681
<h2 class="jenkins-dialog__subtitle">${%Project Health}</h2>

core/src/main/resources/jenkins/model/Jenkins/_legend.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ health-61to80=Project health is over 60% and up to 80%
3838
health-41to60=Project health is over 40% and up to 60%
3939
health-21to40=Project health is over 20% and up to 40%
4040
health-00to20=Project health is 20% or less
41+
running=A build is in progress.

src/main/scss/components/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@use "side-panel-widgets";
2727
@use "skip-link";
2828
@use "spinner";
29+
@use "status-icons";
2930
@use "table";
3031
@use "tabs";
3132
@use "tooltips";
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.status-icon {
2+
--status-background-opacity: 0.125;
3+
--status-border-opacity: 0.25;
4+
5+
* {
6+
transition: var(--elastic-transition);
7+
transform-origin: center;
8+
}
9+
10+
&-success {
11+
--color: var(--success-color);
12+
}
13+
14+
&-failure {
15+
--color: var(--error-color);
16+
}
17+
18+
&-unstable {
19+
--color: var(--warning-color);
20+
}
21+
22+
&-nobuilt,
23+
&-aborted,
24+
&-disabled{
25+
--color: var(--skipped-color);
26+
}
27+
28+
&-anime,
29+
{
30+
--color: var(--accent-color);
31+
}
32+
33+
&-running {
34+
animation: pulseScale 2s both ease-in-out infinite;
35+
opacity: .25;
36+
37+
@keyframes pulseScale {
38+
50% {
39+
scale: 2.25;
40+
opacity: 1;
41+
}
42+
}
43+
}
44+
}
Lines changed: 8 additions & 5 deletions
Loading
Lines changed: 7 additions & 3 deletions
Loading
Lines changed: 8 additions & 5 deletions
Loading
Lines changed: 8 additions & 4 deletions
Loading
Lines changed: 7 additions & 5 deletions
Loading
Lines changed: 8 additions & 4 deletions
Loading

0 commit comments

Comments
 (0)