Giter VIP home page Giter VIP logo

Comments (6)

elijahverdoorn avatar elijahverdoorn commented on August 26, 2024 2

I want to keep the capabilities in there. I like the thinking that @drewvolz is presenting, and lobbying bonapp for a more up-to-date menu is something that SGA easily has the power to do, especially if there is a strong user base that we can back up with our own data. In terms of using a native view, I'd support the idea but propose that we handle bigger issues for now, and let one of my team members take this on as a "first change" project.

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

Here's a sample menu file:

{
  "days": [
    {
      "date": "2016-08-16",
      "cafes": {
        "261": {
          "name": "Stav Hall",
          "menu_id": "120128",
          "dayparts": [
            [
              {
                "starttime": "10:30",
                "endtime": "14:00",
                "id": "3",
                "label": "Lunch",
                "abbreviation": "L",
                "stations": [
                  {
                    "order_id": "0001-1117",
                    "id": "1117",
                    "label": "soup",
                    "price": "",
                    "note": "",
                    "soup": 0,
                    "items": [
                      "5547114"
                    ]
                  },
                  {
                    "order_id": "0006-492",
                    "id": "492",
                    "label": "pasta",
                    "price": "",
                    "note": "",
                    "soup": 0,
                    "items": [
                      "5539728",
                      "5539735",
                      "5547619",
                      "5547643"
                    ]
                  },
                  {
                    "order_id": "0007-1122",
                    "id": "1122",
                    "label": "grill",
                    "price": "",
                    "note": "",
                    "soup": 0,
                    "items": [
                      "5539742",
                      "5539748",
                      "5539754",
                      "5539761",
                      "5539767"
                    ]
                  }
                ]
              },
              {
                "starttime": "16:30",
                "endtime": "19:30",
                "id": "4",
                "label": "Dinner",
                "abbreviation": "D",
                "stations": [
                  {
                    "order_id": "0001-1117",
                    "id": "1117",
                    "label": "soup",
                    "price": "",
                    "note": "",
                    "soup": 0,
                    "items": [
                      "5547114"
                    ]
                  },
                  {
                    "order_id": "0004-1118",
                    "id": "1118",
                    "label": "tortilla",
                    "price": "",
                    "note": "",
                    "soup": 0,
                    "items": [
                      "5539786"
                    ]
                  },
                  {
                    "order_id": "0006-492",
                    "id": "492",
                    "label": "pasta",
                    "price": "",
                    "note": "",
                    "soup": 0,
                    "items": [
                      "5539728",
                      "5539735"
                    ]
                  }
                ]
              }
            ]
          ]
        }
      }
    }
  ],
  "items": {
    "5539728": {
      "id": "5539728",
      "label": "red wine marinara",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "4": "vegan",
        "9": "made without gluten-containing ingredients"
      },
      "ordered_cor_icon": {
        "0004-0004": {
          "id": "4",
          "label": "vegan"
        },
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@pasta</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539735": {
      "id": "5539735",
      "label": "parmesan alfredo",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "1": "vegetarian"
      },
      "ordered_cor_icon": {
        "0005-0001": {
          "id": "1",
          "label": "vegetarian"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@pasta</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5547619": {
      "id": "5547619",
      "label": "balsamic grilled chicken",
      "description": "",
      "zero_entree": "0",
      "cor_icon": [],
      "ordered_cor_icon": [],
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@pasta</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5547643": {
      "id": "5547643",
      "label": "local roasted vegetables",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "4": "vegan",
        "9": "made without gluten-containing ingredients"
      },
      "ordered_cor_icon": {
        "0004-0004": {
          "id": "4",
          "label": "vegan"
        },
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@pasta</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5547114": {
      "id": "5547114",
      "label": "new england clam chowder",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "3": "seafood watch"
      },
      "ordered_cor_icon": {
        "0002-0003": {
          "id": "3",
          "label": "seafood watch"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@soup</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539742": {
      "id": "5539742",
      "label": "balsamic grilled chicken thighs",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "9": "made without gluten-containing ingredients"
      },
      "ordered_cor_icon": {
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@grill</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539748": {
      "id": "5539748",
      "label": "grilled hamburgers",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "9": "made without gluten-containing ingredients"
      },
      "ordered_cor_icon": {
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@grill</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539754": {
      "id": "5539754",
      "label": "hebrew national hot dogs",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "9": "made without gluten-containing ingredients",
        "11": "kosher"
      },
      "ordered_cor_icon": {
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        },
        "0009-0011": {
          "id": "11",
          "label": "kosher"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@grill</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539761": {
      "id": "5539761",
      "label": "malibu burgers",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "4": "vegan"
      },
      "ordered_cor_icon": {
        "0004-0004": {
          "id": "4",
          "label": "vegan"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@grill</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539767": {
      "id": "5539767",
      "label": "crispy potatoes",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "4": "vegan",
        "9": "made without gluten-containing ingredients"
      },
      "ordered_cor_icon": {
        "0004-0004": {
          "id": "4",
          "label": "vegan"
        },
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@grill</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    },
    "5539786": {
      "id": "5539786",
      "label": "shrimp and grits with smoked hatch green chillies",
      "description": "",
      "zero_entree": "0",
      "cor_icon": {
        "3": "seafood watch",
        "9": "made without gluten-containing ingredients"
      },
      "ordered_cor_icon": {
        "0002-0003": {
          "id": "3",
          "label": "seafood watch"
        },
        "0007-0009": {
          "id": "9",
          "label": "made without gluten-containing ingredients"
        }
      },
      "price": "",
      "nutrition": {
        "kcal": "",
        "well_being": "",
        "well_being_image": ""
      },
      "special": 1,
      "tier3": 0,
      "rating": "",
      "options": [],
      "station": "<strong>@tortilla</strong>",
      "nutrition_link": "",
      "sub_station_id": "",
      "sub_station": ""
    }
  },
  "cor_icons": {
    "4": {
      "sort": "4",
      "label": "vegan",
      "description": "Vegan: Contains absolutely no animal or dairy products.",
      "image": "http://legacy.cafebonappetit.com/assets/cor_icons/menu-item-type-668e3c.png?v=1470070467",
      "is_filter": "Y"
    },
    "9": {
      "sort": "7",
      "label": "made without gluten-containing ingredients",
      "description": "Made without Gluten-Containing Ingredients. Due to our open kitchens that handle gluten, we cannot guarantee that items made without gluten-containing ingredients are “gluten-free,” as defined by the FDA.  We make every effort to avoid gluten cross-contact; however there is always the potential for cross-contact with other gluten-containing food items, particularly in our self-serve facilities. We encourage guests to speak to the chef or manager regarding any questions about ingredients.",
      "image": "http://legacy.cafebonappetit.com/assets/cor_icons/menu-item-type-ce9d00.png?v=1470070466",
      "is_filter": "Y"
    },
    "1": {
      "sort": "5",
      "label": "vegetarian",
      "description": "Vegetarian: Contains no meat, fish, poultry, shellfish or products derived from these sources but may contain dairy or eggs",
      "image": "http://legacy.cafebonappetit.com/assets/cor_icons/menu-item-type-c9d18b.png?v=1470070467",
      "is_filter": "Y"
    },
    "3": {
      "sort": "2",
      "label": "seafood watch",
      "description": "Seafood Watch: Contains seafood that meets the Monterey Bay Aquarium&#039;s Seafood Watch guidelines for commercial buyers.",
      "image": "http://legacy.cafebonappetit.com/assets/cor_icons/menu-item-type-43c4b7.png?v=1470070468",
      "is_filter": "Y"
    },
    "11": {
      "sort": "9",
      "label": "kosher",
      "description": "Kosher: Contains only ingredients prepared in accordance with Jewish Dietary Law",
      "image": "http://legacy.cafebonappetit.com/assets/cor_icons/menu-item-type-5998c9.png?v=1470070467",
      "is_filter": "Y"
    }
  }
}

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

A few suggestions I have found and believe we could tweak

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

I also want to raise the question of do we really want to provide the Stav Hall menu if it is full of inaccurate data every day? Having followed it for the past few years, I have been misled by dietary labels (vegetarian/vegan/gluten-free) being misplaced, missing, or flat out incorrect. I also have anticipated food listed on this menu only to discover it was not part of the actual menu more times than I can count. It appears as if it is not the menu they care the most about updating. While the Stav Menu is one of my favorite utilities, the data is not incredibly useful anymore.

But there is a counter-side. If people pay attention to this data, and then enough comments are generated that the info is inaccurate, perhaps Bon App will provide more attention to making sure the data reflects their actual prepared menu. I am not sure, but that could be the counterargument to keeping it. If I had analytics on how many unique visitors accessed the menu portion, I could make a stronger argument one way versus the other.

from aao-react-native.

hawkrives avatar hawkrives commented on August 26, 2024

I intended to propose this for a future update – v2.1 if you will – although I might have lost that in my editing.

So I'm definitely up for marking this for someone to handle on your team.

from aao-react-native.

drewvolz avatar drewvolz commented on August 26, 2024

We have tried adding the following URLs to the URL exception list (URLs that are not accessed via https yet the menu ceases to load new URLs that we do not cover. At any moment, this view could hit an App Transport Security error most likely resulting from a fresh URL being used on that page. Other WebViews are prone to this flaw, too as they include other URLs from outside of our known sources.

  • bamco.com
  • stolaf.cafebonappetit.com
  • legacy.cafebonappetit.com
  • template.cafebonappetit.com
  • hub.cafebonappetit.com

How are we going to use our web views, and not fall into a pit of exception URLs?

from aao-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.