From a1ba74cd49b94c0d106c82b2e1f2db5366c8a936 Mon Sep 17 00:00:00 2001 From: Hanzo_dev <2002samudiojohan@gmail.com> Date: Sun, 22 Feb 2026 17:41:50 -0500 Subject: [PATCH] fix: remove duplicate headers, fix i18n keys, unify theme colors in Discover and Schedules views - DiscoverView: removed internal header (duplicate of AppHeader), replaced Tailwind hardcoded colors with CSS theme variables (--bg-primary, --active-color, etc.) - SchedulesView: removed internal header (duplicate of AppHeader), replaced Tailwind hardcoded colors with CSS theme variables - es.json: add missing keys discover.searchPlaceholder, schedules.placeholder, schedules.upcoming, schedules.noSchedules, schedules.types - en.json: same missing keys added for English --- frontend/src/i18n/locales/en.json | 11 +- frontend/src/i18n/locales/es.json | 11 +- frontend/src/views/DiscoverView.vue | 446 +++++++++++++++++++++----- frontend/src/views/SchedulesView.vue | 448 ++++++++++++++++++++++----- 4 files changed, 760 insertions(+), 156 deletions(-) diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 0a6c5d5..5b0bc64 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -70,10 +70,18 @@ "loadingRoutes": "Loading routes...", "noRoutesAvailable": "No routes available", "selectRoute": "Select a route", + "placeholder": "Choose a route...", + "upcoming": "Upcoming departures", + "noSchedules": "No departures scheduled for today", "route": "Route", "schedules": "schedules", "schedule": "schedule", - "departureTime": "Departure time" + "departureTime": "Departure time", + "types": { + "weekday": "Weekday", + "weekend": "Weekend", + "holiday": "Holiday" + } }, "coupons": { "title": "Offers", @@ -134,6 +142,7 @@ "discover": { "title": "Discover", "subtitle": "Explore the best places in Chiriqui", + "searchPlaceholder": "Explore the best places in Chiriqui", "filterLabel": "Filter by area:", "allAreas": "All", "loading": "Searching for treasures...", diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json index 0600133..cd0bf6e 100644 --- a/frontend/src/i18n/locales/es.json +++ b/frontend/src/i18n/locales/es.json @@ -71,10 +71,18 @@ "loadingRoutes": "Cargando rutas...", "noRoutesAvailable": "No hay rutas disponibles", "selectRoute": "Seleccionar una ruta", + "placeholder": "Elige una ruta...", + "upcoming": "Próximas salidas", + "noSchedules": "No hay salidas programadas para hoy", "route": "Ruta", "schedules": "horarios", "schedule": "horario", - "departureTime": "Hora de salida" + "departureTime": "Hora de salida", + "types": { + "weekday": "Entre semana", + "weekend": "Fin de semana", + "holiday": "Festivo" + } }, "coupons": { "title": "Ofertas", @@ -135,6 +143,7 @@ "discover": { "title": "Descubrir", "subtitle": "Explora los mejores lugares de Chiriquí", + "searchPlaceholder": "Explora los mejores lugares en Chiriquí", "filterLabel": "Filtrar por área:", "allAreas": "Todas", "loading": "Buscando tesoros...", diff --git a/frontend/src/views/DiscoverView.vue b/frontend/src/views/DiscoverView.vue index 14fff30..68655f0 100644 --- a/frontend/src/views/DiscoverView.vue +++ b/frontend/src/views/DiscoverView.vue @@ -89,94 +89,92 @@ function getCategoryIcon(category: string) {