Commit Graph

64 Commits

Author SHA1 Message Date
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
Roland Geider
b175763c94 Test that the current workout description is pre filled 2021-04-23 10:44:05 +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
Roland Geider
8c31f2ef09 Add more tests 2021-04-21 22:05:50 +02:00
Roland Geider
4f06e9b083 Bump dependencies versions 2021-04-21 11:02:19 +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
5051c28c40 Test that old logs are shown in the gym mode 2021-04-19 16:31:57 +02:00
Roland Geider
7e2ba3468d Show past logs in gym mode
See #13
2021-04-15 13:28:12 +02:00
Roland Geider
9988807c25 Move data to test data folder 2021-04-15 11:05:35 +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
9b791eba8c Add simple widget test for workout plan screen 2021-04-13 17:50:42 +02:00
Roland Geider
47e9c12d26 Add simple widget test for nutritional plan screen 2021-04-13 17:12:30 +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
6d67fefb1b Don't generate mocks for weight_provider_test.dart
This is already done for the base test
2021-04-07 14:12:51 +02:00
Roland Geider
bf9abea7aa Render forms in own scaffold
This eliminates many of the overflow problems from the bottom sheet
2021-04-02 17:35:31 +02:00
Roland Geider
63584fb8f2 Use individual endpoints to load plan data
While this results in way more requests needed, it has the great benefit of using
the same data structure for reading and writing. This saves us a lot of headaches
in the data modelling and we don't have to care that the info endpoints looked a
bit different.
2021-04-01 16:28:35 +02:00
Roland Geider
97829e0408 Add more tests for nutrition and workout plan overview 2021-03-30 13:25:36 +02:00
Roland Geider
5263c074f2 Make tests work with (no sound) null safety 2021-03-30 12:51:18 +02:00
Roland Geider
ecd2773a87 Upgrade packages and move application to null safety 2021-03-25 22:20:16 +01:00
Roland Geider
c6228ec048 Add more tests for the body weight screen 2021-03-19 10:23:57 +01:00
Roland Geider
d4ca43291d Skip auth card tests and add body weight ones 2021-03-18 22:10:43 +01:00
Roland Geider
b647ec64ca Set correct workoutID name 2021-03-10 11:06:52 +01:00
Roland Geider
0ce2b6efca Move URI generation to helper 2021-03-09 11:42:44 +01:00
Roland Geider
af5027b7ab Remove unneeded whitespace 2021-01-23 10:54:52 +01:00
Roland Geider
62926ae549 Refactor makeUrl
The object ID is an integer and there is now an objectMethod for special object
endpoints.
2021-01-22 23:11:52 +01:00
Roland Geider
26dafb7ccc Sort weight entries by date (newest first) 2021-01-19 11:48:26 +01:00
Roland Geider
696eb30c26 Use constants for HTTP headers 2021-01-19 11:32:58 +01:00
Roland Geider
fdc3996aed Fix base provider test 2020-12-28 18:27:59 +01:00