()
| 224 | * This includes all trigger blocks and tools with trigger mode |
| 225 | */ |
| 226 | export function getTriggersForSidebar(): BlockConfig[] { |
| 227 | const allBlocks = getAllBlocks() |
| 228 | return allBlocks.filter((block) => { |
| 229 | if (block.hideFromToolbar) return false |
| 230 | // Include blocks with triggers category or trigger-config subblock |
| 231 | return block.category === 'triggers' || hasTriggerCapability(block) |
| 232 | }) |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * Get the proper display name for a trigger block in the UI |
no test coverage detected