Skip to content

Commit 8e1c585

Browse files
Fixed minor UI bugs
1 parent ef1090c commit 8e1c585

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

internal/webui/static/index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,10 +1194,8 @@ <h3 style="display: flex; align-items: center; gap: 8px; margin-bottom: 16px;">
11941194
if (endIndex < 0) return;
11951195
const start = Math.max(0, endIndex - WINDOW_SIZE + 1);
11961196

1197-
const getSlice = (arr, padVal = null) => {
1198-
let res = arr.slice(start, endIndex + 1);
1199-
while (res.length < WINDOW_SIZE) res.push(padVal);
1200-
return res;
1197+
const getSlice = (arr) => {
1198+
return arr.slice(start, endIndex + 1);
12011199
};
12021200

12031201
const labelsSlice = getSlice(histLabels, '');
@@ -1488,7 +1486,12 @@ <h3 style="display: flex; align-items: center; gap: 8px; margin-bottom: 16px;">
14881486
badge.style.color = "white";
14891487
document.getElementById('activeActions').style.display = 'none';
14901488
document.getElementById('finishActions').style.display = 'block';
1491-
document.getElementById('iterationBadge').style.display = 'none';
1489+
1490+
const iterBadge = document.getElementById('iterationBadge');
1491+
iterBadge.textContent = `${stats.totalIterations || 1} / ${stats.totalIterations || 1} COMPLETED`;
1492+
iterBadge.style.background = 'var(--p-forest)';
1493+
iterBadge.style.display = 'block';
1494+
14921495
if (elapsed >= targetSeconds && targetSeconds > 0) {
14931496
document.getElementById('progressBar').style.width = "100%";
14941497
document.getElementById('timerDisplay').textContent = `${formatTime(targetSeconds)} / ${formatTime(targetSeconds)}`;
@@ -1617,7 +1620,7 @@ <h3 style="display: flex; align-items: center; gap: 8px; margin-bottom: 16px;">
16171620
lastKnownWaiting = stats.isWaiting;
16181621
globalMarkers.push(currentMarker);
16191622

1620-
histLabels.push(timeStr);
1623+
histLabels.push(formatTime(elapsed));
16211624

16221625
histRates.total.push(rTotal);
16231626
histRates.find.push(rFind); histRates.insert.push(rInsert); histRates.update.push(rUpdate); histRates.delete.push(rDelete); histRates.aggregate.push(rAggregate);

0 commit comments

Comments
 (0)