Commit Graph

87 Commits

Author SHA1 Message Date
Roland Geider
e1b5f1345b Chart a group as a whole, and let it be opened 2026-08-02 14:14:21 +02:00
Roland Geider
3a26357a2c Import the sleep stages, and merge their intervals 2026-08-02 13:40:23 +02:00
Roland Geider
5f158c7ac2 Give each metric the read window its density affords 2026-08-02 13:08:08 +02:00
Roland Geider
78a0d9f3a1 Ask the health platform for permissions per type 2026-08-01 14:45:33 +02:00
Roland Geider
655d3b7ff5 Read the full history when a metric lost its category 2026-08-01 13:12:28 +02:00
Roland Geider
db2c2c5d7c Derive the ids of typed measurement categories 2026-08-01 13:04:31 +02:00
Roland Geider
aab764622d Offer installing Health Connect instead of hiding the sync 2026-07-31 21:36:18 +02:00
Roland Geider
4f7fde6c4c Tell the user when the health platform withholds its data 2026-07-31 21:22:53 +02:00
Roland Geider
59d8b093da Show the health sync status and allow syncing manually 2026-07-31 20:50:50 +02:00
Roland Geider
4a98f61498 Improve translations 2026-07-31 20:04:15 +02:00
Roland Geider
ed67ff7ea7 Let the user pick the chart range for measurements too 2026-07-31 19:57:13 +02:00
Roland Geider
dbd1987b6c Slice the 30-day trend from the full history instead of recomputing it 2026-07-31 18:44:08 +02:00
Roland Geider
458b3d5be4 Show the weight development on the nutrition plan detail screen 2026-07-31 18:39:18 +02:00
Roland Geider
140b8100c0 Draw nutrition plan periods as bands instead of per-plan charts 2026-07-31 18:27:03 +02:00
Roland Geider
557eaa29d8 Keep the group card readable when readings are not paired 2026-07-31 17:37:12 +02:00
Roland Geider
de9ca4ba91 Convert aggregate bounds along with their value 2026-07-31 17:30:31 +02:00
Roland Geider
3b8c4be086 Band only the measured series, not its average 2026-07-31 17:24:02 +02:00
Roland Geider
4686a83f45 Load only the watched category and its components 2026-07-31 17:00:42 +02:00
Roland Geider
abd2959333 Compute the moving average in a single pass 2026-07-31 16:54:26 +02:00
Roland Geider
7b0f6eeae3 Size chart marks by density and condense dense series 2026-07-31 16:47:04 +02:00
Roland Geider
5cbd71c12a Draw a group reading as one bar spanning its components 2026-07-31 16:31:14 +02:00
Roland Geider
9561f95696 Show the daily range of aggregated measurements as a band 2026-07-31 16:14:15 +02:00
Roland Geider
a8f610c134 Chart the components of a measurement group together 2026-07-31 16:06:03 +02:00
Roland Geider
5178bb5732 Let a measurement chart draw several named series 2026-07-31 15:57:07 +02:00
Roland Geider
8ff1a7b7e6 Fix x axis labels on measurement bar charts 2026-07-31 15:43:03 +02:00
Roland Geider
fc06377b04 Key health entries with UUIDs the server accepts 2026-07-31 15:36:27 +02:00
Roland Geider
a27ead1978 Key daily health aggregates with a UUID 2026-07-31 15:22:09 +02:00
Roland Geider
3a4d5574a6 Import sleep duration as a daily total 2026-07-31 14:51:57 +02:00
Roland Geider
41ceee9307 Import resting heart rate 2026-07-31 14:38:29 +02:00
Roland Geider
01615fb176 Import blood pressure readings into a measurement group 2026-07-31 14:06:17 +02:00
Roland Geider
1b87fd2120 Show the weight form bounds rounded inwards 2026-07-30 21:30:16 +02:00
Roland Geider
cc22ac68a4 Do not offer the body weight metric type for new categories 2026-07-30 20:48:29 +02:00
Roland Geider
488338d01e Keep the health sync watermark while a metric is skipped 2026-07-30 20:19:45 +02:00
Roland Geider
6d0352a42c Track the entry unit in extra_data and convert on display 2026-07-30 18:54:13 +02:00
Roland Geider
b86c1e7e0e Store body weight in the official measurements category 2026-07-30 17:28:01 +02:00
Roland Geider
41623e3d55 Merge remote-tracking branch 'origin/master' into feature/health-sync 2026-07-30 16:31:11 +02:00
Roland Geider
1a58dd8f71 Warn in the settings while certificates are not being verified 2026-07-30 14:23:37 +02:00
Roland Geider
0ecd06ff3c Read the certificate setting from the provider instead of mirroring it 2026-07-30 14:06:19 +02:00
Roland Geider
3a57479585 Scope the self-signed setting to one host and apply without a restart 2026-07-30 13:57:41 +02:00
Roland Geider
41378988d0 Merge branch 'master' into feat/allow-self-signed-certs
# Conflicts:
#	lib/core/app_settings_notifier.dart
#	lib/core/app_settings_notifier.g.dart
#	lib/core/http_overrides.dart
#	lib/features/auth/widgets/auth_card.dart
#	lib/main.dart
#	test/features/account/widgets/settings_test.dart
2026-07-30 13:20:33 +02:00
Roland Geider
fb43a9fdd2 Allow setting the meal when logging individual ingredients 2026-07-30 12:30:02 +02:00
Roland Geider
24c3a93d97 Filter out empty logs
Closes #1293
2026-07-30 11:38:57 +02:00
Roland Geider
4f4b32e61d Make exerciseObj in SlotEntry hydration-safe 2026-07-29 14:46:54 +02:00
Roland Geider
e1a613d712 Merge branch 'feat/weight-chart-range' into feature/health-sync
# Conflicts:
#	lib/features/measurements/widgets/helpers.dart
2026-07-28 22:48:32 +02:00
Roland Geider
f13ef5f630 Merge branch 'master' into feat/weight-chart-range
# Conflicts:
#	lib/features/weight/widgets/weight_overview.dart
2026-07-28 22:41:46 +02:00
Roland Geider
45aeda7ac0 Merge branch 'master' into feature/health-sync
# Conflicts:
#	lib/l10n/app_de.arb
#	lib/l10n/app_es.arb
#	lib/l10n/app_fr.arb
2026-07-28 22:39:59 +02:00
Roland Geider
0cf4111c8d Set fixed size for logo
This was causing tests to fail due to the screen size and the sharding behaviour
in CI
2026-07-28 17:05:07 +02:00
Roland Geider
4a632189d3 Fix flaky test 2026-07-28 15:30:09 +02:00
Matz Hilven
b7a0d4893c Hydrate the exercise when copying a past log in gym mode
Not copying an exercise that isn't there keeps the crash away, but gym
mode then holds a log with no exercise, which would bite the next reader.

The past logs widget already knows the exercise from the set config, so
pass it down to setLog, which assigns it through the exercise setter so
that exerciseId stays consistent.

The notifier test worked around the old behaviour by setting exerciseObj
on every fixture, with a comment explaining that copyWith needs it. That
was the bug, written down, so it's gone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzxNFoPMxsFPxHD3P2Ma3w
2026-07-28 00:11:08 +02:00
Matz Hilven
1b199bd06e Fix crash when copying a log with no hydrated exercise
Log.exerciseObj was declared late and is only ever assigned when
hydrating the logs of a routine's sessions. Logs read from the database
are built through drift's row class and only carry exerciseId, so
copyWith threw a LateInitializationError when it unconditionally read
the field. Copying a past log in gym mode does exactly that.

Make the field nullable behind a getter that throws a descriptive error,
add exerciseObjOrNull for callers that legitimately handle logs straight
from the database, and only carry the exercise over when there is one.

Hydrating the exercise in watchLogsByExerciseDrift instead would mean
joining its translations, images, muscles and equipment for every log,
which most callers don't need.

The log page tests mocked the query with the test routine's logs, which
are hydrated, which is why this was never caught. They now return logs
without an exercise, like the real query does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzxNFoPMxsFPxHD3P2Ma3w
2026-07-28 00:07:43 +02:00