Commit Graph

271 Commits

Author SHA1 Message Date
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
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
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
Roland Geider
3b2d9bf902 Only create aliases when they exist 2022-04-13 21:43:36 +02:00
Roland Geider
a6338ab6d6 Some more polishing 2022-03-31 13:52:43 +02:00
Roland Geider
bc28fe8624 Start adding variations handling 2022-03-31 00:07:12 +02:00
Roland Geider
3d4f48a88d Hide the translation fields, not all users will need this 2022-03-29 23:58:00 +02:00
Roland Geider
80a5793a54 Call notifyListeners when setting list of muscles
This is needed to update the muscle overview widget
2022-03-12 22:33:14 +01:00
Roland Geider
9b9afcc4e7 Don't use magic numbers to save the art style of an image 2022-03-12 21:44:15 +01:00
Roland Geider
e111839b3f Save aliases to the DB 2022-03-05 13:55:43 +01:00
Roland Geider
545f96b1c4 Some cleanup 2022-02-20 19:19:40 +01:00
Roland Geider
b011ddcd25 POST images when creating new exercises 2022-02-20 15:54:32 +01:00
Roland Geider
19a504dcfb Actually create exercise bases and translations 2022-02-20 14:40:42 +01:00
Roland Geider
5cebbb7c7f Fix merge conflicts 2022-02-19 22:16:32 +01:00
Roland Geider
badc3257d0 Merge branch 'master' into feature/exercise-crowdsourcing
# Conflicts:
#	assets/images/muscles/back.svg
#	assets/images/muscles/main/muscle-1.svg
#	assets/images/muscles/main/muscle-10.svg
#	assets/images/muscles/main/muscle-11.svg
#	assets/images/muscles/main/muscle-12.svg
#	assets/images/muscles/main/muscle-13.svg
#	assets/images/muscles/main/muscle-14.svg
#	assets/images/muscles/main/muscle-15.svg
#	assets/images/muscles/main/muscle-16.svg
#	assets/images/muscles/main/muscle-2.svg
#	assets/images/muscles/main/muscle-3.svg
#	assets/images/muscles/main/muscle-4.svg
#	assets/images/muscles/main/muscle-5.svg
#	assets/images/muscles/main/muscle-6.svg
#	assets/images/muscles/main/muscle-7.svg
#	assets/images/muscles/main/muscle-8.svg
#	assets/images/muscles/main/muscle-9.svg
#	assets/images/muscles/secondary/muscle-1.svg
#	assets/images/muscles/secondary/muscle-10.svg
#	assets/images/muscles/secondary/muscle-11.svg
#	assets/images/muscles/secondary/muscle-12.svg
#	assets/images/muscles/secondary/muscle-13.svg
#	assets/images/muscles/secondary/muscle-14.svg
#	assets/images/muscles/secondary/muscle-15.svg
#	assets/images/muscles/secondary/muscle-16.svg
#	assets/images/muscles/secondary/muscle-2.svg
#	assets/images/muscles/secondary/muscle-3.svg
#	assets/images/muscles/secondary/muscle-4.svg
#	assets/images/muscles/secondary/muscle-5.svg
#	assets/images/muscles/secondary/muscle-6.svg
#	assets/images/muscles/secondary/muscle-7.svg
#	assets/images/muscles/secondary/muscle-8.svg
#	assets/images/muscles/secondary/muscle-9.svg
#	lib/helpers/consts.dart
#	lib/l10n/app_en.arb
#	lib/models/exercises/exercise.dart
#	lib/models/exercises/exercise.g.dart
#	lib/providers/exercises.dart
#	lib/widgets/exercises/exercises.dart
#	pubspec.lock
#	pubspec.yaml
#	test/exercises/exercises_detail_widget_test.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/workout/workout_set_form_test.mocks.dart
2022-02-19 22:07:47 +01:00
Roland Geider
d8933def9b Add versioning to the exercise cache
This was backported from the exercise crowdsourcing branch and is needed since
we are adding new data structures, in this case the exercises.
2022-02-18 21:12:05 +01:00
Roland Geider
df4f8c1817 Use cached exercises
This was committed by mistake
2022-02-18 20:05:48 +01:00
Roland Geider
d78fa35de8 Filter by exercise bases in overview 2022-02-02 19:12:01 +01:00
Roland Geider
4093e0fe07 Set all other exercise information 2022-01-31 22:06:59 +01:00
Roland Geider
2338807a0e Add all necessary fields to provider 2022-01-31 21:41:10 +01:00
Roland Geider
c7789dab6f Fix some typos 2022-01-31 21:28:06 +01:00
Roland Geider
fcff383657 Show diagram of selected muscles
This is still a WIP, the widget should update after each select
2022-01-31 21:27:50 +01:00