Branislav Nohaj
c3a150cfed
Update contribute_exercise_test.mocks.dart
2025-11-06 19:04:52 +01:00
Branislav Nohaj
297460e42d
dart format contribute_exercise_test.dart
2025-11-05 20:17:13 +01:00
Branislav Nohaj
0bf4de6cc8
Update contribute_exercise_test.dart
...
reworked tests with new testcases
2025-11-04 16:12:03 +01:00
Branislav Nohaj
7bc8463406
dar format was performed
2025-10-04 11:13:10 +02:00
Branislav Nohaj
e9ab11c8bb
added better comments
2025-10-04 10:58:36 +02:00
Branislav Nohaj
ed8e9ec744
Added option in mobile app to add more info about image
2025-10-04 10:22:01 +02:00
Roland Geider
a10b7eb9f7
Pass parameter to create new variation and link exercises
2025-09-28 15:03:28 +02:00
Roland Geider
ba34570a3d
Add image upload methods
...
We use the "manual" way as it was before, since there were some problems
making this work and most of the errors were happening during the exercise
creation itself.
2025-09-19 22:27:04 +02:00
Roland Geider
711d7c0aba
Update exercise submission model and related files
...
This now uses the combined endpoint, which creates the different objects
itself within a transaction, ensuring that no orphans can be created.
2025-09-18 21:57:27 +02:00
Roland Geider
798406eaa9
Make routineId nullable in session and related files
...
Sessions can be added ad-hoc, without needing to be part of any specific
routine.
2025-09-16 14:47:47 +02:00
Roland Geider
d85ee13ed9
Give users more control over the exercise cache
...
This allows users to manually refresh the cache and load all exercises
from the server.
2025-09-06 15:05:52 +02:00
Roland Geider
70fba34f0c
Better handling of time zones
...
We now send the current time zone to the server when serializing datetime objects.
This was causing entries to be saved some hours wrong or depending on the time, on
a different day.
2025-05-26 11:13:53 +02:00
Roland Geider
d2dd9c144d
Fix some paths and recreate generated files
2025-05-16 18:01:30 +02:00
Roland Geider
9ebaf58fea
Refactor routine handling for the dashboard widgets
...
This makes sure that edits to the routine (such as changing the order
of the days, etc.) are properly reflected in the dashboard.
2025-05-03 15:39:46 +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
301f48a966
More renaming of exercise base to just exercise
2025-03-29 15:50:13 +01:00
Roland Geider
c28ec70fb6
Fix borked imports?
2025-03-29 14:50:41 +01:00
Roland Geider
47f6aa36d3
Formatting
2025-03-29 14:32:58 +01:00
Yashas H Majmudar
e363a4152f
add: documentation
2025-03-23 14:40:17 -04:00
Yashas H Majmudar
d31dc16bcf
migration: migrated all instances of sharedPreferences to sharedPreferencesAsync for tests
2025-03-23 14:26:28 -04:00
Roland Geider
d071d143df
Update flutter to 3.29
...
The translations are not stored in a synthetic package anymore, but the
files are just copied to a specific folder so it can be more easily imported
Also, flutter_barcode_scanner was replaced by simple_barcode_scanner since
the first hasn't been updated in 3 years and was already causing problems
for some time
2025-03-18 17:28:19 +01:00
Roland Geider
80d59e729b
Fix test
2025-03-18 16:01:15 +01:00
Roland Geider
3ef8b62d53
Update exercise info API paths
2025-02-01 15:29:14 +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
079db5d5e0
Recreate generated files
2025-01-24 15:07:51 +01:00
Roland Geider
a770c97573
Add smoke test for the routine edit form
2025-01-21 20:58:57 +01:00
Roland Geider
3a398d0f36
Simplify arguments for routine objects and add a smoke test
2025-01-18 19:37:33 +01:00
Roland Geider
5a39c6c229
Rename some functions, a bit of cleanup
2025-01-10 15:52:26 +01:00
Roland Geider
12f22d214a
Rename widget folder
2024-11-10 14:51:11 +01:00
Roland Geider
9ff2bba13a
Load the new DayData entries and the regular data objects from structure endpoint
2024-10-30 23:19:10 +01:00
Roland Geider
a79b6d6b4e
Start implementing new flexible routines
2024-10-30 19:17:51 +01:00
Roland Geider
7db93f0b6e
Start implementing new flexible routines
2024-10-30 12:14:26 +01:00
Roland Geider
72a68b4f59
Allow resetting the ingredient cache from the settings page
2024-09-29 11:25:14 +02:00
Roland Geider
dbdec5c9dd
Add tests for db cache
2024-09-27 11:11:35 +02:00
Dieter Plaetinck
85c245d67d
dcm fix --only-rules=unnecessary-trailing-comma lib test test_data
2024-09-18 16:01:10 +03:00
Dieter Plaetinck
66ced6ccc4
dcm fix --only-rules=prefer-trailing-comma lib test test_data integration_test
2024-09-18 16:00:43 +03:00
Dieter Plaetinck
a589d87fad
dcm fix --only-rules=avoid-redundant-async
2024-09-18 15:52:55 +03:00
Roland Geider
5d237e1ddf
Consistently use "fiber"
2024-05-23 17:54:50 +02:00
Roland Geider
faf1018f2a
Fixes for flutter typeahead 5.1.0
...
Also, add some models for the API response from the search
2024-01-29 12:07:26 +01:00
Roland Geider
dd12e040e9
Fun "dart fix"
2024-01-22 09:55:29 +01: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
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
f951b6117a
Try to generate ExerciseApiData objects only within the exercises model
2023-12-28 22:32:28 +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
35a9dc046f
Add test for force initializing the cache dates
2023-12-27 13:41:50 +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