Repository navigation
Full coach brief on tap; next-meal ideas that learn preferences - #18
Merged
Merged
Conversation
Today: tapping the brief under the score rings opened the chat, not the brief, and the line is cut at three lines. It now opens a sheet with the whole brief (title, body, chips) and an "Ask the coach about it" button. Nutrition: once a third of the day's target is eaten, a "Next meal idea" card suggests a plate of everyday Brazilian food and common fruit (arroz e feijão, frango, tilápia, tapioca, cuscuz, banana, maçã…) sized to the calories left and the slot's usual share, protein first when short of the target. "Log this" logs it with its macros; "Other ideas" opens the coach with the suggestion. MealSuggester is rules over a small catalog, so the numbers add up and it works without an AI key. In chat the coach can see the same idea (suggest_next_meal), offers alternatives, checks a pushed-back choice against the goal and calories left, and records what the user agrees to (save_food_preference: slot, item, prefer/avoid, instead of what). Agreeing again counts up. Later suggestions use agreed preferences first whenever they still fit, and never an avoided food or role. DB v31: food_preferences (archived). Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Today: coach brief
Nutrition: next-meal idea
MealSuggesterapplies rules to a 24-food catalog, so it works without an AI key.Coach tools
suggest_next_mealandget_food_preferenceslet the coach see the suggestion and existing preferences.save_food_preferencerecords an alternative the user agreed to, after the coach checks it against the goal.Database: v31 adds
food_preferences, which is archived.Tests:
MealSuggesterTest. CI green on 5a440db.Generated by Claude Code