swarm-ui: the schedules, notification flows and flow editor show placeholders while they load
The schedules card, the notification router card (flows and recent deliveries) and the flow editor showed a bare 'loading…' line. They now show grey placeholders in the layout of what is coming: schedule cards with the real card's row heights, flow cards with a block for the graph, the deliveries table's header over blank rows, and lines for the editor.
This commit is contained in:
parent
0bc0b86d1d
commit
5eef1f4a3d
1 changed files with 111 additions and 7 deletions
|
|
@ -322,6 +322,8 @@ when it fires next. **edit** turns the card into its own form; **pause** and
|
|||
list by name, agent or state (`active`, `paused`, or `past` for a one-shot
|
||||
whose time has passed). `past` is the controller's clock against the start time,
|
||||
not a record that an agent fired, so you can still pause a `past` schedule.
|
||||
While the schedules load for the first time, the card shows grey placeholder
|
||||
cards with the same layout as the real ones.
|
||||
|
||||
A schedule repeats **every** some number of seconds, minutes, hours or days, or
|
||||
fires **once**. Its start time is the moment a one-shot fires, and the origin of
|
||||
|
|
@ -357,7 +359,8 @@ and **duplicate** buttons. **create flow**, at the top of the page beside the
|
|||
refresh interval, starts a custom flow with just a source. Creating and
|
||||
duplicating open the editor on a draft and make nothing: the flow exists once
|
||||
you **save** it there. Leaving the draft without saving, or discarding it, leaves
|
||||
the flows as they were.
|
||||
the flows as they were. While the flows and the recent deliveries load for
|
||||
the first time, the card shows grey placeholders of the same shape.
|
||||
|
||||
A switch sends the whole flows document with the revision the page read, `0` if
|
||||
it read no document. The controller refuses the switch when the stored revision
|
||||
|
|
|
|||
Loading…
Reference in a new issue