Skip to content

Drinks and meals count each other - #31

Merged
gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd
Oct 21, 2026
Merged

gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner
  • A meal that names a drink always becomes drink entries, even with Drinks switched off.
  • A drink logged on the Drinks card, the Today tile or by the coach now also adds a snack to the meal log, with the drink's calories and carbs. This goes straight to the table, so it doesn't switch nutrition tracking on.
  • Removing one of those drinks (delete or undo) shrinks its snack, and removes it with the last drink. A meal the user typed in is left alone.
  • DrinkType.carbsG, plus a test.

Generated by Claude Code

A meal that names a drink now always becomes drink entries, whether or not
Drinks is switched on. A drink logged on the Drinks card, the Today tile or
by the coach also lands in the meal log as a snack with its calories and
carbs, so the day's calorie count includes it. Removing one of those drinks
shrinks or removes its snack; a meal the user typed is left alone.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit dee6bb1 into main Oct 21, 2026
2 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