A workflow canvas where a test run walks the steps
An online shop order runs as steps on a canvas: a trigger, a Yes or No branch on whether the order is paid, then the invoice, the stock, the carrier and a message to the shipping channel, each step named with its system. A test run plays the steps back one by one and leaves its path on the canvas with the skipped branch dashed, and on a phone the same steps read as lists.
By Bohuslav PoláčekChecked
What the screen shows
The roastery's scenario for an online shop order, as the owner sees it:
- The trigger: every new order from the shop.
- The branch: "Paid in advance?" with two outputs. Yes issues the invoice, reserves the coffee from the roasted shelf, books a pickup with the carrier and posts what to pack to #shipping. No sends the payment details, waits 3 days and sends a reminder when the payment has not arrived.
- The systems: each step carries its system's name, icon and identity hue (Online shop, Invoicing, Stock, Carrier, Slack, Email); a condition and a wait name no system. Systems are named, never drawn with a vendor's logo.
- The header: the eyebrow "Scenario", the scenario's name and its state as a glyph with a word. "Run test" is the primary action; the switch and the display menu (Canvas or Steps) are the two secondary ones.
- The runs and the history: the newest runs, each named by the order that started it, and the history with who edited, switched on and created the scenario.
A test run walks the canvas
A test asks the server once, and the answer holds every step's result. The page then plays the run back one step at a time: each step shows for its real time, at least 450 ms so the eye can follow and at most 1.1 s so a slow carrier call does not stall the show.
The run then stays on the canvas, the path it took in ink and the branch it skipped dashed, until another run is chosen from the list. When the last run failed, the scenario opens on that run, so the failed step is the first thing seen. In the demo's data, the run for order FH-2026-1039 stopped at "Book a pickup", and its note says what to do: the carrier did not respond within 30 seconds, book the pickup by hand.
The rules the canvas keeps
The canvas is the kit's FlowCanvas inside a Screen with the canvas archetype and a full plate (the canvas pattern):
- Zoom from 25 % to 200 %: the first view fits the whole scenario but never above 100 %, and it keeps fitting as the window changes until someone moves the view. Cmd or Ctrl+0 fits it again.
- Steps snap to 8px when they are moved, and only people the permission table lets edit may move them: the owner and operations. The same two switch a scenario on or off, wholesale may also run a test, and everyone else reads (permissions).
- The switch answers at once: it changes before the server does and takes its turn, so a quick off and on lands as the last one. Switched off, the toast says "The scenario is off. Its trigger will not start it now."
- Under 768px the steps are lists (
FlowOutline): the same nodes and links, branch under branch, with the same statuses. On a wider screen the display menu offers the same lists as Steps.
What AI coding tools get wrong here
- A diagram library pulled in: React Flow or another library, restyled to look like the app, with its own handles, minimap and colours. The kit's manifest names
FlowCanvasas what replaces it, so a tool that reads the manifest draws with the kit. - Runs in a separate log: a table of runs on another page, where nobody sees which branch an order took. Here a run is drawn on the steps it walked.
- A canvas a phone cannot read: a diagram to pan with a finger at 390px. Here a phone gets the steps as lists.
- A fit without a ceiling: fit to view that blows a short scenario up to fill the screen. Here the first view stops at 100 %.
The canvas, the steps and the side column
<FlowCanvas
nodes={nodes}
edges={edges}
label={tx(`Scénář ${scenario.name}`, `Scenario ${scenario.name}`)}
selectedId={stepId}
onSelect={select}
onNodeMove={onNodeMove}
/>
</div>
) : (
<ScrollArea className="min-h-0 min-w-0 flex-1">
{/* On a phone the failure comes first: it is what the person came for. */}
{!desktop && !step && shownRun?.status === "failed" ? (
<div className="mb-4">
<FailedRunCard scenario={scenario} run={shownRun} onOpenStep={select} />
</div>
) : null}
<FlowOutline
nodes={nodes}
edges={edges}
selectedId={stepId}
onSelect={(id) => select(id === stepId ? null : id)}
className="max-w-2xl"
/>
</ScrollArea>
)}
<aside
aria-label={step ? tx(`Krok ${step.title}`, `Step ${step.title}`) : tx("Běhy a historie", "Runs and history")}
className="flex min-h-0 min-w-0 flex-col max-lg:hairline-t max-lg:border-border max-lg:pt-5 lg:w-80 lg:shrink-0 lg:hairline-l lg:border-border lg:pl-5"
>
<ScrollArea className="min-h-0 flex-1">{panel}</ScrollArea>
</aside>What the kit's manifest says about FlowCanvas
| Manifest field | FlowCanvas |
|---|---|
| What it is | A scenario drawn as steps on an endless canvas that pans and zooms; FlowOutline gives the same as lists. |
| Use it for | Workflows and automations with branches. |
| Not for | For a straight list of steps (WorkSteps, Checklist) |
| It replaces | React Flow or another diagram library; A hand-built canvas |
| Screen types | Canvas; Workspace |
| Import | import { FlowCanvas, FlowOutline } from "@meadowstack-studio/kit"; |
Questions
Does the workflow canvas use React Flow?
No. It is the kit's FlowCanvas, made for workflows with branches: steps as cards, links with Yes and No outputs, pan, zoom and snapping. The kit's manifest names it as the replacement for React Flow or another diagram library, so an AI coding tool that reads the manifest reaches for it.
How does a test run show on the canvas?
The page plays the run back step by step, each step for its real time between 450 milliseconds and 1.1 seconds. Afterwards the path it took stays in ink and the skipped branch dashed, until another run is chosen.
What happens when a run fails?
The scenario opens on the failed run, so the failed step is the first thing seen, with its note and a way to open the step. In the demo, one order's run stopped at the carrier step because the carrier did not respond within 30 seconds, and the note says to book the pickup by hand.
Who can change a scenario?
In the demo, the owner and operations switch scenarios on and off and move their steps, and wholesale may also run a test. Everyone else at the roastery sees the scenarios and their runs without those controls.
Can the workflow canvas be used on a phone?
Yes. Under 768px the steps read as lists, one branch under the other, with the same statuses; on a wider screen the display menu offers the same lists as Steps.
Related
- An app for a roastery with an online shopExample app
- A lot record that traces one step back and one step forwardScreens
- Defects pinned on the drawing, carried across revisionsScreens
- A construction schedule that reads the weatherScreens
- A driver record that says what expires nextScreens
- A proof the customer approves in their own portalScreens
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app