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

Add ability to show goal progress and remaining nutrition allowance in diary bottom bar #567

Merged
merged 6 commits into from
Apr 23, 2022

Conversation

EmilJunker
Copy link
Contributor

This PR adds the ability to see your goal progress and remaining nutrition allowance in the diary bottom bar.

Here is an example of the diary bottom bar where

  • the carbs goal has not been reached yet,
  • the sugars goal has already been overshot, and
  • the fiber goal has also been overshot (but it's a minimum goal, so that's a good thing)

localhost_

If you toggle the view by tapping on the diary bottom bar, it shows this:

  • the carbs goal is about 90% complete (you need another 35.56g of carbs to reach it),
  • the sugars goal has been overshot by about 40%, (you ate 42.6g too much) and
  • the fiber goal has been overshot by about 10% (you ate 3.2g too much, but that's a good thing)

localhost_ (1)

And this is how it looks in dark mode:

localhost_ (2)

You can toggle between the views by tapping on the bottom bar. This does not interfere with the ability to swipe left and right.

Closes #565. Closes #442. Closes #324.

@davidhealey
Copy link
Owner

davidhealey commented Apr 23, 2022

Thank @EmilJunker I have some plans to overhaul the nutritional display in the diary which will include similar functionality. But as I probably won't get around to doing that until at least next year this is a very welcome addition!

@davidhealey davidhealey merged commit f9e2e6e into davidhealey:master Apr 23, 2022
@EmilJunker EmilJunker deleted the diary-nutrition-progress branch April 23, 2022 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants