Food: week strip shows protein / carbs / fat; over-target days in red

Each day's bar is stacked by the share of the energy from protein, carbs and
fat (as in the History chart); hovering shows the calories and grams. A day
more than 5 % over its target shows its calories in bold red. Dashboard and
app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-10-26 14:24:00 +02:00
parent c54f66c3c2
commit 2869a208f1
5 changed files with 46 additions and 11 deletions

View file

@ -19,6 +19,8 @@ What changed in each published build of the app. `tool/publish.sh` shows the ent
search box, finds that food first.
- Food: a barcode nothing is found for offers "New food with barcode …", which opens the editor with the
barcode filled in. The dashboard does the same.
- Food: the week strip's day pills show the day's protein / carbs / fat in their colours (by their share of the
energy), and a day over its target has its calories in red. The dashboard does the same.
## 1.1.3 — 2026-10-26