* Checks if a workflow description is a default/placeholder description
( description: string | null | undefined, name?: string )
| 53 | * Checks if a workflow description is a default/placeholder description |
| 54 | */ |
| 55 | function isDefaultWorkflowDescription( |
| 56 | description: string | null | undefined, |
| 57 | name?: string |
| 58 | ): boolean { |
| 59 | if (!description) return true |
| 60 | const normalizedDesc = description.toLowerCase().trim() |
| 61 | return ( |
| 62 | description === name || |
| 63 | normalizedDesc === 'new workflow' || |
| 64 | normalizedDesc === 'your first workflow - start building here!' |
| 65 | ) |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Fetches workflow metadata (name and description) from the API |
no outgoing calls
no test coverage detected