Commit Graph

4698 Commits

Author SHA1 Message Date
Praharsha2007
86745ec3f6 feat : implemented dynamic colour support 2026-08-03 21:22:07 +05:30
Praharsha2007
d2dacb116d feat : implemented dynamic colour support 2026-08-03 21:15:00 +05:30
Roland Geider
e3affdd4f0 Merge pull request #1227 from wger-project/default-weight-profile
Default weight profile
2026-07-30 22:32:59 +02:00
Roland Geider
c334ce6695 Wait for the user profile before hydrating a routine 2026-07-30 22:15:44 +02:00
Roland Geider
88f72a64bd Fix the unit dropdowns in the slot entry form discarding the selection 2026-07-30 21:50:41 +02:00
Roland Geider
fe6d0a59df Default the weight unit from the profile for app-created entries and ad-hoc exercises 2026-07-30 21:47:01 +02:00
Roland Geider
ee0313b458 Merge remote-tracking branch 'origin/master' into default-weight-profile
# Conflicts:
#	lib/features/routines/providers/routines_notifier.dart
#	lib/features/routines/providers/routines_notifier.g.dart
#	test/features/exercises/providers/exercise_filters_notifier_test.mocks.dart
#	test/features/routines/helpers/routine_form_test_overrides.dart
#	test/features/routines/models/log_test.dart
#	test/features/routines/providers/routines_notifier_test.dart
#	test/features/routines/providers/routines_notifier_test.mocks.dart
#	test/features/routines/widgets/forms/routine_form_test.dart
2026-07-30 21:14:16 +02:00
Roland Geider
914e9ac575 Surface involuntary logouts and revalidate the session on app resume
This makes it obvious why users are redirected to the auth screen, since the
snackbar could be easily missed.

See #1265
2026-07-30 15:47:04 +02:00
Roland Geider
de40db09f7 Merge pull request #1232 from bhavit04/feat/allow-self-signed-certs
feat(auth): allow connecting to servers with self-signed certificates
2026-07-30 15:11:30 +02:00
Roland Geider
b732b619c2 Describe updated behaviour in comments 2026-07-30 15:02:04 +02:00
Roland Geider
1a58dd8f71 Warn in the settings while certificates are not being verified 2026-07-30 14:23:37 +02:00
Roland Geider
0ecd06ff3c Read the certificate setting from the provider instead of mirroring it 2026-07-30 14:06:19 +02:00
Roland Geider
3a57479585 Scope the self-signed setting to one host and apply without a restart 2026-07-30 13:57:41 +02:00
Roland Geider
41378988d0 Merge branch 'master' into feat/allow-self-signed-certs
# Conflicts:
#	lib/core/app_settings_notifier.dart
#	lib/core/app_settings_notifier.g.dart
#	lib/core/http_overrides.dart
#	lib/features/auth/widgets/auth_card.dart
#	lib/main.dart
#	test/features/account/widgets/settings_test.dart
2026-07-30 13:20:33 +02:00
Roland Geider
fb43a9fdd2 Allow setting the meal when logging individual ingredients 2026-07-30 12:30:02 +02:00
Roland Geider
24c3a93d97 Filter out empty logs
Closes #1293
2026-07-30 11:38:57 +02:00
Roland Geider
d85162abc0 Merge pull request #1291 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-07-29 18:31:02 +02:00
Roland Geider
d939989d31 Add language key 2026-07-29 18:23:59 +02:00
Jure Repinc
9a2283c4d3 Translated using Weblate (Slovenian)
Currently translated at 46.0% (210 of 456 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/sl/
2026-07-29 15:59:46 +00:00
Jure Repinc
9f70ce2843 Added translation using Weblate (Slovenian) 2026-07-29 15:59:45 +00:00
Jure Repinc
bcf2a2ce42 Translated using Weblate (Slovenian)
Currently translated at 66.6% (2 of 3 strings)

Translation: wger Workout Manager/Play Store
Translate-URL: https://hosted.weblate.org/projects/wger/play-store/sl/
2026-07-29 15:59:44 +00:00
Roland Geider
5eee695899 Merge pull request #1292 from wger-project/feature/improve-sync-logging-and-reporting
Improve sync logging and reporting
2026-07-29 17:59:30 +02:00
Roland Geider
30cc2fc959 Improve logging 2026-07-29 17:42:31 +02:00
Roland Geider
630d4864d8 Cleanup 2026-07-29 17:28:47 +02:00
Roland Geider
9e446e0b94 Allow users to submit issues to github with full stackstrace and sync debug info 2026-07-29 17:23:09 +02:00
Roland Geider
718fa05d1b Add sync diagnostics to the "submit to github" error dialog 2026-07-29 17:06:05 +02:00
Roland Geider
30f44ad471 Show more sync information on the sync status dialog
Also, make it stateful so it shows live data for sync queue size, etc.
2026-07-29 16:50:14 +02:00
Roland Geider
d72a0ccf93 Allow users to force-reconnect to the powersync service 2026-07-29 16:22:30 +02:00
Github-Actions
4261debc0b Bump version to 2.0.3 2.0.3 2026-07-29 13:08:56 +00:00
Roland Geider
cea7d8d978 Fix run step name 2026-07-29 14:53:07 +02:00
Roland Geider
4f4b32e61d Make exerciseObj in SlotEntry hydration-safe 2026-07-29 14:46:54 +02:00
Roland Geider
7122d3032a Bump flutter version 2026-07-29 14:36:09 +02:00
Roland Geider
0cf4111c8d Set fixed size for logo
This was causing tests to fail due to the screen size and the sharding behaviour
in CI
2026-07-28 17:05:07 +02:00
Roland Geider
dcfe231110 Merge pull request #1281 from wger-project/dependabot/pub/powersync-2.3.2
Bump powersync from 2.3.1 to 2.3.2
2026-07-28 16:21:12 +02:00
Roland Geider
3e1c86d318 Merge remote-tracking branch 'origin/master' into dependabot/pub/powersync-2.3.2 2026-07-28 16:12:53 +02:00
Roland Geider
4a632189d3 Fix flaky test 2026-07-28 15:30:09 +02:00
Roland Geider
b5847b4f84 Adapt the code to changes in powersync 2.3.2 2026-07-28 15:18:55 +02:00
Roland Geider
47764efd7e Merge pull request #1288 from wger-project/feature/better-handling-of-powersync-url
More intelligent powersync service URL handling
2026-07-28 15:13:50 +02:00
Roland Geider
3ee512fd6c More intelligent powersync service URL handling
When the server-provided powersync URL is not reachable, try using $server-url/ps/.
This should help with self-hosted instances where SITE_URL points to localhost
or other similar misconfigurations

See https://github.com/wger-project/wger/issues/2432
2026-07-28 15:06:34 +02:00
dependabot[bot]
46396f1255 Bump powersync from 2.3.1 to 2.3.2
Bumps [powersync](https://github.com/powersync-ja/powersync.dart) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/powersync-ja/powersync.dart/releases)
- [Commits](https://github.com/powersync-ja/powersync.dart/compare/powersync-v2.3.1...powersync-v2.3.2)

---
updated-dependencies:
- dependency-name: powersync
  dependency-version: 2.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-28 11:06:51 +00:00
Roland Geider
fb31e86c8e Merge pull request #1283 from wger-project/dependabot/pub/connectivity_plus-7.3.1
Bump connectivity_plus from 7.2.0 to 7.3.1
2026-07-28 13:03:55 +02:00
Roland Geider
126caf7b70 Merge pull request #1282 from wger-project/dependabot/pub/video_player-2.13.0
Bump video_player from 2.12.0 to 2.13.0
2026-07-28 13:03:30 +02:00
Roland Geider
dfb8490fb7 Merge pull request #1284 from wger-project/dependabot/pub/drift-2.34.2
Bump drift from 2.34.0 to 2.34.2
2026-07-28 13:02:58 +02:00
Roland Geider
d50ec35c99 Merge pull request #1285 from wger-project/dependabot/pub/build_runner-2.15.1
Bump build_runner from 2.15.0 to 2.15.1
2026-07-28 13:02:25 +02:00
Roland Geider
9a142dc8fb Merge pull request #1287 from MatzHilven/fix/log-copywith-unhydrated-exercise
Fix crash when copying a log with no hydrated exercise
2026-07-28 12:59:22 +02:00
Matz Hilven
b7a0d4893c Hydrate the exercise when copying a past log in gym mode
Not copying an exercise that isn't there keeps the crash away, but gym
mode then holds a log with no exercise, which would bite the next reader.

The past logs widget already knows the exercise from the set config, so
pass it down to setLog, which assigns it through the exercise setter so
that exerciseId stays consistent.

The notifier test worked around the old behaviour by setting exerciseObj
on every fixture, with a comment explaining that copyWith needs it. That
was the bug, written down, so it's gone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzxNFoPMxsFPxHD3P2Ma3w
2026-07-28 00:11:08 +02:00
Matz Hilven
1b199bd06e Fix crash when copying a log with no hydrated exercise
Log.exerciseObj was declared late and is only ever assigned when
hydrating the logs of a routine's sessions. Logs read from the database
are built through drift's row class and only carry exerciseId, so
copyWith threw a LateInitializationError when it unconditionally read
the field. Copying a past log in gym mode does exactly that.

Make the field nullable behind a getter that throws a descriptive error,
add exerciseObjOrNull for callers that legitimately handle logs straight
from the database, and only carry the exercise over when there is one.

Hydrating the exercise in watchLogsByExerciseDrift instead would mean
joining its translations, images, muscles and equipment for every log,
which most callers don't need.

The log page tests mocked the query with the test routine's logs, which
are hydrated, which is why this was never caught. They now return logs
without an exercise, like the real query does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XzxNFoPMxsFPxHD3P2Ma3w
2026-07-28 00:07:43 +02:00
dependabot[bot]
d71a416d1e Bump build_runner from 2.15.0 to 2.15.1
Bumps [build_runner](https://github.com/dart-lang/build) from 2.15.0 to 2.15.1.
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_runner-v2.15.0...build_runner-v2.15.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-27 00:54:38 +00:00
dependabot[bot]
89a1bfef59 Bump drift from 2.34.0 to 2.34.2
Bumps [drift](https://github.com/simolus3/drift) from 2.34.0 to 2.34.2.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift-2.34.0...drift-2.34.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-27 00:54:31 +00:00
dependabot[bot]
bababb813f Bump connectivity_plus from 7.2.0 to 7.3.1
Bumps [connectivity_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/connectivity_plus) from 7.2.0 to 7.3.1.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/connectivity_plus-v7.3.1/packages/connectivity_plus)

---
updated-dependencies:
- dependency-name: connectivity_plus
  dependency-version: 7.3.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-27 00:54:27 +00:00