(triggerType: string)
| 99 | * Gets integration metadata (label and color) for a specific trigger type. |
| 100 | */ |
| 101 | export function getIntegrationMetadata(triggerType: string): { label: string; color: string } { |
| 102 | const metadataMap = initializeTriggerMetadataMap() |
| 103 | const found = metadataMap.get(triggerType) |
| 104 | |
| 105 | if (found) { |
| 106 | return found |
| 107 | } |
| 108 | |
| 109 | return { |
| 110 | label: formatProviderName(triggerType), |
| 111 | color: '#6b7280', // gray |
| 112 | } |
| 113 | } |
no test coverage detected