Setting Macro Targets
Configure daily calorie + P/C/F targets that the client logs against.
trainer guide/clients/[id]
What this is for: Give a client a clear daily nutrition target to compare their food journal against.
What this is
A MacroTarget is a single daily target row per client containing:
- Total daily calories
- Protein grams
- Carbs grams
- Fat grams
- Click Clients in the sidebar to see your roster.
- Select a client from the list to open the client page.
- Open the Nutrition tab. Macro Targets is at the top.
- Select Edit to change calories, protein, carbs and fat for this client.
- Scroll down to compare the target with the meals the client has logged.
There's only one active target per client at a time — when you update it, the new values apply to all future days.
The Food Journal widget (client side) compares the client's logged meals against this target so they see daily totals and remaining macros.
Step-by-step
- Open the client (
/clients/[clientId]). - Click the Nutrition tab.
- The MacroTargetForm is at the top of the tab.
- Enter:
- Calories (e.g. 2400)
- Protein g (e.g. 180)
- Carbs g (e.g. 240)
- Fat g (e.g. 80)
- Click Save. A toast confirms.
How it relates to the food journal
- The client logs each meal at
/dashboard/client→ Food Journal widget. - Each meal has its own kcal + P/C/F numbers.
- The widget sums today's entries and shows progress vs your target.
- You see read-only summary at
/clients/[id]→ Nutrition tab → FoodJournalSummary (last 7 days).
Sanity checks
When you save, the system validates:
- Calories: 0-10000.
- Each macro: 0-1000g.
- Calories should roughly match the macros (4 kcal/g protein + carbs, 9 kcal/g fat). The form does NOT enforce this — but reviewing the totals as you save catches typos.
Common pitfalls
Where to find this
- Page:
/clients/[clientId]→ Nutrition tab. - Component:
MacroTargetForm. - API:
GET/PUT /api/clients/[id]/macro-target.
Was this article helpful?
