Commit Graph

2082 Commits

Author SHA1 Message Date
Roland Geider
406fb3c795 Move some methods to the RoutineState 2025-11-10 16:11:57 +01:00
Roland Geider
e1359d0c51 Add a new riverpod provider for the routines
This is not a wrapper around the old one, which was making problems.
Delete unneeded generated files as well.
2025-11-10 15:37:59 +01:00
Roland Geider
49873d20bd Cleanup some of the models 2025-11-08 23:07:40 +01:00
Roland Geider
4a2047ec8b Edit sessions with the new sessions provider 2025-11-08 17:15:17 +01:00
Roland Geider
2132249682 Wrap the routines provider
This makes it easier to load the data from the powersync database
2025-11-07 15:10:04 +01:00
Roland Geider
3905a91bf3 Notes is nullable on the db
It's probably a good idea to change this and simply handle empty strings
2025-11-07 14:16:13 +01:00
Roland Geider
e975eee9f2 Refactor the django powersync connector 2025-11-05 16:51:43 +01:00
Roland Geider
dd3f993d11 Remove old exercises provider 🥲 2025-11-04 22:26:30 +01:00
Roland Geider
72deeda4f7 Update session and log models 2025-11-04 16:15:37 +01:00
Roland Geider
1e9e5ab24c Fix some more tests 2025-11-04 16:15:06 +01:00
Roland Geider
5912cea664 Fix some tests 2025-11-04 15:23:55 +01:00
Roland Geider
743b28b1a1 Use directly the the weight unit providers 2025-11-04 14:33:20 +01:00
Roland Geider
a368fe2f79 Pass the exercises and workout units as parameters
If the routine provider is rewritten to be a riverpod provider as well,
we will be able to simply read the necessary providers ourselves as needed.
2025-11-04 14:25:25 +01:00
Roland Geider
120487682a Remove json serializable code for exercise models 2025-11-03 17:41:05 +01:00
Roland Geider
1fcd01e14c Fix some tests 2025-11-03 17:25:48 +01:00
Roland Geider
d1e6a04ece Remove old exercise database 2025-11-03 16:53:10 +01:00
Roland Geider
88891582e9 Add tables and providers for weight and repetition units 2025-11-03 16:13:29 +01:00
Roland Geider
9040106939 Rework the base data providers, fix some tests 2025-11-03 15:40:37 +01:00
Roland Geider
30c7c5ad8b Move more widgets to use the new providers 2025-10-31 12:59:10 +01:00
Roland Geider
92eee49a7b Remove unused methods from exercise provider 2025-10-31 11:29:59 +01:00
Roland Geider
2b44a1eade Remove the exercise cache settings tile
This is now handled automatically by powersync
2025-10-31 10:59:48 +01:00
Roland Geider
b8ea38b951 Use WarningCard to display offline mode 2025-10-31 10:36:10 +01:00
Roland Geider
7d1c03a0a5 Pre-load all exercises on opening the app 2025-10-29 15:30:35 +01:00
Roland Geider
eb087e1aca Set correct nullable attributes 2025-10-29 15:28:53 +01:00
Roland Geider
b17f39fffd Set foreign key relationships for the exercise tables 2025-10-28 13:53:34 +01:00
Roland Geider
c60cfbe347 Add tables for workout sessions 2025-10-26 18:18:22 +01:00
Roland Geider
14ff95a4ff Read the powersync URL from the server's response 2025-10-26 12:40:56 +01:00
Roland Geider
2aa120602b Remove the json serializable decorators, not needed anymore 2025-10-26 00:23:38 +02:00
Roland Geider
d138e0f013 Add new network provider to check connectivity and disable options 2025-10-26 00:04:55 +02:00
Roland Geider
3dc9519445 Move more usages to new exercise provider 2025-10-25 18:10:50 +02:00
Roland Geider
ca007d2335 Move more usages to new exercise provider 2025-10-25 02:08:34 +02:00
Roland Geider
5ab04cb6df Remove filters from old exercise provider 2025-10-25 01:13:51 +02:00
Roland Geider
1128269332 Missing M2N table 2025-10-25 01:11:07 +02:00
Roland Geider
e99fbc32ed Use the new drift provider to load the exercises in their overview 2025-10-25 01:10:51 +02:00
Roland Geider
52a3ceda20 Also load the corresponding equipment 2025-10-25 01:10:07 +02:00
Roland Geider
666359155d Use the powersync drift provider to show exercises 2025-10-24 20:52:02 +02:00
Roland Geider
7969376dce Test how feasible it is to load exercises via powersync as well 2025-10-24 01:21:13 +02:00
Roland Geider
944830eb0f Rename provider file 2025-10-23 22:23:46 +02:00
Roland Geider
d255cdb573 Consolidate body weight repositories and other providers, cleanup 2025-10-23 22:19:31 +02:00
Roland Geider
8b8c4626eb Powersync seems to be working now 2025-10-23 15:32:21 +02:00
Roland Geider
017cccab18 Start adding drift and using riverpod 2025-10-22 20:49:38 +02:00
Roland Geider
76f894ab33 Start actually interacting with powersync 2025-10-21 15:04:53 +02:00
Roland Geider
4d2083f05a Update body weight provider to use riverpod 2025-10-21 12:04:59 +02:00
Roland Geider
08a22e5ab0 Allow selecting start dates for routines in the future 2025-10-17 18:53:31 +02:00
Roland Geider
547a259df8 Rename parameter 2025-10-17 18:28:46 +02:00
Roland Geider
119bd4c115 Merge pull request #955 from GaecKo/feature/end_workout_button
Feature/end_workout_button in "jump to" section
2025-10-17 18:28:26 +02:00
Roland Geider
3a37c3fb1c Move form to its own widget
This is cleaner and will allow us to get better errors in case they happen,
see e.g. #936
2025-10-17 17:28:59 +02:00
Arthur De Neyer
0533e8e927 NavigationHeader: made totalPages parameter facultative 2025-10-17 17:09:29 +02:00
Arthur De Neyer
2822ba755e NavigationHeader constructor: optimized and reduced attributes 2025-10-17 16:51:09 +02:00
Roland Geider
c551b176fb Merge pull request #950 from wger-project/feature/day-type
Set day and set types
2025-10-17 00:13:50 +02:00