Escalation Tree
Enterprise
Workflow
Visual hierarchy of approval chain with status indicators for each node in the escalation path. Shows approval progression through organizational levels.
Preview
Approval chain as a vertical path: completed steps filled, the current step ringed, pending steps dashed
- Lisa BergmannTeam LeadApproved
- Mike JohnsonDepartment HeadCurrent
- Emily DavisVP OperationsPending
Status Types
Four status states, shown with the system Badge
Pending
Current
Approved
Rejected
Props
EscalationTree component API reference
| Prop | Type | Default | Description |
|---|---|---|---|
rootNode* | EscalationNode | — | Root node of the escalation tree |
onNodeClick | (node: EscalationNode) => void | — | Callback when a node is clicked |
className | string | — | Additional CSS classes for the container |
EscalationNode Type
| Prop | Type | Default | Description |
|---|---|---|---|
id* | string | — | Unique node identifier |
name* | string | — | Person name |
role* | string | — | Person role/title |
status* | 'pending' | 'current' | 'approved' | 'rejected' | — | Node status |
children | EscalationNode[] | — | Child nodes for hierarchy |
Usage
Import and implementation example
import { EscalationTree } from '@/components/ui/escalation-tree'
export default function Example() { const rootNode = { id: '1', role: 'Team Lead', name: 'Lisa Bergmann', status: 'approved', children: [ { id: '2', role: 'Department Head', name: 'Mike Johnson', status: 'current', children: [ { id: '3', role: 'VP Operations', name: 'Emily Davis', status: 'pending', } ] } ] }
return ( <EscalationTree rootNode={rootNode} onNodeClick={(node) => showNodeDetails(node)} /> )}Features
Built-in functionality
- Hierarchical visualization: Tree structure shows approval chain levels
- Status indicators: Avatar style and Badge for pending, approved, rejected, and current
- Clickable nodes: Optional click handler to view node details
- Avatar initials: Automatic avatar with first letter of name
- Connecting lines: A rail links each step; it turns green after an approval
- Role display: Shows name and role for each approver
Accessibility
Accessibility considerations
ARIA Attributes
Nodes become native buttons when onNodeClick is setStatus is shown with both color and text labelAvatar shows first letter of nameKeyboard Navigation
| Key | Action |
|---|---|
| Tab | Navigate between clickable nodes |
| Enter / Space | Activate focused node |
Notes
- Status communicated through both color and text
- Name and role provide context for each node
- Connecting lines are decorative
- The list has aria-label="Escalation path"