Commit 16ba04e
committed
feat(workflow-renderer): extract pure WorkflowBlockView shell
Moves the canvas block's render (header, badges, dynamic handles, ring) into a pure WorkflowBlockView in @sim/workflow-renderer. WorkflowBlock becomes a thin container that resolves all stores/hooks/permissions, builds the subblock rows + actionBar slots, and binds wouldCreateConnectionCycle (reads the edge store fresh per call to preserve cycle prevention). getHandleClasses/getHandleStyle move into the view; config.icon/bgColor, the webhook provider name, and every visual flag cross as props. Byte-identical JSX — every handle id/class/style/offset and badge guard preserved (verified by an independent adversarial audit). Container drops from 1137 to 829 lines.1 parent 6769127 commit 16ba04e
3 files changed
Lines changed: 598 additions & 419 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block
- packages/workflow-renderer/src
- workflow-block
0 commit comments