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
|
|
@ -26,6 +26,7 @@ import { ActionRow } from "../../ui/action-row/ActionRow.js";
|
|||
import { ConfirmDialog } from "../../ui/confirm-dialog/ConfirmDialog.js";
|
||||
import { Hint } from "../../ui/hint/Hint.js";
|
||||
import { Panel } from "../../ui/panel/Panel.js";
|
||||
import { SkeletonLines } from "../../ui/skeleton/Skeleton.js";
|
||||
import { TextField } from "../../ui/text-field/TextField.js";
|
||||
import { fetchJson, ProblemError } from "../../ui/polled/usePolled.js";
|
||||
import { FlowCanvas } from "./FlowCanvas.js";
|
||||
|
|
@ -248,7 +249,7 @@ export function FlowEditorPage({
|
|||
if (!view) {
|
||||
return (
|
||||
<Panel title="notification flow" icon="🔔" actions={back}>
|
||||
<p>loading…</p>
|
||||
<SkeletonLines label="the flow" />
|
||||
</Panel>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue