Commit Graph

2255 Commits

Author SHA1 Message Date
Madhav
3fd0de3257 Apply dart format 2026-03-12 22:48:21 +05:30
darshAnup24
d780050a98 Merge branch 'wger-project:master' into feature/min-server-version-check 2026-03-12 22:42:57 +05:30
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
Roland Geider
937734e4c4 Merge branch 'fork/saraswathirajkumar18/enhancement/persist-ingredient-filters'
# Conflicts:
#	pubspec.lock
2026-03-11 15:39:58 +01:00
Roland Geider
885d88180b Refactor ingredient filter provider
No need to hard code the preferences in main
2026-03-11 15:39:38 +01:00
Roland Geider
25d2353cd2 Limit the number of logs sent when reporting issues to github
This was reaching the GET parameter length, see #2246
2026-03-08 13:09:58 +01:00
Saraswathi
efeeea85ab enhancement:persist-ingredient-filters in nutrition 2026-03-05 16:48:52 +05:30
Roland Geider
ae89b5c6ea Commit generated files 2026-03-02 20:18:32 +01:00
Roland Geider
50ec06d216 Merge branch 'master' into feature/vegan-flags
# Conflicts:
#	lib/l10n/app_de.arb
2026-02-28 12:03:57 +01:00
saraswathi
2c21f9f1f8 Translated using Weblate (Tamil)
Currently translated at 77.8% (291 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:31 +00:00
saraswathi
8712e7928e Translated using Weblate (Tamil)
Currently translated at 77.0% (288 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:30 +00:00
David Peñas
41ea6dfa7a Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:29 +00:00
Alejandro Castro
85bde2d2c5 Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:28 +00:00
Daniel Garrido
e3cbd7ede6 Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:27 +00:00
saraswathi
0f8bbf0666 Translated using Weblate (Tamil)
Currently translated at 76.2% (285 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:26 +00:00
David Peñas
59713d9abb Translated using Weblate (Spanish)
Currently translated at 99.7% (373 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:25 +00:00
Ninguém Mesmo
f62635d038 Translated using Weblate (Portuguese)
Currently translated at 85.5% (320 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-02-27 12:03:24 +00:00
Viktor Nedanovski
fe22f399d5 Translated using Weblate (Macedonian)
Currently translated at 61.7% (231 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/mk/
2026-02-27 12:03:23 +00:00
Hesham sraj
d11e281915 Translated using Weblate (Arabic)
Currently translated at 78.3% (293 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-02-27 12:03:21 +00:00
Viktor Nedanovski
dc25c8598c Translated using Weblate (Macedonian)
Currently translated at 59.3% (222 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/mk/
2026-02-27 12:03:20 +00:00
Viktor Nedanovski
f5d71d8af2 Added translation using Weblate (Macedonian) 2026-02-27 12:03:19 +00:00
Luca Galli
1e22e56acb Translated using Weblate (Italian)
Currently translated at 86.3% (323 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2026-02-27 12:03:18 +00:00
Arga Pandika
cc86ff6ce2 Translated using Weblate (Indonesian)
Currently translated at 82.6% (309 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/id/
2026-02-27 12:03:17 +00:00
saalaataa
8ab413f603 Translated using Weblate (Polish)
Currently translated at 83.4% (312 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pl/
2026-02-27 12:03:16 +00:00
Alejandro Castro
2594f79e8e Translated using Weblate (Spanish)
Currently translated at 98.3% (368 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-02-27 12:03:15 +00:00
Floris C
0666fe4f53 Translated using Weblate (Dutch)
Currently translated at 98.3% (368 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/nl/
2026-02-27 12:03:14 +00:00
Roland Geider
6946844889 Translated using Weblate (German)
Currently translated at 98.6% (369 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2026-02-27 12:03:13 +00:00
kobo
270cb0dd8c Translated using Weblate (Korean)
Currently translated at 82.6% (309 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ko/
2026-02-27 12:03:12 +00:00
தமிழ்நேரம்
6466171376 Translated using Weblate (Tamil)
Currently translated at 75.4% (282 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-02-27 12:03:11 +00:00
Kilian
4807a8394e Translated using Weblate (French)
Currently translated at 98.3% (368 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2026-02-27 12:03:11 +00:00
Ninguém Mesmo
daf6c3d650 Translated using Weblate (Portuguese)
Currently translated at 85.2% (319 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-02-27 12:03:10 +00:00
FilipeAb
7eae27cd2f Translated using Weblate (Portuguese (Portugal))
Currently translated at 86.6% (324 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_PT/
2026-02-27 12:03:09 +00:00
niduss
98e31dcfd9 Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.1% (371 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-02-27 12:03:08 +00:00
Nicholas Lilletvedt
1a2a6bda67 Translated using Weblate (Norwegian Bokmål)
Currently translated at 25.4% (95 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/nb_NO/
2026-02-27 12:03:07 +00:00
Milo Ivir
8c4f83c81a Translated using Weblate (Croatian)
Currently translated at 100.0% (374 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-02-27 12:03:06 +00:00
youkarin
32f90bec33 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 83.9% (314 of 374 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hans/
2026-02-27 12:03:05 +00:00
Roland Geider
51b65664cb Refactor language handling when searching ingredients
While this has technically nothing to do with the vegan flags, we can refactor the
language handling while we're at it. This should make the behaviour more transparent
to the user and could be expanded in the future if needed (manually selecting other
languages, etc.).
2026-02-27 12:31:52 +01:00
Roland Geider
81430ff7bc Cleanup 2026-02-27 11:37:00 +01:00
Roland Geider
92a43c6ca7 Add vegan and vegetarian fields and filters to the ingredient 2026-02-26 23:07:13 +01:00
Roland Geider
ef649ad439 Merge pull request #1122 from alexisbirling-boop/improve-product-not-found-dialog
Improve product not found dialog
2026-02-24 21:14:08 +01:00
Roland Geider
dee6c12cea Fixed i18n
and added a max allowed weight as well (but this should probably be done everywhere)
2026-02-24 21:08:37 +01:00
Roland Geider
34403b462a Merge branch 'master' into fork/dhituval/issue721/fix-ingredient-weight 2026-02-24 20:53:11 +01:00
Roland Geider
06de449d20 Add logging when tne unawaited handleUpdateExerciseFromApi
This call might be causing problems when the app is sent to the background
2026-02-24 20:52:52 +01:00
alexisbirling-boop
1ba38b7cf4 Merge branch 'wger-project:master' into improve-product-not-found-dialog 2026-02-24 14:50:41 -05:00
AlexisBirling3
da4c0e7af3 Puts the dialog in a new column and changes style to default 2026-02-24 14:40:55 -05:00
Roland Geider
7ec5fe1027 Also send the platform as the user agent
This will allow us to see which clients are more common
2026-02-20 16:31:24 +01:00
Roland Geider
06e24ba387 Remove duplicated import 2026-02-20 12:03:47 +01:00
Roland Geider
86ce2fc9d6 Split up the widgets in log_page.dart file 2026-02-20 11:58:47 +01:00
Roland Geider
7294f33685 Further increase the default timeout
Specially on self-hosted servers the exercise response might take a long time to complete
2026-02-20 11:58:46 +01:00