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/Controllers/TileController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Enmarcha.Backend/Controllers/TileController.cs') diff --git a/src/Enmarcha.Backend/Controllers/TileController.cs b/src/Enmarcha.Backend/Controllers/TileController.cs index ef71b67..300f9db 100644 --- a/src/Enmarcha.Backend/Controllers/TileController.cs +++ b/src/Enmarcha.Backend/Controllers/TileController.cs @@ -134,7 +134,7 @@ public class TileController : ControllerBase features.Add(feature); }); - foreach (var feature in features.OrderBy(f => f.Attributes["transitKind"] as string switch + foreach (var feature in features.OrderBy(f => (f.Attributes["transitKind"] as string) switch { "bus" => 3, "train" => 2, -- cgit v1.3