Show incremental caption search updates

This commit is contained in:
Sleeps
2026-10-07 14:28:26 +01:00
parent fe129f287f
commit d7e05ab898
+14 -4
View File
@@ -408,7 +408,8 @@
$('captionDetail').textContent =
(s.model || '') +
(s.route ? ', ' + s.route : '') +
', ' + (s.failed || 0) + ' failed';
', ' + (s.failed || 0) + ' failed' +
', search updated: ' + (s.meili_documents_updated || 0);
}
} else if (s.stage === 'failed') {
$('captionNow').disabled = false;
@@ -427,7 +428,12 @@
$('captionStatus').textContent =
'Complete: ' + (s.frames_completed || 0) + ' saved, ' + (s.failed || 0) + ' failed';
$('captionDetail').textContent =
(s.retained || 0) + ' existing captions retained';
(s.retained || 0) + ' existing captions retained, ' +
(s.meili_documents_updated || 0) + ' search documents updated' +
((s.meili_sync_pending || 0)
? ', ' + s.meili_sync_pending + ' search updates still pending'
: '') +
(s.meili_sync_error ? ' · last search sync error: ' + s.meili_sync_error : '');
} else if (s.stage === 'stopped') {
$('captionNow').disabled = false;
$('captionNow').textContent = 'Start / resume captioning';
@@ -436,8 +442,12 @@
$('captionStatus').className = 'status muted';
$('captionStatus').textContent = 'Stopped';
$('captionDetail').textContent =
(s.frames_completed || 0) +
' captions saved. Start / resume continues the remaining frames; search updates after a later completed run.';
(s.frames_completed || 0) + ' captions saved, ' +
(s.meili_documents_updated || 0) + ' search documents updated' +
((s.meili_sync_pending || 0)
? ', ' + s.meili_sync_pending + ' search updates still pending'
: '') +
'. Start / resume continues the remaining frames.';
} else {
$('captionNow').disabled = false;
$('captionNow').textContent = 'Start / resume captioning';