(step: Omit<ProcessStep, "id"> & { id?: string })
| 644 | } |
| 645 | |
| 646 | function addProcessStep(step: Omit<ProcessStep, "id"> & { id?: string }) { |
| 647 | setProcessSteps((current) => [...current, { |
| 648 | id: step.id ?? makeStepId("step"), |
| 649 | title: step.title, |
| 650 | detail: step.detail, |
| 651 | status: step.status, |
| 652 | payload: step.payload, |
| 653 | durationMs: step.durationMs |
| 654 | }]); |
| 655 | } |
| 656 | |
| 657 | function upsertProcessStep(step: ProcessStep) { |
| 658 | setProcessSteps((current) => { |
no test coverage detected