Skip to content

Commit 4ead32c

Browse files
committed
fix: add hard-coded descriptions for the 7 eateries missing about sections
1 parent dcb808b commit 4ead32c

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

app/src/main/java/com/cornellappdev/transit/ui/components/home/EateryDetailsContent.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import com.cornellappdev.transit.ui.theme.TransitBlue
2727
import com.cornellappdev.transit.util.StringUtils.createDeepLink
2828
import com.cornellappdev.transit.util.TimeUtils.isOpenAnnotatedStringFromOperatingHours
2929
import com.cornellappdev.transit.util.TimeUtils.rotateOperatingHours
30+
import com.cornellappdev.transit.util.getAboutContent
3031

3132
@Composable
3233
fun EateryDetailsContent(
@@ -67,6 +68,7 @@ fun EateryDetailsContent(
6768

6869
val aboutText = eatery.shortAbout
6970
?.takeIf { it.isNotBlank() }
71+
?: getAboutContent(eatery.name).takeIf { it.isNotBlank() }
7072
?: "This is one of Cornell's many eateries."
7173

7274
Text(

app/src/main/java/com/cornellappdev/transit/util/ContentConstants.kt

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@ package com.cornellappdev.transit.util
66
*/
77
fun getAboutContent(key: String): String {
88
val aboutContent = buildMap {
9-
put("104West!", "Cornell's kosher and multicultural dining room is STAR-K and STAR-D certified.")
10-
put("Becker House Dining Room", "Dining room located in Carl Becker House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
11-
put("Cook House Dining Room", "Dining room located in Alice Cook House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
12-
put("Jansen's Dining Room at Bethe House", "Dining room located in Hans Bethe House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
13-
put("Keeton House Dining Room", "Dining room located in William Keeton House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
14-
put("Morrison Dining", "Choose your own culinary adventure at Cornell's newest dining room.")
15-
put("North Star Dining Room", "Dining room located in Appel Commons on North Campus.")
16-
put("Okenshields", "Dining room located in Willard Straight Hall on Central Campus.")
17-
put("Risley Dining Room", "Risley is our gluten-free, tree nut free and peanut free dining room under the AllerCheck™\uFE0F approved by MenuTrinfo®\uFE0F program, in Risley Residential College on North Campus.")
18-
put("Rose House Dining Room", "Dining room located in Flora Rose House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
9+
put("Terrace Restaurant", "The Terrace often features five to six made-to-order options, such as burritos, pho, gyros, and more throughout the day.")
10+
put("Mac's Café", "Mac's features grab-and-go deli sandwiches, pizza, chopped salads and healthy smoothies for those looking for a quick bite.")
11+
put("Temple of Zeus", "Serving up fresh soups, salads, and sandwiches for students and faculty.")
12+
put("Gimme Coffee", "Cappuccinos, hot coffee, and pastries are available here Monday-Friday from 8am-3pm!")
13+
put("Louie's Lunch", "Louie's Lunch is a food truck featuring an extensive menu with subs, wraps, salads, milkshakes, cajun fries, and much more.")
14+
put("Anabel's Grocery", "Anabel's Grocery is a student-run nonprofit grocery store that provides fresh, nutritious, and affordable food to Cornell students.")
15+
put("Free Food Fridge", "The Free Food Fridge stocks excess food from campus cafes and leftover food from campus events to prevent it from being wasted.")
16+
// put("104West!", "Cornell's kosher and multicultural dining room is STAR-K and STAR-D certified.")
17+
// put("Becker House Dining Room", "Dining room located in Carl Becker House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
18+
// put("Cook House Dining Room", "Dining room located in Alice Cook House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
19+
// put("Jansen's Dining Room at Bethe House", "Dining room located in Hans Bethe House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
20+
// put("Keeton House Dining Room", "Dining room located in William Keeton House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
21+
// put("Morrison Dining", "Choose your own culinary adventure at Cornell's newest dining room.")
22+
// put("North Star Dining Room", "Dining room located in Appel Commons on North Campus.")
23+
// put("Okenshields", "Dining room located in Willard Straight Hall on Central Campus.")
24+
// put("Risley Dining Room", "Risley is our gluten-free, tree nut free and peanut free dining room under the AllerCheck™\uFE0F approved by MenuTrinfo®\uFE0F program, in Risley Residential College on North Campus.")
25+
// put("Rose House Dining Room", "Dining room located in Flora Rose House on West Campus. Open only to residents from 6-7pm Wednesdays for House Dinners.")
1926
put("Helen Newman", "Helen Newman Hall features a Pool, two-full sized Courts for Basketball/Volleyball/Badminton, a classroom and a dance studio where many Group Fitness classes, Physical Education classes, and club practices are held, a 16-lane Bowling Center and a Fitness Center. Helen Newman is also the home to the majority of the Recreational Services Administration Offices.")
2027
put("Toni Morrison", "The Toni Morrison Fitness Center is located in the basement of Toni Morrison Hall.")
2128
put("Noyes", "The Noyes Fitness Center is located on the second floor of the Noyes Community Recreation Center, adjacent to Jansen's Market.")

0 commit comments

Comments
 (0)