Roland Geider
bfc1ee92a2
Put control body in new line
2026-05-07 21:30:36 +02:00
Roland Geider
34b8989e5c
Add some more tests, some cleanup
2026-05-07 13:08:48 +02:00
Umaid Shahid
f62c6b2c89
Implement server-side language validation on exercise description steps
...
Closes #930 . The validateLanguage stub in AddExerciseProvider was making
the API call but ignoring the response and always returning false. This
wires it up properly: the method now returns null on success or the
server's error message on a language mismatch (caught from the 400
WgerHttpException). The stepper's onStepContinue is now async-aware for
steps 2 (Description) and 3 (Translation) — it calls validateLanguage
after form validation passes, blocks navigation, and displays the error
inline if the check fails. Mocks regenerated to reflect the return type
change from Future<bool> to Future<String?>.
2026-05-04 00:58:29 +02:00
AlexisBirling3
7fb64b2925
shortens the displayed error message and adds link to doc
2026-05-03 18:12:33 +02:00
AlexisBirling3
7d2b842f1a
adds a helper class to check sanity and implements widget to display sanity after auth
2026-05-03 18:12:33 +02:00
Roland Geider
ef70d8628d
Use correct controller
2026-04-23 17:04:59 +02:00
Roland Geider
cb6c0f9804
Merge pull request #1139 from NiazSagor/fix-redundant-loading
...
Prevent Redundant Loading in `NutritionalPlanScreen`
2026-03-28 20:46:38 +01:00
Roland Geider
4dd1e5ff28
Remove actions here
...
There's not really anything to go back to
2026-03-21 13:51:35 +01:00
Madhav
cb79c698ae
Improve server version parsing and add UI feedback
...
- Enhanced version parsing to handle Python/Django version formats more reliably
- Added serverUpdateRequired AuthState for proper UI routing
- Improved server version sanitization with better regex patterns
- Added UpdateServerScreen with localized user feedback
- Integrated into auth flow routing to show appropriate update messages
2026-03-12 22:34:11 +05:30
Madhav
6f34c05ccb
Add minimum server version check during login
...
The app already checks a minimum app version from the server, but the
opposite wasn't true — an app could connect to an older server with a
different API without any warning.
This adds a MIN_SERVER_VERSION constant in the app that is checked
against the server version (already fetched in AuthProvider) during
both login() and tryAutoLogin(). If the server is too old, the user
is silently logged out and returned to the auth screen to connect to
a compatible server.
Includes unit tests for version string parsing (including Python-style
pre-release versions like '2.5.0a2').
Closes #<issue-number>
2026-03-11 23:19:32 +05:30
NiazSagor
580039f4fb
Reformat code in NutritionalPlanScreen
...
Took 7 minutes
2026-03-04 22:07:01 +06:00
NiazSagor
6e95437301
fix: prevent FutureBuilder from reloading on every rebuild in NutritionalPlanScreen
...
Calling _loadFullPlan() directly inside build() caused a new Future to be
created on every rebuild (e.g. when opening the PopupMenuButton), which reset
the FutureBuilder to ConnectionState.waiting and showed the loading spinner
unnecessarily.
Fix: convert to StatefulWidget and initialize the Future once in
didChangeDependencies(), per Flutter's official FutureBuilder docs.
Ref: https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html
Took 45 minutes
2026-03-04 21:58:07 +06:00
cryptbrn
6317cc7fe9
fix add time when log meal and nutrition
2026-01-31 12:28:11 +07:00
Roland Geider
ff973dacc2
Merge pull request #1087 from cryptbrn/bugfix/fix-time-nutrition-log
...
add time when log meal and nutrition
2026-01-29 18:00:37 +01:00
Roland Geider
92aee1228e
Properly filter hidden widgets 🙄
2026-01-19 16:39:06 +01:00
Roland Geider
f5a591a3b7
Add trophies to configurable dashboard lists
2026-01-17 14:01:17 +01:00
Roland Geider
36bf6aa8fc
Merge branch 'master' into feature/trophies
...
# Conflicts:
# lib/main.dart
# lib/screens/dashboard.dart
2026-01-17 13:50:18 +01:00
Roland Geider
b81331609a
Also allow changing the order of the dashboard widgets
...
This makes the behaviour more consistent and allows users to remove widgets
they won't be using, like the trophies
2026-01-17 13:43:28 +01:00
Roland Geider
5574f74a2f
Move dashboard visibility settings to own screen
...
This seems cleaner and can be opened from other places
2026-01-17 12:50:07 +01:00
cryptbrn
339e00abd6
add time when log meal and nutrition
2026-01-17 15:32:24 +07:00
Roland Geider
3664da4f78
Merge branch 'master' into fork/dhituval/issue852/hide-diet-plan
2026-01-16 23:06:11 +01:00
Roland Geider
ec153c51df
i18n and other cleanup
2026-01-16 17:33:28 +01:00
Roland Geider
352a4b1c49
Also show the PR trophies in the regular log page
2026-01-10 16:40:58 +01:00
Roland Geider
36a3e7ef4a
Add overview page for the trophies
2025-12-20 21:25:18 +01:00
Roland Geider
b9fd061d33
Add dashboard widget and rework the provider
2025-12-20 02:06:08 +01:00
Roland Geider
077dcaf742
Handle HTML errors in WgerHttpException
...
These need to be handled separately when the server encounters an error and
returns HTML instead of JSON.
2025-12-17 18:59:45 +01:00
Roland Geider
21de3d663a
Merge pull request #1022 from DhruvSingh19/fix/dead-screen-fix
...
Fix: Dead-Screen Issue is fixed
2025-12-17 12:40:06 +01:00
dhituval
60f902fe14
Merge branch 'master' into issue852/hide-diet-plan
2025-12-08 14:00:39 -05:00
Diya Hituvalli
c0d04cbb11
allow the users to hide / show all widgets in the home screen
2025-12-08 13:57:42 -05:00
Roland Geider
a7f281bd3f
Merge pull request #989 from wger-project/feature/gym-mode
...
Gym mode improvements
2025-12-04 12:24:44 +01:00
DhruvSingh19
bc6a8a7273
Implemented Copilot's suggestions.
2025-12-04 09:46:17 +05:30
DhruvSingh19
13421c5471
Fix: Dead-Screen Issue is fixed
2025-12-03 23:44:01 +05:30
Roland Geider
5bc65f6141
Merge branch 'fork/Anupthor007/add-const-key-dashboard'
2025-12-02 13:53:06 +01:00
Roland Geider
56cdffb010
Merge branch 'master' into feature/gym-mode
...
# Conflicts:
# integration_test/3_gym_mode.dart
# ios/Podfile.lock
# lib/screens/gym_mode.dart
# pubspec.yaml
2025-12-02 12:35:32 +01:00
Roland Geider
60cb00945c
Small cleanups and optimizations
2025-12-01 23:00:23 +01:00
Roland Geider
559eb26631
Make the app work better on wider screens
2025-12-01 13:44:25 +01:00
Anupthor007
050fb3b943
chore: add super.key to DashboardScreen constructor
2025-11-30 14:01:17 +05:30
Roland Geider
aeb01a517b
Refactor widgets used in logs
...
We should try to reuse as many as possible in the end-of-gym-mode logs and in
the routine log page
2025-11-27 15:08:06 +01:00
Roland Geider
9fa4597f8c
Remove unused variables
2025-11-26 12:35:12 +01:00
Diya Hituvalli
9e24714cbd
Add user preference in settings to hide diet plan if not used
2025-11-19 14:32:02 -05:00
Roland Geider
9f66815e10
Merge branch 'master' into feature/gym-mode
...
# Conflicts:
# lib/widgets/routines/gym_mode/navigation.dart
# pubspec.lock
# test/exercises/contribute_exercise_image_test.mocks.dart
# test/exercises/contribute_exercise_test.mocks.dart
# test/nutrition/nutritional_meal_form_test.mocks.dart
# test/nutrition/nutritional_plan_form_test.mocks.dart
2025-11-19 19:18:45 +01:00
Roland Geider
fc881c4929
Properly handle timezones
...
This should (hopefully 🤞 ) take care of problems saving entries with timezone
information.
2025-11-18 16:30:52 +01:00
Roland Geider
66b18b6b3c
Further refactoring the gym mode
2025-11-14 14:41:25 +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
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
bb2fbc2c73
Rename files to follow naming schema of all others
2025-10-08 14:07:51 +02:00
Roland Geider
1a78011a7d
Refactor image handling in the exercise submission process
...
Now the images are kept in a single list, instead of having two for
the files themselves and the metadata.
2025-10-08 12:45:37 +02:00
Roland Geider
a10b7eb9f7
Pass parameter to create new variation and link exercises
2025-09-28 15:03:28 +02:00
Roland Geider
960abc9bec
Merge branch 'master' into feature/exercise-submission
2025-09-28 14:38:22 +02:00
Roland Geider
ccbaf0b42a
Allow multiple weight entries per day
2025-09-26 12:21:50 +02:00