Roland Geider
a2673fe764
Merge branch 'master' into feature/measurements
...
# Conflicts:
# pubspec.lock
2021-08-25 16:52:15 +02:00
Roland Geider
e8c5b09c5a
Actually delete the logs from the server...
2021-08-16 19:07:49 +02:00
Roland Geider
d35e46514e
Allow deleting nutritional diary entries
2021-08-16 18:50:30 +02:00
Roland Geider
c00a755f0d
Reset the plan's logs when loading new ones
2021-08-16 18:05:12 +02:00
Roland Geider
d01986238f
Show percent of energy and g per body-kg for macros
2021-08-16 16:24:12 +02:00
Roland Geider
de84c24e72
Don't use the canonical form endpoint
...
This was removed on the server
2021-08-11 13:28:37 +02:00
Roland Geider
0639c29b3c
Don't use the canonical form endpoint
...
This was removed on the server
2021-07-24 21:55:55 +02:00
Roland Geider
be409333d6
Add measurement provider
2021-07-24 21:27:21 +02:00
Roland Geider
2ce9a8c8f3
Don't load category ID
...
The info endpoint returns the category object
2021-07-08 18:21:43 +02:00
Arun Muralidharan
7eb26da243
Reorder Sets
...
Now updates order upon deletion as well. Order will be set to length of sets upon adding a new one.
2021-06-28 21:56:25 +02:00
Arun Muralidharan
22993a0151
Reorder List
...
Change in order now reflects in DB as well.
2021-06-28 14:59:43 +02:00
Github-actions
c877e436b0
Automatic linting
2021-06-22 21:10:15 +00:00
Github-actions
7492b53c67
Automatic linting
2021-06-20 13:09:24 +00:00
Roland Geider
d0ec542801
Add methods to allow editing a workout day
2021-05-24 11:58:54 +02:00
Roland Geider
31edbb3b48
Loop through all result pages when loading logs
2021-05-19 22:34:36 +02:00
Roland Geider
1ea13bb649
Reset the log list when loading the plan
...
Otherwise every time the user opens a workout, the logs will get added again and
again to the list
2021-05-18 22:14:58 +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
26fc59974d
Fetch exercises from server if they are not known locally
...
This fixes a bug where the workout would not load when an exercise was added to
the database after the exercises were cached locally.
2021-05-17 12:41:19 +02:00
Roland Geider
642b0b8658
No need to fetch all nutritional diary logs on the dashboard
...
This happens when loading the full plan anyway
2021-05-13 14:10:14 +02:00
Roland Geider
eb3214ab2f
Further reduce the number of requests needed to load the plans sparsely
2021-05-13 13:56:16 +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
b8e0136540
Clear data when logging out
2021-05-12 14:13:20 +02:00
Roland Geider
ee2e6ac671
Give providers a consistent name
2021-05-11 12:10:53 +02:00
Roland Geider
4728360149
Move gallery to own provider
...
Since this has its own icon in the main navigation
2021-05-11 11:48:28 +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
4cb473ebf3
Allow editing existing image entries
2021-05-10 13:24:51 +02:00
Roland Geider
3c96476bdb
Show bigger version of image when clicking on it
2021-05-10 00:01:32 +02:00
Roland Geider
edbb49e688
Allow submitting images to the gallery
2021-05-08 12:13:34 +02:00
Roland Geider
431f749674
Start adding user gallery
2021-05-06 14:02:04 +02:00
Roland Geider
6fa492c569
Set correct type for metadata variable
2021-04-30 11:28:18 +02:00
Roland Geider
4c7452e634
Fix bug preventing addind and editing meal items
2021-04-28 11:47:30 +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
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
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
7e2ba3468d
Show past logs in gym mode
...
See #13
2021-04-15 13:28:12 +02:00
Roland Geider
6973f2eb52
Read exercise data as UTF8
2021-04-13 11:10:40 +02:00
Roland Geider
ad7507c8b7
Update license header as well
2021-04-13 10:28:15 +02:00
Roland Geider
0b8c8ce3de
Correctly fetch the synthetic repetitions when creating a workout
2021-04-09 18:18:57 +02:00
Roland Geider
ddad869fc9
Don't use the returned workout plan when editing
...
This gets rid of all attached objects such as days
2021-04-08 13:04:11 +02:00
Roland Geider
1d1d62d950
Search ingredients and exercises in the current locale
2021-04-08 12:46:36 +02:00
Roland Geider
68268757b8
Don't allow selecting a date if there is already an entry
2021-04-07 21:26:14 +02:00
Roland Geider
eca0336706
Initialise the weight and reps unit objects for computed settings
2021-04-07 12:37:06 +02:00
Roland Geider
5557686ff7
Polish the gym mode and other widgets
2021-04-06 20:41:44 +02:00
Roland Geider
8326fe2aee
Rename some methods for more consistency
2021-04-05 19:00:31 +02:00
Roland Geider
110579aeb7
Some cleanup work on exercise images
2021-04-02 21:01:47 +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
ecd2773a87
Upgrade packages and move application to null safety
2021-03-25 22:20:16 +01:00
Roland Geider
ab974aab86
Move computed settings to set loop
...
Format of REST API changed in server
2021-03-19 23:41:04 +01:00
Roland Geider
1ad4e5aebb
Move default server to constants file
2021-03-18 11:16:22 +01:00