Giter Site home page Giter Site logo

csv2menu's People

Contributors

enric1994 avatar juanjo3ns avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

csv2menu's Issues

Items with no category should be added at the end

On app.py

# Only add item if at least it has category and name
        for item in raw_items:
            category = item['category']
            name = item['name']
            if not category == '' and not name == '':
                category_to_items[category].append(item)

We should add items with no category (e.g. water) at the end.
Many users won't define category for some items like water and bread.

Non-Google users form

import requests

headers = {
    'Content-Type': 'text/plain',
    'Useremail': '[email protected]',
    'Locale': 'es-ES',
    'Restaurantname': 'restaurant1',
    'Restaurantaddress': 'address1',
    'Country': 'counrty1',
    'Userphone': 'phone1'
}
url = "https://api.godigital.menu/sign_in_external"

response = requests.post(url, headers=headers)

print(response.text)

Icons not working on the cloud

See app.py ICONS_FILEPATH = '../src/static/icons'
We can upload them and use the URL instead of the path. Or don't use icons

New column: display

This will be the first column of the spreadsheet. It indicates if the item will be presented in the final menu.
This feature is useful to disable items and avoid re-writing them when they are available again.

The values of this column are 'YES'/'SI'/'OUI'/etc and 'NO'
The items with without an affirmative text in this column won't be displayed

Pop-up offering tracking

The following code tracks the customer and the time:

import requests

headers = {
    'Content-Type': 'text/plain',
    'restaurantname': 'Example Restaurant',
    'restaurantid': '12345',
    'customeremail': '[email protected]'
}
url = "https://api.godigital.menu/tracking"

response = requests.post(url, headers=headers)

print(response.text)

Extra info tab. Look & feel

  1. The arrow should be after the name of the item: Chicken wings v
  2. The format of the arrow is good but it should be slightly smaller
  3. The description should be visible all the time.
  4. The icons are hard to identify when using a smartphone, they are too small. We can try to 1) Make them bigger and show them in a grid of 4x4 (including vegetarian and vegan). But honestly I icons are very hard to understand and we should add a legend (which will make the menu less elegant). 2)Or forget the icons and show the the names of only the enabled ones using a comma separated list.
    5.The arrow should point upwards after clicking it and downwards when is not enabled
  5. Vegan and vegetarian should appear in the same way as allergens
  6. The extra info should appear in the following order: Comments, allergens, calories.
  7. It should be easier to differentiate the comments, description and calories. Perhaps using bold or different fonts
  8. The price should appear on the same height that the item name. At the moment it is displayed slightly below.

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.