38 Commits

Author SHA1 Message Date
João Vitória Silva
a2b32bc847 Add tests for identity_providers module and update .gitignore
Added comprehensive unit tests for the identity_providers module, including CRUD operations, schema validation, and utility functions. Updated .gitignore to exclude deeper __pycache__ directories. Removed session test files and old __pycache__ files from the repository.
2025-12-19 11:25:57 +00:00
João Vitória Silva
78c8e02bc1 Merge branch 'master' into 0.16.0 2025-11-15 23:01:25 +00:00
João Vitória Silva
8580f3020a Fix date format for Garmin body composition API call
Changed the date format passed to api.get_body_composition from a datetime object to a string in 'YYYY-MM-DD' format to match API requirements. Also updated .gitignore to exclude .garminconnect files.
2025-11-14 22:25:54 +00:00
João Vitória Silva
f0cb46ab98 Add devscripts/ to .gitignore and update instructions
Updated .github/copilot-instructions.md to specify that development/helper scripts should be stored in the devscripts/ folder. Added devscripts/ to .gitignore to prevent local development scripts from being committed.
2025-10-16 16:49:16 +01:00
João Vitória Silva
7cb692aba4 Add devdocs/ to .gitignore and update documentation policy
Updated .github/copilot-instructions.md to specify that new development documentation files should be placed in the devdocs/ folder. Added devdocs/ to .gitignore to ensure local development docs are not committed to the repository.
2025-10-16 14:28:44 +01:00
João Vitória Silva
4a5c810772 Add test infrastructure and improve docstrings
Added pytest configuration, test dependencies, and initial test files for the backend. Introduced .env.test for test environment variables. Enhanced docstrings for database and session utility functions. Updated .gitignore for test artifacts.
2025-10-08 21:07:31 +01:00
João Vitória Silva
edb24a30f3 Refactor Strava bikes import and improve gear deduplication
Moves Strava bikes CSV import from the gears API to the strava API, refactoring backend logic for parsing and importing bikes. Adds robust deduplication and validation in gear creation, ensuring no duplicate nicknames or existing gear are imported. Updates frontend to use the new Strava bikes import endpoint, improves user notifications, and updates i18n strings and icons for clarity.
2025-09-25 14:28:03 +01:00
João Vitória Silva
bbccf98bc4 Add 'Track run' activity type and update dependencies
Introduces 'Track run' as a new activity type in the backend, updating mappings and distance calculations accordingly. Removes debug print statements from FIT utils. Updates backend dependencies in poetry.lock and pyproject.toml, and bumps API version to v0.13.4. Adds new ignore rules for import error files in .gitignore. Minor updates to frontend components and i18n files.
2025-08-18 16:31:35 +01:00
João Vitória Silva
49159739e4 Suggestion for clearer folder naming in v0.13 #252 2025-07-18 10:15:34 +01:00
João Vitória Silva
8adf607867 Started activity_media logic
[backend] add new file types to bulk_import supported file types
[backend] add new route to serve activity_media
[backend] started routes for activity_media
[backend] added new activity_media table logic
[frontend] add carousel to MapComponent with activity_media
[frontend] moved to composition API in some files
2025-07-16 15:32:02 +01:00
João Vitória Silva
6e69462409 Add metrics calculation to .tcx files import
[general] update .gitignore to include .tcx files
[backend] add metrics calculation to .tcx files import
[backend] update poetry.lock
2025-07-15 15:41:42 +01:00
João Vitória Silva
f8b9b1bb2d Merge branch 'pr/235' into 0.13.0 2025-07-14 21:39:17 +01:00
Bart Broere
e3e6cd23f1 Avoid committing .env file 2025-06-27 17:16:58 +00:00
Bart Broere
6ff87e5d28 Support tcx files 2025-06-27 17:15:03 +00:00
João Vitória Silva
cc23016823 Simplified mounting volumes
[backend] simplified mounting volumes with volume config where it goes everything except logs
2025-06-17 09:25:27 +01:00
João Vitória Silva
a89151c7be Merge branch 'pr/167' into pr167_review 2025-05-22 21:13:37 +01:00
João Vitória Silva
a44e227800 Fix pagination to handle large amount of pages
[frontend] Fix pagination to handle large amount of pages
[git] ignore .zip files on backend/app/files/
2025-05-21 17:57:21 +01:00
Maks Mržek
2fae883686 summary view added + some fixes 2025-05-18 10:37:44 +02:00
João Vitória Silva
d1fc8764b2 Fix for margins on iOS PWA 2025-05-17 23:30:40 +01:00
João Vitória Silva
999509b120 Fixed wrong parameter order 2025-05-12 16:19:34 +01:00
João Vitória Silva
8bc19eaf4c Add server_images logic, env vars & login photo support
[backend] added login_photo_set column to server_settings
[backend] added ENVIRONMENT env variable
[backend] added server_images
[backend] added protections to server_images and user_images logic
[backend] fixed issue on gpx laps processing with no variables initialized
[backend] CORS now in production only accept requests from ENDURAIN_HOST variable
[docs] updated docs with new env variable and new volume
[frontend] added support to new column on server settings store
2025-04-21 12:46:24 +01:00
João Vitória Silva
746cf47da6 BMI logic + fixes
[aux] added auxiliary scripts
[backend] added error logic to error printing
[backend] rollbacked changes from Datetime to Timestamp
[backend] added body composition sync from Garmin
[backend] added additional validations for empty .gpx files
[backend] add calculate BMI logic
[backend] add BMI calculation in migration
[backend] added Timezone logic to Strava activity import
[frontend] removed block that prevent deleting Strava or GC activity
[frontend] added new generic modal for single number input
[frontend] replaced modal that retrieves Strava and GC activities for number of days with new generic modal
[frontend] added shoes gear in add gear to walk and hike activities
[frontend] minor bug fixes
2024-12-10 17:35:56 +00:00
João Vitória Silva
b27a04419b Fixed typo in sponsors text 2024-11-18 22:22:28 +00:00
João Vitória Silva
36e4dd5f02 Files processed are now stored instead of deleted
Updated .gitignore
[README] Updated README file
[backend] processed files are now stored in files/processed instead of deleted
[backend] removed uploads folder, and centralised everything in files folder, including bulk_import folder
2024-10-15 17:12:32 +01:00
João Vitória Silva
67a14458d9 Started logic to add weight 2024-09-25 09:02:44 -07:00
João Vitória Silva
f418d79238 Added bulk import functionality
[backend] added new route for handling bulk import requests
[backend] added new folder for bulk import actions
[backend] adjusted code for better re usability for bulk import and single file upload
[docker-compose] added new volume mapping in docker compose example file
[README] added new volumes information to backend section of README file
2024-08-27 17:30:32 +01:00
João Vitória Silva
00184e7b28 Added poetry and simplified dependencies
[backend] bump python from 3.11 to 3.12
[backend] Added poetry for dependency management
[backend] adjusted docker image to use poetry
[backend] changed folder structure
[backend] continued implementation of scopes logic (frontend home, login and gears api calls handled)
[backend] simplified verify token dependencies
[frontend] simplifies toast management
[frontend] Added pagination component
[frontend] updated auth pinia store to better handle authentication
[frontend] removed infinite scroll from gears view and added pagination
2024-07-11 17:31:57 +01:00
João Vitória Silva
245cec7945 Frontend revamp with Vue
[frontend] Created UserAvatarComponent to make better reusability of this component and adapted views and components to it
[frontend] It is now possible to upload a photo of the user when creating the user
[frontend] Deleting the user deletes the photo in the filesystem
[backend] Added logic to receive uploaded user photo and store it in the filesystem under user_images directory
[backend] Added logic to /user_images be routed when requested
[docker] Updated docker files and example docker compose file
2024-05-23 14:05:19 +01:00
João Vitória Silva
07268af5ce Backend requirements bump
[backend] Bump fastapi to 0.111.0
[backend] Bump pydantic to 1.10.15
[backend] Bump uvicorn to 0.29.0
[backend] Bump python-dotenv to 1.0.1
[backend] Bump sqlalchemy to 2.0.30
[backend] Bump mysqlclient to 2.2.4
[backend] Bump requests to 2.32.2
[backend] Bump stravalib to 1.7
[backend] Bump python-multipart to 0.0.9
[README] README file updated
[frontend] Updated dockerfile for frontend image
[frontend] Added .env file for frontend docker image
[docker] Updated docker compose example file
2024-05-22 23:03:55 +01:00
João Vitória Silva
67ee678075 Frontend revamp with Vue
Login, logout and home page mainly done
2024-02-19 19:00:10 +00:00
João Vitória Silva
939f86be98 Frontend revamp with Vue 2024-02-16 18:53:11 +00:00
João Vitória Silva
0f52a2467c Alembic added
[backend] Alembic is now implemented. DB creation, updates and default user creations is handled by Alembic
2024-02-10 15:32:02 +00:00
João Vitória Silva
51ec61c3e1 Backend optimization 2024-01-06 23:37:57 +00:00
João Vitória Silva
cfc0619c2c Fixed some issues, added .env file 2023-12-01 23:02:18 +00:00
João Silva
979fabe1b2 Consolidate repos 2023-11-29 16:30:23 +00:00
João Silva
3ad56e93cf Added pkg-config install on docker image creation and removed unused pip module mysql-connector-python 2023-11-29 13:56:37 +00:00
João Silva
32d1e79c57 Added docker creation initial process 2023-11-29 12:10:45 +00:00
João Silva
3e16115f27 Initial commit 2023-10-26 22:00:59 +00:00