* Optimistic exec patch — flips every targeted (group, row) execution to * `pending` so the UI doesn't lag the round-trip. Server eligibility may skip * some; refetch on settle reconciles.
( prev: RowExecutionMetadata | undefined, workflowIdFallback?: string )
| 1962 | * some; refetch on settle reconciles. |
| 1963 | */ |
| 1964 | function buildPendingExec( |
| 1965 | prev: RowExecutionMetadata | undefined, |
| 1966 | workflowIdFallback?: string |
| 1967 | ): RowExecutionMetadata { |
| 1968 | return { |
| 1969 | status: 'pending', |
| 1970 | executionId: prev?.executionId ?? null, |
| 1971 | jobId: null, |
| 1972 | workflowId: prev?.workflowId ?? workflowIdFallback ?? '', |
| 1973 | error: null, |
| 1974 | } |
| 1975 | } |
| 1976 | |
| 1977 | /** |
| 1978 | * The single canonical run mutation. Every UI gesture (single cell, per-row |