Commit Graph

3831 Commits

Author SHA1 Message Date
Roland Geider
ec153c51df i18n and other cleanup 2026-01-16 17:33:28 +01:00
Roland Geider
dce1b79683 Merge branch 'master' into feature/trophies
# Conflicts:
#	lib/providers/base_provider.dart
#	lib/providers/gym_state.dart
#	lib/providers/gym_state.g.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	test/core/settings_test.mocks.dart
#	test/exercises/contribute_exercise_image_test.mocks.dart
#	test/gallery/gallery_form_test.mocks.dart
#	test/gallery/gallery_screen_test.mocks.dart
#	test/measurements/measurement_provider_test.mocks.dart
#	test/nutrition/nutritional_plan_screen_test.mocks.dart
#	test/nutrition/nutritional_plans_screen_test.mocks.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/routine_screen_test.mocks.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/user/provider_test.mocks.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/widgets/routines/gym_mode/log_page_test.dart
2026-01-16 16:54:08 +01:00
Roland Geider
381d28d044 Slightly refactor the fetch session data part in the calendar.
In general, it doesn't make much sense that the sessions are the only data points
that are loaded live every time, all the others are simply read from the respective
providers. Hopefully all this can be removed when (if) we move to using a local sqlite
db with powersync.
2026-01-16 15:40:27 +01:00
Roland Geider
46fdf1efc7 Recreate generated files 2026-01-16 15:28:09 +01:00
Roland Geider
a249292afc Don't show the session time if it's not set 2026-01-16 15:27:04 +01:00
Roland Geider
53dcbd8c6c Don't mark nullable fields as "late"
These will be null and we avoid LateInitializationError errors

See #1079
2026-01-16 15:26:38 +01:00
Github-Actions
1146c3902f Bump version to 1.9.5 1.9.5 2026-01-14 20:58:11 +00:00
Roland Geider
5ef7671fab Bump version of flatpak-flutter 2026-01-14 21:53:59 +01:00
Roland Geider
7c0f47f548 Bump dependencies in Gemfile.lock 2026-01-14 19:23:46 +01:00
Roland Geider
aed0629201 Merge pull request #1069 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-01-14 15:15:58 +01:00
Benjamin Voisin
136607db25 Translated using Weblate (French)
Currently translated at 100.0% (369 of 369 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2026-01-14 14:59:23 +01:00
Roland Geider
6620a83baa Improve html error detection
In case the header is not correctly set, try to detect html error messages
from the content itself
2026-01-14 14:59:07 +01:00
Roland Geider
57f3df846b Merge pull request #1076 from wger-project/feature/retry-fetch-requests
Make fetch method more robust
2026-01-14 14:13:53 +01:00
Roland Geider
574ef3d0b5 Add simple retry logic to the base provider's fetch method
This should take care of simple transient errors, or other network hiccups
that might happen on the user's device.
2026-01-14 13:59:41 +01:00
Roland Geider
5844a370d3 Upgrade transitive packages 2026-01-13 16:32:21 +01:00
Roland Geider
64b0ce3cc6 Bump flutter version 2026-01-13 16:31:44 +01:00
Roland Geider
43427cbf8a Add riverpod linting 2026-01-13 16:31:44 +01:00
Roland Geider
2456bcb1df Merge pull request #1066 from wger-project/dependabot/pub/equatable-2.0.8
Bump equatable from 2.0.7 to 2.0.8
2026-01-13 16:31:37 +01:00
Roland Geider
77a777e29d Merge pull request #1061 from wger-project/dependabot/pub/multi-73181916d9
Bump flutter_riverpod, riverpod_generator and riverpod_annotation
2026-01-13 16:30:47 +01:00
Roland Geider
4782c72934 Recreate generated files 2026-01-13 16:26:17 +01:00
dependabot[bot]
814a356e14 Bump flutter_riverpod, riverpod_generator and riverpod_annotation
Bumps [flutter_riverpod](https://github.com/rrousselGit/riverpod), [riverpod_generator](https://github.com/rrousselGit/riverpod) and [riverpod_annotation](https://github.com/rrousselGit/riverpod). These dependencies needed to be updated together.

Updates `flutter_riverpod` from 3.0.3 to 3.1.0
- [Commits](https://github.com/rrousselGit/riverpod/compare/flutter_riverpod-v3.0.3...flutter_riverpod-v3.1.0)

Updates `riverpod_generator` from 3.0.3 to 4.0.0+1
- [Commits](https://github.com/rrousselGit/riverpod/compare/riverpod_generator-v3.0.3...riverpod_generator-v4.0.0)

Updates `riverpod_annotation` from 3.0.3 to 4.0.0
- [Commits](https://github.com/rrousselGit/riverpod/compare/riverpod_annotation-v3.0.3...riverpod_annotation-v4.0.0)

---
updated-dependencies:
- dependency-name: flutter_riverpod
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: riverpod_generator
  dependency-version: 4.0.0+1
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: riverpod_annotation
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-13 15:15:20 +00:00
Roland Geider
cbdc4a0c56 Increase page size for languages, no need to use pagination for this
Categories and muscles will probably never get so big, but it doesn't do any
harm doing it as well.
2026-01-12 21:59:52 +01:00
Roland Geider
c989733e5d Merge pull request #1074 from wger-project/fix/gym-mode-log-copy
Simplify code by adding new log provider
2026-01-12 21:51:00 +01:00
Roland Geider
fb6a673503 Simplify code by adding new log provider
This makes the logic for copying or modifying the logs much easier. Also,
there were some user reports that the old logic sometimes behaved erratically
and old values were sometimes reverted.
2026-01-12 21:40:11 +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
696b3333fb Only show the progression bar for uncompleted trophies 2026-01-10 12:57:52 +01:00
dependabot[bot]
16ea5233bc Bump equatable from 2.0.7 to 2.0.8
Bumps [equatable](https://github.com/felangel/equatable) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/felangel/equatable/releases)
- [Changelog](https://github.com/felangel/equatable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/felangel/equatable/compare/v2.0.7...v2.0.8)

---
updated-dependencies:
- dependency-name: equatable
  dependency-version: 2.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-05 00:03:33 +00:00
Roland Geider
994c962921 Bump flatpak-flutter version 2025-12-28 14:10:06 +01:00
Github-Actions
ed5ab7613b Bump version to 1.9.4 1.9.4 2025-12-23 15:07:35 +00:00
Roland Geider
54a2f0c2bc Bump versions in Gemfile.lock 2025-12-23 15:58:18 +01:00
Roland Geider
a06dca5eee Fix variable name 2025-12-23 15:50:32 +01:00
Roland Geider
8bc02dd29f Merge pull request #1049 from wger-project/feature/weblate
Translations update from Hosted Weblate
2025-12-23 15:44:43 +01:00
Justin Pinheiro
4bfcde044f Translated using Weblate (French)
Currently translated at 100.0% (369 of 369 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2025-12-23 14:44:30 +00:00
Floris C
0343a0c2a5 Translated using Weblate (Dutch)
Currently translated at 100.0% (369 of 369 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/nl/
2025-12-23 14:44:29 +00:00
Roland Geider
8963adb596 Merge pull request #1047 from wger-project/dependabot/bundler/ios/aws-sdk-s3-1.208.0
Bump aws-sdk-s3 from 1.176.0 to 1.208.0 in /ios
2025-12-23 15:44:21 +01:00
Roland Geider
52892db9b1 Allow passing the language to the fetch request
This allows us to use the trophy translations from the server.
2025-12-23 15:41:47 +01:00
Roland Geider
536f18805b Load context data for PR trophies
This allows us to show for which sets the user achieved new PRs
2025-12-21 20:40:20 +01:00
Roland Geider
0774571fbc Fix test 2025-12-20 21:34:33 +01:00
Roland Geider
36a3e7ef4a Add overview page for the trophies 2025-12-20 21:25:18 +01:00
Roland Geider
9e4897f516 Add smoke test for DashboardTrophiesWidget 2025-12-20 19:40:49 +01:00
Roland Geider
b9fd061d33 Add dashboard widget and rework the provider 2025-12-20 02:06:08 +01:00
Roland Geider
5d39ae5088 Start adding support for trophies 2025-12-20 00:55:33 +01:00
dependabot[bot]
b806a6b51c Bump aws-sdk-s3 from 1.176.0 to 1.208.0 in /ios
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.176.0 to 1.208.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)

---
updated-dependencies:
- dependency-name: aws-sdk-s3
  dependency-version: 1.208.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-18 19:25:12 +00:00
Roland Geider
0d0a5d8e02 Bump dependencies 2025-12-18 12:20:22 +01:00
Roland Geider
6a2158a397 Reload the session page in the gym mode
This makes sure that we have the current state and don't try to create a new session
which already exists
2025-12-18 11:59:26 +01:00
Roland Geider
a175201815 Merge pull request #1046 from wger-project/fix/late-initialization-error-logs
Fix/late initialization error logs
2025-12-18 11:59:14 +01:00
Roland Geider
40837ad1b3 Add tests 2025-12-18 11:31:58 +01:00
Roland Geider
d187324a25 Properly handle null values
Basically all the fields can be nullable, so we need to set them if
we want to avoid LateInitialisation errors.
2025-12-18 10:58:40 +01:00
Roland Geider
1f9a44d055 Merge pull request #1045 from wger-project/feature/html-error-handling
Handle HTML errors in WgerHttpException
2025-12-17 19:21:53 +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