import React, { useState, useEffect } from 'react'; import * as API from '../api.js'; import ConfidenceArc from './ConfidenceArc.jsx'; export default function ETATruthView({ onBack }) { const [feed, setFeed] = useState({ raw_eta_min: 28, smoothed_eta_min: 26, is_jitter: true, confidence_score: 0.94, explanation: "Transient GPS velocity noise suppressed by learned RF smoother" }); const [activeMode, setActiveMode] = useState('hyperflow'); // 'hyperflow' or 'raw' useEffect(() => { const ws = API.connectETALive('demo_order_1024', (data) => { if (data) setFeed(data); }); return () => { try { ws.close(); } catch {} }; }, []); return (
Standard food apps trigger an average of 113 erratic ETA display jumps per 100 orders due to raw GPS velocity noise. HyperFlow uses a Random Forest classifier to distinguish true delivery delays from transient GPS jitter.
Patia Warehouse ➔ Prasanti Vihar Segment
{feed.raw_eta_min} min
Contains un-gated GPS velocity noise & jump artifacts
{feed.smoothed_eta_min} min
Velocity-normalized display window