Work graph
import { WorkGraph, WorkGraphMark, layoutWorkGraph, workGraphChain, workGraphStateWord, workGraphChainWords } from "@arcadia/ui/charts";1 in work 7 ready 8 blocked 4 done
TSX
Words
- In work
- Ready
- Blocked
- Done
Waits on 13: 3 in work, 10 blocked. 1 needs you. Longest chain before it: 7 cards.
Examples
Many boards
29 in work 87 ready 144 blocked 40 done
A card selected
29 in work 87 ready 144 blocked 40 done
A goal's map
13 of 36 done
6 in work 2 ready 19 blocked 13 done
Done shown
1 in work 7 ready 8 blocked 4 done
Urgent cards
29 in work 87 ready 144 blocked 40 done
Narrow graph
1 in work 7 ready 8 blocked 4 done
--work-graph-node- `calc(${Ref<FontSize>} * ${number})`
- Default:
calc(var(--font-size-headline) * 16) --work-graph-channel- Ref<Space> | `calc(${Ref<Space>} * ${number})`
- Default:
var(--space-16)
- Tab
- Moves to the map's one stop, then to the bench
- UpDown
- Move along a column, into the board above or below
- Left
- Moves to what the card waits on, along its longest chain
- Right
- Moves to what waits on the card
- HomeEnd
- Go to a column's first or last card
- Enter
- Selects a card, or opens the selected card when
onOpenis set - Space
- Selects or clears
- Escape
- Clears the selection
WorkGraph
nodesrequired- readonly WorkGraphNode[]
edgesrequired- readonly WorkGraphEdge[]
groupsrequired- readonly WorkGraphGroup[]
stubbed- ReadonlySet<string>
- Default:
NONE counts- WorkGraphCounts
selected- string | null
- Default:
null onSelect- (id: string | null) => void
onOpen- (id: string) => void
lit- ReadonlySet<string>
showDone- boolean
- Default:
false onShowDone- (show: boolean) => void
focus- string | null
- Default:
null onFocusLeave- () => void
onUnfold- (group: string) => void
more- boolean
- Default:
false bench- ReactNode
empty- ReactNode
loading- boolean
- Default:
false rootStyle- RootStyle<WorkGraphKnobs>
Rest props go to HTMLAttributes<HTMLDivElement>.
staterequired- "work" | "ready" | "blocked" | "done"
rootStyle- RootStyle
- A component's typed override prop:
Layoutand its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).