Commit Graph

11 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
b90eb83acb feat(UI): actualización de colores de ruta a amarillo y fix navegación transporte 2026-02-27 10:57:42 -05:00
c9a260ab23 feat(map): clean stop markers and route dimming 2026-02-26 22:05:55 -05:00
34a73f0f94 fix(admin): nav issues and blank screens fix 2026-02-26 16:20:59 -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
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
2b7e193906 perf: optimize build — chunk splitting, remove VueDevTools from prod, fix firebase-tools to devDeps
- vite.config.ts: Remove VueDevTools from production build (dev only)
- vite.config.ts: Add manualChunks for firebase, charts, pdf, vue, maps vendors
- vite.config.ts: Increase chunkSizeWarningLimit to 700KB for Google Maps
- package.json: Move firebase-tools from dependencies to devDependencies
- router/index.ts: Add webpackChunkName groups (transport, discover, user, admin, roles)
- Clean up build log files (build_debug.txt, build_error*.txt, etc.)

Build time improvement: chunks now load on demand per user role
2026-02-22 16:19:27 -05:00
0c7aa53c8b Initial commit: SIBU 2.0 MISSION 2026-02-21 09:53:31 -05:00