From de6f38f26cfb7c311fc9e4fb051191df12b8b042 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Sat, 22 Nov 2025 18:23:33 +0100
Subject: feat: Implement previous trip shape handling in VigoController and
 update related components for improved trip tracking

---
 src/frontend/app/routes/stops-$id.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/frontend/app/routes/stops-$id.tsx')

diff --git a/src/frontend/app/routes/stops-$id.tsx b/src/frontend/app/routes/stops-$id.tsx
index 7b11a95..4d96928 100644
--- a/src/frontend/app/routes/stops-$id.tsx
+++ b/src/frontend/app/routes/stops-$id.tsx
@@ -35,6 +35,8 @@ export interface ConsolidatedCirculation {
     orientationDegrees: number;
     shapeIndex?: number;
   };
+  isPreviousTrip?: boolean;
+  previousTripShapeId?: string;
 }
 
 export const getCirculationId = (c: ConsolidatedCirculation): string => {
@@ -279,6 +281,8 @@ export default function Estimates() {
               line: c.line,
               route: c.route,
               currentPosition: c.currentPosition,
+              isPreviousTrip: c.isPreviousTrip,
+              previousTripShapeId: c.previousTripShapeId,
               schedule: c.schedule
                 ? {
                     shapeId: c.schedule.shapeId,
-- 
cgit v1.3

