ux(queue): show error detail directly in status cell

Status "Fehlgeschlagen" alone forced the user to dig into
account-rotation.log to understand why a job failed. For error /
retrying / skipped statuses, append the (shortened, whitespace-
collapsed) error message — same approach already in place for v2.
Caps at 100 chars so the cell stays readable.
This commit is contained in:
Administrator 2026-04-22 18:03:17 +02:00
parent 141bfd3658
commit 8680ae6467

View File

@ -1163,16 +1163,19 @@ function getStatusOrder(status) {
}
function getStatusText(job) {
const shortErr = job.error ? String(job.error).replace(/\s+/g, ' ').slice(0, 100) : '';
switch (job.status) {
case 'preview': return 'Bereit';
case 'queued': return 'Wartet';
case 'getting-server': return 'Server...';
case 'uploading': return 'Upload';
case 'retrying': return `Retry ${job.attempt}/${job.maxAttempts}`;
case 'retrying': return shortErr
? `Retry ${job.attempt}/${job.maxAttempts}: ${shortErr}`
: `Retry ${job.attempt}/${job.maxAttempts}`;
case 'done': return 'Fertig';
case 'aborted': return 'Abgebrochen';
case 'error': return 'Fehlgeschlagen';
case 'skipped': return 'Übersprungen';
case 'error': return shortErr ? `Fehlgeschlagen: ${shortErr}` : 'Fehlgeschlagen';
case 'skipped': return shortErr ? `Übersprungen: ${shortErr}` : 'Übersprungen';
default: return job.status;
}
}