Skip to content

Tag caffeine after 2 pm from logged meals; tag yesterday from Today - #23

Merged
gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd
Oct 20, 2026
Merged

gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner
  • Automatic "Caffeine after 2 pm" tag
    • Logging a meal or snack from 14:00 whose name or notes mention caffeine ticks the tag on its day.
    • Counted as caffeine: coffee, espresso drinks, caffeinated tea, mate/chimarrão, cola, guaraná, energy drinks.
    • Not counted: decaf, herbal tea, and "café da manhã" (breakfast).
    • A midnight espresso belongs to the evening before, like the late-meal tag.
  • Today / Yesterday switch on the "Tag your day" card and the tag sheet, so a forgotten day can still be tagged the next morning.

Tests added in MealJournalTest.


Generated by Claude Code

…ay card

A meal or snack logged from 14:00 (or in the small hours, which belong to the
evening before) whose name or notes mention coffee, caffeinated tea, mate,
cola, guaraná or an energy drink ticks "Caffeine after 2 pm" on its day.
Decaf, herbal tea and "café da manhã" don't count.

The "Tag your day" card on Today and the tag sheet gain a Today / Yesterday
switch, so a forgotten day can still be tagged the next morning.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit 0b32646 into main Oct 20, 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