Commit Graph

167 Commits

Author SHA1 Message Date
Roland Geider
ec2325b3e2 Redirect to the correct screen after editing a workout plan 2021-04-08 13:09:28 +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
fad1e9e61c Replace generic "add" label with "add set" 2021-04-08 12:57:20 +02:00
Roland Geider
1d1d62d950 Search ingredients and exercises in the current locale 2021-04-08 12:46:36 +02:00
Roland Geider
e9446e8cae Redirect to the correct screen after editing a nutritional plan 2021-04-08 12:39:06 +02:00
Roland Geider
19d8862fb6 Localize the nutrition diary dates 2021-04-08 12:21:17 +02:00
Roland Geider
0a2222de21 Add a new line after the macroutrient name
This makes the pie chart more readable, before the grams were often cropped
2021-04-08 12:19:37 +02:00
Roland Geider
81a22a4052 Fix error when that prevented adding ingredients to a meal 2021-04-08 12:16:57 +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
dbcb1efb43 When editing a weight entry, don't pre select the current date 2021-04-07 21:02:48 +02:00
Roland Geider
596385fbc2 Replace deprecated snackbar method 2021-04-07 20:56:14 +02:00
Roland Geider
aae79cb4a5 Render the exercise's description HTML 2021-04-07 13:46:32 +02:00
Roland Geider
392c353b85 Show reps and weight for each exercise in gym mode 2021-04-07 13:17:18 +02:00
Roland Geider
5557686ff7 Polish the gym mode and other widgets 2021-04-06 20:41:44 +02:00
Roland Geider
9edcaaaf0f Saving sessions at the end of the gym mode works 2021-04-06 10:48:15 +02:00
Roland Geider
8326fe2aee Rename some methods for more consistency 2021-04-05 19:00:31 +02:00
Roland Geider
6a63a390ef Use a nutritional plan object again for editing / adding 2021-04-05 18:59:17 +02:00
Roland Geider
8f7fb744aa Make form for workout day scrollable 2021-04-05 18:36:14 +02:00
Roland Geider
9e8d2e055a Polish the add set form 2021-04-05 17:20:46 +02:00
Roland Geider
110579aeb7 Some cleanup work on exercise images 2021-04-02 21:01:47 +02:00
Roland Geider
ba0fa896e1 Remove hard coded strings from forms 2021-04-02 18:00:35 +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
ecd2773a87 Upgrade packages and move application to null safety 2021-03-25 22:20:16 +01:00
Roland Geider
5b06a86576 Add overflow behaviour for workout day descriptions 2021-03-20 00:05:16 +01:00
Roland Geider
64d6e85e48 Show the body weight as the title
That is probably more important than the date
2021-03-19 23:41:31 +01:00
Roland Geider
1af8ab9ef4 Localize dates 2021-03-19 10:02:07 +01:00
Roland Geider
d4ca43291d Skip auth card tests and add body weight ones 2021-03-18 22:10:43 +01:00
Roland Geider
892e9657c2 Alow the user to delete workout days 2021-03-18 11:03:44 +01:00
Roland Geider
06e30c8b0a Simplify start page for gym mode 2021-03-18 10:51:43 +01:00
Roland Geider
07e51ac3a6 Allow deleting whole sets, not settings 2021-03-18 10:45:15 +01:00
Roland Geider
97d025c529 Make behaviour of workout and nutritional plans more consistent 2021-03-17 23:42:32 +01:00
Roland Geider
9f1332549d I18n more confirmation messages 2021-03-17 12:50:59 +01:00
Roland Geider
5aa55b2f4d Round nutritional values in the dashboard 2021-03-17 12:49:43 +01:00
Roland Geider
438ce00e0a Use workout description as title and date as subtitle
This makes more sense and is consistent with the nutritional plan list
2021-03-17 12:00:18 +01:00
Roland Geider
0cc240bebc More work with workout and nutritional plans detail page 2021-03-17 00:13:26 +01:00
Roland Geider
ef645e10f4 Make app more inviting when the user has no workout plans, etc. 2021-03-16 22:42:10 +01:00
Roland Geider
f8a7560da0 Show nutritional plan details on dashboard 2021-03-16 12:49:41 +01:00
Roland Geider
df8bd5557b Move forms in gym mode to the bottom of the screen 2021-03-12 20:26:19 +01:00
Roland Geider
fd10731d81 Make showFormBottomSheet a bit more configurable
Most dialogs are small enough that they don't need to take all that space, also
the controls should be as near to the user's fingers as possible
2021-03-12 13:31:16 +01:00
Roland Geider
676e53bd9b Workout day dismissible only starts the gym mode
The regular log entry forms will come later
2021-03-12 13:12:50 +01:00
Roland Geider
cc729f305b Replace more unstranslated strings 2021-03-12 13:07:52 +01:00
Roland Geider
d1da745d58 Move form elements to listview to allow for scrolling 2021-03-12 11:45:14 +01:00
Roland Geider
8e297d5330 Make current workout more aesthetic
(this probably needs to be moved to its own widget)
2021-03-11 13:16:58 +01:00
Roland Geider
84f314d15d Set the reps to the repetitions controller... 2021-03-11 13:05:04 +01:00
Roland Geider
13b69b1dff Correctly go to previous page 2021-03-11 13:03:40 +01:00
Roland Geider
592378f775 Add 'gym mode' to translation files
(testing weblate integration)
2021-03-11 12:07:46 +01:00
Roland Geider
d8fe89ba56 Move translations to new i18n approach 2021-03-10 23:32:23 +01:00
Roland Geider
e8608976ea Make forms in gym mode work 2021-03-10 12:05:27 +01:00