"use client"; import React, { useEffect, useRef, useState } from "react"; import dynamic from "next/dynamic"; import { motion, useMotionValue, useTransform, type MotionValue } from "framer-motion"; import gsap from "gsap"; import { ScrollTrigger } from "gsap/ScrollTrigger"; import { STAGES, N } from "./theme"; const StrategyCanvas = dynamic(() => import("./StrategyCanvas"), { ssr: false }); /** Center of each stage's scroll window (0…1). */ const CENTER = (i: number) => i / (N - 1); /** Persistent top rail: the 5 stages, current one highlighted. */ function StageRail({ active }: { active: number }) { return (
Orders are uploaded and matched against the available fleet, ready for assignment.
The AI runs every routing strategy at the same time — legacy baselines and MileTruth's unified engine.
Every route is solved for distance, then checked against battery range and service SLAs.
Each strategy is graded live on fulfillment, SLA compliance, efficiency and battery feasibility.
EV Aware wins — the best fulfillment with feasible, battery-safe routes for every fleet driver.