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

Custom Food constructed from individual meals #15

Open
beekama opened this issue Mar 23, 2022 · 2 comments
Open

Custom Food constructed from individual meals #15

beekama opened this issue Mar 23, 2022 · 2 comments
Labels
bug Something isn't working enhancement New feature or request needs-db-scheme-modification

Comments

@beekama
Copy link
Owner

beekama commented Mar 23, 2022

Up to now, food can only be created as a whole from scratch. This means that for the whole food, the nutritional values have to be determined and commuted independently.
Another way to create a meal is to create foodgroups, but you can't save them.

We need:

  • option within create-custom-food that lets us select to create a foodgroup (and name/save it)
  • perhaps also the option to save a foodgroup afterwards (from journal)
@FAUSheppy FAUSheppy self-assigned this May 24, 2022
@FAUSheppy
Copy link
Collaborator

Implemented as:

  • Button in Journal, saves group as loggedAt = -1
  • is Listed in custom foods
  • when clicked in custom foods, redirects to the group overview of the journal with an extra boolean isTemplate to differentiate it from editing "real" logged groups

Todo:

  • implement delete meachnism in CustomFoodsOverview

Maybe todo:

  • add a good group name section to the database
  • add a isTemplate to the database for good meassure

Commits:
c29a8d3

@FAUSheppy
Copy link
Collaborator

3e4c5f3

Bug: Can save Food groups as templates from Journal when in Edit mode (aka, create->go back to journal->go into group again).

@FAUSheppy FAUSheppy added the bug Something isn't working label May 30, 2022
@FAUSheppy FAUSheppy removed their assignment Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request needs-db-scheme-modification
Projects
None yet
Development

No branches or pull requests

2 participants