Commit e2f8d7f
committed
chore: handle variables from steps that were reordered (#1207)
## TL;DR
Fix UI issues when reordering steps:
* Ensure variables are shown properly in the RTE when steps are reordered
* Show the `Update this step with the latest data` warning when variable no longer exists after steps are reordered
## How to test?
Use variables in a step, reorder the step
- [ ] Shows `Update this step with the latest data` if the variable the step is from is now after the step it was used in
- [ ] RTE should show the empty variable pill
Revert the ordering of the steps
- [ ] Should no longer show `Update this step with the latest data`
- [ ] RTE should show the valid variable pill
## Screenshot
[Screen Recording 2025-09-12 at 5.04.06 PM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/user-attachments/thumbnails/5317a820-6d92-49b6-b4a0-961559ffc611.mov" />](https://app.graphite.dev/user-attachments/video/5317a820-6d92-49b6-b4a0-961559ffc611.mov)1 parent 528f14f commit e2f8d7f
File tree
4 files changed
+26
-11
lines changed- packages/frontend/src
- components
- FlowStep
- RichTextEditor
- helpers
4 files changed
+26
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 156 | + | |
162 | 157 | | |
163 | 158 | | |
164 | 159 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
220 | 239 | | |
221 | 240 | | |
222 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
0 commit comments