Skip to content

Show total weight difference in weight overview (issue #2133 from backend)#1216

Open
samir-saidi wants to merge 5 commits intowger-project:masterfrom
samir-saidi:master
Open

Show total weight difference in weight overview (issue #2133 from backend)#1216
samir-saidi wants to merge 5 commits intowger-project:masterfrom
samir-saidi:master

Conversation

@samir-saidi
Copy link

@samir-saidi samir-saidi commented Mar 21, 2026

Proposed Changes

  • Added totalChange field to processWeight function that calculates cumulative weight change from the first recorded weight entry
  • Added "Total Change" column to the weight table showing weight difference since the first measurement
  • Updated unit tests to cover the new totalChange calculation logic
  • Added translation key totalChange for the new column header

Related Issue(s)

Closes #2133

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)

@samir-saidi samir-saidi marked this pull request as ready for review March 22, 2026 00:13
@samir-saidi
Copy link
Author

Ready for review now, I have verified that it works on the frontend and the tests pass on my end :) This is my first PR, if there is more information needed (e.g. implementation etc.) please let me know!

I noticed that I accidentally committed package-lock.json, hence there is an extra commit to revert it to the current version of the base branch.

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.

Show total weight difference in weight overview

1 participant