Commit Graph

4795 Commits

Author SHA1 Message Date
Roland Geider
164b7de049 Merge pull request #1249 from wger-project/feature/file-restructuring
Folder restructuring
2026-07-01 20:39:52 +02:00
Roland Geider
60c9f67282 Move shared infra to lib/core/ 2026-07-01 20:28:06 +02:00
Roland Geider
c4f5c78459 Move auth UI to lib/features/auth/ 2026-07-01 18:34:24 +02:00
Roland Geider
a46bd22025 Move account feature to lib/features/account/ 2026-07-01 18:28:10 +02:00
Roland Geider
8b929b23c1 Move routines feature to lib/features/routines/ 2026-07-01 18:22:50 +02:00
Roland Geider
33fbe279ca Move nutrition feature to lib/features/nutrition/ 2026-07-01 17:57:49 +02:00
Roland Geider
08fe476e5b Move exercises feature to lib/features/exercises/ 2026-07-01 17:45:43 +02:00
Roland Geider
21ea4dbc54 Move gallery feature to lib/features/gallery/ 2026-07-01 17:30:11 +02:00
Roland Geider
ae513e3566 Move trophies feature to lib/features/trophies/ 2026-07-01 17:21:18 +02:00
Roland Geider
9a393465f3 Move trophies feature to lib/features/trophies/ 2026-07-01 17:09:45 +02:00
Roland Geider
ae81c32a23 Move weight feature to lib/features/weight 2026-07-01 16:55:09 +02:00
Roland Geider
09da3a5672 Refactor measurement category form to use common behaviour 2026-07-01 11:00:28 +02:00
Roland Geider
e8951ca8cb Refactor session models and their use in forms
We now either pass the existing workout session to edit, or null if we want
to add a new entry
2026-07-01 10:59:52 +02:00
Roland Geider
b9d326045b Prefill start and end times for lazily created sessions 2026-07-01 10:59:52 +02:00
Roland Geider
38706a5ebe Merge pull request #1241 from wger-project/dependabot/pub/package_info_plus-10.2.0
Bump package_info_plus from 10.1.0 to 10.2.0
2026-07-01 10:59:07 +02:00
dependabot[bot]
51fd698096 Bump faraday from 1.10.5 to 1.10.6 in /ios
Bumps [faraday](https://github.com/lostisland/faraday) from 1.10.5 to 1.10.6.
- [Release notes](https://github.com/lostisland/faraday/releases)
- [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lostisland/faraday/compare/v1.10.5...v1.10.6)

---
updated-dependencies:
- dependency-name: faraday
  dependency-version: 1.10.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-30 11:08:57 +00:00
dependabot[bot]
1cfa209a4d Bump connectivity_plus from 7.1.1 to 7.2.0
Bumps [connectivity_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/connectivity_plus) from 7.1.1 to 7.2.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/connectivity_plus-v7.2.0/packages/connectivity_plus)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 00:54:18 +00:00
dependabot[bot]
578e26f9ac Bump package_info_plus from 10.1.0 to 10.2.0
Bumps [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v10.2.0/packages/package_info_plus)

---
updated-dependencies:
- dependency-name: package_info_plus
  dependency-version: 10.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 00:54:11 +00:00
Milo Ivir
6721006bf0 Translated using Weblate (Croatian)
Currently translated at 100.0% (446 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-06-28 14:01:20 +00:00
Hanaa
f600a33c56 Translated using Weblate (Arabic)
Currently translated at 88.1% (393 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-06-26 23:05:24 +02:00
Edson Wolf
7b47647109 Translated using Weblate (Portuguese (Brazil))
Currently translated at 93.4% (417 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-06-25 18:20:50 +00:00
Milo Ivir
b4748c5527 Translated using Weblate (Croatian)
Currently translated at 99.5% (444 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-06-25 18:20:49 +00:00
E Ta
699f9ddd08 Translated using Weblate (Arabic)
Currently translated at 87.8% (392 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-06-25 18:20:49 +00:00
Milo Ivir
7d8928ae6b Translated using Weblate (Croatian)
Currently translated at 88.3% (394 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-06-25 18:20:48 +00:00
Edson Wolf
d350bae4a4 Translated using Weblate (Portuguese (Brazil))
Currently translated at 86.9% (388 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-06-25 18:20:47 +00:00
E Sa
ec2c8fe9d1 Translated using Weblate (Arabic)
Currently translated at 82.7% (369 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-06-25 18:20:46 +00:00
Roland Geider
bb82e4b75b Add a small lookup table for exercises
This also consolidates some search functions to use getByIdOrNull
2026-06-25 20:20:31 +02:00
Roland Geider
9122cc1a1e Debounce drift table updates
This can be a problem during the very first sync, where all exercises, units,
ingredients are loaded and rebuild on every new data point.
2026-06-25 20:20:31 +02:00
Roland Geider
eb2bb0f9ef Merge pull request #1226 from wger-project/dependabot/github_actions/actions/checkout-7
Bump actions/checkout from 6 to 7
2026-06-25 16:11:12 +02:00
Roland Geider
564e25b04c Load the logs from the DB directly
This makes sure the past logs list is updated immediately
2026-06-24 21:10:50 +02:00
Roland Geider
54e0634581 Don't try to load user trophies in the gym mode when offline 2026-06-24 20:25:01 +02:00
bhavit04
f9b9885de7 feat(weight): add time-range selector to body weight chart
The body weight chart always plotted the entire history, which becomes
hard to read for users with a lot of entries going back a long time.

Add a segmented selector above the chart with "All" / "Last year" /
"Last 3 months" options (the approach suggested in the issue) that
restricts the plotted range. "All" is the default, so the existing
behaviour is unchanged unless the user opts in.

The range filtering is applied to the weight overview only; the shared
getOverviewWidgetsSeries helper gains an optional mainChartTitle so the
header reflects the selected range, leaving the measurements call site
untouched.

Closes #148

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 16:45:41 +05:30
Roland Geider
65dbf426cf Use ValueKey instead of accessing uuid directly
This would crash on objects that don't have any uuid attribute, such as the Language.
ValueKey works on all of them, as long as they are equatable.

Closes #1236
2026-06-23 15:32:42 +02:00
Roland Geider
3eb7974390 Remove hard coded color for icons
This makes them easier to see in dark mode
2026-06-22 11:08:45 +02:00
Github-Actions
f050f3238f Bump version to 2.0.1 2.0.1 2026-06-21 14:55:58 +00:00
bhavit04
65995c666a feat(auth): allow connecting to servers with self-signed certificates
Self-hosted instances served behind a self-signed (or otherwise invalid)
TLS certificate could not be reached from the app: both the API client and
image loading failed certificate validation.

Add an opt-in "Allow self-signed certificates" toggle to the advanced
sign-in sheet, shown only when a self-hosted server is selected. When
enabled it installs an HttpOverrides.global that skips certificate
validation, which transparently covers the http-package API client and the
dart:io HttpClient used by NetworkImage / extended_image. The preference is
persisted in AppSettings and re-applied on startup before the first request,
and applied immediately when toggled so the next login already trusts the
certificate. The override is a no-op on web, where dart:io networking does
not apply.

Native media players (the video_player plugin) use their own networking
stack and are not affected by this override.

Closes #116

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 12:30:39 +05:30
Roland Geider
2bfc86a8e3 Add missing French translations 2026-06-19 15:39:40 +02:00
Roland Geider
db7f5b8500 Add missing Spanisch translations 2026-06-19 15:32:42 +02:00
Roland Geider
fcfb2886f4 Add missing German translations 2026-06-19 15:31:38 +02:00
Roland Geider
148fe8c8a4 Fix null-check-operator error in the log page in the gym mode 2026-06-19 12:29:40 +02:00
Roland Geider
87a433bc97 Fix set-state-error on TimeInputWidget
The widget is read-only, so we don't need to use a controller, it is simply rebuilt when the
user selects a new time
2026-06-19 12:10:07 +02:00
Roland Geider
a7def64292 The duplication doesn't seem to happen anymore 2026-06-19 11:14:56 +02:00
Roland Geider
5da7da9067 Use proper references in comments, where possible 2026-06-19 10:57:27 +02:00
Roland Geider
e5c351a311 Refactor the server version check
This now runs before login, so this also works on the 2.5 -> 2.6 backend change, which introduced
new auth endpoints
2026-06-19 10:39:08 +02:00
Roland Geider
af71cb7e1c Don't abort auth operations if the local keyring (from secure storage) is not available 2026-06-19 10:22:50 +02:00
dependabot[bot]
4db33865df Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 00:52:32 +00:00
Roland Geider
772e115447 Also build the application for web, for completness sake 2026-06-18 11:47:15 +02:00
Roland Geider
7be919b023 Update the platform-scaffolding
We can now also remove the workaround for riverpod, we're not using that library anymore
2026-06-18 11:47:15 +02:00
Roland Geider
df4c2b5ef8 Update CMakeLists.txt and copy native assets 2026-06-18 11:47:15 +02:00
Roland Geider
9bc0b15c6f Merge pull request #1224 from pankaj-basnet/refactor/nutrition-meals-components
Refactor/nutrition meals components
2026-06-18 10:28:25 +02:00