Commit Graph

11 Commits

Author SHA1 Message Date
35e2a6d632 fix(favorites): adjust favorite button visibility and functionality
- removed favorite button from Discover cards

- added call button for taxis in Favorites view

- added favorite button in Shuttle details

- added Shuttles category in Favorites view
2026-03-04 16:34:47 -05:00
ef5955cea2 fix: corregir race condition en favoritos con Supabase INITIAL_SESSION 2026-03-04 16:03:11 -05:00
84e98b6213 feat: replace obsolete spinners with branded UI loading component 2026-03-04 11:17:16 -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
1f0229461b chore: build and UI fixes 2026-02-26 20:58:10 -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
4bf75d3302 Fix favorites system, add support for bus stops and tourist trips, and improve UI consistency 2026-02-24 21:55:52 -05:00
779fc7136c feat: redesign FavoritesView with card chips, type-specific cards, heart button
- Replace dropdown filter with horizontal scrollable chip pills (Todos/Rutas/Taxis/Negocios/Eventos)
- Differentiated cards per item type: bus routes with yellow icon, taxis with photo, businesses in 2-col grid with image, events with gradient icon
- Heart button to remove favorites (instead of X button) - more friendly UX
- Improved empty state with SVG heart illustration and 'Explorar ahora' CTA
- Full dark/light mode support via CSS variables (no hardcoded colors)
- Sticky chips row for easy filtering while scrolling
2026-02-23 13:42:18 -05:00
0c7aa53c8b Initial commit: SIBU 2.0 MISSION 2026-02-21 09:53:31 -05:00