зеркало из https://github.com/mozilla/treeherder.git
Bug 1192917 - Handle 'unknown' steps and jobs with improved UI
This commit is contained in:
Родитель
5db78a106f
Коммит
e644334fa4
|
@ -63,6 +63,20 @@ body {
|
|||
top: 285px;
|
||||
}
|
||||
|
||||
.unknown-step-warning {
|
||||
margin-bottom: 2px;
|
||||
margin-right: 6px;
|
||||
padding: 0 4px;
|
||||
background-color: #fcf8e3;
|
||||
border: 1px solid #fbd890;
|
||||
border-radius: 2px;
|
||||
color: #8a6d3b;
|
||||
}
|
||||
|
||||
.step-title-unknown {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.lv-line-no {
|
||||
width: 3em;
|
||||
}
|
||||
|
|
|
@ -1255,7 +1255,14 @@ ul.failure-summary-list li .btn-xs {
|
|||
border-color: rgba(70, 70, 70, 0.25);
|
||||
}
|
||||
|
||||
.result-status-shading-coalesced {background-color: white;}
|
||||
.result-status-shading-unknown {
|
||||
background-color: rgb(252, 248, 227);
|
||||
border-color: rgb(251, 216, 144);
|
||||
}
|
||||
|
||||
.result-status-shading-coalesced {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.click-able-icon, .nav-tabs li {
|
||||
cursor: pointer;
|
||||
|
@ -1289,12 +1296,14 @@ ul.failure-summary-list li .btn-xs {
|
|||
.job-btn.btn-ltgray,
|
||||
.job-btn.btn-green,
|
||||
.job-btn.btn-dkblue,
|
||||
.job-btn.btn-ltblue,
|
||||
.job-btn.btn-yellow,
|
||||
.job-btn.btn-pink,
|
||||
.job-btn.btn-dkgray-classified,
|
||||
.job-btn.btn-ltgray-classified,
|
||||
.job-btn.btn-green-classified,
|
||||
.job-btn.btn-dkblue-classified,
|
||||
.job-btn.btn-ltblue-classified,
|
||||
.job-btn.btn-yellow-classified,
|
||||
.job-btn.btn-pink-classified,
|
||||
.job-btn.btn-red-classified,
|
||||
|
@ -1304,6 +1313,7 @@ ul.failure-summary-list li .btn-xs {
|
|||
.group-btn.btn-ltgray-count,
|
||||
.group-btn.btn-green-count,
|
||||
.group-btn.btn-dkblue-count,
|
||||
.group-btn.btn-ltblue-count,
|
||||
.group-btn.btn-yellow-count,
|
||||
.group-btn.btn-pink-count {
|
||||
margin: 0 -5px 0 -1px;
|
||||
|
@ -1311,6 +1321,7 @@ ul.failure-summary-list li .btn-xs {
|
|||
|
||||
.job-btn.btn-red,
|
||||
.job-btn.btn-orange,
|
||||
.job-btn.btn-yellow,
|
||||
.job-btn.btn-purple {
|
||||
margin: 0 -3px 1px 0;
|
||||
}
|
||||
|
@ -1325,6 +1336,8 @@ ul.failure-summary-list li .btn-xs {
|
|||
.btn-green-classified-count::after,
|
||||
.btn-dkblue-classified::after,
|
||||
.btn-dkblue-classified-count::after,
|
||||
.btn-ltblue-classified::after,
|
||||
.btn-ltblue-classified-count::after,
|
||||
.btn-dkgray-classified::after,
|
||||
.btn-dkgray-classified-count::after,
|
||||
.btn-ltgray-classified::after,
|
||||
|
@ -1694,36 +1707,37 @@ fieldset[disabled] .btn-purple-classified.active {
|
|||
color: white;
|
||||
}
|
||||
|
||||
.btn-yellow,
|
||||
.btn-yellow-count,
|
||||
.btn-yellow-classified,
|
||||
.btn-yellow-classified-count,
|
||||
.btn-yellow-count:hover,
|
||||
.btn-yellow-classified-count:hover {
|
||||
color: #cdce1d;
|
||||
.btn-ltblue,
|
||||
.btn-ltblue-count,
|
||||
.btn-ltblue-classified,
|
||||
.btn-ltblue-classified-count,
|
||||
.btn-ltblue-count:hover,
|
||||
.btn-ltblue-classified-count:hover {
|
||||
color: #81b8ed;
|
||||
font-weight: bold;
|
||||
}
|
||||
.btn-yellow:hover,
|
||||
.btn-yellow-classified:hover,
|
||||
.btn-yellow:focus,
|
||||
.btn-yellow:active,
|
||||
.btn-yellow.active {
|
||||
border-color: #cdce1d;
|
||||
color: #cdce1d;
|
||||
.btn-ltblue:hover,
|
||||
.btn-ltblue-classified:hover,
|
||||
.btn-ltblue:focus,
|
||||
.btn-ltblue:active,
|
||||
.btn-ltblue.active {
|
||||
border-color: #488ae9;
|
||||
background-color: #488ae9;
|
||||
color: white;
|
||||
}
|
||||
.btn-yellow.disabled:hover,
|
||||
.btn-yellow.disabled:focus,
|
||||
.btn-yellow.disabled:active,
|
||||
.btn-yellow.disabled.active,
|
||||
.btn-yellow[disabled]:hover,
|
||||
.btn-yellow[disabled]:focus,
|
||||
.btn-yellow[disabled]:active,
|
||||
.btn-yellow[disabled].active,
|
||||
fieldset[disabled] .btn-yellow:hover,
|
||||
fieldset[disabled] .btn-yellow:focus,
|
||||
fieldset[disabled] .btn-yellow:active,
|
||||
fieldset[disabled] .btn-yellow.active {
|
||||
border-color: #cdce1d;
|
||||
.btn-ltblue.disabled:hover,
|
||||
.btn-ltblue.disabled:focus,
|
||||
.btn-ltblue.disabled:active,
|
||||
.btn-ltblue.disabled.active,
|
||||
.btn-ltblue[disabled]:hover,
|
||||
.btn-ltblue[disabled]:focus,
|
||||
.btn-ltblue[disabled]:active,
|
||||
.btn-ltblue[disabled].active,
|
||||
fieldset[disabled] .btn-ltblue:hover,
|
||||
fieldset[disabled] .btn-ltblue:focus,
|
||||
fieldset[disabled] .btn-ltblue:active,
|
||||
fieldset[disabled] .btn-ltblue.active {
|
||||
border-color: #81b8ed;
|
||||
}
|
||||
|
||||
.btn-ltgray,
|
||||
|
@ -1847,41 +1861,42 @@ fieldset[disabled] .btn-dkgray.active {
|
|||
color: white;
|
||||
}
|
||||
|
||||
.btn-black
|
||||
.btn-black-count,
|
||||
.btn-black-classified,
|
||||
.btn-black-classified-count {
|
||||
background-color: #4a4a4a;
|
||||
border-color: #000000;
|
||||
color: white;
|
||||
.btn-yellow,
|
||||
.btn-yellow-count,
|
||||
.btn-yellow-classified,
|
||||
.btn-yellow-classified-count {
|
||||
background-color: #fcf8e3;
|
||||
border-color: #fbd890;
|
||||
color: #8a6d3b;
|
||||
font-weight: bold;
|
||||
}
|
||||
.btn-black-count:hover,
|
||||
.btn-black-classified-count:hover {
|
||||
color: #000000;
|
||||
.btn-yellow-count:hover,
|
||||
.btn-yellow-classified-count:hover {
|
||||
color: #8a6d3b;
|
||||
}
|
||||
.btn-black:hover,
|
||||
.btn-black-classified:hover,
|
||||
.btn-black:focus,
|
||||
.btn-black:active,
|
||||
.btn-black.active {
|
||||
background-color: #000000;
|
||||
border-color: #000000;
|
||||
color: white;
|
||||
.btn-yellow:hover,
|
||||
.btn-yellow-classified:hover,
|
||||
.btn-yellow:focus,
|
||||
.btn-yellow:active,
|
||||
.btn-yellow.active {
|
||||
background-color: #8a6d3b;
|
||||
border-color: #fbd890;
|
||||
color: #fcf8e3;
|
||||
}
|
||||
.btn-black.disabled:hover,
|
||||
.btn-black.disabled:focus,
|
||||
.btn-black.disabled:active,
|
||||
.btn-black.disabled.active,
|
||||
.btn-black[disabled]:hover,
|
||||
.btn-black[disabled]:focus,
|
||||
.btn-black[disabled]:active,
|
||||
.btn-black[disabled].active,
|
||||
fieldset[disabled] .btn-black:hover,
|
||||
fieldset[disabled] .btn-black:focus,
|
||||
fieldset[disabled] .btn-black:active,
|
||||
fieldset[disabled] .btn-black.active {
|
||||
background-color: #000000;
|
||||
border-color: #000000;
|
||||
.btn-yellow.disabled:hover,
|
||||
.btn-yellow.disabled:focus,
|
||||
.btn-yellow.disabled:active,
|
||||
.btn-yellow.disabled.active,
|
||||
.btn-yellow[disabled]:hover,
|
||||
.btn-yellow[disabled]:focus,
|
||||
.btn-yellow[disabled]:active,
|
||||
.btn-yellow[disabled].active,
|
||||
fieldset[disabled] .btn-yellow:hover,
|
||||
fieldset[disabled] .btn-yellow:focus,
|
||||
fieldset[disabled] .btn-yellow:active,
|
||||
fieldset[disabled] .btn-yellow.active {
|
||||
background-color: #fcf8e3;
|
||||
border-color: #fbd890;
|
||||
}
|
||||
|
||||
.btn-pink,
|
||||
|
@ -2071,8 +2086,8 @@ fieldset[disabled] .btn-repo.active {
|
|||
border-color: #a1020e;
|
||||
}
|
||||
|
||||
.help-btn-black {
|
||||
border-color: #000000;
|
||||
.help-btn-yellow {
|
||||
border-color: #fbd890;
|
||||
}
|
||||
|
||||
.help-btn-bg {
|
||||
|
|
12
ui/help.html
12
ui/help.html
|
@ -87,7 +87,7 @@
|
|||
<th class="retry">
|
||||
<button class="btn btn-dkblue help-btn help-btn-bg">Th</button>
|
||||
</th>
|
||||
<td>Blue, build restarted</td>
|
||||
<td>Dark blue, build restarted</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="usercancel">
|
||||
|
@ -97,9 +97,15 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th class="unknown">
|
||||
<button class="btn btn-black help-btn help-btn-black">Th</button>
|
||||
<button class="btn btn-yellow help-btn help-btn-yellow">Th</button>
|
||||
</th>
|
||||
<td>Black, unknown error</td>
|
||||
<td>Yellow, unknown</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="coalesced">
|
||||
<button class="btn btn-ltblue help-btn help-btn-bg">Th</button>
|
||||
</th>
|
||||
<td>Light blue, coalesced</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -92,7 +92,7 @@ treeherder.provider('thResultStatusInfo', function() {
|
|||
case "unknown":
|
||||
resultStatusInfo = {
|
||||
severity: 4,
|
||||
btnClass: "btn-black",
|
||||
btnClass: "btn-yellow",
|
||||
countText: "unknown"
|
||||
};
|
||||
break;
|
||||
|
@ -134,7 +134,7 @@ treeherder.provider('thResultStatusInfo', function() {
|
|||
case "coalesced":
|
||||
resultStatusInfo = {
|
||||
severity: 101,
|
||||
btnClass: "btn-yellow",
|
||||
btnClass: "btn-ltblue",
|
||||
countText: "coalesced"
|
||||
};
|
||||
break;
|
||||
|
|
|
@ -5,13 +5,18 @@
|
|||
ng-show="showSuccessful === true || step.result !== 'success'"
|
||||
class="btn btn-block lv-step clearfix {{::getShadingClass(step.result)}}"
|
||||
order="{{step.order}}">
|
||||
<span class="pull-left clearfix text-left">
|
||||
{{::step.order+1}}. {{::step.name}}
|
||||
</span>
|
||||
<span ng-if="(step.result === 'unknown')"
|
||||
class="pull-left clearfix text-left unknown-step-warning"
|
||||
title="Log artifact result property is 'unknown'">
|
||||
unknown step result (!)</span>
|
||||
<span ng-class="{'step-title-unknown': step.result === 'unknown'}"
|
||||
class="pull-left clearfix text-left">
|
||||
{{::step.order+1}}. {{::step.name}}</span>
|
||||
|
||||
<span ng-init="time=(step.duration !== null ? formatTime(step.duration) : 'Duration unknown')"
|
||||
ng-mouseover="time=displayTime(step.started, step.finished)"
|
||||
ng-mouseleave="time=(step.duration !== null ? formatTime(step.duration) : 'Duration unknown')"
|
||||
ng-class="{'step-title-unknown': step.result === 'unknown'}"
|
||||
class="pull-right clearfix">
|
||||
{{time}}
|
||||
</span>
|
||||
|
|
Загрузка…
Ссылка в новой задаче