forked from eatvio/eatvio_app
feat(insights): first isights impemetation
This commit is contained in:
58
test/fixtures/insights/insights_payload.json
vendored
Normal file
58
test/fixtures/insights/insights_payload.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"weight": {
|
||||
"labels": ["01.11", "05.11", "09.11"],
|
||||
"values": [74.5, 73.9, 73.2],
|
||||
"last": 73.2,
|
||||
"delta": -1.3,
|
||||
"headline": "73.2",
|
||||
"unit": "кг",
|
||||
"deltaText": "Снизили на 1.3 кг за период"
|
||||
},
|
||||
"bmi": {
|
||||
"labels": [],
|
||||
"values": [],
|
||||
"last": null,
|
||||
"delta": null,
|
||||
"headline": "—",
|
||||
"category": null,
|
||||
"deltaText": "Укажите рост, чтобы посчитать ИМТ.",
|
||||
"hint": ""
|
||||
},
|
||||
"measure": {
|
||||
"labels": ["01.11", "09.11"],
|
||||
"waist": [82, 80.5],
|
||||
"chest": [96, 96],
|
||||
"hips": [101, 100],
|
||||
"headline": "81",
|
||||
"deltaText": "Талия меньше на 1.5 см за период"
|
||||
},
|
||||
"daily": {
|
||||
"labels": ["03.11", "04.11", "05.11"],
|
||||
"kcal": [1850, 2010, 1930],
|
||||
"proteins": [92, 101, 96],
|
||||
"fats": [60, 66, 63],
|
||||
"carbs": [210, 222, 215],
|
||||
"average": 1930,
|
||||
"percent": 98,
|
||||
"headline": "1930",
|
||||
"deltaText": "98% от нормы"
|
||||
},
|
||||
"intra": {
|
||||
"bars": [
|
||||
{"x": 8.5, "p": 120, "f": 90, "c": 240},
|
||||
{"x": 13, "p": 160, "f": 130, "c": 300}
|
||||
],
|
||||
"satiety": [{"x": 8.5, "y": 3}, {"x": 13, "y": 4}],
|
||||
"mood": [{"x": 8.5, "y": 4}],
|
||||
"wake": 7.5,
|
||||
"sleep": 23,
|
||||
"wakeLabel": "07:30",
|
||||
"sleepLabel": "23:00",
|
||||
"wakeText": "Подъём в 07:30",
|
||||
"sleepText": "Отход ко сну в 23:00",
|
||||
"date": "2026-11-09",
|
||||
"maxDate": "2026-11-09",
|
||||
"dateLabel": "Сегодня",
|
||||
"isToday": true
|
||||
}
|
||||
}
|
||||
7
test/fixtures/insights/insights_payload_minimal.json
vendored
Normal file
7
test/fixtures/insights/insights_payload_minimal.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"weight": {"labels": [], "values": [], "last": null, "delta": null, "headline": "—", "unit": "кг", "deltaText": "Недостаточно данных"},
|
||||
"bmi": {"labels": [], "values": [], "headline": "—", "deltaText": "Укажите рост, чтобы посчитать ИМТ.", "hint": "Укажите рост, чтобы посчитать ИМТ."},
|
||||
"measure": {"labels": [], "waist": [], "chest": [], "hips": [], "headline": "—", "deltaText": "Недостаточно данных"},
|
||||
"daily": {"labels": [], "kcal": [], "proteins": [], "fats": [], "carbs": [], "average": null, "percent": null, "headline": "—", "deltaText": ""},
|
||||
"intra": {"bars": [], "satiety": [], "mood": [], "wake": null, "sleep": null, "date": "2026-11-09", "maxDate": "2026-11-09", "dateLabel": "Сегодня", "isToday": true}
|
||||
}
|
||||
Reference in New Issue
Block a user