Commit 4f2b92c
committed
fix(tui): prevent screen flicker in policy creation flow
handleSelectEngine and handleAddPolicyToNewEngine perform async gateway
lookups without transitioning to a loading state first, leaving the
select screen interactive during the await. This causes a visible flicker
when the promise resolves and the flow jumps to the policy wizard.
Set flow to loading before the async calls so the UI shows a clean
loading indicator during the transition.1 parent a5c2da9 commit 4f2b92c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | | - | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
0 commit comments