Commit Graph

94 Commits

Author SHA1 Message Date
Roland Geider
a2673fe764 Merge branch 'master' into feature/measurements
# Conflicts:
#	pubspec.lock
2021-08-25 16:52:15 +02:00
Roland Geider
0462e41b20 Expand test for nutrition diary detail view 2021-08-17 11:45:52 +02:00
Roland Geider
c191b3e27e Wrap detail diary widget in a card
This is needed because the icon button needs a parent that is a Material widget
2021-08-17 11:24:34 +02:00
Roland Geider
d8adbb8e7c Nutritional view now needs the body weight provider as well 2021-08-17 11:07:01 +02:00
Roland Geider
94f2ee1a65 Merge branch 'master' into feature/diary-page 2021-08-11 19:48:29 +02:00
Roland Geider
1515806c93 Check that initially there are no categories loaded 2021-07-24 22:20:06 +02:00
Roland Geider
7b792f5837 Group test files thematically 2021-07-24 22:16:07 +02:00
Roland Geider
be409333d6 Add measurement provider 2021-07-24 21:27:21 +02:00
Roland Geider
5e64feea30 Fix tests
The measurement entries are not directly loaded from JSON
2021-07-24 13:13:32 +02:00
ton-An
8be7b34368 Created tests for the measurement models
- Changed Measurement to MeasurementCategory
- Finished toJson and fromJson methods of the measurement models
2021-07-24 12:25:44 +02:00
Roland Geider
6646640b9c Show set notes on the workout and the gym mode
https://github.com/wger-project/wger/issues/702
2021-07-17 13:25:04 +02:00
Github-actions
97de128557 Automatic linting 2021-07-08 16:23:21 +00:00
Roland Geider
05b66605af Regenerate mocks and generated files 2021-07-08 18:12:19 +02:00
Github-actions
c877e436b0 Automatic linting 2021-06-22 21:10:15 +00:00
Github-actions
857d0453cc Automatic linting 2021-06-22 20:29:22 +00:00
Arun Muralidharan
50043269b9 Test
Added tests for TimeOfDay comparsion extensions.
2021-06-22 22:02:40 +02:00
Github-actions
7492b53c67 Automatic linting 2021-06-20 13:09:24 +00:00
Roland Geider
e57220938b Start working on nutritional diary detail page 2021-06-16 18:42:06 +02:00
Roland Geider
180e419e7e Group the plates for easier reading 2021-06-15 23:11:34 +02:00
Roland Geider
039b195e7a Fix error in plate calculator
The smallest plate was never being taken into consideration, as the loop never
reached it
2021-06-15 17:33:39 +02:00
Roland Geider
70e0620fe1 Don't make the +/- buttons part of the input field
This only makes the field focused which makes the keyboard appear, which is
exactly what we want to avoid when using the shortcuts
2021-06-15 16:30:12 +02:00
Roland Geider
b88c3290c1 Start implementing a plate calculator 2021-06-13 20:22:15 +02:00
Roland Geider
31edbb3b48 Loop through all result pages when loading logs 2021-05-19 22:34:36 +02:00
Roland Geider
e45115d26e Make RiR form element a slider
This allows the user to select the correct value faster
2021-05-19 21:35:07 +02:00
Roland Geider
8474d2d598 Allow the user to jump to the different exercises in the gym mode 2021-05-19 14:13:04 +02:00
Roland Geider
d5521082a6 Override the equals operator for workout plan logs
Two logs are considered equal if their content is equal. This is used e.g.
 in the gym mode where we want to have unique values
2021-05-18 22:14:58 +02:00
Roland Geider
e2ec4669ed Replace dropdown for impression with icons
This makes it more obvious and is easier and faster to use
2021-05-18 16:12:20 +02:00
Roland Geider
7bd1dcaa26 Replace exit icon on gym mode to something more standard 2021-05-18 15:38:24 +02:00
Roland Geider
b59e30b220 Send app information in the user agent when making requests 2021-05-17 20:06:46 +02:00
Roland Geider
2468e600c6 Fetch nutritional plan details when visiting the detail page
This helps reduce the data loaded when loading the app the first time

See #14
2021-05-13 13:35:16 +02:00
Roland Geider
b90d0a0008 Fetch plan details when visiting the detail page
See #14
2021-05-13 13:19:07 +02:00
Roland Geider
699ea87c5f Add some tests for the picture gallery 2021-05-11 13:44:04 +02:00
Roland Geider
123f64d0eb Add some tests for the picture gallery 2021-05-11 13:18:20 +02:00
Roland Geider
ee2e6ac671 Give providers a consistent name 2021-05-11 12:10:53 +02:00
Roland Geider
21cfa33978 Fix getter for images in exerciseinfo endpoint
This was renamed recently
2021-05-10 13:55:36 +02:00
Roland Geider
964af57f5b Commit generated files 2021-05-08 21:10:54 +02:00
Roland Geider
431f749674 Start adding user gallery 2021-05-06 14:02:04 +02:00
Roland Geider
6ab3e26db4 Rename workout description to name 2021-05-06 13:18:32 +02:00
Roland Geider
7efd46c1eb Commit generated mocks 2021-05-01 15:33:40 +02:00
Roland Geider
86d2b70057 Simple test for log forms in gym mode 2021-05-01 12:40:08 +02:00
Roland Geider
4935ad4c77 Comment test
We need a navigator stack to test that we arrive back at the detail page or at
least a navigator observer to check that we pop() the page
2021-04-28 12:52:06 +02:00
Roland Geider
32ecd9e6a1 Commit set model test stub 2021-04-28 10:46:57 +02:00
Roland Geider
90c1f3c3b6 Add simple test for exercise detail widget 2021-04-28 10:45:31 +02:00
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
adb1dec9e6 Revert "Add tests with golden files"
This reverts commit a7b67631df.
2021-04-24 13:47:28 +02:00
Roland Geider
a7b67631df Add tests with golden files
Let's see if this doesn't make too much work later on, when changing some detail
in a widget causes the test to fail
2021-04-24 12:31:08 +02:00
Roland Geider
3c21650003 Translate week day names in workout screens 2021-04-24 12:31:08 +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