-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
503 lines (474 loc) · 35.3 KB
/
Copy pathindex.html
File metadata and controls
503 lines (474 loc) · 35.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Force latest IE rendering engine or Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- Recommended practice for Electron apps -->
<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: assets:; connect-src 'self' http: https:; ">
<title>FlowRunner</title>
<link rel="stylesheet" href="assets/vendor/drawflow/drawflow.min.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Inline SVG icon sprite (Lucide-style, CSP-safe, themeable via currentColor).
Referenced with <svg class="icon"><use href="#i-name"/></svg>. Stroke/fill inherit
from .icon in styles.css; filled glyphs add .icon--fill. -->
<svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false">
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
<symbol id="i-x" viewBox="0 0 24 24"><path d="M18 6 6 18M6 6l12 12"/></symbol>
<symbol id="i-check" viewBox="0 0 24 24"><path d="M20 6 9 17l-5-5"/></symbol>
<symbol id="i-check-square" viewBox="0 0 24 24"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/></symbol>
<symbol id="i-expand-h" viewBox="0 0 24 24"><path d="M9 6l-5 6 5 6M15 6l5 6-5 6"/></symbol>
<symbol id="i-collapse-h" viewBox="0 0 24 24"><path d="M4 6l5 6-5 6M20 6l-5 6 5 6"/></symbol>
<symbol id="i-chevron-left" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6"/></symbol>
<symbol id="i-chevron-right" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></symbol>
<symbol id="i-chevron-down" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"/></symbol>
<symbol id="i-chevron-up" viewBox="0 0 24 24"><path d="M6 15l6-6 6 6"/></symbol>
<symbol id="i-arrow-right" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></symbol>
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></symbol>
<symbol id="i-folder" viewBox="0 0 24 24"><path d="M4 7a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"/></symbol>
<symbol id="i-folder-plus" viewBox="0 0 24 24"><path d="M4 7a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"/><path d="M12 10v6M9 13h6"/></symbol>
<symbol id="i-pencil" viewBox="0 0 24 24"><path d="M17 3l4 4L8 20l-5 1 1-5z"/></symbol>
<symbol id="i-terminal" viewBox="0 0 24 24"><path d="M4 17l6-6-6-6"/><path d="M12 19h8"/></symbol>
<symbol id="i-download" viewBox="0 0 24 24"><path d="M12 3v12"/><path d="M7 10l5 5 5-5"/><path d="M5 21h14"/></symbol>
<symbol id="i-save" viewBox="0 0 24 24"><path d="M5 4a1 1 0 0 1 1-1h10l4 4v12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"/><path d="M8 3v5h7"/><path d="M8 21v-6h8v6"/></symbol>
<symbol id="i-rotate-ccw" viewBox="0 0 24 24"><path d="M3 4v6h6"/><path d="M4 14a8 8 0 1 0 2-8L3 10"/></symbol>
<symbol id="i-list" viewBox="0 0 24 24"><path d="M8 6h13M8 12h13M8 18h13M4 6h.01M4 12h.01M4 18h.01"/></symbol>
<symbol id="i-git-branch" viewBox="0 0 24 24"><path d="M6 15V3"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="6" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/></symbol>
<symbol id="i-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 11v5"/><path d="M12 8h.01"/></symbol>
<symbol id="i-braces" viewBox="0 0 24 24"><path d="M8 3H7a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1"/><path d="M16 3h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-1"/></symbol>
<symbol id="i-play" viewBox="0 0 24 24"><path d="M7 5v14l11-7z"/></symbol>
<symbol id="i-step" viewBox="0 0 24 24"><path d="M6 5l9 7-9 7z"/><path d="M18 5v14"/></symbol>
<symbol id="i-stop" viewBox="0 0 24 24"><rect x="6" y="6" width="12" height="12" rx="1.5"/></symbol>
<symbol id="i-copy" viewBox="0 0 24 24"><rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></symbol>
<symbol id="i-grip" viewBox="0 0 24 24"><circle cx="9" cy="6" r="1.3"/><circle cx="9" cy="12" r="1.3"/><circle cx="9" cy="18" r="1.3"/><circle cx="15" cy="6" r="1.3"/><circle cx="15" cy="12" r="1.3"/><circle cx="15" cy="18" r="1.3"/></symbol>
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></symbol>
<symbol id="i-moon" viewBox="0 0 24 24"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></symbol>
<symbol id="i-presentation" viewBox="0 0 24 24"><path d="M2 4h20"/><path d="M4 4v11a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V4"/><path d="M12 16v4M9 20h6"/></symbol>
<symbol id="i-sparkles" viewBox="0 0 24 24"><path d="M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9z"/><path d="M19 14l.6 1.6 1.6.6-1.6.6-.6 1.6-.6-1.6-1.6-.6 1.6-.6z"/></symbol>
<symbol id="i-alert-triangle" viewBox="0 0 24 24"><path d="M12 3l9.5 17H2.5z"/><path d="M12 9v5"/><path d="M12 17h.01"/></symbol>
<symbol id="i-alert-circle" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 8v5"/><path d="M12 16h.01"/></symbol>
<symbol id="i-map" viewBox="0 0 24 24"><path d="M9 3 3 6v15l6-3 6 3 6-3V3l-6 3z"/><path d="M9 3v15M15 6v15"/></symbol>
<symbol id="i-trash" viewBox="0 0 24 24"><path d="M4 7h16"/><path d="M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13"/><path d="M9 7V4h6v3"/></symbol>
<symbol id="i-filter" viewBox="0 0 24 24"><path d="M3 4h18l-7 8v6l-4 2v-8z"/></symbol>
<symbol id="i-file" viewBox="0 0 24 24"><path d="M6 3h8l5 5v13H6z"/><path d="M14 3v5h5"/></symbol>
<symbol id="i-zap" viewBox="0 0 24 24"><path d="M13 2 4 14h7l-1 8 9-12h-7z"/></symbol>
<symbol id="i-shield" viewBox="0 0 24 24"><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/></symbol>
<symbol id="i-repeat" viewBox="0 0 24 24"><path d="M17 2l4 4-4 4"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><path d="M7 22l-4-4 4-4"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></symbol>
<symbol id="i-shuffle" viewBox="0 0 24 24"><path d="M16 3h5v5"/><path d="M4 20 21 3"/><path d="M21 16v5h-5"/><path d="M15 15l6 6"/><path d="M4 4l5 5"/></symbol>
<symbol id="i-code" viewBox="0 0 24 24"><path d="M16 18l6-6-6-6"/><path d="M8 6l-6 6 6 6"/></symbol>
<symbol id="i-dot" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6"/></symbol>
<symbol id="i-log-out" viewBox="0 0 24 24"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><path d="M16 17l5-5-5-5"/><path d="M21 12H9"/></symbol>
</svg>
<div class="app-container">
<!-- ============ Sentinel v2 shell ============
Icon rail (global surfaces) | top app bar (flow context + view tabs +
hero run cluster) | flows drawer | workspace | tabbed inspector.
Element IDs are preserved from the previous shell so every handler,
palette entry, and test keeps working. -->
<!-- Icon rail -->
<nav class="app-rail" id="app-rail" aria-label="Global">
<button id="sidebar-toggle-btn" class="rail-btn" aria-pressed="true" title="Flows: recent files, new, open">
<svg class="icon" aria-hidden="true"><use href="#i-folder"/></svg>
</button>
<span class="rail-divider" aria-hidden="true"></span>
<button id="rail-palette-btn" class="rail-btn" title="Command palette (Ctrl/Cmd+K)">
<svg class="icon" aria-hidden="true"><use href="#i-search"/></svg>
</button>
<button id="rail-runs-btn" class="rail-btn" aria-pressed="false" aria-label="Background Runs"
title="Background Runs — launch flows and monitor them while you keep working">
<svg class="icon" aria-hidden="true"><use href="#i-repeat"/></svg>
<span class="rail-badge" id="rail-runs-badge" aria-hidden="true" hidden></span>
</button>
<span class="rail-spacer" aria-hidden="true"></span>
<button id="theme-toggle-btn" class="rail-btn theme-toggle" aria-pressed="false" title="Toggle light/dark theme">
<svg class="icon theme-toggle-icon" aria-hidden="true"><use href="#i-moon"/></svg>
</button>
<button id="demo-mode-btn" class="rail-btn" aria-pressed="false"
title="Present: full-screen demo view for projecting a live flow (Ctrl/Cmd+Shift+D)">
<svg class="icon" aria-hidden="true"><use href="#i-presentation"/></svg>
</button>
</nav>
<!-- Top app bar -->
<header class="app-topbar" id="app-topbar">
<div class="topbar-brand">
<img src="assets/ASE-logo.svg" alt="Radware ASE Group Logo" class="ase-logo">
<span class="app-name-text">FlowRunner</span>
<!-- System Status Pip (signature): bound to the engine run-state via data-state -->
<span class="status-pip" id="system-status-pip" data-state="idle" title="Engine status">
<svg class="icon icon--fill status-dot" aria-hidden="true"><use href="#i-dot"/></svg>
<span class="status-word" aria-live="polite">IDLE</span>
</span>
</div>
<div class="topbar-flow">
<h2 id="workspace-title">Select or Create a Flow</h2>
<span class="dirty-flag" id="dirty-flag" hidden aria-live="polite" title="Unsaved changes">
<svg class="icon icon--fill status-dot" aria-hidden="true"><use href="#i-dot"/></svg>
<span class="dirty-label">UNSAVED</span>
</span>
<div class="workspace-file-controls">
<button id="save-flow-btn" class="btn btn-sm btn-primary" disabled
title="Save current flow (Ctrl+S)"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-save"/></svg><span>Save</span></button>
<button id="save-as-flow-btn" class="btn btn-sm btn-ghost btn-icon" disabled
title="Save current flow to a new file"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-copy"/></svg></button>
<button id="cancel-flow-btn" class="btn btn-sm btn-ghost btn-icon" disabled
title="Cancel changes and revert to last saved"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-rotate-ccw"/></svg></button>
<button id="close-flow-btn" class="btn btn-sm btn-ghost btn-icon" disabled
title="Close the current flow"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-log-out"/></svg></button>
</div>
</div>
<div class="topbar-view">
<!-- Legacy single toggle kept for JS compatibility; hidden (segmented control replaces it) -->
<button id="toggle-view-btn" class="btn btn-sm btn-secondary" style="display: none;"
title="Switch Views (Ctrl+3)">Visual View</button>
<div class="segmented" id="view-segmented" role="tablist" aria-label="Editor view" style="display: none;">
<span class="segmented__thumb" aria-hidden="true"></span>
<button class="segmented__cell" role="tab" data-view="list-editor" aria-selected="true"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg><span>List</span></button>
<button class="segmented__cell" role="tab" data-view="node-graph" aria-selected="false"><svg class="icon" aria-hidden="true"><use href="#i-git-branch"/></svg><span>Visual</span></button>
</div>
<!-- Hidden compat toggles: the palette and Ctrl+1/2 shortcuts click these;
their handlers now activate the inspector tabs. -->
<button class="btn btn-sm btn-ghost btn-toggle-info" id="toggle-info-btn" style="display: none;"
title="Show/Hide Flow Information (Ctrl+1)">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-info"/></svg>
<span class="btn-text">Info</span>
<span class="toggle-icon" hidden>-</span>
</button>
<button class="btn btn-sm btn-ghost btn-toggle-variables" id="toggle-variables-btn" style="display: none;"
title="Show/Hide Defined Variables (Ctrl+2)">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-braces"/></svg>
<span class="btn-text">Variables</span>
<span class="toggle-icon" hidden>-</span>
</button>
</div>
<div class="bg-runs-strip" id="bg-runs-strip" aria-label="Background runs"></div>
<!-- Hero run cluster: the run is the single most projected signal -->
<div class="topbar-run" id="topbar-run">
<span class="run-verdict" id="run-verdict" data-state="idle" hidden aria-live="polite">
<svg class="icon icon--fill status-dot" aria-hidden="true"><use href="#i-dot"/></svg>
<span class="run-verdict-word">PASSED</span>
</span>
<button id="step-flow-btn" class="btn btn-run-step" disabled
title="Execute the next step (F10)"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-step"/></svg><span>Step</span></button>
<button id="step-into-flow-btn" class="btn btn-run-step" disabled style="display: none;"
title="Step into nested steps (Not Implemented)">Step Into</button>
<button id="stop-flow-btn" class="btn btn-run-stop" disabled
title="Stop the current execution (Esc)"><svg class="icon icon--fill icon-sm" aria-hidden="true"><use href="#i-stop"/></svg><span>Stop</span></button>
<button id="bg-run-current-btn" class="btn btn-run-bg" disabled
title="Run this flow in the background (keep editing while it runs)"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-repeat"/></svg><span>Background</span></button>
<button id="run-flow-btn" class="btn btn-run-go" disabled
title="Run the entire flow (F5)"><svg class="icon icon--fill icon-sm" aria-hidden="true"><use href="#i-play"/></svg><span>Run</span></button>
</div>
</header>
<!-- Flows drawer (the old sidebar, re-homed): togglable from the rail -->
<aside class="sidebar collapsible-pane flows-drawer" id="sidebar">
<div class="sidebar-header">
<h2>Flows</h2>
<button id="drawer-close-btn" class="btn btn-sm btn-ghost btn-icon" title="Hide Flows">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-chevron-left"/></svg>
</button>
</div>
<div class="sidebar-content">
<div class="sidebar-actions">
<button id="add-flow-btn" class="btn btn-primary"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg><span>New Flow</span></button>
<button id="open-flow-btn" class="btn btn-ghost"><svg class="icon" aria-hidden="true"><use href="#i-folder"/></svg><span>Open Flow</span></button>
<button id="import-curl-btn" class="btn btn-ghost" title="Import a cURL command as a request step"><svg class="icon" aria-hidden="true"><use href="#i-terminal"/></svg><span>Import cURL</span></button>
<button id="import-har-btn" class="btn btn-ghost" title="Import request steps from a HAR file"><svg class="icon" aria-hidden="true"><use href="#i-download"/></svg><span>Import HAR</span></button>
<input id="import-har-file-input" type="file" accept=".har,application/json" style="display: none;" />
</div>
<!-- WAVE2 file-features: fuzzy search over recent files -->
<div class="sidebar-search search-field" id="file-search-wrap">
<svg class="icon" aria-hidden="true"><use href="#i-search"/></svg>
<input type="search" id="file-search-input" class="sidebar-search-input"
placeholder="filter recent…" autocomplete="off" spellcheck="false"
aria-label="Search recent files">
</div>
<div class="drawer-section-head">
<span class="drawer-section-label">Flows</span>
<div class="drawer-section-actions">
<button id="flow-select-toggle" class="btn btn-sm btn-ghost btn-icon" aria-pressed="false"
title="Select flows to run in the background">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-check-square"/></svg>
</button>
<button id="new-folder-btn" class="btn btn-sm btn-ghost btn-icon" title="New folder">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-folder-plus"/></svg>
</button>
</div>
</div>
<div class="flow-list-container">
<ul id="flow-list" class="flow-list">
<li class="loading-flows">Loading recent files...</li>
</ul>
</div>
<!-- Contextual bulk-launch bar: slides up only while flows are selected. -->
<div class="flowlist-actionbar" id="flowlist-actionbar" role="toolbar" aria-label="Selected flows">
<span class="flowlist-selcount" id="flowlist-selcount" title="Selected flows">0</span>
<button class="btn btn-sm btn-ghost btn-icon" id="flowlist-clear-btn" title="Clear selection" aria-label="Clear selection">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-x"/></svg>
</button>
<button class="btn btn-sm btn-run-go" id="flowlist-run-btn" disabled>
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-repeat"/></svg><span id="flowlist-run-label">Run in background</span>
</button>
</div>
</div>
</aside>
<!-- Main Workspace: Flow Editor / Visualizer -->
<main class="workspace" id="workspace">
<!-- Floating graph toolbar (visible only in the Visual/node view) -->
<div class="canvas-toolbar" id="canvas-toolbar" role="toolbar" aria-label="Graph tools">
<button id="zoom-out-btn" class="btn btn-sm btn-ghost btn-icon" title="Zoom Out" style="display: none;">−</button>
<button id="zoom-reset-btn" class="btn btn-sm btn-ghost ct-zoom" title="Reset Zoom" style="display: none;">100%</button>
<button id="zoom-in-btn" class="btn btn-sm btn-ghost btn-icon" title="Zoom In" style="display: none;">+</button>
<span class="ct-divider" aria-hidden="true"></span>
<button id="tidy-up-btn" class="btn btn-sm btn-ghost btn-icon" title="Tidy Up — auto-layout the graph (hold Alt to tidy only the selected step)" style="display: none;"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-sparkles"/></svg><span>Tidy Up</span></button>
<button id="next-error-btn" class="btn btn-sm btn-ghost btn-icon" title="Jump to next failed step" style="display: none;"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-alert-triangle"/></svg><span>Next Error</span></button>
<button id="toggle-minimap-btn" class="btn btn-sm btn-ghost btn-icon" title="Show/Hide Minimap" style="display: none;"><svg class="icon icon-sm" aria-hidden="true"><use href="#i-map"/></svg><span>Minimap</span></button>
</div>
<div class="workspace-content" id="workspace-content">
<div class="placeholder-message" id="workspace-placeholder">
<p>Open a flow from the Flows drawer, or press Ctrl/Cmd+K.</p>
</div>
<!-- WAVE2 file-features: fuzzy search over the current flow's steps -->
<div class="steps-search" id="steps-search-wrap" style="display: none;">
<input type="search" id="steps-search-input" class="steps-search-input"
placeholder="Search steps…" autocomplete="off" spellcheck="false"
aria-label="Search steps in this flow">
<span class="steps-search-count" id="steps-search-count" aria-live="polite"></span>
</div>
<div id="flow-builder-mount" class="view-mode list-editor-view">
<!-- Builder content injected here -->
</div>
<div id="flow-visualizer-mount" class="view-mode node-graph-view">
<!-- Visualizer content injected here -->
</div>
<!-- WAVE2 node-features: read-only View-as-JSON panel mount (jsonView.js) -->
<div id="json-view-mount" class="json-view-mount" style="display: none;">
<!-- JSON view panel injected here -->
</div>
<div class="flow-messages" id="builder-messages"></div>
</div>
</main>
<!-- Background Runs page: a full-workspace mission control, toggled from the
rail. While active (.app-container.page-runs) it replaces the drawer,
workspace and inspector; the topbar and rail stay. -->
<section class="runs-page" id="runs-page" hidden aria-label="Background Runs">
<header class="runs-page-head">
<div class="runs-page-title">
<h2>Background Runs</h2>
<p class="runs-page-sub" id="runs-page-summary">Each run executes a snapshot of a flow, so you can keep editing while it works.</p>
</div>
<button type="button" id="runs-new-run-btn" class="btn btn-primary">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-plus"/></svg><span>New background run</span>
</button>
</header>
<ul class="bg-runs-list" id="bg-runs-list"></ul>
</section>
<!-- Inspector (formerly the Runner panel): Results | Variables | Info tabs -->
<aside class="runner-panel collapsible-pane" id="runner-panel">
<div class="runner-header">
<div class="inspector-tabs" id="inspector-tabs" role="tablist" aria-label="Inspector panes">
<button class="inspector-tab" data-tab="results" role="tab" aria-selected="true">Results</button>
<button class="inspector-tab" data-tab="variables" role="tab" aria-selected="false">Variables</button>
<button class="inspector-tab" data-tab="info" role="tab" aria-selected="false">Config</button>
</div>
<div class="runner-header-actions">
<button class="btn-inspector-expand" id="inspector-expand-btn" aria-pressed="false"
title="Expand the inspector for a roomier view of variables and config">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-expand-h"/></svg>
</button>
<button class="btn-toggle-collapse runner-toggle" id="runner-toggle-btn" title="Toggle Inspector" aria-label="Collapse inspector">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-chevron-right"/></svg>
</button>
</div>
</div>
<div class="runner-content">
<section class="inspector-pane inspector-pane-results" id="inspector-pane-results">
<!-- === WAVE3 assertions === Test-summary panel (PASS/FAIL counts). -->
<div id="runner-test-summary" class="runner-test-summary" style="display:none;"></div>
<!-- Runner Status Message Area -->
<div id="runner-status-messages" class="runner-status-messages"></div>
<div class="runner-options">
<label class="runner-option" title="Run the flow repeatedly. 'Delay (ms)' is used between full runs.">
<input type="checkbox" id="continuous-run-checkbox" disabled>
<span>Continuous</span>
</label>
<label class="runner-option" title="URL-encode variable values inserted into URLs">
<input type="checkbox" id="encode-url-vars-checkbox">
<span>Encode URL vars</span>
</label>
<label class="runner-option runner-option-delay" for="request-delay" title="Delay between steps during 'Run', and between full runs in 'Continuous'">
<span>Delay</span>
<input type="number" id="request-delay" value="1000" min="0" step="100">
<span class="runner-option-unit">ms</span>
</label>
<button id="bg-run-btn" class="btn btn-secondary btn-sm" disabled
title="Run this flow in the background (a snapshot: keep editing while it runs; uses Continuous + Delay above)">
<svg class="icon icon-sm" aria-hidden="true"><use href="#i-repeat"/></svg><span>Background</span></button>
<button id="clear-results-btn" class="btn btn-secondary btn-sm" title="Clear execution results" disabled>Clear</button>
</div>
<div class="runner-results-container">
<div class="results-filter">
<input type="text" id="results-search" placeholder="Search results...">
<select id="results-status-filter">
<option value="">All Statuses</option>
<option value="success">Success</option>
<option value="error">Error</option>
<option value="running">Running</option>
<option value="skipped">Skipped</option>
<option value="stopped">Stopped</option>
</select>
<div class="results-actions">
<button id="export-results-json-btn" class="btn btn-sm btn-secondary" title="Export results to JSON" disabled>JSON</button>
<button id="export-results-csv-btn" class="btn btn-sm btn-secondary" title="Export results to CSV" disabled>CSV</button>
</div>
</div>
<ul id="runner-results" class="runner-results-list">
<li class="no-results">Run a flow to see results here.</li>
</ul>
</div>
</section>
<div class="flow-info-overlay" data-ref="infoOverlay">
<div class="info-header">
<h3 class="pane-heading">Flow Information</h3>
<button class="btn btn-sm btn-secondary" id="actual-close-info-btn">Close Info</button>
</div>
<div class="form-group">
<label for="global-flow-name">Flow Name</label>
<input type="text" id="global-flow-name" data-ref="flowNameInput" placeholder="Enter a name for this flow">
</div>
<div class="form-group">
<label for="global-flow-description">Description</label>
<textarea id="global-flow-description" data-ref="flowDescTextarea" rows="2" placeholder="Enter a description"></textarea>
</div>
<div class="form-group global-headers-section">
<button class="collapsible-header" data-ref="globalHeadersToggle">
<span class="header-label">Global Headers</span>
<span class="toggle-icon">▼</span>
</button>
<div class="collapsible-content" data-ref="globalHeadersContent">
<div class="global-headers-list" data-ref="globalHeadersList">
<!-- Headers added dynamically -->
</div>
<button class="btn-add-global-header" data-ref="addGlobalHeaderBtn" style="margin-top: 10px;">+ Add Header</button>
<p class="form-hint">Header values support variables (e.g., <code>{{varName}}</code>) and special variables like <code>{{RANDOM_IP}}</code>, <code>{{RANDOM_INT(1,1000)}}</code>, or <code>{{RANDOM_STRING(16)}}</code>.</p>
</div>
</div>
</div>
<!-- Variables Panel (matching info overlay structure) -->
<div class="variables-panel" data-ref="variablesPanel">
<div class="variables-header">
<h3 class="pane-heading">Variables</h3>
<button class="btn btn-sm btn-secondary" id="actual-close-variables-btn">Close Variables</button>
</div>
<div class="form-group flow-variables-section">
<button class="collapsible-header" data-ref="flowVarsToggle">
<span class="header-label">Flow Variables</span>
<span class="toggle-icon">▼</span>
</button>
<div class="collapsible-content" data-ref="flowVarsContent">
<div class="flow-vars-list" data-ref="flowVarsList">
<!-- Variables added dynamically -->
</div>
<button class="btn-add-flow-var" data-ref="addFlowVarBtn" style="margin-top: 10px;">+ Add Variable</button>
</div>
</div>
<div class="variables-container" data-ref="variablesContainer">
<!-- Variables content rendered here -->
</div>
</div>
</div>
</aside>
</div>
<!-- Step-Type Selection Dialog -->
<!-- Generic in-app input dialog (replacement for window.prompt, which Electron does not support) -->
<div class="app-confirm-dialog app-input-dialog" id="app-input-dialog" style="display: none;" role="dialog" aria-modal="true" aria-labelledby="app-input-title">
<div class="app-confirm-container">
<h3 class="app-confirm-title" id="app-input-title">Input</h3>
<p class="app-confirm-message" id="app-input-message"></p>
<textarea id="app-input-textarea" class="app-input-textarea" rows="6" spellcheck="false" autocomplete="off"></textarea>
<div class="app-confirm-actions">
<button type="button" class="btn btn-secondary" id="app-input-cancel">Cancel</button>
<button type="button" class="btn btn-primary" id="app-input-ok">Import</button>
</div>
</div>
</div>
<!-- Generic in-app confirm dialog (non-blocking replacement for native confirm()) -->
<div class="app-confirm-dialog" id="app-confirm-dialog" style="display: none;" role="alertdialog" aria-modal="true" aria-labelledby="app-confirm-title" aria-describedby="app-confirm-message">
<div class="app-confirm-container">
<h3 class="app-confirm-title" id="app-confirm-title">Are you sure?</h3>
<p class="app-confirm-message" id="app-confirm-message"></p>
<div class="app-confirm-actions">
<button type="button" class="btn btn-secondary" id="app-confirm-cancel">Cancel</button>
<button type="button" class="btn btn-primary" id="app-confirm-ok">Confirm</button>
</div>
</div>
</div>
<div class="step-type-dialog" id="step-type-dialog" style="display: none;">
<div class="step-type-container">
<div class="step-type-header">
<h3>Select Step Type</h3>
<button class="step-type-close" title="Close">✕</button>
</div>
<div class="step-type-options">
<div class="step-type-option" data-type="request" title="Make an HTTP request">
<div class="type-icon request-icon"></div>
<h4>API Request</h4>
<p>Call an external API endpoint.</p>
</div>
<div class="step-type-option" data-type="transform" title="Transform data">
<div class="type-icon transform-icon"></div>
<h4>Transform</h4>
<p>Modify or compute variables.</p>
</div>
<div class="step-type-option" data-type="condition" title="Branch based on a condition">
<div class="type-icon condition-icon"></div>
<h4>Condition (If/Else)</h4>
<p>Execute steps based on data.</p>
</div>
<div class="step-type-option" data-type="loop" title="Iterate over an array">
<div class="type-icon loop-icon"></div>
<h4>Loop (For Each)</h4>
<p>Repeat steps for items in a list.</p>
</div>
</div>
</div>
</div>
<!-- Variable Insertion Dropdown -->
<div class="var-dropdown" id="var-dropdown" style="display: none; position: absolute;">
<div class="var-dropdown-header">
<input type="text" class="var-search" placeholder="Search variables...">
<button class="var-close" title="Close">✕</button>
</div>
<div class="var-list"></div>
<div class="no-results-msg" style="display: none;">No matching variables</div>
</div>
<!-- WAVE2 node-features: command/search palette overlay host (palette.js) -->
<div id="palette-host"></div>
<!-- === WAVE3 demo-mode === guided first-run onboarding overlay host (firstRun.js) -->
<div id="onboarding-host"></div>
<!-- Global Loading Overlay -->
<div class="loading-overlay global-loading" id="global-loading-overlay" style="display: none;">
<div class="loading-spinner"></div>
<div class="loading-text">Processing...</div>
</div>
<!-- NEW: Update Info Dialog -->
<div class="update-info-dialog" id="update-info-dialog" style="display: none;">
<div class="update-info-container">
<div class="update-info-header">
<h3 class="update-info-title">Update Information</h3>
<button class="update-info-close" title="Close">✕</button>
</div>
<div class="update-info-body">
<p class="update-info-message">Checking for updates...</p>
<!-- Content will be dynamically inserted here -->
</div>
</div>
</div>
<!-- End Update Info Dialog -->
<script src="assets/vendor/drawflow/drawflow.min.js"></script>
<script type="module" src="app.js"></script>
</body>
</html>