Skip to content

Commit bb39488

Browse files
authored
Merge pull request #360 from daniel-beck/color-table
Mute successful rows, highlight failed and unstable rows in the Pipeline Steps table
2 parents 3abf08f + c53c62e commit bb39488

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

  • src/main/resources/org/jenkinsci/plugins/workflow/support/visualization/table/FlowGraphTable
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
tr.workflow-support-row-status-blue.workflow-support-row-executed-false td {
2+
opacity: 0.3;
3+
}
4+
tr.workflow-support-row-status-blue td {
5+
opacity: 0.6;
6+
}
7+
8+
tr.workflow-support-row-status-yellow td {
9+
font-weight: bold !important;
10+
color: var(--alert-warning-text-color) !important;
11+
background-color: var(--alert-warning-bg-color) !important;
12+
}
13+
14+
tr.workflow-support-row-status-red td {
15+
font-weight: bold !important;
16+
color: var(--alert-danger-text-color) !important;
17+
background-color: var(--alert-danger-bg-color) !important;
18+
}

src/main/resources/org/jenkinsci/plugins/workflow/support/visualization/table/FlowGraphTable/ajax.jelly

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
-->
2929
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
3030
<l:ajax>
31+
<j:if test="${!ajax}">
32+
<st:adjunct includes="org.jenkinsci.plugins.workflow.support.visualization.table.FlowGraphTable.adjunct"/>
33+
</j:if>
3134
<div id="nodeGraph">
3235
<table class="jenkins-table">
3336
<j:set var="columns" value="${it.columns}"/>
@@ -42,7 +45,7 @@
4245

4346
<j:forEach var="row" items="${it.rows}">
4447
<j:set var="node" value="${row.node}"/>
45-
<tr style="opacity: ${row.isExecuted()?'1.0':'0.3'}"> <!-- Muted if not executed -->
48+
<tr class="workflow-support-row-status-${node.iconColor} workflow-support-row-executed-${row.executed}"> <!-- Muted if not executed -->
4649
<!-- tooltip is for now debugging only -->
4750
<j:set var="exec_state" value=""/>
4851
<j:if test="${!row.executed}"><j:set var="exec_state" value=" (${%not executed})"/></j:if>

0 commit comments

Comments
 (0)