Commit Graph

3118 Commits

Author SHA1 Message Date
Roland Geider
7cde4e82ea Recreate generated files 2025-05-09 14:12:47 +02:00
Roland Geider
0863b44fe6 Merge branch 'master' into feature/better-error-handling
# Conflicts:
#	lib/screens/home_tabs_screen.dart
#	test/workout/day_form_test.mocks.dart
#	test/workout/gym_mode_session_screen_test.mocks.dart
#	test/workout/repetition_unit_form_widget_test.mocks.dart
#	test/workout/routine_edit_screen_test.mocks.dart
#	test/workout/routine_edit_test.mocks.dart
#	test/workout/routine_form_test.mocks.dart
#	test/workout/routine_logs_screen_test.mocks.dart
#	test/workout/slot_entry_form_test.mocks.dart
#	test/workout/weight_unit_form_widget_test.mocks.dart
2025-05-09 14:11:17 +02:00
Roland Geider
f8000a5454 Catch and handle WgerHttpException specially
This shows the server errors directly in the form, instead of a modal dialog
(which is the default for all the other forms and places that throw the exception)
2025-05-09 13:54:58 +02:00
Roland Geider
013721ba71 Refactor WgerHttpException
We can now use a widget to show any errors returned by WgerHttpException. This has
to be added on a form-by-form basis, otherwise, the general error handling shows
the results in a modal dialog
2025-05-08 22:06:48 +02:00
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
dependabot[bot]
b98cc9b33a Bump provider from 6.1.4 to 6.1.5
Bumps [provider](https://github.com/rrousselGit/provider) from 6.1.4 to 6.1.5.
- [Commits](https://github.com/rrousselGit/provider/compare/provider-v6.1.4...provider-v6.1.5)

---
updated-dependencies:
- dependency-name: provider
  dependency-version: 6.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 12:33:53 +02:00
dependabot[bot]
9e4cfc9797 Bump drift from 2.26.0 to 2.26.1
Bumps [drift](https://github.com/simolus3/drift) from 2.26.0 to 2.26.1.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift-2.26.0...drift-2.26.1)

---
updated-dependencies:
- dependency-name: drift
  dependency-version: 2.26.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 12:33:34 +02:00
dependabot[bot]
f14fd9039b Bump drift_dev from 2.26.0 to 2.26.1
Bumps [drift_dev](https://github.com/simolus3/drift) from 2.26.0 to 2.26.1.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift_dev-2.26.0...drift_dev-2.26.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 12:33:24 +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
dc512c36b0 Merge pull request #807 from wger-project/fix/refresh-routine-dashboard
Improve routine handling in the dashboard
2025-05-03 18:44:29 +02:00
Roland Geider
9ebaf58fea Refactor routine handling for the dashboard widgets
This makes sure that edits to the routine (such as changing the order
of the days, etc.) are properly reflected in the dashboard.
2025-05-03 15:39:46 +02:00
dependabot[bot]
79bab32034 Bump flutter_svg from 2.0.17 to 2.1.0
Bumps [flutter_svg](https://github.com/flutter/packages/tree/main/third_party/packages) from 2.0.17 to 2.1.0.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/flutter_svg-v2.1.0/third_party/packages)

---
updated-dependencies:
- dependency-name: flutter_svg
  dependency-version: 2.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 19:12:27 +02:00
dependabot[bot]
4a111ec871 Bump flutter_zxing from 1.8.2 to 2.0.0
Bumps [flutter_zxing](https://github.com/khoren93/flutter_zxing) from 1.8.2 to 2.0.0.
- [Changelog](https://github.com/khoren93/flutter_zxing/blob/main/CHANGELOG.md)
- [Commits](https://github.com/khoren93/flutter_zxing/commits)

---
updated-dependencies:
- dependency-name: flutter_zxing
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 18:38:50 +02:00
dependabot[bot]
bbde1ff575 Bump mockito from 5.4.5 to 5.4.6
Bumps [mockito](https://github.com/dart-lang/mockito) from 5.4.5 to 5.4.6.
- [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)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 18:37:51 +02:00
Github-Actions
0a3f26aae9 Bump version to 1.8.2+70 1.8.2 2025-04-27 14:32:37 +00:00
Roland Geider
73e7e735dd Merge pull request #783 from wger-project/feature/weblate
Translations update from Hosted Weblate
2025-04-27 16:26:56 +02:00
Matteo Morari
c27395635e Translated using Weblate (Italian)
Currently translated at 94.2% (278 of 295 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2025-04-27 16:13:19 +02:00
dependabot[bot]
73672dd204 Bump json_serializable from 6.9.4 to 6.9.5
Bumps [json_serializable](https://github.com/google/json_serializable.dart) from 6.9.4 to 6.9.5.
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](https://github.com/google/json_serializable.dart/compare/json_serializable-v6.9.4...json_serializable-v6.9.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-27 16:13:14 +02:00
Roland Geider
7f42b47f97 Actually set the RiR value in the logs 2025-04-27 16:10:41 +02:00
Roland Geider
40753ff1f6 Update Gemfile.lock 2025-04-26 20:29:28 +02:00
Roland Geider
614664257e Fix linting errors in AUTHORS.md 2025-04-26 09:22:35 +02:00
Roland Geider
07f38a8d60 Merge pull request #794 from wger-project/fix/gym-mode-time
Fix gym mode start time problem
2025-04-18 00:47:18 +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
8294d66b32 Merge pull request #791 from wger-project/fix/delete-workout-logs
Properly update the UI when deleting workout logs
2025-04-17 15:27:21 +02:00
Roland Geider
9d05c9e297 Update goldens 2025-04-17 15:20:34 +02:00
Roland Geider
c673fa0ea6 Add test for the workout log deletion dialog 2025-04-17 15:18:49 +02:00
Roland Geider
c2280aa57c Bump flutter version 2025-04-17 10:44:59 +02:00
Roland Geider
4d0936706c Update goldens 2025-04-17 10:35:31 +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
dependabot[bot]
8591edafae Bump freezed from 3.0.4 to 3.0.6
Bumps [freezed](https://github.com/rrousselGit/freezed) from 3.0.4 to 3.0.6.
- [Commits](https://github.com/rrousselGit/freezed/compare/freezed-v3.0.4...freezed-v3.0.6)

---
updated-dependencies:
- dependency-name: freezed
  dependency-version: 3.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-12 21:13:58 +02:00
Roland Geider
98580890ba Merge pull request #762 from yashas-hm/yhm/issue-732
golden_toolkit to flutter_test Migration: #732
2025-04-12 20:37:27 +02:00
Roland Geider
edc432de9e Merge remote-tracking branch 'yashas-hm/yhm/issue-732' into fork/yashas-hm/yhm/issue-732 2025-04-12 20:30:41 +02:00
Roland Geider
686c3857a1 Update goldens 2025-04-12 20:30:07 +02:00
Roland Geider
1da7100374 Update goldens 2025-04-12 18:27:49 +02:00
Roland Geider
67ee79b54b Seems the rendering is not that equal after all...
Also add a constant device size for all goldens
2025-04-12 18:16:07 +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
a62ef074db Merge branch 'master' into fork/yashas-hm/yhm/issue-732
# Conflicts:
#	AUTHORS.md
#	pubspec.yaml
#	test/workout/goldens/routine_logs_screen_detail.png
#	test/workout/routine_logs_screen_test.dart
2025-04-12 16:54:07 +02:00
Roland Geider
1cd0cab87d Upload the exe artifact to the release as well 2025-04-05 19:51:19 +02:00
Github-Actions
05f1d9b5cd Bump version to 1.8.1+60 1.8.1 2025-04-05 17:01:45 +00:00
Roland Geider
fde147370a Run the Github and Flathub release jobs 2025-04-05 18:58:21 +02:00
Github-Actions
3185fedb00 Bump version to 1.8.1+60 2025-04-05 16:54:19 +00:00
Roland Geider
6587d1874a Tag the correct commit 2025-04-05 18:45:44 +02:00
Roland Geider
a23da30e88 Allow manually triggering the CI workflow 2025-04-05 18:26:29 +02:00
Roland Geider
952a11a98d Don't need to remove folders from coverage twice 2025-04-05 18:25:38 +02:00
Roland Geider
50a6b420f1 Add missing title 2025-04-05 18:11:38 +02:00
Roland Geider
cad57d1986 Also push tags to master 2025-04-05 17:34:46 +02:00
Roland Geider
17a50231cc Merge pull request #757 from wger-project/feature/weblate
Translations update from Hosted Weblate
2025-04-05 15:45:25 +02:00
Greg
5b1b096422 Translated using Weblate (Hungarian)
Currently translated at 7.7% (23 of 295 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hu/
2025-04-05 13:11:33 +00:00