Skip to content

Log Meal suggests foods logged before as the name is typed - #57

Merged
gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd
Nov 2, 2026
Merged

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

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner
  • Suggestions: typing two or more letters in the Log Meal name field shows up to five foods the user logged before.
    • There is one suggestion per food: names are compared ignoring case and accents, and each carries the numbers from its newest log.
    • Foods whose name starts with the typed text come first, then the most logged, then the most recent.
    • Demo rows never appear.
  • Picking one: a tap fills the name, meal type and macros, and every field stays editable.
    • The saved meal keeps the original's provenance (barcode code, serving, AI-estimate source).
    • Changing a number marks the meal userEdited, as a barcode pick does.
  • Code: adds FoodHistory and MealEntryDao.recentReal, with tests in FoodHistoryTest.
  • Translations and docs: pt-BR strings, plus a note in AGENTS.md.
  • Design canvas: the Log Meal board shows the suggestion list.

Generated by Claude Code

Typing two or more letters in the Log Meal name offers up to five earlier
foods (one per food, accent- and case-insensitive, newest numbers), ranked
by name prefix, then how often and how recently they were logged. A tap
fills name, meal type and macros; the saved meal keeps the original's
provenance and is marked edited if its numbers change.

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