Commit Graph

8454 Commits

Author SHA1 Message Date
Roland Geider
a8ba6fe2d6 Refactor the way the settings are handled.
Instead of a "create-settings" command, which didn't contain all the options
and was a bit awkward, we now have specific settings used for different things.
2025-12-28 21:32:44 +01:00
Roland Geider
f580865f0d Rename workflows 2025-12-23 20:37:16 +01:00
Roland Geider
3b7423e337 Bump dependencies 2025-12-23 20:37:16 +01:00
Justin Pinheiro
7361cdd436 Translated using Weblate (French)
Currently translated at 100.0% (603 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/fr/
2025-12-20 11:00:22 +00:00
Floris C
6725ed8b43 Translated using Weblate (Dutch)
Currently translated at 100.0% (603 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/nl/
2025-12-20 11:00:21 +00:00
Roland Geider
a2e8317a29 Merge pull request #2142 from wger-project/dependabot/github_actions/actions/cache-5
Bump actions/cache from 4 to 5
2025-12-17 12:29:49 +01:00
Roland Geider
1bf6630d30 Merge pull request #2143 from wger-project/dependabot/github_actions/actions/upload-artifact-6
Bump actions/upload-artifact from 5 to 6
2025-12-17 12:29:34 +01:00
Roland Geider
247cc0a00f Merge pull request #2144 from wger-project/dependabot/github_actions/actions/download-artifact-7
Bump actions/download-artifact from 6 to 7
2025-12-17 12:29:23 +01:00
Github-actions
0bcc47a2d0 Automatic linting 2025-12-14 11:18:18 +00:00
Roland Geider
88cbec70b5 Merge pull request #2136 from Frenzy-code/trophies
Add Trophy System's Backend
2025-12-14 12:18:07 +01:00
Roland Geider
6ddf3c01c1 (Temporarily) deactivate the trophies app 2025-12-14 11:40:16 +01:00
Floris C
e78996fec6 Translated using Weblate (Dutch)
Currently translated at 89.5% (540 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/nl/
2025-12-13 16:00:20 +01:00
dependabot[bot]
ed50cceef1 Bump actions/download-artifact from 6 to 7
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 23:01:01 +00:00
dependabot[bot]
3218603ae7 Bump actions/upload-artifact from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 23:00:56 +00:00
dependabot[bot]
015b5843d1 Bump actions/cache from 4 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 23:00:53 +00:00
Petri Hämäläinen
ec6af03a67 Translated using Weblate (Finnish)
Currently translated at 76.9% (464 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/fi/
2025-12-08 07:00:26 +00:00
Elias Lang
455549282a Translated using Weblate (German)
Currently translated at 100.0% (603 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/de/
2025-12-08 07:00:26 +00:00
Harry Wen
3de974e483 Merge branch 'master' into trophies 2025-12-07 16:07:37 +03:00
Roland Geider
c76a76dc57 Update react components
Also delete the individual div for the dashboard pages, since this is now rendered
as a single page
2025-12-05 13:44:13 +01:00
Roland Geider
98fbca9583 Remove unused function 2025-12-05 12:43:42 +01:00
Roland Geider
ea992d8e71 Rename helper function 2025-12-05 12:43:42 +01:00
Roland Geider
acb8ffaafd Rename translation helper 2025-12-05 12:43:42 +01:00
Jeremy
8e9b4555ce Fix trophy test suite: resolve syntax errors, test isolation, and type mismatches 2025-12-04 17:45:20 +03:00
Jeremy
63c32c8c3a Update README to include a more comprehensive documentation 2025-12-04 14:17:52 +03:00
Jeremy
a465671f50 Fix the markdown linting issues by add missing language specifiers and blank lines 2025-12-04 13:55:39 +03:00
HairyCrabW
bad8915236 Clean up development files and fix misplaced directory
Remove Implement.txt (development planning document no longer needed).
Remove misplaced wger/wger/trophies/tests/__init__.py directory.
2025-12-04 10:34:40 +03:00
Jeremy
8bd378c5f8 Add Phase 8: Documentation & Finalization 2025-12-03 21:35:44 +03:00
Jeremy
3179dce5b7 Add Phase 7: Testing for the changes 2025-12-03 21:26:40 +03:00
Floris C
ce21152207 Translated using Weblate (Dutch)
Currently translated at 89.0% (537 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/nl/
2025-12-03 18:00:20 +00:00
Jeremy
73fd2fec67 Add Phase 6: Management Commands & Data Loading 2025-12-03 20:38:58 +03:00
HairyCrabW
a2a4d4f0d8 Remove Django admin configuration for trophies
Upstream wger project does not use Django admin interface. Remove admin.py
that was added in Phase 1 & 2 to follow upstream patterns. Update Implement.txt
to remove admin registration step.
2025-12-02 16:03:30 +03:00
HairyCrabW
62bb11ab34 Add Phase 5: API endpoints for trophies
Implement REST API endpoints for trophy, user-trophy, and user-statistics.
Add serializers, filtersets, and viewsets. Hidden trophy visibility rules:
hidden trophies excluded unless earned or user is staff. Fix settings access
to use WGER_SETTINGS for TROPHIES_ENABLED and TROPHIES_INACTIVE_USER_DAYS.
2025-12-02 15:32:52 +03:00
HairyCrabW
5b84e46c80 Add Phase 4: Trophy Evaluation Engine with Celery tasks
Implement TrophyService for evaluating and awarding trophies. Add Celery tasks
for async trophy evaluation. Update signals to trigger trophy evaluation
after statistics updates. Supports both async and synchronous evaluation.
2025-12-02 15:15:08 +03:00
HairyCrabW
ee87ad43e6 Add Phase 3: Statistics Service with signal handlers
Implement UserStatisticsService for tracking trophy-related user statistics.
Add Django signal handlers to update statistics on WorkoutLog and WorkoutSession
save/delete. Uses AbstractWeight for unit normalization.
2025-12-02 15:09:10 +03:00
HairyCrabW
79d7fb7519 Fix Phase 1 & 2: Add admin config, weekend tracking, simple registry keys
Add Django admin configuration for Trophy, UserTrophy, and UserStatistics models.
Add last_complete_weekend_date field to UserStatistics for weekend streak tracking.
Change checker registry to use simple keys instead of full Python paths.
2025-12-02 14:49:11 +03:00
HairyCrabW
0d9c024314 Add missing items to trophy implementation plan
Include Django admin registration, workout deletion handling, weight unit
normalization, timezone handling, bulk query optimization, URL routing,
hidden trophy visibility rules, and i18n support requirements.
2025-12-02 13:38:21 +03:00
Elias Lang
d4bd119ff4 Translated using Weblate (German)
Currently translated at 99.8% (602 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/de/
2025-12-01 06:00:23 +00:00
Madhav Agarwal
ad22ec1e30 Translated using Weblate (Hindi)
Currently translated at 2.8% (17 of 603 strings)

Translation: wger Workout Manager/Web App
Translate-URL: https://hosted.weblate.org/projects/wger/web/hi/
2025-12-01 06:00:21 +00:00
Roland Geider
3eeaaf0b24 Merge pull request #2123 from wger-project/fix/advance-with-logs
Fix bug that caused days with logs not to advance correctly
2025-11-27 12:20:40 +01:00
Github-actions
b084093819 Automatic linting 2025-11-27 11:03:12 +00:00
Roland Geider
46b93c0795 Fix bug that caused days with logs not to advance correctly
Refactor the date_sequence method a bit, update the test cases, write new ones
and remove unused can_advance method in the day model
2025-11-25 16:08:33 +01:00
Yousef
a5bb40cad1 Base Checker Class + Checker Registry Fully Implemented 2025-11-25 14:13:27 +03:00
Yousef
a6bd3ddd5d Created Django App + Databases and their Models + Migrations 2025-11-25 14:01:37 +03:00
Roland Geider
b2d925ef6c Improve some of the queries used for the api endpoint 2025-11-23 12:19:28 +01:00
Roland Geider
fde2f7164f Moove our react components to dev again, was moved out by mistake 2025-11-23 00:26:53 +01:00
Github-actions
b54d6d6829 Automatic linting 2025-11-22 23:20:41 +00:00
Roland Geider
ecb3bcd095 Add comment about running the script with uv 2025-11-23 00:14:42 +01:00
Roland Geider
dc3f57493c Set the "last_image_check" when downloading images for ingredients
We don't care here if if we found an image or there were errors in the response
(keys missing, etc) since in any case we don't want to retry too often.
2025-11-23 00:14:14 +01:00
Roland Geider
9dc1fdd179 Upgrade dependencies 2025-11-22 21:27:47 +01:00
Roland Geider
6670f6f4d3 Update @wger-project/react-components to 25.11.22 2025-11-22 21:25:26 +01:00