import { Icon } from '../shared/Icon'; import { PATHS } from '../../data/paths'; const CATEGORY_COLORS: Record = { success: '#22c55e', 'rider-cancel': '#ef4444', 'driver-cancel': '#f97316', timeout: '#eab308', ops: '#8b5cf6', 'active-cancel': '#ec4899', }; export function FlowOverviewSection() { const grouped = PATHS.reduce>((acc, path) => { const cat = path.category; if (!acc[cat]) acc[cat] = []; acc[cat].push(path); return acc; }, {}); return (

The booking status sync feature covers {PATHS.length} distinct flow paths organized by category. Each path represents a complete lifecycle scenario from trip creation through terminal state.

{Object.entries(grouped).map(([category, paths]) => { const color = CATEGORY_COLORS[category] || '#64748b'; return (
{category.replace(/-/g, ' ')} ({paths.length})
{paths.map((path) => (
{path.label}

{path.description}

{path.steps.length} steps {path.subPaths ? ` + ${path.subPaths.length} sub-paths` : ''}
))}
); })}
); }