// Shared display formatting and small status helpers used by the view modules. // The date, duration and size formatters themselves live in their pure modules // (runs.js, artifacts.js); this module owns the DOM-facing status mapping. import { ChangeKind } from "./changes.js"; export function isExecuting(run) { return Boolean(run && run.executing); } export function changeKindTone(kind) { if (kind === ChangeKind.Added) return "ok"; if (kind === ChangeKind.Deleted) return "bad"; return "muted"; } export function describeError(error) { return error?.message || String(error); }