feat(blocks): surface deprecated block and model warnings on canvas#5785
Conversation
PR SummaryLow Risk Overview Workflow canvas: Panel: The Models: Adds Tooling: Reviewed by Cursor Bugbot for commit 24c425f. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR surfaces deprecated blocks and models on the workflow canvas. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "fix(blocks): make deprecation badge keyb..." | Re-trigger Greptile |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@cursor review |
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 24c425f. Configure here.
Summary
deprecated?: { replacedBy? }field toBlockConfigand annotate 37 legacy block configs with their successorsisModelDeprecated/getModelReplacementmodel accessors; only badge when a concrete upgrade target exists (dropsvision, which has no successor)mothership-send-messagelistener to forwardcontexts+preventDefault(also repairs existing terminal/logs "Fix in Chat")deprecatedon 20 successor blocks built by spreading their deprecated predecessor (they were self-referencing)check-block-registryinvariant that everyreplacedByresolves to a real, GA, non-deprecated blockType of Change
Testing
Tested manually against local workflows with deprecated blocks/models.
bun run lint:check,check:api-validation:strict,check-block-registry, andproviders/models.test.tsall pass.Checklist