feat(platform): workflow update approval flow#740
Conversation
Introduce a `workflow_update` approval type so that workflow saves and step patches go through an explicit approval before being applied. Includes backend execution logic, approval card UI, chat integration, and tests.
Extract the AI assistant into a standalone panel at the route level so it persists independently of step selection. Refactor useResizable into a shared hook with controlled/uncontrolled width support, simplify the side panel by removing chat-specific state, and improve canvas fitView to respond to container resize instead of panel mode changes. Also fix circular dependency validation by including stepType in the query and add regression tests.
Remove trailing approvals logic from MessageList — approvals are now only shown inline next to their associated message. Increase initial thread message fetch from 30 to 100 for better conversation context. Add tests for MessageList component.
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Replace non-null assertions with optional chaining in use-resizable, add missing setWidth to dependency arrays, and fix type inference for StepWithNextSteps in circular dependency validator test.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR implements a workflow update approval system for automations. The changes introduce approval-based workflows where tools like Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
Summary
workflow_updateapproval type so that workflow saves and step patches go through explicit user approval before being appliedTest plan
execute_approved_workflow_update,save_workflow_definition_tool,update_workflow_step_tool,MessageList,circular_dependency_validator🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Changes