From ee69c62adc5943a1dbd154df5142c0e726bdd317 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 13 Mar 2026 16:49:10 +0100 Subject: feat(routes): add realtime estimates panel with pattern-aware styling - New GET /api/stops/estimates endpoint (nano mode: tripId, patternId, estimate, delay only) - useStopEstimates hook wiring estimates to routes-$id stop panel - Pattern-aware styling: dim schedules and estimates from other patterns - Past scheduled departures shown with strikethrough instead of hidden - Persist selected pattern in URL hash (replace navigation, no history push) - Fix planner arrivals using new estimates endpoint --- src/Enmarcha.Backend/Services/ArrivalsPipeline.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Enmarcha.Backend/Services/ArrivalsPipeline.cs') diff --git a/src/Enmarcha.Backend/Services/ArrivalsPipeline.cs b/src/Enmarcha.Backend/Services/ArrivalsPipeline.cs index 6d8c2c0..9e44535 100644 --- a/src/Enmarcha.Backend/Services/ArrivalsPipeline.cs +++ b/src/Enmarcha.Backend/Services/ArrivalsPipeline.cs @@ -20,6 +20,12 @@ public class ArrivalsContext /// public bool IsReduced { get; set; } + /// + /// Nano mode: skip all enrichment except real-time estimates. + /// Processors that populate shapes, marquee, next stops, and usage should no-op when true. + /// + public bool IsNano { get; set; } + public Position? StopLocation { get; set; } public required List Arrivals { get; set; } -- cgit v1.3