feat(queue): link rebuild queue entries to build log rows for live streaming

This commit is contained in:
damocles 2026-06-04 17:33:59 +02:00 committed by mara
commit 7118c5efdd
6 changed files with 101 additions and 9 deletions

View file

@ -2266,6 +2266,20 @@ window.marked = marked;
if (entry.step) {
li.append(el('div', { class: 'rqe-step' }, '↳ ' + entry.step));
}
// Live-log link: when a build_log_id is present the update/create op
// opened a build_logs row; the SSE stream endpoint lets the operator
// follow output in real time without polling.
if (entry.build_log_id != null) {
li.append(
' ',
el('a', {
class: 'rqe-log-link',
href: '/api/build-logs/id/' + entry.build_log_id,
target: '_blank',
title: 'view build log #' + entry.build_log_id,
}, 'logs →'),
);
}
// Error block, when failed.
if (entry.error) {
li.append(el('pre', { class: 'rqe-error', title: entry.error }, truncate(entry.error, 200)));