Commit Graph

3440 Commits

Author SHA1 Message Date
Roland Geider
ba34570a3d Add image upload methods
We use the "manual" way as it was before, since there were some problems
making this work and most of the errors were happening during the exercise
creation itself.
2025-09-19 22:27:04 +02:00
Roland Geider
9ea8362d20 Show an overview with the new exercise data before saving
Also, correctly parse all validation errors that might be returned by the server
2025-09-19 16:59:18 +02:00
Roland Geider
711d7c0aba Update exercise submission model and related files
This now uses the combined endpoint, which creates the different objects
itself within a transaction, ensuring that no orphans can be created.
2025-09-18 21:57:27 +02:00
Roland Geider
4c34f91028 Merge pull request #905 from wger-project/feature/better-logging
Save the application logs locally
2025-09-16 15:21:51 +02:00
Roland Geider
10f82e2d85 Merge pull request #918 from wger-project/fix/make-routineId-nullable
Make routineId nullable in session and related files
2025-09-16 14:55:31 +02:00
Roland Geider
798406eaa9 Make routineId nullable in session and related files
Sessions can be added ad-hoc, without needing to be part of any specific
routine.
2025-09-16 14:47:47 +02:00
Roland Geider
3747e81a93 Update mac's Podfile.lock 2025-09-16 14:45:16 +02:00
Roland Geider
9b3957fe35 Use "clock" for mocking dates and datetimes
This should make the tests a bit more robust, specially in CI since these
tended to fail depending on how long and when the tests run. Also, rework
a bit the way the start and end dates in sessions were being handled and
initialised
2025-09-16 14:45:16 +02:00
dependabot[bot]
15805f20bf Bump build_runner from 2.7.1 to 2.7.2
Bumps [build_runner](https://github.com/dart-lang/build) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_runner-v2.7.1...build_runner-v2.7.2)

---
updated-dependencies:
- dependency-name: build_runner
  dependency-version: 2.7.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 12:27:48 +02:00
dependabot[bot]
343c4fd96c Bump mockito from 5.5.0 to 5.5.1
Bumps [mockito](https://github.com/dart-lang/mockito) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/dart-lang/mockito/releases)
- [Changelog](https://github.com/dart-lang/mockito/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/mockito/commits/v5.5.1)

---
updated-dependencies:
- dependency-name: mockito
  dependency-version: 5.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 12:20:05 +02:00
dependabot[bot]
c776bf1bbe Bump package_info_plus from 8.3.1 to 9.0.0
Bumps [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) from 8.3.1 to 9.0.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v9.0.0/packages/package_info_plus)

---
updated-dependencies:
- dependency-name: package_info_plus
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 12:16:10 +02:00
Roland Geider
f6f81318fc Add logging to the Exercise model 2025-09-12 14:03:18 +02:00
Roland Geider
1c969ebc10 Add logging to IngredientTypeahead 2025-09-12 14:03:18 +02:00
Roland Geider
823b5015eb WorkoutLogs can be a StatelessWidget 2025-09-12 14:03:18 +02:00
dependabot[bot]
67241ed04c Bump drift_dev from 2.28.1 to 2.28.2
Bumps [drift_dev](https://github.com/simolus3/drift) from 2.28.1 to 2.28.2.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift_dev-2.28.1...drift_dev-2.28.2)

---
updated-dependencies:
- dependency-name: drift_dev
  dependency-version: 2.28.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 12:09:29 +02:00
dependabot[bot]
992da42de4 Bump flutter_svg from 2.2.0 to 2.2.1
Bumps [flutter_svg](https://github.com/flutter/packages/tree/main/third_party/packages) from 2.2.0 to 2.2.1.
- [Commits](https://github.com/flutter/packages/commits/flutter_svg-v2.2.1/third_party/packages)

---
updated-dependencies:
- dependency-name: flutter_svg
  dependency-version: 2.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 16:31:48 +02:00
dependabot[bot]
55a805077c Bump json_serializable from 6.11.0 to 6.11.1
Bumps [json_serializable](https://github.com/google/json_serializable.dart) from 6.11.0 to 6.11.1.
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](https://github.com/google/json_serializable.dart/compare/json_serializable-v6.11.0...json_serializable-v6.11.1)

---
updated-dependencies:
- dependency-name: json_serializable
  dependency-version: 6.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 16:31:38 +02:00
dependabot[bot]
1f30b90ddb Bump build_runner from 2.7.0 to 2.7.1
Bumps [build_runner](https://github.com/dart-lang/build) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_runner-v2.7.0...build_runner-v2.7.1)

---
updated-dependencies:
- dependency-name: build_runner
  dependency-version: 2.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 16:31:27 +02:00
Roland Geider
5a4357d27d Fix gym_mode_screen_test.dart, set correct mocks 2025-09-08 16:00:05 +02:00
Roland Geider
407db9cd61 Bump kotlin, SDK, NDK and gradle versions 2025-09-08 13:39:20 +02:00
Roland Geider
b298aaee19 The argument "synthetic-package" no longer has any effect 2025-09-08 13:32:48 +02:00
Roland Geider
68e8721cdb Refresh routine data on load when starting the gym mode
This prevents errors when the user created or deleted a workout session for
the current routine over the web interface

See #876
2025-09-07 15:32:19 +02:00
Roland Geider
48d314f2a0 Use bigger pagination sizes when loading workout sessions 2025-09-07 15:26:08 +02:00
Roland Geider
8574bcad19 Allow the error widget to scroll for longer error messages 2025-09-07 15:25:50 +02:00
Roland Geider
d56c3b2e45 Handle corner cases with null values
While this should not happen, it seems there are situations when some people
do run into the "Null check operator used on a null value" error here.

Closes #878
2025-09-06 23:44:54 +02:00
Roland Geider
0a8dd4928b Merge pull request #906 from wger-project/fix/fix-debounce-time
Don't hammer the server with search requests
2025-09-06 22:54:37 +02:00
Roland Geider
af482ab9e3 Set a debounce time for TypeAhead-fields (exercises and ingredients) 2025-09-06 22:46:13 +02:00
Roland Geider
5a4d4c7208 Save the application logs
This allows us to show the logs to the user and also send them along with any
bug reports. This is a simple system that just keeps the last entries in memory
and nothing is stored permanently, but that's ok for our use case and can be
changed in the future if the need arises.
2025-09-06 22:08:35 +02:00
Roland Geider
d1d6392ee1 Merge pull request #904 from wger-project/feature/cache-control
Improve exercise cache control
2025-09-06 15:11:58 +02:00
Roland Geider
47d782fc43 Re-fetch unit data if necessary 2025-09-06 15:06:09 +02:00
Roland Geider
d85ee13ed9 Give users more control over the exercise cache
This allows users to manually refresh the cache and load all exercises
from the server.
2025-09-06 15:05:52 +02:00
Roland Geider
c89ccb630c Use max pagination size when loading data
This is a workaround for #867, but not a real solution
2025-09-06 00:50:00 +02:00
Roland Geider
4330e51f86 Retrieve the current routine dynamically
This behaviour is now the same as the nutritional plans.
2025-09-05 22:47:27 +02:00
Roland Geider
244468fbca Update deployment target for ios 2025-09-05 22:37:14 +02:00
dependabot[bot]
5c80fe2a9a Bump font_awesome_flutter from 10.9.0 to 10.10.0
Bumps [font_awesome_flutter](https://github.com/fluttercommunity/font_awesome_flutter) from 10.9.0 to 10.10.0.
- [Release notes](https://github.com/fluttercommunity/font_awesome_flutter/releases)
- [Changelog](https://github.com/fluttercommunity/font_awesome_flutter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fluttercommunity/font_awesome_flutter/commits/10.10.0)

---
updated-dependencies:
- dependency-name: font_awesome_flutter
  dependency-version: 10.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 15:34:05 +02:00
dependabot[bot]
29cbd21460 Bump fl_chart from 1.0.0 to 1.1.0
Bumps [fl_chart](https://github.com/imaNNeo/fl_chart) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/imaNNeo/fl_chart/releases)
- [Changelog](https://github.com/imaNNeo/fl_chart/blob/main/CHANGELOG.md)
- [Commits](https://github.com/imaNNeo/fl_chart/compare/1.0.0...1.1.0)

---
updated-dependencies:
- dependency-name: fl_chart
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 15:33:20 +02:00
Roland Geider
bffab575c3 Merge pull request #903 from wger-project/feature/bump-flutter
Bump flutter version to 3.35
2025-09-04 15:25:16 +02:00
Roland Geider
d447f4be1a Bump flutter version to 3.35 2025-09-04 15:19:29 +02:00
Roland Geider
0f44e0b25f Refactor the general error popup
This should make it clearer where the messages and titles come from
2025-09-04 14:34:52 +02:00
Roland Geider
22924d1cf3 Merge pull request #900 from wger-project/fix/video-error-handling
Improve video error handling
2025-09-03 17:23:26 +02:00
dependabot[bot]
e896a2eeab Bump json_serializable from 6.10.0 to 6.11.0
Bumps [json_serializable](https://github.com/google/json_serializable.dart) from 6.10.0 to 6.11.0.
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](https://github.com/google/json_serializable.dart/compare/json_serializable-v6.10.0...json_serializable-v6.11.0)

---
updated-dependencies:
- dependency-name: json_serializable
  dependency-version: 6.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-03 16:04:08 +02:00
Roland Geider
1dc3776e7e Improve video error handling
Users now see a smaller error message in the exercise description, instead
of the big general popup.
2025-09-02 14:49:28 +02:00
Roland Geider
76adb1aa8f Localize field names in routine form 2025-08-28 22:47:31 +02:00
Roland Geider
8a1b615cd6 Merge pull request #891 from wger-project/fix/timezone-problems
Better handling of time zones
2025-08-28 22:42:21 +02:00
Roland Geider
fa96378815 Import datetime extension 2025-08-28 22:35:36 +02:00
Roland Geider
99580490d3 Fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-28 22:25:11 +02:00
Roland Geider
92295c54b8 Merge branch 'master' into fix/timezone-problems 2025-08-28 22:19:31 +02:00
Github-Actions
e41b088a77 Bump version to 1.8.4 1.8.4 2025-08-28 12:04:44 +00:00
Roland Geider
207fc521af Try another solution for the xcode and ios version problem 2025-08-28 14:00:12 +02:00
Roland Geider
fb92e33c66 Reset build nr and flatpak versions 2025-08-28 14:00:07 +02:00