File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
src/views/codeAnalytics/InsightListView/ItemRender Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,26 @@ export class SpanItemHtmlRendering{
2727 }
2828
2929
30+ private getStillCalculatingHtml ( ) :string {
31+ return /*html*/ `
32+ <div class="list-item span-durations-insight">
33+ <div class="list-item-content-area">
34+ <div class="list-item-header"><strong>Duration</strong></div>
35+ <div class="list-item-content-description">Waiting for more data.</div>
36+ </div>
37+
38+ <div class="list-item-right-area">
39+ <img class="insight-main-image" style="align-self:center;" src="${ this . _viewUris . image ( "waiting-data.png" ) } " width="32" height="32">
40+ </div>
41+ </div>` ;
42+ }
3043 public spanDurationItemHtml ( insight : SpanDurationsInsight ) : string {
3144
3245 const percentileHtmls = [ ] ;
3346 const changeHtml = [ ] ;
34-
47+ if ( insight . percentiles . length === 0 ) {
48+ return this . getStillCalculatingHtml ( ) ;
49+ }
3550 insight . percentiles . sort ( ( a , b ) => a . percentile - b . percentile ) ;
3651 for ( const item of insight . percentiles ) {
3752 percentileHtmls . push ( /*html*/ `<span>P${ item . percentile * 100 } </span>` ) ;
You can’t perform that action at this time.
0 commit comments