Giter VIP home page Giter VIP logo

cocktails's People

Contributors

dependabot[bot] avatar mgeraci avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cocktails's Issues

Shareable private urls

Recipes that are private should have a way of generating a unique-but-hard-to-guess url for sharing that doesn't require authentication.

Dedupe ingredient results

Recipes with a string listed twice in the ingredient list (e.g., Basil Leaves and Sprig of Basil) show up in search once for each instance of the string's use. Recipes should be deduplicated before returning the list in search.

IMG_8050

Consider alcohol categories or inheritance

If you search for an ingredient like "aquavit", you get a nice list of recipes that have any ingredient that has that string in it. But if you go to the ingredients page and click on the ingredient "aquavit", you don't get most of the recipes, because most of them have specific types of aquavit — therefore the ingredient does not match.

One solution could be to change the way the ingredient page works to be more like search, and maybe that's a really easy solution. Another idea could be to add some sort of inheritance to ingredients, so specific types of liquor could inherit from a base class of that ingredient type. 

Consider recipe categories

Certain categories would be:

  • recipes
  • ingredients
  • large format

Other possibilities within recipes could include:

  • aperitifs
  • long drinks
  • cordials and fancy mixers

New recipes with existing names can cause url conflicts

The app is smart enough to display recipes that have the same name with the source appended (e.g., Mai Tai (Smugger's Cove) and Mai Tai (Speakeasy)). However, when entering a recipe, the url slug for it is automatically generated from the recipe name, and nothing there knows about previously existing recipes with the same name. This can yield a conflict; the recipe is added successfully, but going to the url throws a 500 as django doesn't know which recipe to return.

The safest solution would seem to be a recipe-save-time check for the uniqueness of the slug. It could even programatically add the source as a suffix if there's a conflict! Or just add -2 or something.

Separately, it may be worth not having the app 500 in this case, but if the save-time solution is solid that may not be necessary.

Add optional “serves” field

For recipes that make a batch of drinks, it would be nice to have an optional field that tells the user how many drinks (or what volume) the recipe makes.

leaking authenticated recipes

it seems like clicking an ingredient, like "orange", when not authenticated is leaking authenticated recipes. you still can't read the recipes, but this gives you the list.

Search should not match substrings

If you search for gin, the recipe Bufala Negra is returned, which contains the ingredient ginger ale. It may be better to just return full word matches.

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.