Skip to content

[Feature]: Macro tracking (protein, carbs, fat) #415

Open

Description

@thwbh

Category

Calorie Tracking

Target Platform

Common (both platforms)

Feature Description

Extend calorie tracking with macronutrient support: log and track protein, carbohydrate, and fat intake alongside calories, with configurable per-macro goals and a daily progress display.

Proposed Solution / Mockup

  • Data model: add protein/carbs/fat columns (grams) to the intake/food-entry models via a new Diesel migration. Values are optional so existing entries and the simple "raw calories" flow keep working unchanged.
  • Goals: extend the existing TDEE/goal wizard with an optional macro split step. Either offer preset ratios (e.g. balanced 30/35/35, high-protein 40/30/30) or free-form grams per day. The wizard already computes a calorie target; macro grams can be derived from it.
  • UI: on the dashboard's nutrition summary, show three macro progress bars under the calorie ring. The intake mask gains optional macro fields, pre-filled when the entry comes from the food library ([Feature]: Food library #184), since USDA Foundation Foods already carry macro nutrients.
  • Workout synergy: surface a daily protein target alongside workout activity — strength-training users care most about protein, and this pairs the two halves of the app.

Problem Statement (Optional)

Calories alone are a weak signal for body-composition goals. Users doing strength training (workout tracking shipped in 26.23.0) need protein targets, and cutting/bulking users need to control the carb/fat split. Currently users must track macros in a second app, which breaks the privacy-first, single-app promise.

Alternatives Considered (Optional)

  • Full micronutrient tracking (vitamins/minerals): rejected for now — USDA data supports it, but the logging burden and UI complexity are much higher. Can be layered later once macro columns exist.
  • Free-form "notes" per meal: rejected — unstructured, not chartable.

Additional Context (Optional)

  • Composes directly with [Feature]: Food library #184 (Food library): the USDA dataset already includes macro nutrients per 100g.
  • Related spec vocabulary: a new spec ID under the nutrition area would follow the existing lint:specs / lint:traceability conventions.

Activity

  1. added
    enhancement
    review required
    target:common
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreview requiredtarget:common

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions