swarm-ui: preview a draft flow's hit counts in the editor with the dry-run route
The editor's preview button posts the draft to POST /api/notify/dry-run and puts each box's hit count on the canvas; any edit hides the numbers. Boxes of kind request_reviewer label themselves "reviewer", so the long kind name no longer runs into the hit count shown beside it.
This commit is contained in:
parent
e8538d8690
commit
404d8334aa
7 changed files with 97 additions and 6 deletions
|
|
@ -296,6 +296,12 @@ editor offers to reload and drop your edits, or to keep them and replace this
|
|||
flow's latest version with them. For any other refusal the editor shows the
|
||||
controller's own message. The router runs a saved flow from its next event.
|
||||
|
||||
**preview** runs the draft, saved or not, over the newest forge events and
|
||||
shows on each box how many of them reached it, as a dry run does for the saved
|
||||
flows in the list. It needs no save, so you can try a half-built flow. The
|
||||
numbers go as soon as you edit the flow. If the draft would not save, or the
|
||||
router can't run a dry run yet, the controller's own message shows instead.
|
||||
|
||||
Leaving the page with unsaved edits asks first, whether you close or reload the
|
||||
tab, follow a link in the app, or press the browser's back button. Choose
|
||||
**leave and drop edits** to go on, or cancel to stay and save.
|
||||
|
|
|
|||
Loading…
Reference in a new issue