1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-22 11:15:41 +02:00

fix: correct in_progress run status badge color and label

This commit is contained in:
TheGeneralist 2026-07-04 15:15:46 +02:00
parent ed1f883ff1
commit d83faab8e6
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
2 changed files with 4 additions and 3 deletions

View file

@ -13,9 +13,10 @@ function fmtDate(iso) {
function StatusBadge({ status }) {
const cls = status === 'completed' ? 'run-status--completed'
: status === 'failed' ? 'run-status--failed'
: status === 'running' ? 'run-status--running'
: status === 'in_progress' ? 'run-status--in-progress'
: '';
return <span className={`run-status ${cls}`}>{status || '—'}</span>;
const label = status ? status.replace(/_/g, ' ') : '—';
return <span className={`run-status ${cls}`}>{label}</span>;
}
export default function RunsView({ runs }) {