Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/fatelessdev/translogiX/llms.txt

Use this file to discover all available pages before exploring further.

The delay and maintenance section of the AI Operations dashboard provides two predictive panels that sit side by side at the bottom of the page. The left panel scores every active shipment for delivery delay risk; the right panel evaluates every vehicle in the fleet for maintenance urgency. Both panels use a three-tier risk system — Low, Medium, and High — with consistent color coding across the entire dashboard.

Risk level color coding

All risk badges in both panels follow the same color scheme:
Risk levelColor
LowGreen
MediumAmber
HighRed

Predictive delay analysis

The delay panel displays one card per active shipment being scored. Cards are ordered as returned by the intelligence API. Each card contains:
  • Package code — the unique identifier for the shipment
  • ETA — estimated hours remaining until delivery, shown as “ETA Xh to [destination]”
  • Destination — the delivery location name
  • Risk level badge — color-coded Low, Medium, or High in the top-right corner of the card
  • Contributing factors — a row of outline badges listing the conditions that influenced the risk score, such as Weather delay, High traffic, Near deadline, or Distance
The delay panel is informational only. It does not expose an action button. To act on a high-risk shipment, use the rerouting table on the route optimization page to apply a faster route.
If there are no active shipments to score, the panel displays “No active shipments to score.”

Predictive vehicle maintenance

The maintenance panel displays one card per vehicle returned by the intelligence API. Each card surfaces the data an admin needs to decide whether to pull a vehicle from rotation. Each card contains:
  • Vehicle number — the vehicle’s identifier
  • Days since last service — how many days have elapsed since the vehicle’s last recorded maintenance
  • Active load count — the number of shipments currently assigned to the vehicle
  • Risk score badge — a numeric score from 0 to 100 in the top-right corner, color-coded by risk level (e.g. 72/100 in red for a High-risk vehicle)
  • Risk level — reflected by the badge color (green / amber / red)
  • Recommendation text — a plain-language description of what action is advised, such as “Schedule maintenance within 7 days” or “Immediate inspection required”
  • Mark Maintenance button — sets the vehicle’s status to MAINTENANCE

Marking a vehicle for maintenance

1

Review the card

Check the risk score, days since service, active load count, and recommendation text to confirm the vehicle needs attention.
2

Click Mark Maintenance

Press the Mark Maintenance button. The button calls POST /api/operations-intelligence/actions with action: "schedule-maintenance" and the vehicleId.
3

Confirmation and refresh

A success toast confirms the status change. The dashboard reloads, and the vehicle’s status is updated to MAINTENANCE in the system.

Button states

StateConditionLabel
ActiveVehicle status is not MAINTENANCEMark Maintenance
DisabledVehicle status is already MAINTENANCEAlready in Maintenance
LoadingAction is in flightApplying…
Setting a vehicle to MAINTENANCE removes it from eligibility for new shipment assignments. Ensure active loads on the vehicle are reassigned before marking it for maintenance to avoid disrupting in-progress deliveries.
If there are no vehicles to score, the panel displays “No vehicles available to score.”

Build docs developers (and LLMs) love