Roland Geider
7e0910b56b
Handle network connectivity a bit different
...
When the server is not reachable, we show a slightly different error message
and remove the option to automatically create an issue.
2025-05-08 15:07:12 +02:00
Roland Geider
5e22d69bb1
Improve error handling and logging
...
Now we process and catch all errors that might happen in the application, instead
of silently ignoring them. These errors are shown in a better error dialog, that
shows the details to the user and allows to create an issue on GitHub with the
error and traceback data already filled in.
2025-05-07 18:19:15 +02:00
Roland Geider
7f42b47f97
Actually set the RiR value in the logs
2025-04-27 16:10:41 +02:00
Roland Geider
1ecbfa88d1
Correctly set the start and end time to null, if this is what comes from the API
2025-04-18 00:40:05 +02:00
Roland Geider
bc0672d81b
Correctly initialize the data in form from existing session
...
Also, add some simple tests for this
2025-04-17 17:30:01 +02:00
Roland Geider
8acde9adaa
Add startTime to GymState and update GymMode to use it
...
This keeps the start time, even if the user leaves the gym mode and returns
later, which is what we want anyway.
2025-04-17 16:34:42 +02:00
Roland Geider
c673fa0ea6
Add test for the workout log deletion dialog
2025-04-17 15:18:49 +02:00
Roland Geider
88d66b336c
Properly update the UI when deleting workout logs
...
The problem was that we were passing the exercises and session from the
calendar events, which wasn't being reloaded when the logs were deleted. Now
we only pass the selected date and fetch the logs from the routine.
2025-04-17 10:26:44 +02:00
Roland Geider
4920c2a091
Fix overflow bug in meal.dart
...
This should also fix the problem when generating the goldens. The loadAppFonts
and the check for Linux was removed as well, if the pseudo-font helps with a
constant rendering among all platforms we don't need those.
2025-04-12 17:57:24 +02:00
Roland Geider
4effd5af5a
Show server side validation errors
2025-04-04 19:22:21 +02:00
Roland Geider
bc45e46b11
Use clock package in workout_logs.dart
...
This is needed in order to be able to mock the current time in the tests
2025-03-30 12:44:32 +02:00
Roland Geider
301f48a966
More renaming of exercise base to just exercise
2025-03-29 15:50:13 +01:00
Roland Geider
9b1e369efe
Remove todo, we just merged the carousel for images
2025-03-29 15:31:44 +01:00
Roland Geider
6fd74f0f80
Use localized kcal message
2025-03-29 15:06:45 +01:00
Roland Geider
0cc0bc94fe
Merge branch 'fork/yashas-hm/yhm/issue-767'
2025-03-29 14:45:26 +01:00
Roland Geider
ef003c28ab
Add some padding so that the images don't collide with the info dots
2025-03-29 14:45:12 +01:00
Yashas H Majmudar
6d0d93bd8f
fix: unused import error
2025-03-28 22:08:29 -04:00
Yashas H Majmudar
8f9ae5bcc0
update: carousel to carousel slider
2025-03-27 11:22:03 -04:00
Yashas H Majmudar
3716dae2d2
update: custom carousel indicator spacing
2025-03-27 10:07:30 -04:00
Yashas H Majmudar
808970d738
feat: Carousel for images in exercise details
2025-03-27 10:06:03 -04:00
Yashas H Majmudar
7728bb0d70
Merge branch 'master' into yhm/issue-724
...
# Conflicts:
# AUTHORS.md
# ios/Runner.xcodeproj/project.pbxproj
2025-03-26 18:45:56 -04:00
thisisyoussef
b1328fa048
Added to AUTHORS.md
2025-03-26 21:32:03 +01:00
thisisyoussef
3312da1f61
Fix rendering of muscles in MuscleWidget
...
Ensure that when a muscle is both main and secondary, only the main muscle background is drawn.
This addresses potential overlaps and redundant rendering in the MuscleWidget.
2025-03-26 21:32:03 +01:00
Yashas H Majmudar
ce07a9cf00
format dart convention
2025-03-26 12:25:50 -04:00
Yashas H Majmudar
59799669c7
update: ingredient image look
2025-03-26 12:16:27 -04: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
3ca0c1781f
Add a maximum height for exercise images
2025-03-26 16:24:54 +01:00
Roland Geider
821ffbfc2e
Merge pull request #766 from yashas-hm/yhm/issue-743
...
Exercise filters bug fix: Issue #743
2025-03-26 15:54:19 +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
b2802e3a98
fix: isExpanded variable bool flip
2025-03-25 23:10:05 -04:00
Roland Geider
86b61916f4
Remove the simple_barcode_scanner dependency
...
Turns out, we weren't even using it (or flutter_barcode_scanner)...
2025-03-21 09:10:49 +01:00
Roland Geider
d6eba96e50
Remove again the "Till end of the week" message
...
This wasn't describing properly how the rest days are being handled
2025-03-19 22:24:21 +01:00
Roland Geider
90681fadd9
Split up the gym mode widgets
2025-03-19 10:33:06 +01:00
Roland Geider
b681c264b3
Allow the session ID to be nullable
...
This will be filled in automatically by the backend
2025-03-19 10:19:54 +01:00
Roland Geider
f65a0dfbc8
Change weight and reps by the configured rounding value
2025-03-19 09:37:38 +01:00
Roland Geider
da059e7c36
Adjust image width for consistent sizing
2025-03-18 23:24:04 +01:00
Roland Geider
fea9d89621
Refactor widget so it's easier to test
2025-03-18 21:13:28 +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
b8f4167c9e
Show special tile indicating end of the week
2025-03-18 16:14:22 +01:00
Roland Geider
f987de1b4d
Handle case where an exercise has no variations
2025-03-18 14:59:33 +01:00
Roland Geider
1c2e988c82
Show the start and end dates for the current routine in the dashboard
...
The date in which the routine was created is not so important anymore
2025-03-17 21:03:12 +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
1c8c2f7256
Don't show edit button in view mode
2025-03-17 19:27:43 +01:00
Roland Geider
afff6731da
Group settings by exercise if these are the same
2025-03-17 13:23:10 +01:00
Roland Geider
d5a262491a
Add missing semantic labels
2025-03-17 13:22:02 +01:00
Roland Geider
ac458575b8
More renaming exerciseBase to exercise and exercise to translation
2025-03-17 13:21:51 +01:00
Roland Geider
0e4dbba245
Re-add showing null days
...
Still need a better solution in the UI for this, though
2025-03-15 14:59:59 +01:00
Roland Geider
8de2199742
Render the "add day" within a Card
...
This makes it visually more similar to the rest of the options
2025-03-14 15:16:21 +01:00
Roland Geider
a2ef3278fa
Show the trailing icon for the current day on rest days as well
2025-03-13 14:26:34 +01:00