Escalation Tree

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

  1. Lisa BergmannTeam Lead
    Approved
  2. Mike JohnsonDepartment Head
    Current
  3. Emily DavisVP Operations
    Pending

Status Types

Four status states, shown with the system Badge

Pending
Current
Approved
Rejected

Props

EscalationTree component API reference

PropTypeDefaultDescription
rootNode*EscalationNode—Root node of the escalation tree
onNodeClick(node: EscalationNode) => void—Callback when a node is clicked
classNamestring—Additional CSS classes for the container

EscalationNode Type

PropTypeDefaultDescription
id*string—Unique node identifier
name*string—Person name
role*string—Person role/title
status*'pending' | 'current' | 'approved' | 'rejected'—Node status
childrenEscalationNode[]—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)}
/>
)
}

Built With

1 component

This block uses the following UI components from the design system:

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 name

Keyboard Navigation

KeyAction
TabNavigate between clickable nodes
Enter / SpaceActivate 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"