chore(triggers): deprecate trigger-save subblock#4107
chore(triggers): deprecate trigger-save subblock#4107waleedlatif1 wants to merge 2 commits intostagingfrom
Conversation
Remove the defunct triggerSave subblock from all 102 trigger definitions, the SubBlockType union, SYSTEM_SUBBLOCK_IDS, tool params, and command templates. Retain the backwards-compat filter in getTrigger() for any legacy stored data.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Keeps backward compatibility by filtering out any stored legacy Reviewed by Cursor Bugbot for commit d0a522c. Configure here. |
|
@greptile |
|
@cursor review |
Greptile SummaryThis PR removes the defunct The implementation is correct and complete. One minor orphaned property remains in Confidence Score: 5/5Safe to merge — pure cleanup with a correct backwards-compat shim; no behaviour change. All 102 trigger definitions cleaned, type union updated, command templates updated, and legacy data is handled gracefully by the filter in apps/sim/blocks/types.ts — minor orphaned Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[getTrigger called] --> B[Look up trigger in TRIGGER_REGISTRY]
B --> C[Filter subBlocks]
C --> D{"id === 'triggerSave' OR\ntype === 'trigger-save'?"}
D -- Yes --> E[Discard — legacy backwards-compat]
D -- No --> F[Keep subBlock]
F --> G[namespaceSubBlockId]
G --> H[Inject samplePayload if webhook/poller]
H --> I[Return cloned TriggerConfig]
E --> G
|
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d0a522c. Configure here.
Summary
triggerSavesubblock from all 102 trigger definitions across every providertrigger-savefromSubBlockTypeunion,SYSTEM_SUBBLOCK_IDS, tool params, and command templatesgetTrigger()to safely handle any legacy stored dataType of Change
Testing
tsc --noEmitpasses with zero errorsChecklist