MCPcopy
hub / github.com/Zleap-AI/SAG / processStatusClassName

Function processStatusClassName

web/src/App.tsx:3709–3713  ·  view source on GitHub ↗
(status: ProcessStepStatus)

Source from the content-addressed store, hash-verified

3707}
3708
3709function 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
3715function makeStepId(prefix: string) {
3716 const randomId = globalThis.crypto?.randomUUID?.() ?? `${Date.now()}-${Math.random().toString(16).slice(2)}`;

Callers 1

ProcessPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected