Roland Geider
16bc83c306
Allow users setting up calculated categories
2026-08-20 16:53:10 +02:00
Roland Geider
afaa58c34e
Report the local sync counters in bug reports
2026-08-15 19:21:05 +02:00
Roland Geider
534d349d19
Read the calculated categories
2026-08-15 15:38:27 +02:00
Roland Geider
fdbbdfc1d3
Merge PR #1260 (health sync) for 2.7 integration testing
...
# Conflicts:
# lib/core/consts.dart
# lib/core/network/auth_notifier.g.dart
# lib/l10n/app_en.arb
# pubspec.yaml
# test/core/validators_test.mocks.dart
# test/features/routines/providers/routines_repository_test.mocks.dart
# test/screenshots/screenshots_03_gym_mode.dart
2026-08-13 14:22:32 +02:00
Roland Geider
8fb4b12652
Rename the session times to datetimeStart and datetimeEnd
2026-08-10 17:53:03 +02:00
Roland Geider
2fbe9d59e1
Merge remote-tracking branch 'origin/master' into fix/midnight-workout-session-split--backend-2379
...
# Conflicts:
# lib/features/routines/models/session.dart
# lib/features/routines/providers/gym_state.dart
# lib/features/routines/providers/workout_logs_repository.dart
# lib/features/routines/widgets/forms/session.dart
# lib/features/routines/widgets/gym_mode/session_page.dart
2026-08-10 17:16:55 +02:00
Roland Geider
520504a1b2
Merge branch 'master' into feature/health-sync
2026-08-10 15:13:43 +02:00
Roland Geider
8df72293b5
Test the persistence base layer
2026-08-10 09:46:27 +02:00
Roland Geider
fb05d1e872
Log network state changes and the sync connection
2026-08-09 22:43:40 +02:00
Roland Geider
df2791a1f7
Keep pre-2.7 measurement rows readable
2026-08-09 18:42:49 +02:00
Roland Geider
82be49c8a0
Add per-category chart settings (trend, average window)
2026-08-05 21:29:31 +02:00
Roland Geider
205548021c
Let the user pick the chart of a measurement category
2026-08-03 00:03:34 +02:00
Roland Geider
2d74480baa
Read only the entries the range charts
2026-08-02 14:47:07 +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
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
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
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
db98af0ac7
Make sure the code can work with nullable routines in workout logs
2026-07-17 18:25:22 +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
Mustafa Senoglu
0a42125285
chore: regenerate database.g.dart for nullable routineId
2026-07-10 12:43:45 +03: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
Mustafa Senoglu
cc483f3dae
fix: make routineId nullable in WorkoutLogTable to prevent crash
...
Server allows workout logs without a routine (free/ad-hoc logging),
but the app's Drift table declared routineId as non-nullable.
This caused a null check operator crash when PowerSync delivered
a row with routine_id = NULL.
Changes:
- WorkoutLogTable.routineId: integer() → integer().nullable()
- Log.routineId: late int → int?
- Log constructor: required this.routineId → this.routineId
- Log.toCompanion: handle null routineId with Value.absent()
Fixes #1250
2026-07-09 14:15:04 +03:00
pankaj-basnet
5ff9d259d3
feat(charts): add smoothed trendline to measurement charts
...
- Implement centered moving average trendline in charts.dart.
- Update MeasurementChartWidgetFl to render trendline bar data.
- Integrate smoothedTreadline logic into metric chart builder.
refactor(db): implement MetricType Drift converter
- Add MeasurementMetricTypeConverter to map enum to SQLite text.
- Update MeasurementCategoryTable to use the new converter.
2026-07-04 19:49:13 +05:45
pankaj-basnet
6c3373fc73
feat(measurements): add metricType to category schema
...
- Add metricType property to MeasurementCategory model and DB table.
- Include local-only persistence for metric categorization.
- Update UI form and localization strings.
2026-07-04 13:29:35 +05:45
Roland Geider
18b745f365
Start reworking the sync logic
...
We don't just want to sync the weight entries
2026-07-02 21:45:53 +02:00
Roland Geider
60c9f67282
Move shared infra to lib/core/
2026-07-01 20:28:06 +02:00
Roland Geider
a46bd22025
Move account feature to lib/features/account/
2026-07-01 18:28:10 +02:00
Roland Geider
8b929b23c1
Move routines feature to lib/features/routines/
2026-07-01 18:22:50 +02:00
Roland Geider
33fbe279ca
Move nutrition feature to lib/features/nutrition/
2026-07-01 17:57:49 +02:00
Roland Geider
08fe476e5b
Move exercises feature to lib/features/exercises/
2026-07-01 17:45:43 +02:00
Roland Geider
21ea4dbc54
Move gallery feature to lib/features/gallery/
2026-07-01 17:30:11 +02:00
Roland Geider
ae513e3566
Move trophies feature to lib/features/trophies/
2026-07-01 17:21:18 +02:00
Roland Geider
ae81c32a23
Move weight feature to lib/features/weight
2026-07-01 16:55:09 +02:00
pankaj-basnet
13218a2dd6
feat(database): upgrade session time tracking to full DateTime
...
Refactors WorkoutSession storage from TimeOfDay to DateTime to enable accurate cross-midnight session tracking.
- Adds DateTimeTextConverter to handle ISO8601 serialization/deserialization.
- Updates WorkoutSessionTable to use the new DateTime converter.
- Refactors WorkoutLogRepository to use UTC ISO8601 strings for time range queries in Drift.
- Improves lazy session creation logic to handle closed vs. open session states.
2026-07-01 20:07:12 +05:45
Roland Geider
e8951ca8cb
Refactor session models and their use in forms
...
We now either pass the existing workout session to edit, or null if we want
to add a new entry
2026-07-01 10:59:52 +02:00
Roland Geider
341dec6d99
Fix avoid_slow_async_io lint warning
2026-06-15 22:48:11 +02:00
Roland Geider
6242723a17
Recreate generated files
2026-06-15 21:07:13 +02:00
Roland Geider
efaa5121c5
Fix column types
2026-06-14 20:24:49 +02:00
Roland Geider
30df030e1e
Add converter for date-only fields, otherwise comparisons break
2026-06-14 16:19:02 +02:00
Roland Geider
e93c4effcb
Exercise IDs are integers, not text
2026-06-05 23:17:25 +02:00
Roland Geider
675fb44c6e
Also properly handle (for now) unused datetime fields
2026-06-05 15:36:19 +02:00
Roland Geider
662ad9befc
Properly handle timezones
2026-06-05 15:17:32 +02:00
Roland Geider
b04db2351e
Remove unused code
2026-06-04 22:33:49 +02:00