From a6ec0e52ecb33915cc4c4b22df1d2512ab9b0111 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 19:44:50 +0100 Subject: PWA: use standalone display mode and disable scroll on modal sheets (#82) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> --- src/frontend/app/routes/stops-$id.tsx | 40 +++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 14 deletions(-) (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 ea60da7..7d533a5 100644 --- a/src/frontend/app/routes/stops-$id.tsx +++ b/src/frontend/app/routes/stops-$id.tsx @@ -27,7 +27,6 @@ export interface ConsolidatedCirculation { }; } - interface ErrorInfo { type: "network" | "server" | "unknown"; status?: number; @@ -39,11 +38,14 @@ const loadConsolidatedData = async ( stopId: string, ): Promise => { const regionConfig = getRegionConfig(region); - const resp = await fetch(`${regionConfig.consolidatedCirculationsEndpoint}?stopId=${stopId}`, { - headers: { - Accept: "application/json", + const resp = await fetch( + `${regionConfig.consolidatedCirculationsEndpoint}?stopId=${stopId}`, + { + headers: { + Accept: "application/json", + }, }, - }); + ); if (!resp.ok) { throw new Error(`HTTP ${resp.status}: ${resp.statusText}`); @@ -232,9 +234,7 @@ export default function Estimates() { {stopData && stopData.lines && stopData.lines.length > 0 && ( -
+
{stopData.lines.map((line) => (
@@ -244,18 +244,30 @@ export default function Estimates() { )}
- {t("estimates.experimental_feature", "Experimental feature")} -

{t("estimates.experimental_description", "This view uses consolidated data from multiple real-time sources. This feature is experimental and may not be completely accurate.")}

+ + {t("estimates.experimental_feature", "Experimental feature")} + +

+ {t( + "estimates.experimental_description", + "This view uses consolidated data from multiple real-time sources. This feature is experimental and may not be completely accurate.", + )} +

{stopData && }
- {data ? (<> - - ) : null} + {data ? ( + <> + + + ) : null}
-
); -- cgit v1.3