Commit Graph

446 Commits

Author SHA1 Message Date
Roland Geider
6742c8091a Return the actions enum directly, no need for a dict here 2025-04-01 21:39:45 +02:00
Roland Geider
61f61a64c5 Merge branch 'master' into feature/improve-min-app-version
# Conflicts:
#	lib/providers/auth.dart
2025-03-31 09:44:43 +02:00
Roland Geider
b0e6b3d1a9 Load app fonts 2025-03-30 12:26:13 +02:00
Roland Geider
db6687010d Mock the current day in the routine logs test
The calendar marks the current day, so the goldens were constantly changing
and would always fail.
2025-03-30 12:17:15 +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
804624c384 update goldens 2025-03-29 14:51:44 +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
3d89027ed2 Merge remote-tracking branch 'origin/yhm/issue-731' into yhm/issue-731 2025-03-28 22:38:02 -04:00
Yashas H Majmudar
7786416ed3 fix: auth screen test issue 2025-03-28 22:37:00 -04:00
Roland Geider
e4b550ab52 Refactor app version handling and update authentication flow
Previously, this was only triggered when logging in to the application. If a user
just opened the app, it would just stop working. We also now always check this min
version and have removed the option from the android manifest file since disabling
this doesn't make much sense and we have many other platforms as well (iOS, flatpak)
2025-03-28 17:22:36 +01:00
Roland Geider
cde9d64a2c Merge branch 'master' into yhm/issue-731 2025-03-28 16:15:52 +01:00
Roland Geider
94cef0278c update goldens 2025-03-28 16:08:44 +01:00
Roland Geider
ae64c2377d update goldens 2025-03-26 18:28:55 +01:00
Roland Geider
d2097bf319 Show full exercise info in gym mode
This makes the ExerciseOverview smaller and more consistent

See #301
2025-03-26 16:31:27 +01:00
Roland Geider
74752505eb Change rir and rirTarget types from String to num
This is more consistent with the other fields and is now the same as the backend
2025-03-26 15:03:15 +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
4fe4d488b2 Update goldens 2025-03-19 22:55:37 +01:00
Roland Geider
90681fadd9 Split up the gym mode widgets 2025-03-19 10:33:06 +01:00
Roland Geider
fea9d89621 Refactor widget so it's easier to test 2025-03-18 21:13:28 +01:00
Roland Geider
bf8e0b6af8 Remove test
This is already available in gallery_form_test.dart
2025-03-18 20:26:49 +01:00
Roland Geider
f3152aa0f4 Update goldens 2025-03-18 20:25:14 +01: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
f987de1b4d Handle case where an exercise has no variations 2025-03-18 14:59:33 +01:00
Roland Geider
58a641d298 Also put the list tile to add exercises in a card
This makes it look the same as the one to add new days and makes for
a more consistent behaviour
2025-03-17 19:44:58 +01:00
Roland Geider
5fdcb63207 Remove the optional refresh parameter
We always want to refresh the data since we don't update manually the
dayData lists
2025-03-17 19:27:43 +01:00
Roland Geider
b868911a3f update goldens 2025-03-17 13:29:29 +01:00
Roland Geider
9f13e371ba Fix test 2025-03-15 14:54:39 +01:00
Roland Geider
715ad1865b Update goldens 2025-03-14 15:45:15 +01:00
Roland Geider
fee27ac75d Remove debug output 2025-03-11 21:46:16 +01:00
Roland Geider
68585bf22f Update goldens 2025-03-11 21:46:00 +01:00
Roland Geider
6039f51b2a If there is a rest time, show a countdown timer in the gym mode 2025-03-11 21:42:41 +01:00
Roland Geider
325cc93865 Refresh the whole routine after modifying further objects.
This makes sure that all the structures are present and have the correct
content (dayData, etc.). Also, add more feedback to the user for some operations
that take a bit longer due to loading the whole routine.
2025-03-11 20:36:38 +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
eecaa6fcf0 Merge branch 'feature/flexible-routines' into Jackpkn-fix/gym-provider-navigation 2025-02-21 22:16:25 +01:00
Roland Geider
4f94a6a41e Make the repetition and weight units nullable as per the backend 2025-02-21 16:37:16 +01:00
Roland Geider
14a5d7285b Extract the day data for the current routine
instead of loading the same data from the server
2025-02-16 21:19:17 +01:00
Roland Geider
460b6e7125 Add smoke test for fetchAndSetRoutineFull 2025-02-02 22:38:05 +01:00
Roland Geider
888989a8f3 Update goldens 2025-02-02 14:51:12 +01:00
Roland Geider
2498183094 Rename further instances of "reps" to "repetitions" 2025-02-01 19:24:15 +01:00
Roland Geider
323b18320f Rename key to be more consistent 2025-02-01 15:34:00 +01:00
Roland Geider
3ef8b62d53 Update exercise info API paths 2025-02-01 15:29:14 +01:00
Roland Geider
110c98ffbd Merge branch 'feature/flexible-routines' into Jackpkn-fix/gym-provider-navigation 2025-01-31 21:33:57 +01:00
Roland Geider
8fa75c2aa6 Update goldens 2025-01-31 16:35:48 +01:00
Roland Geider
ef4db2c772 Pass the routine ID to the RoutineScreen widget 2025-01-31 16:24:21 +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
b4f8a59a70 Add the newly created session to the routine 2025-01-26 15:07:37 +01:00