@@ -10,6 +10,7 @@ import {
1010 BenchmarkRequest ,
1111 CollectorConfig ,
1212 isJobComplete ,
13+ isRequestInProgress ,
1314 StatusResponse ,
1415} from " ./data" ;
1516import Collector from " ./collector.vue" ;
@@ -104,6 +105,23 @@ function getErrorsLength(errors: Dict<string>) {
104105 return ` ${errorsLen } ${errorsLen > 1 ? " s" : " " } ` ;
105106}
106107
108+ function ExpectedCurrentRequestCompletion() {
109+ const req = data .value .timeline .find (isRequestInProgress );
110+ if (! req ) return " " ;
111+ if (! req .endEstimated ) return " " ;
112+ if (! req .completedAt ) return " " ;
113+ const formattedDate = formatISODate (req .completedAt );
114+ return (
115+ <span >
116+ Current Benchmark for{ " " }
117+ <strong >
118+ <CommitSha tag = { req .tag } ></CommitSha >
119+ </strong >{ " " }
120+ expected to end at { formattedDate } { " " }
121+ </span >
122+ );
123+ }
124+
107125function PullRequestLink({request }: {request: BenchmarkRequest }) {
108126 if (request .requestType === " Release" ) {
109127 return " " ;
@@ -165,6 +183,7 @@ loadStatusData(loading);
165183 <div class =" timeline-wrapper" >
166184 <h1 >Timeline</h1 >
167185 <strong >Times are local.</strong >
186+ <ExpectedCurrentRequestCompletion />
168187 <div style =" margin-bottom : 10px " >
169188 Queue length: {{ data.queueLength }}
170189 </div >
@@ -189,7 +208,7 @@ loadStatusData(loading);
189208 <tr :class =" getRequestRowClassName(req)" >
190209 <td ><PullRequestLink :request =" req" /></td >
191210 <td >{{ req.requestType }}</td >
192- <td ><CommitSha :tag =" req.tag" ></CommitSha ></td >
211+ <td ><CommitSha :truncate = " true " : tag =" req.tag" ></CommitSha ></td >
193212 <td >
194213 {{ formatStatus(req)
195214 }}{{
0 commit comments