Open benpsmyth opened 1 year ago
Make sure tours are sorted organically!
Logic so far...
...data.filter(record => record[LOCATIONS.FEATURED] || record[TOURS.FEATURED]),
...shuffleArray(data.filter(record => record[LOCATIONS.IMAGES]?.length)),
...data.filter(record => !record[LOCATIONS.IMAGES]?.length),
surface featured tours and locations at the top. then, surface locations with images. shuffle those. then, anything else goes go to the bottom...
Homepage Feed ONLY:
Display "featured" items first (airtable checkbox) Could be submissions or tours
Display a randomized list of submissions that contain photos
Randomize remaining submissions. (continuous scroll-based pagination)