Commit Graph

332 Commits

Author SHA1 Message Date
Roland Geider
f67cb1797b Calculates reps for a set locally
This saves us unneeded round trips to the server

See #14
2021-04-24 13:58:14 +02:00
Roland Geider
3c21650003 Translate week day names in workout screens 2021-04-24 12:31:08 +02:00
Stefano Rossi
c5fa7c0955 Translated using Weblate (Italian)
Currently translated at 100.0% (111 of 111 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2021-04-24 09:39:42 +02:00
Roland Geider
c870d29c38 Improve initial loading time
We save some requests by using the info endpoints, but this can still be improved

See #14
2021-04-23 18:37:37 +02:00
Roland Geider
6cf54b231e Add tests for MealForm 2021-04-23 13:48:02 +02:00
Roland Geider
2424199e09 Add tests for PlanForm 2021-04-23 12:47:12 +02:00
Roland Geider
1b7b78c640 Add tests for DayFormWidget 2021-04-23 11:32:00 +02:00
Roland Geider
8fbf681cfe Translated using Weblate (German)
Currently translated at 100.0% (111 of 111 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-04-23 10:32:11 +02:00
Roland Geider
3c4ac3861d Test the WorkoutForm form 2021-04-22 18:35:05 +02:00
Roland Geider
5bc1ca699d Return a new instance when adding nutritional values
Changing the current one doesn't make sense
2021-04-22 10:28:53 +02:00
martingetzel
8787dc0582 Translated using Weblate (Spanish)
Currently translated at 100.0% (111 of 111 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2021-04-22 10:23:35 +02:00
Roland Geider
8c31f2ef09 Add more tests 2021-04-21 22:05:50 +02:00
Roland Geider
ff22d830b2 Rework the about page
This now has more structure and direct links to important places
2021-04-21 22:05:50 +02:00
Allan Nordhøy
30b5fc1c79 Translated using Weblate (Norwegian Bokmål)
Currently translated at 80.3% (82 of 102 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/nb_NO/
2021-04-21 13:05:58 +02:00
Allan Nordhøy
5965360262 Translated using Weblate (English)
Currently translated at 100.0% (102 of 102 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/en/
2021-04-21 13:05:58 +02:00
Roland Geider
3ae15688c5 Correctly order workout logs by date 2021-04-21 13:05:10 +02:00
Roland Geider
6370df7b97 Move the action buttons in the dashboard to the side 2021-04-21 12:55:20 +02:00
Roland Geider
deea1b1ed4 Don't show decimal places for meal items 2021-04-21 11:26:44 +02:00
Roland Geider
98981b0c68 Improve workout log page
This view now shows the logs performed on the selected day, as well as charts
for the individual exercises

Closes #17
2021-04-19 16:31:58 +02:00
Roland Geider
6215019e73 Set available gestures in dashboard calendar
We don't support different calndar types (4 weeks, 2 weeks, etc.) anyway
2021-04-19 16:31:57 +02:00
Roland Geider
1f20c87a2d Update calendar widget to 3.0 2021-04-19 16:31:57 +02:00
Roland Geider
5c20384426 Remove gym option rom workout screen mode enum
This was never used, the gym mode is its own screen
2021-04-19 16:31:57 +02:00
Roland Geider
695f6da6a8 Translated using Weblate (German)
Currently translated at 100.0% (100 of 100 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-04-18 18:27:05 +02:00
Roland Geider
6e059ad66d Translated using Weblate (German)
Currently translated at 100.0% (100 of 100 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-04-16 11:27:01 +02:00
Roland Geider
7c9a75df48 Use list tiles for list of logs in gym mode
This improves usability and allows to just tap the whole tile to copy the
values over
2021-04-15 17:40:20 +02:00
Roland Geider
761a6b0f06 Transfer log data to form in gym mode
Closes #13
2021-04-15 17:40:20 +02:00
Roland Geider
7e2ba3468d Show past logs in gym mode
See #13
2021-04-15 13:28:12 +02:00
Roland Geider
6fe0841cc1 Use correct label for button 2021-04-15 11:10:32 +02:00
Roland Geider
d2a7733703 Add simple widget test for gym mode screen 2021-04-14 20:28:49 +02:00
Roland Geider
e76ba740c8 Use setter to save ID and object references 2021-04-14 12:21:40 +02:00
Roland Geider
a0d3df6d8d Delete commented code 2021-04-13 17:12:30 +02:00
Roland Geider
254cc4bdfe Simplify nutrition diary by using a listview 2021-04-13 17:12:30 +02:00
Stefano Rossi
e58d855b4f Translated using Weblate (Italian)
Currently translated at 100.0% (99 of 99 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2021-04-13 13:06:34 +02:00
Roland Geider
6275f54b33 Improve validator for set form
Check that the user has entered at least the repetitions or the weight for at
least one set
2021-04-13 12:58:37 +02:00
Roland Geider
6911160f10 Reduce vertical padding
This is not needed anymore with the SafeArea widget
2021-04-13 11:57:03 +02:00
Roland Geider
d65c3e1779 Show exercise category and equipment in gym mode 2021-04-13 11:55:13 +02:00
Roland Geider
6973f2eb52 Read exercise data as UTF8 2021-04-13 11:10:40 +02:00
Roland Geider
c663a65b1e add missing import 2021-04-13 10:47:12 +02:00
Roland Geider
ad7507c8b7 Update license header as well 2021-04-13 10:28:15 +02:00
Roland Geider
9c851f202f Add test for setting model 2021-04-13 10:28:15 +02:00
Roland Geider
e3dc898a6e Return created workout and nutrition plan 2021-04-10 13:22:16 +02:00
Roland Geider
e60236042b Remove more hard coded strings 2021-04-10 13:22:15 +02:00
Roland Geider
ab5021fc12 Only attempt to draw log charts when there is data 2021-04-10 13:22:15 +02:00
Roland Geider
a24630424e Re-activate showing a snackbar after saving a log in the gym mode 2021-04-10 13:22:15 +02:00
Roland Geider
78c70c7918 Move gym mode content into a SafeArea widget 2021-04-10 13:22:15 +02:00
Roland Geider
b3dc1d23cb Don't prefill the user and password with development values 2021-04-10 13:22:15 +02:00
Roland Geider
e1d97f4f91 Make list of exercises in gym mode overview scrollable 2021-04-10 13:22:15 +02:00
Stefano Rossi
423ba71c3d Translated using Weblate (French)
Currently translated at 90.5% (86 of 95 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2021-04-09 20:10:17 +02:00
Stefano Rossi
c5574312b3 Translated using Weblate (Italian)
Currently translated at 100.0% (95 of 95 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2021-04-09 20:10:17 +02:00
Roland Geider
0b8c8ce3de Correctly fetch the synthetic repetitions when creating a workout 2021-04-09 18:18:57 +02:00