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
This commit is contained in:
2026-03-04 16:34:47 -05:00
parent ef5955cea2
commit 35e2a6d632
6 changed files with 94 additions and 31 deletions

View File

@ -7,6 +7,7 @@ import { getImageUrl } from '@/utils/imageUrl'
import { analyticsService } from '@/services/analyticsService'
import { useI18n } from 'vue-i18n'
import LoadingBranded from '@/components/common/LoadingBranded.vue'
import FavoriteButton from '@/components/FavoriteButton.vue'
const route = useRoute()
const router = useRouter()
@ -73,6 +74,13 @@ const getTripTypeLabel = (type: string) => {
<h1 class="font-bold text-[var(--text-primary)] text-lg truncate flex-1">
{{ shuttle?.company_name || t('shuttle.detailTitle') }}
</h1>
<FavoriteButton
v-if="shuttle"
item-type="shuttle"
:item-id="shuttle.id"
:item-name="shuttle.company_name || shuttle.origin + ' - ' + shuttle.destination"
:item-image="shuttle.image_url || undefined"
/>
</div>
<!-- Loading -->