From a424add8f2b396b1d68db549359e88a15ed624b5 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero
Date: Fri, 30 Jan 2026 20:50:47 +0100
Subject: feat: Add link to view stop details in route details page
---
src/frontend/app/i18n/locales/en-GB.json | 1 +
src/frontend/app/i18n/locales/es-ES.json | 1 +
src/frontend/app/i18n/locales/gl-ES.json | 2 +-
src/frontend/app/routes/routes-$id.tsx | 11 ++++++++++-
4 files changed, 13 insertions(+), 2 deletions(-)
(limited to 'src')
diff --git a/src/frontend/app/i18n/locales/en-GB.json b/src/frontend/app/i18n/locales/en-GB.json
index dab0229..f3d15b3 100644
--- a/src/frontend/app/i18n/locales/en-GB.json
+++ b/src/frontend/app/i18n/locales/en-GB.json
@@ -177,6 +177,7 @@
"choose_trip": "Choose a trip",
"close": "Close",
"trip": "Trip",
+ "view_stop": "View stop",
"trip_count": "{{count}} trips today",
"trip_count_one": "1 trip today",
"trip_count_short": "({{count}} trips)",
diff --git a/src/frontend/app/i18n/locales/es-ES.json b/src/frontend/app/i18n/locales/es-ES.json
index 6972410..ea74031 100644
--- a/src/frontend/app/i18n/locales/es-ES.json
+++ b/src/frontend/app/i18n/locales/es-ES.json
@@ -177,6 +177,7 @@
"choose_trip": "Elige un trayecto",
"close": "Cerrar",
"trip": "Trayecto",
+ "view_stop": "Ver parada",
"trip_count": "{{count}} viajes hoy",
"trip_count_one": "1 viaje hoy",
"trip_count_short": "({{count}} viajes)",
diff --git a/src/frontend/app/i18n/locales/gl-ES.json b/src/frontend/app/i18n/locales/gl-ES.json
index 0e04ce4..28a09e7 100644
--- a/src/frontend/app/i18n/locales/gl-ES.json
+++ b/src/frontend/app/i18n/locales/gl-ES.json
@@ -160,7 +160,7 @@
"trips": "Traxectos",
"choose_trip": "Escolle un traxecto",
"close": "Pechar",
- "trip": "Traxecto"
+ "trip": "Traxecto""view_stop": "Ver parada",
},
"routes": {
"description": "A continuación móstrase unha lista das rutas de autobús urbano cos seus respectivos traxectos.",
diff --git a/src/frontend/app/routes/routes-$id.tsx b/src/frontend/app/routes/routes-$id.tsx
index 6fe0424..f7c69d7 100644
--- a/src/frontend/app/routes/routes-$id.tsx
+++ b/src/frontend/app/routes/routes-$id.tsx
@@ -16,7 +16,7 @@ import {
Source,
type MapRef,
} from "react-map-gl/maplibre";
-import { useParams } from "react-router";
+import { Link, useParams } from "react-router";
import { fetchRouteDetails } from "~/api/transit";
import { AppMap } from "~/components/shared/AppMap";
import {
@@ -538,6 +538,15 @@ export default function RouteDetailsPage() {
)}
+ {selectedStopId === stop.id && (
+
+ {t("routes.view_stop", "Ver parada")}
+
+ )}
+
{selectedStopId === stop.id &&
stop.scheduledDepartures.length > 0 && (
--
cgit v1.3