Skip to content

Use a flat 1,000 kcal minimum for calorie goals - #17

Merged
YarinQuapi merged 1 commit into
masterfrom
min-calorie-goal-1000
Nov 19, 2026
Merged

YarinQuapi merged 1 commit into
masterfrom
min-calorie-goal-1000

Conversation

@YarinQuapi

Copy link
Copy Markdown
Owner

What changed

  • The calorie goal floor is now a flat 1,000 kcal on the API, web and mobile (calorieSafetyFloor returns a constant; the sex-based 1,200/1,500 minimums are removed).
  • The profile API now accepts any custom goal of at least 1 kcal; values under 1,000 are raised to 1,000 and the existing "raised to X kcal" message shows.
  • The floor note under the goal field is updated in English and Hebrew.
  • Tests updated for the new floor.

Why

The old floor was the user's resting metabolism (or 1,200/1,500 kcal), which was ~1,900 kcal for some people. That is too high to lose weight on, and it also pulled suggested goals up.

Reviewer notes

  • Suggested goals are now TDEE minus the pace deficit, floored at 1,000, so they will be lower for many users.
  • Days already logged keep their stored goal; today's is recalculated on the next profile save.
  • API tests (56), API and web typechecks, and mobile tests pass locally; not exercised in a browser or simulator.
  • This is a safety-relevant change: 1,000 kcal is a low floor, which was the requested behaviour.

🤖 Generated with Claude Code

The BMR-based floor (and 1,200/1,500 sex minimums) pushed suggested and
custom goals too high for many people to lose weight. Every goal is now
only floored at 1,000 kcal, on the API, web and mobile.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@YarinQuapi
YarinQuapi merged commit 13567da into master Nov 19, 2026
3 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.

1 participant