Repository navigation
Commit c62705a
committed
refactor(workflow-editor): remove the dead Copilot diff overlay
The workflow diff store (proposed changes, accept/reject, baseline snapshot
view) was fed only by the legacy workflow panel's Copilot tab, which called
setProposedChanges after a successful edit_workflow tool result. That panel
and its DiffControls were deleted in the Platform cutover, and nothing else
produces a diff: edit_workflow persists on the server and announces the
change through realtime and the mothership resource event, which the canvas
reconciles by reloading. Every reader of the diff flags was therefore always
false.
Removes the diff overlay state and engine, the diff undo/redo operations and
their protocol constants, the replace-state enqueue helper, the accept-diff
command, the snapshot-view branches in the canvas, edges, blocks, editor,
search-replace and output options, and the deploy "reviewing-diff" status.
The external-update reconciliation bookkeeping that lived in the same store
moves to stores/workflow-reconciliation, and applyWorkflowStateToStores to
stores/workflows/apply-state.1 parent ffaf52c commit c62705a
62 files changed
Lines changed: 397 additions & 3524 deletions
File tree
- .claude/rules
- .cursor/rules
- apps/sim
- app/(product)
- _components/workspace/workflows
- canvas
- block-visual
- subflow-node
- workflow-block
- workflow-canvas
- workflow-edge
- search-replace
- workspace/[workspaceId]/workflows/_components
- editor/editor-panel
- workflow-header
- workflows-route
- components
- mcp
- workflow-editor
- components
- panel/components
- deploy/hooks
- editor
- components/sub-block/hooks
- hooks
- workflow-block/hooks
- hooks
- workspace-providers
- hooks
- lib
- global-commands
- workflows
- diff
- operations
- search-replace
- platform/lib/data
- workflow-editor/selectors
- workflows
- stores
- undo-redo
- workflow-diff
- workflow-reconciliation
- workflows
- state-port
- packages/realtime-protocol/src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | 263 | | |
265 | 264 | | |
266 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
| |||
73 | 67 | | |
74 | 68 | | |
75 | 69 | | |
76 | | - | |
77 | | - | |
78 | 70 | | |
79 | 71 | | |
80 | 72 | | |
| |||
105 | 97 | | |
106 | 98 | | |
107 | 99 | | |
108 | | - | |
109 | | - | |
110 | 100 | | |
111 | 101 | | |
112 | 102 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 103 | + | |
124 | 104 | | |
125 | 105 | | |
126 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
725 | | - | |
| 726 | + | |
726 | 727 | | |
727 | 728 | | |
728 | 729 | | |
| |||
733 | 734 | | |
734 | 735 | | |
735 | 736 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | 737 | | |
741 | 738 | | |
742 | 739 | | |
| |||
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
787 | | - | |
788 | 784 | | |
789 | 785 | | |
790 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 203 | + | |
211 | 204 | | |
212 | 205 | | |
213 | 206 | | |
| |||
671 | 664 | | |
672 | 665 | | |
673 | 666 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
| 667 | + | |
681 | 668 | | |
682 | 669 | | |
683 | 670 | | |
| |||
817 | 804 | | |
818 | 805 | | |
819 | 806 | | |
820 | | - | |
| 807 | + | |
821 | 808 | | |
822 | 809 | | |
823 | 810 | | |
| |||
936 | 923 | | |
937 | 924 | | |
938 | 925 | | |
939 | | - | |
940 | 926 | | |
941 | 927 | | |
942 | 928 | | |
| |||
0 commit comments