From 8182a08f60e88595984ba80b472f29ccf53c19bd Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 7 Sep 2025 17:29:53 +0200 Subject: feat: Enhance development scripts and add Angular support - Added new scripts for Angular development and formatting in package.json. - Updated workspaces to include Angular frontend. - Modified backend project file to exclude specific views from content inclusion. - Updated logging settings in appsettings.json to include HttpClient warnings. - Refactored TimetableTable component for cleaner rendering. - Removed UpdateNotification component and related service worker management code. - Simplified service worker registration in root component. - Cleaned up settings page by removing update management functionality. - Improved stoplist component structure for better readability. - Updated PWA worker to streamline caching and response handling. --- src/frontend/app/routes/stoplist.tsx | 95 ++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 47 deletions(-) (limited to 'src/frontend/app/routes/stoplist.tsx') diff --git a/src/frontend/app/routes/stoplist.tsx b/src/frontend/app/routes/stoplist.tsx index 1e55dc9..885a0da 100644 --- a/src/frontend/app/routes/stoplist.tsx +++ b/src/frontend/app/routes/stoplist.tsx @@ -69,8 +69,9 @@ export default function StopList() { return stopsList.reverse(); }, [data]); - if (data === null) + if (data === null) { return

{t("common.loading")}

; + } return (
@@ -83,60 +84,60 @@ export default function StopList() { -
- - - {searchResults && searchResults.length > 0 && ( -
-

- {t("stoplist.search_results", "Resultados de la búsqueda")} -

- -
- )} + type="text" + placeholder={randomPlaceholder} + id="stopName" + onChange={handleStopSearch} + /> + + + {searchResults && searchResults.length > 0 && (
-

{t("stoplist.favourites")}

- - {favouritedStops?.length === 0 && ( -

- {t( - "stoplist.no_favourites", - "Accede a una parada y márcala como favorita para verla aquí.", - )} -

- )} - +

+ {t("stoplist.search_results", "Resultados de la búsqueda")} +

- - {recentStops && recentStops.length > 0 && ( -
-

{t("stoplist.recents")}

- - -
+ )} + +
+

{t("stoplist.favourites")}

+ + {favouritedStops?.length === 0 && ( +

+ {t( + "stoplist.no_favourites", + "Accede a una parada y márcala como favorita para verla aquí.", + )} +

)} + +
+ + {recentStops && recentStops.length > 0 && (
-

{t("stoplist.all_stops", "Paradas")}

+

{t("stoplist.recents")}

+ + +
+ )} + +
+

{t("stoplist.all_stops", "Paradas")}