Skip to content

Conversation

@dudaa28
Copy link

@dudaa28 dudaa28 commented Jul 11, 2025

This PR fixes Issue #256 in OpenNutriTracker, where weight inputs in pounds were rounded incorrectly, affecting precision.

What was done:

  • Implemented and tested precise unit conversion functions (kg ↔ lbs, g ↔ oz, ml ↔ fl oz).

  • Ensured user profile displays weight correctly based on chosen units.

  • Updated onboarding UI to dynamically change the weight label according to the selected unit.

  • Added automated tests covering conversions, profile display, and onboarding behavior.

All tests now pass successfully, confirming accurate conversions, correct weight display, and responsive UI updates during onboarding.

Commit

Commit

@dudaa28 dudaa28 marked this pull request as draft July 11, 2025 21:36
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