Commit Graph

13 Commits

Author SHA1 Message Date
6ae0e7b0bf feat: optimización integral y auditoría de rendimiento SIBU 2.0.1 2026-03-01 17:35:13 -05:00
59de2c7c23 Decouple route selection: Map uses persistent store state, Schedules uses local state. Map selection only persists on Map banner. 2026-03-01 12:38:04 -05:00
a092df33f7 Implement Session Persistence: 'Keep me logged in' now works by toggling between localStorage and sessionStorage based on user choice 2026-03-01 12:19:30 -05:00
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
2dd3384882 perf: optimization phases 3-5 2026-02-26 12:50:12 -05:00
f38f99a4c3 fix: refactor auth register to use pinia, clean up MapView obsolete telemetry call 2026-02-25 23:07:14 -05:00
b9a1b6b57f fix: simplify login flow - JWT role instant, no DB queries blocking navigation 2026-02-25 22:47:21 -05:00
963d255ea2 fix: auth flow - logout nuclear, router redirige admin a panel, login sin bloqueo BD 2026-02-25 22:38:03 -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
7cd97365f2 🚀 Feat(Core): Migración oficial y total B a Supabase (Auth, DB, APIs) + Eliminación de Backend Python y Fixes Firebase + Soporte Vite Vercel 2026-02-25 21:01:18 -05:00
4bf75d3302 Fix favorites system, add support for bus stops and tourist trips, and improve UI consistency 2026-02-24 21:55:52 -05:00
0c7aa53c8b Initial commit: SIBU 2.0 MISSION 2026-02-21 09:53:31 -05:00