Roland Geider
f32dec2b08
Merge branch 'master' into feature/offline-mode
...
# Conflicts:
# lib/main.dart
# lib/models/workouts/log.dart
# lib/models/workouts/session.g.dart
# lib/providers/exercises.dart
# lib/providers/gym_state.g.dart
# lib/providers/wger_base_riverpod.dart
# lib/screens/dashboard.dart
# lib/screens/home_tabs_screen.dart
# lib/widgets/core/app_bar.dart
# lib/widgets/core/settings.dart
# lib/widgets/dashboard/calendar.dart
# lib/widgets/dashboard/widgets/weight.dart
# lib/widgets/routines/gym_mode/log_page.dart
# lib/widgets/routines/gym_mode/summary.dart
# lib/widgets/routines/logs/day_logs_container.dart
# lib/widgets/routines/logs/exercises_expansion_card.dart
# pubspec.lock
# pubspec.yaml
# test/core/settings_test.dart
# test/core/settings_test.mocks.dart
# test/exercises/contribute_exercise_test.mocks.dart
# test/exercises/exercise_provider_db_test.dart
# test/exercises/exercise_provider_test.dart
# test/routine/gym_mode/gym_mode_test.mocks.dart
# test/routine/routine_logs_screen_test.dart
# test/routine/routine_logs_screen_test.mocks.dart
# test/routine/routines_provider_test.mocks.dart
# test/routine/routines_screen_test.mocks.dart
# test/weight/weight_provider_test.mocks.dart
# test/weight/weight_screen_test.mocks.dart
2026-01-19 13:16:55 +01:00
Roland Geider
4782c72934
Recreate generated files
2026-01-13 16:26:17 +01:00
Roland Geider
455c9a07b1
Merge branch 'master' into feature/powersync-test
...
# Conflicts:
# lib/helpers/errors.dart
# lib/models/workouts/log.dart
# lib/models/workouts/session.dart
# lib/providers/body_weight.dart
# lib/providers/exercises.dart
# lib/providers/gym_state.g.dart
# lib/providers/routines.dart
# lib/widgets/routines/forms/day.dart
# lib/widgets/routines/forms/reps_unit.dart
# lib/widgets/routines/forms/routine.dart
# lib/widgets/routines/forms/session.dart
# lib/widgets/routines/forms/slot.dart
# lib/widgets/routines/forms/slot_entry.dart
# lib/widgets/routines/gym_mode/log_page.dart
# lib/widgets/routines/gym_mode/session_page.dart
# pubspec.lock
# test/exercises/exercise_provider_test.dart
# test/routine/forms/session_form_test.dart
# test/routine/gym_mode/session_page_test.dart
# test/routine/routine_form_test.dart
2025-12-18 12:17:56 +01:00
Roland Geider
d187324a25
Properly handle null values
...
Basically all the fields can be nullable, so we need to set them if
we want to avoid LateInitialisation errors.
2025-12-18 10:58:40 +01:00
Roland Geider
e639709d24
Recreate generated files
2025-12-02 13:16:53 +01:00
Roland Geider
ecd0b6c6b4
Add overview page when a workout has been completed
2025-11-26 20:17:02 +01:00
Roland Geider
ae6db6ee07
Move to riverpod three
...
Needed to downgrade build_runner and mockito for now
2025-11-11 13:22:18 +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
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
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
3dc9519445
Move more usages to new exercise provider
2025-10-25 18:10:50 +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
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
4d2083f05a
Update body weight provider to use riverpod
2025-10-21 12:04:59 +02:00
Roland Geider
93a11a16e4
Recreate generated files and reformat the repo
...
Seems the default dart formatting rules changed recently, and this was causing
huge diffs in branches
2025-10-09 17:39:02 +02:00
Roland Geider
949ad02ab6
Add generated files
...
It seems a recent update changes the way dart code is formatted
2025-10-08 12:45:37 +02:00
Roland Geider
6ce57af131
Exclude some files from the coverage report
2025-03-31 12:24:21 +02:00
Roland Geider
df06cef398
await for all setExercisesAndUnits calls
...
Not setting the "await" was causing the method to be run asynchronously which means
that sometimes these would get called several times for the same exercise, which in
turn would cause exercises to be written several times to the local db, polluting the
exercise list, etc. etc.
We increase the schemaVersion of the database because this causes all the cache tables
to be dropped and re-created
2025-03-29 16:37:11 +01:00
Roland Geider
929acc7938
Refresh the whole routine after modifying a day
...
This makes sure that all the structures are present and have the correct
content (dayData, etc.)
2025-03-11 14:06:09 +01:00
Roland Geider
3e6ee0b082
Update models due to changes in exercise api response changes
2025-01-30 21:48:44 +01:00
Roland Geider
58e7a52e3d
Use log levels when logging to console
2025-01-25 12:45:33 +01:00
Roland Geider
86f8b7ae35
Add a third option to the theme mode
...
This allows the user to use the system settings as well, and not always force
light or dark mode in the app. Also move the logic to the UserProvider and
do some light refactoring.
2025-01-23 23:22:50 +01:00
Roland Geider
c664ccedfa
Update generated files
2024-10-29 19:05:20 +01:00
Roland Geider
6853946308
Recreate generated files
2024-09-29 20:14:36 +02:00
Roland Geider
dbdec5c9dd
Add tests for db cache
2024-09-27 11:11:35 +02:00
Roland Geider
26491bb8b9
Remove cache version handling from provider
...
This now happens as a database migration
2024-09-27 10:25:36 +02:00
Roland Geider
188dcddf23
Rename field to "lastFetched" and add migration class
2024-09-26 23:37:50 +02:00
Roland Geider
8ce9029459
Start migrating the ingredient cache to a local sqlite database
2024-09-26 21:18:54 +02:00
Dieter Plaetinck
6956fd6a89
dart run build_runner build (to fix syntax errors with new flutter)
2024-07-11 18:59:40 +03:00
Dieter Plaetinck
cf351c3690
dcm fix --only-rules=prefer-declaring-const-constructor lib
2024-06-07 14:59:00 +03:00
Roland Geider
5d237e1ddf
Consistently use "fiber"
2024-05-23 17:54:50 +02:00
Roland Geider
239e1a1caa
Consistently use "fibers" instead of "fibres"
2024-05-20 22:06:47 +02:00
Roland Geider
e67d992385
Add (for now) simple settings page to reset the exercise cache
...
This should be expanded later to allow to re-fetch all available exercises, etc.
2024-01-11 22:13:11 +01:00
Roland Geider
2c9a001f1c
Save the database to the application cache folder
...
The documents folder is suggested for files that can't be generated by the
application itself
2024-01-11 21:14:41 +01:00
Roland Geider
24e031d595
Finally fix the tests
...
We now dependency inject the database for the whole exercise provider,
this makes our lives a bit easier
2024-01-09 15:00:36 +01:00
Roland Geider
c4577ca5d7
Further tweaking exercise cache handling
...
handleUpdateExerciseFromApi should now be faster and save up on some requests.
Ideally we would pre-populate the database with all exercises on first run, or
even just ship it pre-filled
2023-12-28 17:48:15 +01:00
Roland Geider
b64458603f
Rename further occurrences of "exercise base" to just "exercise"
2023-12-26 21:38:07 +01:00
Roland Geider
c5cbb4f851
Rework exercise database
...
This is now separated into individual tables and methods so that they can be
tested separately
2023-12-26 17:03:20 +01:00
Roland Geider
65ba2275ae
Run "dart format --line-length=100 ." to make the diff smaller
2023-12-23 16:40:05 +01:00
Abhishek Saini
c69c639fac
fix(drift): built a model for exercise and fixes in fromSql type converter
2023-12-23 14:28:38 +05:30
Roland Geider
c514842b59
Lint the code with a line length of 100
...
This makes it easier to understand the diffs
2023-11-16 21:36:21 +01:00
Abhishek Saini
582bc611a4
feat(drift-database): Shifted from shared prefs to drift for Exercises
2023-11-16 22:34:40 +05:30