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 foods #212

Open
AdamWier opened this issue Sep 28, 2022 · 8 comments
Open

Custom foods #212

AdamWier opened this issue Sep 28, 2022 · 8 comments
Assignees

Comments

@AdamWier
Copy link
Owner

For the moment, we can only add foods that are found in the databases. It would be good to enter foods manually as well.

@RohitShelke10
Copy link

Can you describe the issue in detail, I would like to work on the backend part of this

@AdamWier
Copy link
Owner Author

Hi, @RohitShelkeBot. As it is a mobile app that uses firebase, there is not much backend involved.

To try to reexplain in more detail, currently when adding foods we have a text search field that looks in either the USDA database or Open Food Facts database. It then shows a list of foods found, you select one, input the portion amount and save the food to a meal.
This goal of this github issue would be to bypass the step where we search with a button that goes directly to the food screen with all fields editable, and then that food is saved to the meal using the user input. You can see the fields in question by going to the meal collection and in a document you have the field meal which is an array of food objects with the properties amount, calories, carbs, fats, name, portionDescription, protein. All these properties should be able to entered manually by the user rather than having to be found in a database.

See next comment for some pictures, which should help understand this post.

@AdamWier
Copy link
Owner Author

AdamWier commented Sep 29, 2022

This is the search screen. You get there by logging in, pressing the plus button and then the "Add a food" button. We would ideally add a button to the right of the "Scan barcode" button that says "Manually input food" that goes to the second screen.
20220929_164953

The second screen would look similar to a search result but there would be no portion selector and the values circled would be editable text or number fields. (Including the portionDescription field.)
20220929_165509

@AdamWier
Copy link
Owner Author

For reference, here is what the meal document looks like. I have highlighted a single food
image

@AdamWier
Copy link
Owner Author

Please let me know if this was sufficiently clear and if you have more questions

@RohitShelke10
Copy link

@AdamWier Thanks for the great explanation, I appreciate your efforts, but I'm not proficient in mobile app development or frontend. I'm afraid I won't be able to work on this. Sorry

@AdamWier AdamWier self-assigned this Oct 22, 2022
AdamWier added a commit that referenced this issue Oct 22, 2022
@AdamWier
Copy link
Owner Author

AdamWier commented Nov 5, 2022

Title broken and button broken with error on route params

@AdamWier AdamWier reopened this Nov 5, 2022
@AdamWier
Copy link
Owner Author

AdamWier commented Oct 2, 2023

Reverted while working on upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants