Overview
Driver Management (/fleet/drivers) provides comprehensive tools for managing fleet drivers including profiles, Hours of Service (HOS) tracking, and load assignments.
Key Features
- Driver Table - Searchable, sortable list with filters for status, dispatcher, and more
- HOS Tracking - Real-time Hours of Service data with color-coded warnings
- Driver Profiles - Editable profile information (contact, license, preferences)
- Tractor/Trailer Associations - View assigned equipment via movements data
- URL Sync - Deep linking support for search and driver selection
API Endpoints
REST Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/drivers/current | Fetch all current drivers from McLeod |
GET | /api/drivers/profiles | Fetch editable driver profiles |
PUT | /api/drivers/profile/{id} | Update a driver’s profile |
GET | /api/drivers/hos/available-time | Fetch HOS (Hours of Service) data |
GET | /locations/current | Fetch vehicle locations for associations |
GET | /api/movements?limit=500 | Fetch movements for driver-load associations |
SSE Streams (Real-time)
| Endpoint | Event Type | Description |
|---|---|---|
/api/drivers/stream | driver_update | Real-time driver status updates |
All endpoints are prefixed with the Tracking Backend URL (
NEXT_PUBLIC_TRACKING_BACKEND_URL).Files
Pages
Pages
pages/fleet/drivers.tsx- Driver management page
Components
Components
components/DriverManagement.tsx- Main driver management componentcomponents/AddDriverModal.tsx- Add new driver modalcomponents/EditDriverModal.tsx- Edit driver modalcomponents/EnhancedDriverDetailsModal.tsx- Detailed driver info modalcomponents/fleet/HOSBadge.tsx- HOS status badgecomponents/fleet/DriversTable.tsx- Drivers table componentcomponents/fleet/DriverQuickActions.tsx- Quick action buttonscomponents/fleet/UpcomingLoadsPanel.tsx- Driver’s upcoming loads
Hooks
Hooks
components/hooks/useDriverManagement.ts- Driver CRUD and data mappingcomponents/hooks/useHOSData.ts- Hours of Service datacomponents/hooks/useFleetUrlSync.ts- URL synchronization
Services
Services
lib/services/drivers.ts- Driver API service
Types
Types
types/driver.ts- Driver interface definitions
Full documentation with component details, props, and usage examples coming soon.

