feat: add StopsMap and WalkingDirections components for enhanced map functionality

- Implemented StopsMap component to display bus stops on a map using MapLibre GL.
- Integrated walking directions feature in WalkingDirections component to calculate routes from user location to selected bus stop.
- Added geo utility functions for coordinate validation and distance calculation.
- Created route grouping and stop filtering logic in routeGroups module.
- Developed custom hooks for managing stop routes with React Query.
- Added tests for routing and stop functionalities to ensure reliability.
This commit is contained in:
2026-10-08 00:18:10 +03:00
parent 1492f179eb
commit 6fe039cefa
43 changed files with 1518 additions and 59 deletions

View File

@@ -27,6 +27,8 @@ export default defineConfig({
},
workbox: {
globPatterns: ['**/*.{js,css,html,woff2,png,svg,webmanifest}'],
// The map is online-only and loads on demand; keep the offline shell small.
globIgnores: ['**/StopsMap-*', '**/maplibre-gl-worker-*'],
navigateFallbackDenylist: [/^\/api\//],
// API snapshots are kept in IndexedDB, keyed by city and stop.
// The service worker only caches the application shell.