MCPcopy
hub / github.com/simstudioai/sim / getTriggersForSidebar

Function getTriggersForSidebar

apps/sim/lib/workflows/triggers/trigger-utils.ts:226–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 * This includes all trigger blocks and tools with trigger mode
225 */
226export 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

Callers 2

store.tsFile · 0.90
getTriggersFunction · 0.90

Calls 2

getAllBlocksFunction · 0.90
hasTriggerCapabilityFunction · 0.85

Tested by

no test coverage detected