feat(fitness/measure): paginate past measurements (SSR 10, "Show more" pulls 20)
SSR now ships only the 10 most recent measurements (down from 200) to cut initial page weight. A "Show more (N/total)" pill appears below the list when more are available; clicking fetches the next 20 via the existing GET endpoint (offset/limit already supported) and appends with dedupe by `_id`. `measurementsTotal` is seeded from the API's `total` field and kept in sync on save (+1) / delete (−1). The button is hidden when the history is collapsed or when `measurements.length >= total`. Added `show_more` i18n string.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"version": "1.46.3",
|
||||
"version": "1.46.4",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user