Add photo carousel to listing cards and fix tap-to-detail

Backend: include first 5 photo URLs from additional_info in GeoJSON
streaming response, with fallback to photo_thumbnail.

Frontend: replace single thumbnail with swipeable embla-carousel on
compact cards. Remove window.open on card tap so clicking opens the
detail bottom sheet instead of navigating to Rightmove.
This commit is contained in:
Viktor Barzin 2026-02-21 19:19:32 +00:00
parent f2e8d7d9f9
commit 4deed9911c
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 87 additions and 14 deletions

View file

@ -16,12 +16,12 @@ from tqdm import tqdm
logger = logging.getLogger("uvicorn.error")
# Columns needed for GeoJSON streaming (excludes routing_info_json, additional_info)
# Columns needed for GeoJSON streaming (excludes routing_info_json)
STREAMING_COLUMNS = [
'id', 'price', 'number_of_bedrooms', 'square_meters',
'longitude', 'latitude', 'photo_thumbnail', 'last_seen',
'agency', 'price_history_json', 'available_from',
'service_charge', 'lease_left',
'service_charge', 'lease_left', 'additional_info',
]