Workflow canvas read only tree — Kanban block
Prokanban-workflow-canvas-read-only-tree · for app, automations pages
Workflow canvas read only tree
A short branching automation in connected cards, indented on phones; run states are the merchant’s own only.
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/kanban-workflow-canvas-read-only-treeUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import KanbanWorkflowCanvasReadOnlyTree from '@/components/trame/blocks/kanban/kanban-workflow-canvas-read-only-tree.vue'
const props = {
title: "From cart to workshop",
intro: "How orders get processed, step by step.",
nodes: [
{
id: "received",
app: "Orders",
title: "Order received",
lastRun: {
state: "Done",
tone: "success",
at: "October 9, 2026 at 2:32 PM"
}
},
{
id: "check",
app: "Inventory",
title: "Check availability",
description: "Each SKU is checked against the workshop’s stock.",
lastRun: {
state: "Done",
tone: "success"
}
}
],
edges: [
{
from: "received",
to: "check"
},
{
from: "check",
to: "prepare",
condition: "All SKUs are available"
}
],
open: "step"
}
</script>
<template>
<KanbanWorkflowCanvasReadOnlyTree v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| intro | string | Wordsa sentence or two under the heading |
| nodes* | Node[] | Dataunique steps; array order breaks ties between independent branches |
| edges* | Edge[] | Datadirected connections between existing step ids |
| open | string | Actionopens a step in the host |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Node nodes[] · 6 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe node’s id |
| app* | string | Wordsthe service responsible for this step |
| title* | string | Wordsthe operation performed |
| description | string | Wordsthe node’s description |
| icon | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| lastRun | LastRun | how the step’s last run went, as recorded |
LastRun nodes[].lastRun · 3 props
| Prop | Type | Description |
|---|---|---|
| state* | string | Wordsthe recorded run state, never inferred |
| tone | 'neutral' | 'success' | 'warning' | 'danger' | the status colour |
| at | string | Wordsthe date as supplied by the run log |
Edge edges[] · 3 props
| Prop | Type | Description |
|---|---|---|
| from* | string | Datathe id of the step it starts from |
| to* | string | Datathe id of the step it leads to |
| condition | string | Wordsthe condition for taking this path, e.g. "If paid" |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| empty | string | Wordswhat an empty workflow says |
| footnote | string | Wordsa small line at the foot of the section |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
open - Reads
stepsfrom your app
A kanban section, for app, automations pages; it uses @vueuse/core.
More kanban blocks
- Board columns: records grouped by stage, side by side, so a team sees the flow and moves a record forward.
- Board compact: many small cards (a title, one chip, an owner) on narrow columns.
- Board stacked: a phone-first board: the stages stacked as folding sections, one column wide.
- Board stage ledger: Wide horizontal stage rows with a count rail and wrapping cards, for reviewing the merchant’s own records without horizontal scrolling.
- Board tinted collapsible: a sales pipeline whose stages are tinted and whose finished or empty stages fold into a strip.
- Held up columns: a release or production board where some cards are held up and the reason must be seen.
- Plan split: An editable plan: the groups and tasks as a folding tree beside their bars on a day, week, month or quarter grid, which the team drags, resizes or moves with the keys to reschedule the merchant’s own tasks.
- Workload lanes: Stages crossed with the first person field, for reviewing the team’s own workload by responsible person.