(workflow: DeepImmutable<LocalWorkflowTaskState>)
| 22 | } |
| 23 | |
| 24 | function buildSubtitle(workflow: DeepImmutable<LocalWorkflowTaskState>): string { |
| 25 | const parts = [`${workflow.completedCount}/${workflow.agentCount} completed`] |
| 26 | |
| 27 | if (workflow.failedCount > 0) { |
| 28 | parts.push(`${workflow.failedCount} failed`) |
| 29 | } |
| 30 | if (workflow.killedCount > 0) { |
| 31 | parts.push(`${workflow.killedCount} stopped`) |
| 32 | } |
| 33 | |
| 34 | return parts.join(' · ') |
| 35 | } |
| 36 | |
| 37 | export function WorkflowDetailDialog({ |
| 38 | workflow, |
no outgoing calls
no test coverage detected