Commit Graph

175 Commits

Author SHA1 Message Date
Roland Geider
251689cd31 Rebuild the measurements overview as a tile grid 2026-08-08 16:44:10 +02:00
Roland Geider
62e06d63a4 Share the quick steppers and the date-time pair 2026-08-07 22:05:48 +02:00
Roland Geider
d6de435c6b Make the measurements a tab of their own, led by the weight 2026-08-07 21:46:23 +02:00
Roland Geider
1fd6b505a8 Replace the 30-day chart with a one-month range 2026-08-05 21:54:03 +02:00
Roland Geider
82be49c8a0 Add per-category chart settings (trend, average window) 2026-08-05 21:29:31 +02:00
Roland Geider
cecdd1c317 Read durations in hours and minutes 2026-08-04 22:09:26 +02:00
Roland Geider
e68bde2c9c Merge branch 'master' into feature/health-sync
# Conflicts:
#	lib/main.dart
#	macos/Flutter/GeneratedPluginRegistrant.swift
#	test/features/account/widgets/settings_test.dart
2026-08-04 13:59:53 +02:00
Roland Geider
07aa325ec5 Generate chart colors from the scheme instead of a fixed palette 2026-08-04 11:24:10 +02:00
Roland Geider
4b356f8bc2 Pick the metric instead of typing it into a form 2026-08-03 17:48:02 +02:00
Praharsha2007
d2dacb116d feat : implemented dynamic colour support 2026-08-03 21:15:00 +05:30
Roland Geider
2d74480baa Read only the entries the range charts 2026-08-02 14:47:07 +02:00
Roland Geider
db2c2c5d7c Derive the ids of typed measurement categories 2026-08-01 13:04:31 +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
458b3d5be4 Show the weight development on the nutrition plan detail screen 2026-07-31 18:39:18 +02:00
Roland Geider
41ceee9307 Import resting heart rate 2026-07-31 14:38:29 +02:00
Roland Geider
fe6d0a59df Default the weight unit from the profile for app-created entries and ad-hoc exercises 2026-07-30 21:47:01 +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
914e9ac575 Surface involuntary logouts and revalidate the session on app resume
This makes it obvious why users are redirected to the auth screen, since the
snackbar could be easily missed.

See #1265
2026-07-30 15:47:04 +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
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
9e446e0b94 Allow users to submit issues to github with full stackstrace and sync debug info 2026-07-29 17:23:09 +02:00
Roland Geider
718fa05d1b Add sync diagnostics to the "submit to github" error dialog 2026-07-29 17:06:05 +02:00
Roland Geider
30f44ad471 Show more sync information on the sync status dialog
Also, make it stateful so it shows live data for sync queue size, etc.
2026-07-29 16:50:14 +02:00
Roland Geider
d72a0ccf93 Allow users to force-reconnect to the powersync service 2026-07-29 16:22:30 +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
3e1c86d318 Merge remote-tracking branch 'origin/master' into dependabot/pub/powersync-2.3.2 2026-07-28 16:12:53 +02:00
Roland Geider
b5847b4f84 Adapt the code to changes in powersync 2.3.2 2026-07-28 15:18:55 +02:00
Roland Geider
3ee512fd6c More intelligent powersync service URL handling
When the server-provided powersync URL is not reachable, try using $server-url/ps/.
This should help with self-hosted instances where SITE_URL points to localhost
or other similar misconfigurations

See https://github.com/wger-project/wger/issues/2432
2026-07-28 15:06:34 +02:00
Roland Geider
ffc21b00fe Merge branch 'feature/1130-workout-timer' 2026-07-24 13:59:40 +02:00
Roland Geider
44c111376d Allow to configure showing and hiding the workout duration 2026-07-24 13:55:03 +02:00
Roland Geider
b277e81088 Detect a sync stream that is blocked on the network path
This might help debugging when an ad-blocker, vpn or similar interferes with
the connections to the sync service

See #1271
2026-07-23 14:56:29 +02:00
Roland Geider
ed623f9108 Improve PowerSync sync diagnostics and token expiry handling 2026-07-23 13:58:06 +02:00
Roland Geider
938001b152 Optimistically set the online status
This avoids having the app register as "offline" after bringing it back from
the background
2026-07-17 21:31:29 +02:00
Roland Geider
d8408aa75d Convert HealthSyncState to freezed 2026-07-17 18:05:51 +02:00
Roland Geider
7ebb97c462 Fix source default, hide health settings section when unavailable 2026-07-17 18:05:51 +02:00
Roland Geider
066d6430d8 Refactor the data model for multi-value categories
Measurement categories can optionally point to another category, In practice, this
will just be something like blood pressure since these values only make sense in a
pair. Others can be interesting while combined (heart rate and steps), but are valid
on their own.
2026-07-10 16:18:48 +02:00
Roland Geider
42507844d2 Cleanup, translations and small tests 2026-07-09 17:12:51 +02:00
Roland Geider
bad4993226 Merge branch 'feature/health-sync' into feat/healthsync
# Conflicts:
#	lib/database/powersync/tables/measurements.dart
#	lib/features/measurements/models/measurement_category.dart
#	lib/features/measurements/widgets/helpers.dart
2026-07-09 16:10:54 +02:00
Roland Geider
388b403b5d Cleanup some of the new translation keys 2026-07-09 12:45:06 +02:00
Roland Geider
569c51c98a Fix setLogScopeWeeks
We now pass clearLogScopeWeeks so that selecting "current routine" actually
resets the scope instead of keeping the previous week count
2026-07-08 17:00:41 +02:00
Roland Geider
ee084f1000 Merge branch 'pr-1156' into feature/health-sync 2026-07-02 21:17:16 +02:00
Roland Geider
9df1e3fe35 Split settings_test into notifier and widget tests 2026-07-01 22:59:30 +02:00
Roland Geider
2158075e12 Merge base_provider_extra_test into base_provider_test
Both were testing the same thing
2026-07-01 22:51:01 +02:00
Roland Geider
434ec11fed Localize the date-range form validators
The translations were taken from the react repo
2026-07-01 22:30:30 +02:00
Roland Geider
60c9f67282 Move shared infra to lib/core/ 2026-07-01 20:28:06 +02:00
bhavit04
65995c666a feat(auth): allow connecting to servers with self-signed certificates
Self-hosted instances served behind a self-signed (or otherwise invalid)
TLS certificate could not be reached from the app: both the API client and
image loading failed certificate validation.

Add an opt-in "Allow self-signed certificates" toggle to the advanced
sign-in sheet, shown only when a self-hosted server is selected. When
enabled it installs an HttpOverrides.global that skips certificate
validation, which transparently covers the http-package API client and the
dart:io HttpClient used by NetworkImage / extended_image. The preference is
persisted in AppSettings and re-applied on startup before the first request,
and applied immediately when toggled so the next login already trusts the
certificate. The override is a no-op on web, where dart:io networking does
not apply.

Native media players (the video_player plugin) use their own networking
stack and are not affected by this override.

Closes #116

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 12:30:39 +05:30