@@ -26,7 +26,6 @@ async function loadStatus(loading: Ref<boolean>) {
26
26
data .value = await withLoading (loading , () =>
27
27
getJson <StatusResponse >(STATUS_DATA_URL )
28
28
);
29
- console .log (data .value );
30
29
}
31
30
32
31
function formatDuration(seconds : number ): string {
@@ -108,7 +107,7 @@ interface TimelineEntry {
108
107
end_estimated: boolean ;
109
108
duration: number | null ;
110
109
errors: BenchmarkError [];
111
- warning: boolean ;
110
+ warning: string | null ;
112
111
current: boolean ;
113
112
}
114
113
@@ -154,7 +153,7 @@ const currentRun: Ref<CurrentRun | null> = computed(() => {
154
153
return null ;
155
154
});
156
155
const lastFinishedRun: Ref <FinishedRun | null > = computed (() => {
157
- const finished = data ? .value .finished_runs ;
156
+ const finished = data .value ? .finished_runs ;
158
157
if (finished .length === 0 ) return null ;
159
158
return finished [0 ];
160
159
});
@@ -204,7 +203,7 @@ const timeline: Ref<TimelineEntry[]> = computed(() => {
204
203
end_estimated: true ,
205
204
errors: [],
206
205
duration: null ,
207
- warning: false ,
206
+ warning: null ,
208
207
current: false ,
209
208
});
210
209
queued_before -= 1 ;
@@ -220,7 +219,7 @@ const timeline: Ref<TimelineEntry[]> = computed(() => {
220
219
end_estimated: true ,
221
220
errors: [],
222
221
duration: null ,
223
- warning: false ,
222
+ warning: null ,
224
223
current: true ,
225
224
});
226
225
}
@@ -230,6 +229,10 @@ const timeline: Ref<TimelineEntry[]> = computed(() => {
230
229
? run .artifact [" Tag" ]
231
230
: run .artifact [" Commit" ].type ;
232
231
232
+ let warning = null ;
233
+ if (kind !== " Try" && run .errors .length > 0 ) {
234
+ warning = " Master commit with errors" ;
235
+ }
233
236
timeline .push ({
234
237
pr: run .pr ,
235
238
kind ,
@@ -239,7 +242,7 @@ const timeline: Ref<TimelineEntry[]> = computed(() => {
239
242
end_estimated: false ,
240
243
errors: run .errors ,
241
244
duration: run .duration ,
242
- warning: kind !== " Try " && run . errors . length > 0 ,
245
+ warning ,
243
246
current: false ,
244
247
});
245
248
}
@@ -369,11 +372,17 @@ loadStatus(loading);
369
372
<td colspan =" 7" ><hr /></td >
370
373
</tr >
371
374
<tr :class =" {active: item.sha === currentRun?.commit?.sha}" >
372
- <td class =" centered" v-html =" pullRequestUrlAsHtml(item.pr)" ></td >
375
+ <td
376
+ class =" right-align"
377
+ v-html =" pullRequestUrlAsHtml(item.pr)"
378
+ ></td >
373
379
<td class =" centered" >
374
- {{ item.kind }}<template v-if =" item .warning " >❗</template >
380
+ {{ item.kind
381
+ }}<span v-if =" item.warning !== null" :title =" item.warning"
382
+ >❗</span
383
+ >
375
384
</td >
376
- <td class =" centered " v-html =" commitUrlAsHtml(item.sha)" ></td >
385
+ <td class =" right-align " v-html =" commitUrlAsHtml(item.sha)" ></td >
377
386
<td class =" centered" >{{ item.status }}</td >
378
387
<td >
379
388
{{ item.end_time.toLocaleString()
@@ -382,7 +391,7 @@ loadStatus(loading);
382
391
<td v-if =" item.duration !== null" >
383
392
{{ formatDuration(item.duration) }}
384
393
</td >
385
- <td v-else class =" centered" >? </td >
394
+ <td v-else class =" centered" >- </td >
386
395
<td v-if =" item.errors.length > 0" >
387
396
<button @click =" toggleExpandedErrors(item.sha)" >
388
397
{{ hasExpandedErrors(item.sha) ? "Hide" : "Show" }}
@@ -438,6 +447,9 @@ loadStatus(loading);
438
447
& .centered {
439
448
text-align : center ;
440
449
}
450
+ & .right-align {
451
+ text-align : right ;
452
+ }
441
453
}
442
454
tr .active {
443
455
font-weight : bold ;
0 commit comments