Commit Graph

290 Commits

Author SHA1 Message Date
Miroslav Mazel
f31bcc770d Consts and finals where possible 2023-11-05 23:27:22 +01:00
Miroslav Mazel
420b06a661 Organize imports / remove unnecessary ones 2023-11-05 23:22:34 +01:00
Roland Geider
3b44d29692 Remove debug code 2023-10-21 21:41:37 +02:00
Roland Geider
aecbcfe663 Update models to work with new keys
creation_date was renamed to created and
update_date to last_updated
2023-08-08 11:12:55 +02:00
Roland Geider
84bdb56b65 Rename some constants so they are the same as in the react app 2023-06-05 17:26:03 +02:00
Roland Geider
8460d2fc0f Merge pull request #367 from 12people/master
Linux/macOS support
2023-04-15 12:20:52 +02:00
Roland Geider
e377db76fa Explicitly return null 2023-04-15 11:32:44 +02:00
Roland Geider
525fc8efd3 Fix typo 2023-04-09 11:29:55 +02:00
Roland Geider
f7ac8b716b Merge branch 'master' into 12people-master
# Conflicts:
#	lib/widgets/nutrition/widgets.dart
#	pubspec.lock
2023-04-09 10:57:43 +02:00
Miroslav Mazel
7aeed3bde5 Prep Linux/macOS support: package_info_plus package + env variables instead of AndroidMetadata 2023-03-21 21:06:37 +01:00
Roland Geider
6197e4dd2a Use paginated api when fetching log entries 2023-03-20 17:17:53 +01:00
Roland Geider
984df49c41 Add switch to search for ingredients in English as well 2023-03-20 17:14:12 +01:00
Roland Geider
fa8dd7e46f Fix merge errors 2023-03-20 14:19:29 +01:00
Roland Geider
b60e19cb16 Merge branch 'master' into feature/ingredient-images
# Conflicts:
#	lib/main.dart
#	lib/providers/nutrition.dart
#	pubspec.yaml
#	test/nutrition/nutritional_plan_screen_test.dart
#	test/nutrition/nutritional_plans_screen_test.dart
2023-03-20 13:58:31 +01:00
Roland Geider
1d896c6c4a Allow searching for exercise names in English as well
See wger-project/wger/issues/1238
2023-03-16 11:15:39 +01:00
Roland Geider
b9d6641c87 Pass BaseProvider as an argument to workout provider 2023-02-11 13:45:42 +01:00
Roland Geider
64dc6867b7 Only sort the routine list once 2023-02-11 13:45:42 +01:00
Roland Geider
992de28450 Polish the last exercise submission step
Show a spinner while the requests are being processed (still no error handling
here though) and show a pop up on success that allows the user to go to the
exercise's detail page

Closes #341
2023-02-10 17:15:29 +01:00
Roland Geider
378a281e5c Return the base id, not the translation id! 2023-02-10 14:27:03 +01:00
Roland Geider
ab9572d46a Cleanup 2023-02-10 13:19:55 +01:00
Roland Geider
aa62c27cdb Add refresh indicators to the entry lists
This allows the user to manually trigger an update if desired

See wger-project/wger/issues/1253
2023-02-09 18:08:31 +01:00
Roland Geider
7bb9ac28fd Merge branch 'master' into feature/ingredient-images
# Conflicts:
#	lib/main.dart
#	lib/models/exercises/exercise.g.dart
#	lib/widgets/core/core.dart
#	pubspec.lock
#	test/gallery/gallery_screen_test.mocks.dart
#	test/measurements/measurement_categories_screen_test.mocks.dart
#	test/measurements/measurement_provider_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/other/base_provider_test.mocks.dart
#	test/workout/workout_form_test.mocks.dart
#	test/workout/workout_set_form_test.mocks.dart
2023-02-08 12:48:00 +01:00
Roland Geider
57e7464d2d Some polishing 2023-02-06 22:31:35 +01:00
Roland Geider
4f4f6f553a Add paginated fetches
This allows the app to fetch all available items from an enpoint, without
having to hope that the ?limit=999 is enough

Closes #133
2023-02-06 20:33:39 +01:00
Roland Geider
23ffdce290 Load all available languages 2023-02-05 22:37:05 +01:00
Roland Geider
f68afd91fd Rename exercise object to translation
This is what they are now anyway and makes it more clear
2023-02-05 21:24:28 +01:00
Roland Geider
cd137888d3 Merge branch 'master' into tests 2022-12-01 13:59:25 +01:00
Roland Geider
a004192ed3 Correctly pass the base ID to render log charts
See https://github.com/wger-project/wger/issues/1180
2022-11-29 17:25:45 +01:00
Bujdy
d606f596c3 added workout and gallery provider tests 2022-11-12 17:38:52 +01:00
Roland Geider
5a4e8a3587 Fix min application version tests 2022-10-15 11:15:23 +02:00
Roland Geider
ab50bf6a91 Fix min application version check 2022-10-15 10:59:55 +02:00
Roland Geider
6fbabf4112 Use an enum for the login action instead of a string 2022-10-15 10:59:54 +02:00
Roland Geider
bf88275440 Merge branch 'master' into refactor_login_page 2022-10-14 21:11:00 +02:00
amannegi
4b3e067a52 Modified Error Dialog and Added App Compatibility check on login/signup #101 2022-10-10 21:56:42 +05:30
Roland Geider
b34882ccea Rename file for the AddExercise provider for more consistency 2022-10-10 16:08:06 +02:00
Roland Geider
840bcafa09 Cleanup 2022-10-01 10:24:59 +02:00
Roland Geider
e045a75703 Load video information from exercise base endpoint 2022-09-16 17:11:36 +02:00
Roland Geider
94b2359903 Add stub with nutrition provider tests 2022-08-09 20:48:56 +02:00
Roland Geider
8a3351159a Pass the base provider to the nutritional provider as an argument
This makes it easier to test and is the same behaviour as the measurement
provider
2022-08-09 20:04:41 +02:00
Roland Geider
cb4bce7653 Show ingredient images 2022-08-09 18:51:37 +02:00
Roland Geider
a8ce8a65a0 Use correct header 2022-07-28 11:47:34 +02:00
Roland Geider
a83d54bef2 Merge branch 'master' into feature/exercise-crowdsourcing 2022-07-18 15:59:24 +02:00
Daniil Kovalev
ad810026e8 Fix sub-url handling
Previously the app was unable to work with instances installed on sub-urls
because sub-url path was removed (say, server.name/api/v2/login instead of
server.name/wger/api/v2/login).
2022-06-25 15:52:43 +03:00
Roland Geider
6ee9aaee06 Rework user profile endpoint handling
Now it's not necessary anymore to pass the ID, we can do all actions on the
"list" URL

Fixes #141
2022-05-12 19:13:56 +02:00
Roland Geider
7b0f02e88f Add user profile page
Closes #71
2022-05-12 15:28:26 +02:00
Roland Geider
1fd1aed848 Add tests for the getExercise method 2022-05-11 17:41:11 +02:00
Roland Geider
34e0854c68 Set the baseID when loading exercises 2022-05-11 16:58:55 +02:00
Roland Geider
f56619939e Simplify loading of exercise data
While this has more manual steps than I would prefer, it is definitely better
than loading the individual entries and mapping them to an forth
2022-05-11 00:03:05 +02:00
Roland Geider
f834950cec Workout logs and settings now have a reference to an exercise base
This puts this code in sync with the backend and is logically better, since
the translations can be displayed when needed and are not hard coded
2022-05-10 16:53:44 +02:00
Roland Geider
8bd0c99816 Redirect the user to the created exercise after loading
This still needs some work in fetchAndSetExercise
2022-04-15 14:16:48 +02:00