@@ -27,6 +27,7 @@ import androidx.compose.ui.unit.dp
2727import androidx.compose.ui.unit.sp
2828import com.cornellappdev.transit.R
2929import com.cornellappdev.transit.models.Place
30+ import com.cornellappdev.transit.models.PlaceType
3031import com.cornellappdev.transit.models.ecosystem.DayOperatingHours
3132import com.cornellappdev.transit.models.ecosystem.DetailedEcosystemPlace
3233import com.cornellappdev.transit.models.ecosystem.Eatery
@@ -428,4 +429,60 @@ private fun PreviewEcosystemBottomSheet() {
428429 onRemoveAppliedFilter = {},
429430 operatingHoursToString = { _ -> AnnotatedString (" " ) }
430431 )
431- }
432+ }
433+
434+ @Preview(showBackground = true , name = " Favorites with Applied Filters" )
435+ @Composable
436+ private fun PreviewBottomSheetFilteredContentFavorites () {
437+ BottomSheetFilteredContent (
438+ currentFilter = FilterState .FAVORITES ,
439+ staticPlaces = StaticPlaces (
440+ ApiResponse .Success (emptyList()),
441+ ApiResponse .Success (emptyList()),
442+ ApiResponse .Success (emptyList()),
443+ ApiResponse .Success (emptyList())
444+ ),
445+ favorites = setOf (
446+ Place (
447+ latitude = 42.4534 ,
448+ longitude = - 76.4735 ,
449+ name = " Toni Morrison Dining" ,
450+ detail = " Toni Morrison Hall" ,
451+ type = PlaceType .APPLE_PLACE
452+ ),
453+ Place (
454+ latitude = 42.4534 ,
455+ longitude = - 76.4735 ,
456+ name = " Olin Library" ,
457+ detail = " Ho Plaza" ,
458+ type = PlaceType .APPLE_PLACE
459+ ),
460+ Place (
461+ latitude = 42.4480 ,
462+ longitude = - 76.4840 ,
463+ name = " Noyes Community Recreation Center" ,
464+ detail = " North Campus" ,
465+ type = PlaceType .APPLE_PLACE
466+ ),
467+ Place (
468+ latitude = 42.4440 ,
469+ longitude = - 76.4825 ,
470+ name = " Seneca St & Fall Creek Dr" ,
471+ detail = " Bus Stop" ,
472+ type = PlaceType .BUS_STOP
473+ )
474+ ),
475+ navigateToPlace = {},
476+ onDetailsClick = {},
477+ onFavoriteStarClick = {},
478+ onAddFavoritesClick = {},
479+ onFilterButtonClick = {},
480+ appliedFilters = setOf (
481+ FavoritesFilterSheetState .EATERIES ,
482+ FavoritesFilterSheetState .LIBRARIES
483+ ),
484+ onRemoveAppliedFilter = {},
485+ operatingHoursToString = { _ -> AnnotatedString (" " ) }
486+ )
487+ }
488+
0 commit comments