Commit Graph

9 Commits

Author SHA1 Message Date
4d7b472c6c Implement Smart Location: auto-detect user location if preference is enabled, hide location button, and handle permission denial by resetting preference 2026-03-01 12:15:08 -05:00
86726e3dfc fix(pwa): completely destroy service worker cache and fix chunk load errors to stop freezing 2026-02-26 11:05:43 -05:00
82a2c1d903 fix(rendering): handle empty supabase array safely and speed up splash screen 2026-02-26 10:57:55 -05:00
12f5871f6f fix(pwa): force service worker unregistration to distribute latest fixes 2026-02-26 09:22:38 -05:00
d329336020 perf: optimize splash screen loading and remove unused telemetry code 2026-02-26 09:09:25 -05:00
528e3989ef perf: optimize splash screen loading time (parallel map data + JWT role extraction instead of db query) 2026-02-25 23:25:07 -05:00
84055a25de refactor: migrate fully to Supabase, remove Firebase/Render/Python backend
- DELETED: entire backend/ (Python/FastAPI — replaced by Supabase)
- DELETED: old/ directory (obsolete code)
- DELETED: render.yaml, inject_api.py, check_tags.py, PENDING_FOR_TOMORROW.md
- DELETED: frontend/src/firebaseConfig.ts (Firebase Auth replaced by Supabase Auth)
- DELETED: frontend/src/services/apiClient.ts (HTTP client for dead backend)

- MIGRATED services to Supabase native:
  schedulesService, favoritesService, usersService,
  telemetryService (stub), reportsService, analyticsService (stub)

- MIGRATED stores/favorites.ts to Supabase direct queries
- MIGRATED views: SplashScreen, AdminTaxis, AdminDrivers, StrategicAnalytics
- MIGRATED utils/imageUrl.ts to Supabase Storage URLs

- FIXED router/index.ts: guard now uses supabase.auth.getSession()
  instead of old localStorage auth_token (fixes logout + map loading)
- FIXED AuthView.vue: removed aggressive watch({ immediate: true })
  that caused wrong redirects on map route
- FIXED SplashScreen.vue: navigate() now reads Supabase session + role
- FIXED RLS: added INSERT policy on public.users for trigger
- CONFIRMED: admin@sibu.com assigned ADMIN role in Supabase
2026-02-25 21:49:26 -05:00
259bbd1fed feat: update routes with color and direction, improve admin routes view, and update firebase config/auth 2026-02-24 16:39:38 -05:00
0c7aa53c8b Initial commit: SIBU 2.0 MISSION 2026-02-21 09:53:31 -05:00