Skip to content

Commit 75fd6b0

Browse files
committed
stats banner: blue info variant when backfill is in progress
Existing yellow banner only fires for !ok (indexer stalled) or skippedCount>0. With the caughtUp short-circuit added today, an actively- backfilling indexer reports ok:true even when 100k+ blocks are still being processed -- so the page rendered no signal at all despite historical charts being incomplete. Adds a third banner condition: ok && pendingCount > 0 renders a blue info-style 'Backfill in progress' notice with the pending count and current rate. Stylistically distinct from the yellow alert banners so users can tell 'still working' apart from 'something's wrong.'
1 parent 0144aad commit 75fd6b0

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

frontend/src/app/components/_ordpool/ordpool-stats/ordpool-stats.component.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222
</div>
2323
}
2424
</div>
25+
} @else if (progress.pendingCount > 0) {
26+
<div class="ordpool-status-banner ordpool-status-banner-info mb-3" role="status">
27+
<div>
28+
<strong>Backfill in progress.</strong>
29+
{{ progress.pendingCount | number }} older
30+
{{ progress.pendingCount === 1 ? 'block is' : 'blocks are' }} still being indexed.
31+
@if (progress.blocksPerMinute !== null && progress.blocksPerMinute > 0) {
32+
About {{ progress.blocksPerMinute | number:'1.0-0' }} blocks per minute right now.
33+
}
34+
Live charts are accurate; long historical ranges will fill in as blocks complete.
35+
</div>
36+
</div>
2537
}
2638
}
2739

frontend/src/app/components/_ordpool/ordpool-stats/ordpool-stats.component.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
}
1515
}
1616

17+
.ordpool-status-banner-info {
18+
background-color: rgba(80, 160, 220, 0.12);
19+
border-color: rgba(80, 160, 220, 0.5);
20+
color: #a8d2f0;
21+
22+
strong {
23+
color: #6fb6e8;
24+
}
25+
}
26+
1727
.menu {
1828
flex-grow: 1;
1929
padding: 0 35px;

0 commit comments

Comments
 (0)