Commit Graph

7 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
a8eaad7f35 perf: complete performance audit optimizations 2026-02-26 22:17:56 -05:00
10cb37c866 fix(coupons): remove duplicate business cols from coupons in PromoterDashboard and CouponsView 2026-02-26 15:36:32 -05:00
35a29fbb0f chore: migrate AdminShuttles and old API endpoints from Axios/Render to Supabase client, remove Axios 2026-02-26 14:51:03 -05:00
ba7631dc9c fix: API_URL not defined in shuttle/admin views + fix shuttle card image display 2026-02-26 11:46:37 -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
0c7aa53c8b Initial commit: SIBU 2.0 MISSION 2026-02-21 09:53:31 -05:00