Commit Graph

4795 Commits

Author SHA1 Message Date
Roland Geider
a0ca0bf724 Bump dependencies and add folder to dependabot.yml 2025-05-09 22:16:13 +02:00
Roland Geider
0bd3781da6 Merge pull request #813 from wger-project/feature/better-error-handling
Improve error handling and logging
2025-05-09 21:56:30 +02:00
Roland Geider
7c06b66b23 Update goldens 2025-05-09 21:53:11 +02:00
Roland Geider
e9435cd4aa Fix test 2025-05-09 21:46:09 +02:00
Roland Geider
7141e26480 Update SessionForm test 2025-05-09 21:23:09 +02:00
Roland Geider
01c5c9186d Merge branch 'master' into feature/better-error-handling
# Conflicts:
#	lib/widgets/routines/gym_mode/session_page.dart
2025-05-09 21:16:55 +02:00
Roland Geider
d663bcd88a Move common logic to SessionForm
Refactor and polish a bit the form in the log overview.
2025-05-09 21:12:49 +02:00
Roland Geider
e8ff3458e0 Merge branch 'master' into fork/Rohitdhall987/edit-session-feature 2025-05-09 14:57:53 +02:00
Roland Geider
42d4489060 Remove file, color tests are in test/helpers/colors_test.dart 2025-05-09 14:20:53 +02:00
Roland Geider
aafb2c90c8 Delete unused file 2025-05-09 14:16:45 +02:00
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
Shininess8816
97e63e3fc5 flutter pub run build_runner build && dart format --line-length=100 . 2025-05-08 22:36:14 +01:00
burny0202
0942739200 Allow the logging on meals with date times #789 2025-05-08 21:43:07 +01: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
41edc35650 Rework about us page and remove unused translation keys 2025-05-07 16:28:29 +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
Roland Geider
ecf30fe5fd Rename controller 2025-05-01 13:35:30 +02:00
Roland Geider
c4bc6bef0e Commit generated files 2025-05-01 13:35:01 +02:00
Roland Geider
f812910bdf Save the token to the right variable 2025-05-01 13:12:46 +02:00
Roland Geider
ad1c286fe7 Commit generated files 2025-04-30 22:56:07 +02:00
Roland Geider
ece38a39d2 Refactor login screen
The api token toggle is now only visible when showing a custom server, since at
the moment this is the only time when such an auth method makes sense (plus it
keeps the rest of the UI cleaner). The different fields in the screen have been
moved to individual files, to make the structure clearer.
2025-04-30 22:50:55 +02:00
Roland Geider
38cdc9f37c Merge branch 'master' into fork/eyJhb/api-token
# Conflicts:
#	lib/providers/auth.dart
2025-04-29 19:23:55 +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
Rohitdhall987
f45ed540b3 feat: allow editing old sessions via popup dialog 2025-04-25 22:55:56 +05:30
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