Commit Graph

4795 Commits

Author SHA1 Message Date
Roland Geider
c916136a8f Update measurement models
The backend now saves uses a UUID for the IDs as well, which we can now use directly
2026-03-15 15:43:29 +01:00
Roland Geider
6750859bfe Move powersync table definitions
These are now together with the "regular" drift definitions, making it
easier to spot any differences that may creep in
2026-03-14 22:32:29 +01:00
Roland Geider
997e4afa99 Add ingredient and license tables 2026-03-14 17:38:38 +01:00
Roland Geider
b106090004 Move language models to "core" 2026-03-14 17:38:02 +01:00
Roland Geider
8ddd964302 Remove old MeasurementProvider 2026-03-14 16:35:45 +01:00
Roland Geider
e20de66cf0 Fix and cleanup some tests 2026-03-14 13:40:21 +01:00
Roland Geider
d38a7609d8 Start removing the old MeasurementProvider, refactor measurement form 2026-03-14 12:17:28 +01:00
Roland Geider
1ed2efe0d2 Migrate more widgets to use the new measurement provider 2026-03-13 23:09:19 +01:00
Roland Geider
7221109a64 Revert to using ID and UUID as names for the fields
This is more explicit and seems like a better way to do it.
2026-03-13 22:58:11 +01:00
Roland Geider
7926a7da7e Start working on new drift based provider for measurements 2026-03-13 17:23:25 +01:00
Roland Geider
61e1c241f2 Update measurement tables to use powersync 2026-03-13 16:16:23 +01:00
Roland Geider
a5f08c09ac Add the network information widget to regular list of dashboard widgets 2026-03-13 14:52:13 +01:00
Madhav
54a6db2e4b test(auth): stabilize API token happy-path assertion 2026-03-13 17:08:19 +05:30
Madhav
f7ac9e1480 Revert pubspec to master versions (fix dependency conflict from merge) 2026-03-12 22:50:49 +05:30
Madhav
3fd0de3257 Apply dart format 2026-03-12 22:48:21 +05:30
darshAnup24
d780050a98 Merge branch 'wger-project:master' into feature/min-server-version-check 2026-03-12 22:42:57 +05:30
Madhav
cb79c698ae Improve server version parsing and add UI feedback
- Enhanced version parsing to handle Python/Django version formats more reliably
- Added serverUpdateRequired AuthState for proper UI routing
- Improved server version sanitization with better regex patterns
- Added UpdateServerScreen with localized user feedback
- Integrated into auth flow routing to show appropriate update messages
2026-03-12 22:34:11 +05:30
Roland Geider
c87d3825b4 Merge branch 'master' into feature/offline-mode
# Conflicts:
#	lib/l10n/app_en.arb
#	lib/models/workouts/log.dart
#	lib/models/workouts/weight_unit.dart
#	lib/providers/exercises.dart
#	lib/providers/gym_log_state.g.dart
#	lib/providers/routines.dart
#	lib/widgets/routines/forms/reps_unit.dart
#	lib/widgets/routines/forms/weight_unit.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	macos/Flutter/GeneratedPluginRegistrant.swift
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.mocks.dart
#	test/core/validators_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercise_provider_db_test.dart
#	test/exercises/exercises_detail_widget_test.mocks.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/repetition_unit_form_widget_test.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/routine/weight_unit_form_widget_test.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
#	test/widgets/routines/gym_mode/log_page_test.mocks.dart
#	test_data/routines.dart
2026-03-12 14:23:11 +01:00
Roland Geider
42ac257c64 Update Podfile.lock 2026-03-12 12:17:32 +01:00
Madhav
6f34c05ccb Add minimum server version check during login
The app already checks a minimum app version from the server, but the
opposite wasn't true — an app could connect to an older server with a
different API without any warning.

This adds a MIN_SERVER_VERSION constant in the app that is checked
against the server version (already fetched in AuthProvider) during
both login() and tryAutoLogin(). If the server is too old, the user
is silently logged out and returned to the auth screen to connect to
a compatible server.

Includes unit tests for version string parsing (including Python-style
pre-release versions like '2.5.0a2').

Closes #<issue-number>
2026-03-11 23:19:32 +05:30
Roland Geider
2f2a58638f Update generated files 2026-03-11 16:14:36 +01:00
Roland Geider
457a48eb34 Bump dependencies 2026-03-11 16:14:16 +01:00
Roland Geider
937734e4c4 Merge branch 'fork/saraswathirajkumar18/enhancement/persist-ingredient-filters'
# Conflicts:
#	pubspec.lock
2026-03-11 15:39:58 +01:00
Roland Geider
885d88180b Refactor ingredient filter provider
No need to hard code the preferences in main
2026-03-11 15:39:38 +01:00
Roland Geider
afa1806fbc Upgrade versions in Gemfile.lock 2026-03-11 14:16:36 +01:00
Saraswathi
7449d1fedb ProviderContainer.test used for automatic disposal in test 2026-03-08 20:22:07 +05:30
Roland Geider
bc10a176ac Bump flutter version 2026-03-08 13:13:03 +01:00
Roland Geider
25d2353cd2 Limit the number of logs sent when reporting issues to github
This was reaching the GET parameter length, see #2246
2026-03-08 13:09:58 +01:00
Saraswathi
b0af26a89d add test for IngredientFiltersNotifier to verify state and storage updates 2026-03-08 00:09:33 +05:30
NiazSagor
9d1169b99c Add regression test for loading indicator in nutritional plan screen
Took 58 minutes
2026-03-05 20:37:24 +06:00
Saraswathi
efeeea85ab enhancement:persist-ingredient-filters in nutrition 2026-03-05 16:48:52 +05:30
NiazSagor
580039f4fb Reformat code in NutritionalPlanScreen
Took 7 minutes
2026-03-04 22:07:01 +06:00
NiazSagor
6e95437301 fix: prevent FutureBuilder from reloading on every rebuild in NutritionalPlanScreen
Calling _loadFullPlan() directly inside build() caused a new Future to be
created on every rebuild (e.g. when opening the PopupMenuButton), which reset
the FutureBuilder to ConnectionState.waiting and showed the loading spinner
unnecessarily.

Fix: convert to StatefulWidget and initialize the Future once in
didChangeDependencies(), per Flutter's official FutureBuilder docs.

Ref: https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html

Took 45 minutes
2026-03-04 21:58:07 +06:00
Roland Geider
70540d15ea Bump flutter version and upgrade dependencies 2026-03-03 22:13:38 +01:00
Roland Geider
c1e5f4fcd6 Bump flutter version and upgrade dependencies 2026-03-03 21:57:29 +01:00
Roland Geider
07604ab57d Add "warmup" to list of slot entry types
https://github.com/wger-project/wger/issues/2157
2026-03-02 20:18:32 +01:00
Roland Geider
ae89b5c6ea Commit generated files 2026-03-02 20:18:32 +01:00
Github-Actions
7e5b8c94d8 Bump version to 1.10.2 1.10.2 2026-02-28 12:09:54 +00:00
Roland Geider
815c5cec8b Add missing title and description for Macedonian 2026-02-28 13:05:26 +01:00
Roland Geider
ea718e99b3 Update Gemfile.lock 2026-02-28 12:42:24 +01:00
Roland Geider
d5902750e2 Update Podfile.lock 2026-02-28 12:31:04 +01:00
Roland Geider
50ec06d216 Merge branch 'master' into feature/vegan-flags
# Conflicts:
#	lib/l10n/app_de.arb
2026-02-28 12:03:57 +01:00
Roland Geider
025acf4f1d Merge pull request #1101 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-02-28 12:00:12 +01:00
saraswathi
2c21f9f1f8 Translated using Weblate (Tamil)
Currently translated at 77.8% (291 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:31 +00:00
saraswathi
8712e7928e Translated using Weblate (Tamil)
Currently translated at 77.0% (288 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:30 +00:00
David Peñas
41ea6dfa7a Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:29 +00:00
Alejandro Castro
85bde2d2c5 Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:28 +00:00
Daniel Garrido
e3cbd7ede6 Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:27 +00:00
saraswathi
0f8bbf0666 Translated using Weblate (Tamil)
Currently translated at 76.2% (285 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:26 +00:00
David Peñas
59713d9abb Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:25 +00:00