Standalone page for a trigger-only service (no actions block).
( provider: string, triggers: TriggerFullInfo[], blockType: string, providerColor: string )
| 3711 | |
| 3712 | /** Standalone page for a trigger-only service (no actions block). */ |
| 3713 | function generateTriggerProviderDoc( |
| 3714 | provider: string, |
| 3715 | triggers: TriggerFullInfo[], |
| 3716 | blockType: string, |
| 3717 | providerColor: string |
| 3718 | ): string { |
| 3719 | const providerName = formatTriggerProviderName(provider) |
| 3720 | return `--- |
| 3721 | title: ${providerName} |
| 3722 | description: ${providerName} triggers for automating workflows |
| 3723 | --- |
| 3724 | |
| 3725 | import { BlockInfoCard } from "@/components/ui/block-info-card" |
| 3726 | |
| 3727 | <BlockInfoCard |
| 3728 | type="${blockType}" |
| 3729 | color="${providerColor}" |
| 3730 | /> |
| 3731 | |
| 3732 | ${buildTriggersSection(triggers)}` |
| 3733 | } |
| 3734 | |
| 3735 | /** |
| 3736 | * Build a map of block-type → bgColor from all block definitions. |
no test coverage detected