Skip to content

Show the comment of nutrition diary entries - #1441

Merged
rolandgeider merged 1 commit into
wger-project:masterfrom
golenkovm:nutrition-comment
Dec 3, 2026
Merged

rolandgeider merged 1 commit into
wger-project:masterfrom
golenkovm:nutrition-comment

Conversation

@golenkovm

Copy link
Copy Markdown
Contributor

A logged food can have a comment, for example "eaten at a cafe" or "didn't weigh it, rough estimate". The app already syncs this comment from the server, but the diary never shows it, so it is only visible through the API or the web interface.

This shows the comment as a muted line under the nutrition values of the entry. Entries without a comment look exactly as before. I added a widget test that checks the comment is shown.

Before:
image

After:
image

This is related to the server-side change wger-project/wger#2625

Checks:

  • [Y] Tests for the changes have been added (for bug fixes / features)
  • [Y] Set a 100-character limit to avoid white space diffs (run dart format .)

@rolandgeider
rolandgeider merged commit b1e7110 into wger-project:master Dec 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants