Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plan system ingredients concept #327

Open
johnnycopes opened this issue Apr 25, 2023 · 1 comment
Open

Plan system ingredients concept #327

johnnycopes opened this issue Apr 25, 2023 · 1 comment
Labels
menu-matriarch 👩‍🍳 Specific to Menu Matriarch app research Seeking further information

Comments

@johnnycopes
Copy link
Owner

johnnycopes commented Apr 25, 2023

OVERVIEW

Users shouldn't have to manually enter all their own ingredients from scratch. One way to help users is to have a default collection of common ingredients (likely several thousand) that can be offered to the user.

TECHNICAL PROPOSAL

The /ingredients collection will contain a mix of system and user ingredients. This is the proposed shape of each:

interface SystemIngredientDto {
  id: string;
  name: string;
  type: IngredientType;
}

interface IngredientDto {
  id: string;
  uid: string;
  name: string;
  type: IngredientType;
  dishIds: string[];
}

The most user-friendly way to add a new ingredient would be via a typeahead input in which suggested system ingredients are displayed to the user that match what they're typing. If the user chooses one of these new ingredients, a new user ingredient document is added to the database with the same name and type as the chosen system ingredient. This way, the user now has their own version of the ingredient that they can modify as normal.

@johnnycopes johnnycopes self-assigned this Apr 25, 2023
@johnnycopes johnnycopes added research Seeking further information menu-matriarch 👩‍🍳 Specific to Menu Matriarch app labels Apr 25, 2023
@johnnycopes
Copy link
Owner Author

As explained here, this task is being removed from #302 as the scope has changed and this item is now a separate consideration

@johnnycopes johnnycopes removed their assignment Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
menu-matriarch 👩‍🍳 Specific to Menu Matriarch app research Seeking further information
Projects
None yet
Development

No branches or pull requests

1 participant