MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildSubtitle

Function buildSubtitle

src/components/tasks/WorkflowDetailDialog.tsx:24–35  ·  view source on GitHub ↗
(workflow: DeepImmutable<LocalWorkflowTaskState>)

Source from the content-addressed store, hash-verified

22}
23
24function 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
37export function WorkflowDetailDialog({
38 workflow,

Callers 1

WorkflowDetailDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected