davidhealey / waistline

Libre calorie counter app for Android. Built with Cordova.
567 stars 67 forks source link

Better UX for meals in the Diary #810

Open candroid-man opened 6 months ago

candroid-man commented 6 months ago

I sometimes struggle with separation meals with lots of ingredients with other items.

Screenshot_20240421-230405.png

This is what my Diary looks like after eating a variety of different things for dinner, and it is a little unorganized.

I think a great way of improving this would be to have the meals as collapsible items with ingredients under them.

So for example, say I wanted to add a meal to my Diary. This meal consists of 4 individual ingredients from the "food" section. Instead of doing this:

  1. Bread
  2. Cheese
  3. Meat
  4. Sauce

You could make it more like a hierarchy like this:

In this case "sandwich" is the meal name, and you could remove or add ingredients to it like you already can, but it would all be under "sandwich" which would be collapsible to make it easier to read while other items and meals are present.

davidhealey commented 6 months ago

Use the meals or recipes features for this.

candroid-man commented 6 months ago

This isn't about when you go to add a meal to the diary, it's about better organizing the diary after you add a meal

davidhealey commented 6 months ago

Ah I see. Seems like a reasonable suggestion.

EmilJunker commented 6 months ago

I don't see this happening. The point of a meal is being able to add multiple items to the diary at once, with predefined quantities of each item. After adding a meal, you can freely change the quantities of the individual items and also remove individual items again, without affecting the remaining items of the meal. And this is intended, not a bug (just to be clear). Therefore, in my opinion, the changes proposed above don't really make sense and would be difficult to implement.

If you want your sandwich to be listed in the diary as a single entry, you should use a recipe instead of a meal.

davidhealey commented 6 months ago

If you want your sandwich to be listed in the diary as a single entry, you should use a recipe instead of a meal.

Yeah I think you're right here, a recipe is the way to go.

candroid-man commented 6 months ago

I would argue that a sandwich (for example) doesn't belong in recipes. I have spaghetti in my recipes and it's for an entire pot of spaghetti, and then in meals I divide that into servings.

I think there would still be benefits to collapse meals as well because it makes everything confusing and cluttered without this imo