Function
processStatusClassName
(status: ProcessStepStatus)
Source from the content-addressed store, hash-verified
| 3707 | } |
| 3708 | |
| 3709 | function processStatusClassName(status: ProcessStepStatus) { |
| 3710 | if (status === "failed") return "border-red-200 bg-red-50 text-red-700"; |
| 3711 | if (status === "running") return "border-blue-200 bg-blue-50 text-blue-700"; |
| 3712 | return ""; |
| 3713 | } |
| 3714 | |
| 3715 | function makeStepId(prefix: string) { |
| 3716 | const randomId = globalThis.crypto?.randomUUID?.() ?? `${Date.now()}-${Math.random().toString(16).slice(2)}`; |
Tested by
no test coverage detected